Attaching semantic endpoints in a SPARQL query

I am trying to make a query that uses both bibeontology 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 type of query does not work with either the SPARQL endpoint for biberontology or the dbpedia SPARQL endpoint. The individual parts of the queries work fine on each SPARQL endpoint.

Is it possible to combine databases in this way?

+5
source share
3 answers

dbpedia, , , SPARQL, . , , , SPARQL, , . - , .

- URI, SPARQL, RDF , .

:

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" )
} 

:

  • owl dbpedia
  • ?art dbpedia:abstract ?abstract . dbpedia:abstract, bibleontology:abstract, dbpedia
  • filter , , , .

" -", (, query.sparql), :

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

Semantic Web Client Library.

:

| ?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

dbpedia . " URI" - , , . , Java.

+6

bibleontology.com

bibleontology.com SPARQL1.1

PREFIX bibleontology: <http://bibleontology.com/resource/>
PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
SELECT ?art ?abstract
WHERE {
SERVICE <http://bibleontology.com/sparql/> { bibleontology:Ezra owl:sameAs ?art . }
SERVICE <http://dbpedia.org/sparql> { ?art dbo:abstract ?abstract . } }
+10

, , , SPARQL. SPARQL 1.1 Federated Querying, SERVICE :

PREFIX bibleontology: <http://bibleontology.com/resource/>
PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>

SELECT ?art ?abstract
WHERE 
{ 
  bibleontology:Ezra owl:sameAs ?art .
  SERVICE <http://dbpedia.org/sparql?default-graph-uri=http://dbpedia.org> { ?art dbo:abstract ?abstract . }
}

SPARQL , SERVICE, DBPedia SPARQL.

SPARQL SERVICE, , , owl:sameAs, DBPedia, SERVICE -.

SERVICE, , SERVICE ( , ) :

PREFIX bibleontology: <http://bibleontology.com/resource/>
PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>

SELECT ?art ?abstract
WHERE 
{ 
  SERVICE <http://bibleontology.com/sparql> { bibleontology:Ezra owl:sameAs ?art . }
  SERVICE <http://dbpedia.org/sparql?default-graph-uri=http://dbpedia.org> { ?art dbo:abstract ?abstract . }
}

/ SERVICE, , , ,

+6

All Articles