Thursday, September 19, 2013

SPARQL FOAF ENDPOINT

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT Distinct ?Name ?Interest
FROM <http://www.yourwebsite/yourfoaf.rdf>
WHERE {
{?me foaf:knows ?friend . ?friend foaf:name ?Name . ?friend foaf:interest ?Interest}
}
Order by ?Name

0 comments:

Post a Comment