NeverSayEver
NeverSayEver

Reputation: 103

Why is this query not working in spqarql?

Im a very beginner in sparql, just started doint it a couple hours ago. Howewer, after some practicing i don't know why the following query is not working:

select * where
 {

?auth dbp:author  dbr:The_Lord_of_the_Rings .


} LIMIT 100

So basically i just want the author of this book, which is a property of it.

Upvotes: 1

Views: 47

Answers (1)

cknoll
cknoll

Reputation: 2522

Use this

select * where
{

 dbr:The_Lord_of_the_Rings dbp:author ?auth .

} LIMIT 100

Update/Correction: The property dbp:author has the meaning: has_author (and not: is_author_of as it is implied by the positioning of subject and object in the question).

Upvotes: 1

Related Questions