dice-group / QUANT

Question Answering Curator
2 stars 3 forks source link

OnlyDBO Bug #4

Open RicardoUsbeck opened 6 years ago

RicardoUsbeck commented 6 years ago

"OnlyDBO does not work (accept rdf:type as onlydbo true and accept http://purl.org/dc/terms/ as false), write a unit test for it:

PREFIX dct: http://purl.org/dc/terms/ PREFIX dbc: http://dbpedia.org/resource/Category:

ASK WHERE { ?uri dct:subject dbc:Castles_in_the_United_States }

PREFIX dbo: http://dbpedia.org/ontology/ PREFIX dct: http://purl.org/dc/terms/ PREFIX dbc: http://dbpedia.org/resource/Category: PREFIX dbr: http://dbpedia.org/resource/ PREFIX rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#

SELECT (COUNT(DISTINCT ?uri) AS ?count) WHERE { { ?uri dbo:location dbr:South_Carolina ; rdf:type dbo:Lake } UNION { ?uri dct:subject dbc:Rivers_and_streams_of_South_Carolina } }"