I'm making first steps in querying DBPedia - sorry for my lack of experience. I'm trying to get a list of Polish Kings, with Virtuoso SPARQL Query Editor (http://dbpedia.org/sparql). The ontology is listed here:
http://dbpedia.org/ontology/PolishKing
But I cannot get this query working.
I've tried below three, without success:
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?label
WHERE { <http://dbpedia.org/resource/PolishKing> rdfs:label ?label }
-
select ?type {
?type a owl:PolishKing .
}
-
PREFIX dbpedia-owl: <http://dbpedia.org/ontology/>
PREFIX dct: <http://purl.org/dc/terms/>
SELECT DISTINCT ?person {
{ ?person a dbpedia-owl:PolishKing }
}
Can You please help with my first query to DBPedia ? Thank You