I'm trying to use SPARQL CONSTRUCT to strip a set of data from dbpedia - I'm only interested in a set of Artists, and I want Sesame as small as possible for speed.
What I thought I could do is use CONSTRUCT to get every predicate for a given artist. I can get the first CONSTRUCT clause working to make sure I get type "Person", but that only gives me triples satisfying that clause - I want their names, labels, birthPlaces etc to. My query below is trying to capture Monet's name in the second CONSTRUCT clause? If I have it right, this would give me a triple of
<http://dbpedia.org/resource/Claude_Monet>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://xmlns.com/foaf/0.1/Person>
and a triple like this
<http://dbpedia.org/resource/Claude_Monet>
<http://xmlns.com/foaf/0.1/name>
"Claude Monet"@en
How do I get my query to use the object of Monet's name as a variable to use where I am inserting empty quotes please? Here's the query
PREFIX purl: <http://purl.org/dc/elements/1.1/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
CONSTRUCT {
?s a foaf:Person .
?s foaf:name ""
} WHERE {
?s foaf:surname "Monet"@en .
?s purl:description "Painter"@en
} LIMIT 100
Any help really appreciated
Mike