Vahid Hashemi
Vahid Hashemi

Reputation: 5240

can't query from dbpedia with a sparql

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

Answers (3)

Vahid Hashemi
Vahid Hashemi

Reputation: 5240

Got my answer

the problem :

http://dbpedia.org/page/Herbie_Mann

it should be

http://dbpedia.org/resource/Herbie_Mann

Upvotes: 2

Jan
Jan

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

cygri
cygri

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

Related Questions