The query works well:
SELECT distinct ?x
WHERE {
?x rdfs:label ?lbl .
filter (!bif:exists ((select (1) where { ?x a dbpedia-owl:Person } )))
filter(bif:contains(?lbl, "Cole"))
}
but the SPARQL Explorer retrieves also the redirects... such as
http://dbpedia.org/resource/Nat_Cole
so
OPTIONAL { ?x dbpedia2:redirect : }
FILTER (!bound(?w))
Unfortunately, the query returns many other Person with other Properties.
I don't figure out how to express not-Person in DBpedia. Is there a
SuperClass?.
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion