简体   繁体   中英

Simple SPARQL Query on DBpedia

I'm trying a few SPARQL queries on DBPedia RDF files. Sometimes it works but the following query returns an empty result set.

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT * WHERE {
    <http://de.dbpedia.org/resource/Algerien> 
    <http://dbpedia.org/ontology/topLevelDomain> ?o .
}

I've tested it here: at the DBpedia SPARQL endpoint and with my local 4store system where I can see that the correct triple is there. What is wrong with my query? Why is not the correct TLD the answer?

Thanks @all

Try it at http://de.dbpedia.org/sparql .

You asking for http://de.dbpedia.org/resource/Algerien in the German part of dbpedia.

You tried in the English part.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM