Simple SPARQL query on DBpedia

I am trying to execute several SPARQL queries in RDF DBPedia files. Sometimes this 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 tested it here: on DBpedia SPARQL, the endpoint is also with my local 4store system, where I see that there is a correct triple, What's wrong with my query? Why is the correct TLD answer not responding?

Thanks @all

+4
source share
1 answer

Try on http://de.dbpedia.org/sparql.

You ask http://de.dbpedia.org/resource/Algerienin the German part of dbpedia.

You tried in the English part.

+2
source

Source: https://habr.com/ru/post/1532978/


All Articles