Hi,
I just wanted to report some unexpected behaviour when running the
following query on http://dbpedia.org/sparql :
SELECT ?type WHERE {
<http://dbpedia.org/resource/John_the_Baptist> a ?type .
FILTER NOT EXISTS{<http://dbpedia.org/resource/John_the_Baptist> a
?moreSpecificType .
?moreSpecificType <http://www.w3.org/2000/01/rdf-schema#subClassOf>+ ?type.}
}
It's supposed to return all types of
http://dbpedia.org/resource/Saint_George that do not have a subclass
which is also an asserted type of
http://dbpedia.org/resource/Saint_George. But in fact it returns, among
others,
http://www.w3.org/2002/07/owl#Thing
http://dbpedia.org/ontology/Agent,
http://dbpedia.org/ontology/Person,
http://dbpedia.org/ontology/Saint
which are indeed related via rdfs:subClassOf.
For some other resources it seems to work, e.g. for the resource
http://dbpedia.org/resource/Pope_John_Paul_I it returns, among others,
only the class http://dbpedia.org/ontology/ChristianBishop from the
DBpedia ontology namespace.
Am I doing something wrong, or is this a (known) bug in Virtuoso?
Regards,
Lorenz Bühmann
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Virtuoso-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/virtuoso-users