I have this query SPARQL that I ran on it.dbpedia.org/sparql:
select ?resource where {
?resource rdfs:label "Piemonte"@it
}
I get this result:
http://it.dbpedia.org/resource/Categoria:Piemonte
http://it.dbpedia.org/resource/Piemonte
I would like to have only http://it.dbpedia.org/resource/Piemonte as a result. I am trying to write this query SPARQL to delete http://it.dbpedia.org/resource/Categoria:Piemonte from the results:
select ?resource where {
?resource rdfs:label "Piemonte"@it
FILTER (rdf:type != skos:Concept)
}
because I noticed that http://it.dbpedia.org/resource/Categoria:Piemonte has the object skos:Concept
whereas the http://it.dbpedia.org/resource/Piemonte doesn't, but I get the same result. Why? What am I doing wrong here?
I also tries adding LIMIT 1
, but the result was http://it.dbpedia.org/resource/Categoria:Piemonte
, since the results aren't guaranteed to be in the same order.