Back
Close

An introduction to RDF querying in SPARQL

Zwifi
2,203 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?
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 .
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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.
Go to tech.io
codingame x discord
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants