An introduction to RDF querying in SPARQL
Zwifi
21.3K views
Initial demo
When you click the "Run" button, the SPARQL query is executed against a predefined RDF dataset, and the result is displayed through a custom script. Coming soon, an actual tutorial.
Who knows who?
1
2
3
4
5
6
7
8
9
PREFIX foaf:<http://xmlns.com/foaf/0.1/>
SELECT DISTINCT ?aname ?bname
WHERE {
?a foaf:knows ?b .
?a foaf:name ?aname .
?b foaf:name ?bname .
}
1
<rdf:RDF
In this case, the dataset can be modified locally to directly test the impact of the data structure on the query result.
This tutorial is based on the lectures taught by Nathalie Hernandez and Camille Pradel.
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.