Reputation: 5240
I want to query from dbpedia using their sparql interface (http://dbpedia.org/sparql)
I want to get the abstract of
http://dbpedia.org/page/Herbie_Mann
I know that I have to call abstract ontology
http://dbpedia.org/ontology/abstract
and my final sparsql query is like following :
SELECT ?abstract
WHERE {
{ <http://dbpedia.org/page/Herbie_Mann> <http://dbpedia.org/ontology/abstract> ?abstract}
}
but yet I'm not able to see anything.
please help me as I am beginner in semantic web!
Upvotes: 2
Views: 249
Reputation: 5240
Got my answer
the problem :
http://dbpedia.org/page/Herbie_Mann
it should be
http://dbpedia.org/resource/Herbie_Mann
Upvotes: 2
Reputation: 739
Try this query instead, where the URI for Herbie Mann includes /resource instead of /page:
SELECT ?abstract
WHERE {
<http://dbpedia.org/resource/Herbie_Mann> <http://dbpedia.org/ontology/abstract>?abstract
}
Upvotes: 5
Reputation: 9472
Don't use <.../page/Herbie_Mann>
but <.../resource/Herbie_Mann>
. The first URI is just the URL of the HTML page that describes the artist. You are interested in the properties of the artist himself. The second URI is the URI that identifies the artist.
Upvotes: 9