Reputation: 1
I'm new to sparql and I'm learning it right now. I took this code from a tutorial
prefix dbpo: <http://dbpedia.org/ontology/>
prefix dbpr: <http://dbpedia.org/resource/>
select distinct ?Predicate ?Object where {
?Subject ?Predicate ?Object
filter(?Subject = dbpr:Markiplier)
}
and executed it on http://dbpedia.org/sparql, it returns empty result
as you can see on this image
I tried many codes and I always get empty result, is there anything I must do to get data ? Any advice will be appreciated.
Upvotes: 0
Views: 91
Reputation: 557
I didn't understand why you put space for publishing the question but you should reunite them again. Besides you can also ask for ?Subjectif you like:
prefix dbpo: <http://dbpedia.org/ontology/>
prefix dbpr: <http://dbpedia.org/resource/>
select distinct ?Subject ?Predicate ?Object where {
?Subject ?Predicate ?Object
filter(?Subject = dbpr:Markiplier)
}
By the way if you have troubles with prefixes, I would reccomend to work on the http://dbpedia.org/snorql/ endpoint. So that you can use the predefined prefixes directly like this.
Upvotes: 0