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 3806588
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T14:51:33+00:00 2026-05-19T14:51:33+00:00

I’m trying to make a request which uses both bibleontology and dbpedia semantic databases:

  • 0

I’m trying to make a request which uses both bibleontology and dbpedia semantic databases:

PREFIX bibleontology: <http://bibleontology.com/resource/>
PREFIX dbo: <http://dbpedia.org/ontology/>

SELECT ?art ?abstract WHERE { 
bibleontology:Ezra owl:sameAs ?art .
?art dbo:abstract ?abstract .
}

This kind of request works on neither the bibleontology SPARQL endpoint, nor on the dbpedia SPARQL endpoint. Individual parts of the requests work fine on the each SPARQL endpoints.

Is it possible to join databases this way?

  • 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-05-19T14:51:33+00:00Added an answer on May 19, 2026 at 2:51 pm

    That query doesn’t work on neither dbpedia or bibleontology because the information is stored in two different databases and when you run a SPARQL query you basically hit one or the other. This means that you have to you download the data from both databases to put them in a local triple store in order to able to run a SPARQL query like the one you showed. Another option is to use a library that does that for you.

    The Semantic Web Client Library will follow all URIs that you have in your SPARQL query and download the RDF data from each resource so that it can join all the triple patterns that appear in you query and give the answers.

    You could run your query with some minor changes :

    PREFIX bibleontology: <http://bibleontology.com/resource/>
    PREFIX dbo: <http://dbpedia.org/ontology/>
    PREFIX owl: <http://www.w3.org/2002/07/owl#>
    PREFIX dbpedia: <http://dbpedia.org/ontology/> 
    
    SELECT * WHERE { 
    bibleontology:Ezra owl:sameAs ?art .
    ?art dbpedia:abstract ?abstract .
    FILTER langMatches( lang(?abstract), "EN" )
    } 
    

    Explanation of the changes:

    1. Included owl and dbpedia namespaces
    2. ?art dbpedia:abstract ?abstract . you need to match the dbpedia:abstract predicate to get the abstract instead of bibleontology:abstract in order to get the abstract from dbpedia
    3. I have also included a filter to only retrieve abstracts in English, this is of course optional.

    Once you download “The Semantic Web Library” and you put your query in a file (i.e: query.sparql) you can run the following command to test your query:

    ./semwebquery -sparqlfile query.sparql -retrieveduris -maxsteps 5
    

    All the command params are explained in the Semantic Web Client Library documentation.

    You would get the following output:

    | ?art                               | ?abstract
    | <http://dbpedia.org/resource/Ezra> | "Ezra is a major .... "@en |
    
    Successfully dereferenced URIs: 
    
    http://www.w3.org/2002/07/owl
    http://bibleontology.com/data/Ezra
    http://dbpedia.org/data/Ezra.xml
    http://dbpedia.org/data3/abstract.n3
    

    I have omitted the long abstract from dbpedia for simplicity. The list of “Successfully dereferenced URIs” are documents retrieved by the library in order to answer your query. In the documentation of the library you’ll see how to run queries programatically in Java.

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

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I used javascript for loading a picture on my website depending on which small
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am trying to render a haml file in a javascript response like so:
I would like to run a str_replace or preg_replace which looks for certain words
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a text area in my form which accepts all possible characters from

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.