Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8579535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:37:41+00:00 2026-06-11T20:37:41+00:00

I have build a small RDF model: it only contains a few triples describing

  • 0

I have build a small RDF model: it only contains a few triples describing some items on the human genome.

I want to retain only those items overlapping some genomic segments (say a “gene”), stored in another relational database. This database of genes is far too big to be inserted in my inital RDF model.

Is there any way to extend ARQ to inject some new Statements (the RDF statements describing the only genes overlapping the items) in my model during the query ?

input:

uri:object1  my:hasChromosome "chr1" .
uri:object1  my:hasStartPosition "1235689887" .
uri:object1  my:hasEndPosition "2897979879" .
uri:object1  dc:title "my variation" .

output:

uri:object1  my:hasChromosome "chr1" .
uri:object1  my:hasStartPosition "1235689887" .
uri:object1  my:hasEndPosition "2897979879" .
uri:object1  dc:title "my variation" .
uri:gene1  dc:title "GeneName" .

I’ve read about http://jena.sourceforge.net/ARQ/arq-query-eval.html but I’m lost: which mechanism of extension should I choose ? Property ? Is there any more complete example on web ?

Thanks,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T20:37:42+00:00Added an answer on June 11, 2026 at 8:37 pm

    You have two datastores. One a small dataset in a Jena in memory Model, and a large set of gene related data in a relational database. You want to write a sparql query as if the large set of data is local without actually importing it. (The actual data transformation you want to do is a bit vague.)

    In SPARQL 1.1 you can do this using the SERVICE keyword between sparql endpoints. To be able to use your relational database of gene data as a SPARQL endpoint you need a SPARQL to SQL translator such as D2RQ or convert the data to RDF and load it into a general purpose SPARQL capable triple-store.

    Once the gene data is available in a SPARQL endpoint.

    PREFIX my: <...>
    PREFIX f:  <java:com.example.DBFunctions.>
    
    INSERT { ?missing a my:Gene } # mark a region as a gene
    WHERE {
        ?missing my:hasChromosome ?chr ; 
             my:hasStartPosition ?start ;
             my:hasEndPosition ?end .
        SERVICE<http://localhost:????/gene_data/sparql>{
           ?gene a my:Gene .
             my:hasStartPosition ?gStart ;
             my:hasEndPosition ?gEnd .
           #Detect overlap.
           FILTER( !(?start > ?gEnd || ?end < ?gStart) ) .
        }
    }
    

    The other option is to do the filter as @user205512 shows by using a custom function. Where the filter java code uses JDBC to connect to the relational database.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have to build an small app in order to show some data from
For some research purpose I've build a small tanks game where you have 1
i have build a small function whose work to get value in alert box
i have build a small test app in Flash Pro 5.5 overlayed with the
I have been using twitter bootstrap to build a small blog site for myself
I'm trying to build a small testing app with erlang+mnesia. I have a user
I have a small problem with UINavigationController animation between two view. My application build
I have tried to build a small function that would be use in controller
I have build.xml for my project, but even this small piece of code <target
I have a requirment to build a small utility, which fires a sql query

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.