I\'m fairly new to RDF / Sparql, so apologies for any incorrect terminology, and also for the fairly terrible example that follows:
Given the following RDF dataset:<
Here's an example using SPARQL that has been deprecated from the spec (for reasons I never understood) but remains supported in Virtuoso (which will be the case for the unforseeable future)
PREFIX e:
PREFIX foaf:
SELECT *
FROM
{
foaf:knows{2} ?target .
?target a e:Freemason .
}
Live Links: