Anton
V.
Projects and
blogs
Knowledge graphs and Semantic
Web
SPARQL Parse Tree Viewer
SPARQL Parse Tree Viewer
SPARQL query
PREFIX ex: <http://example.org/> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> SELECT ?person ?movie WHERE { ex:Alice foaf:knows ?person . ?person ex:watched ?movie . }
1
PREFIX
ex:
<http://example.org/>
2
PREFIX
foaf:
<http://xmlns.com/foaf/0.1/>
3
PREFIX
wd:
<http://www.wikidata.org/entity/>
4
PREFIX
wdt:
<http://www.wikidata.org/prop/direct/>
5
6
SELECT
?person ?movie
7
WHERE
{
8
ex:
Alice
foaf:
knows
?person .
9
?person
ex:
watched
?movie .
10
}
Parse tree
R
query:Query
R
prologue:Prologue
R
prefixDecl:PrefixDecl
T
"PREFIX"
T
PNAME_NS:"ex:"
T
IRIREF:"<http://example.org/>"
R
prefixDecl:PrefixDecl
T
"PREFIX"
T
PNAME_NS:"foaf:"
T
IRIREF:"<http://xmlns.com/foaf/0.1/>"
R
prefixDecl:PrefixDecl
T
"PREFIX"
T
PNAME_NS:"wd:"
T
IRIREF:"<http://www.wikidata.org/entity/>"
R
prefixDecl:PrefixDecl
T
"PREFIX"
T
PNAME_NS:"wdt:"
T
IRIREF:"<http://www.wikidata.org/prop/direct/>"
R
selectQuery:SelectQuery
R
selectClause:SelectClause
T
"SELECT"
R
var:Var
T
VAR1:"?person"
R
var:Var
T
VAR1:"?movie"
R
whereClause:WhereClause
T
"WHERE"
R
groupGraphPattern:GroupGraphPattern
T
"{"
R
groupGraphPatternSub:GroupGraphPatternSub
R
triplesBlock:TriplesBlock
R
triplesSameSubjectPath:TriplesSameSubjectPath
R
varOrTerm:VarOrTerm
R
graphTerm:GraphTerm
R
iri:Iri
R
prefixedName:PrefixedName
T
PNAME_LN:"ex:Alice"
R
propertyListPathNotEmpty:PropertyListPathNotEmpty
R
verbPath:VerbPath
R
path:Path
R
pathAlternative:PathAlternative
R
pathSequence:PathSequence
R
pathEltOrInverse:PathEltOrInverse
R
pathElt:PathElt
R
pathPrimary:PathPrimary
R
iri:Iri
R
prefixedName:PrefixedName
T
PNAME_LN:"foaf:knows"
R
objectListPath:ObjectListPath
R
objectPath:ObjectPath
R
graphNodePath:GraphNodePath
R
varOrTerm:VarOrTerm
R
var:Var
T
VAR1:"?person"
T
"."
R
triplesBlock:TriplesBlock
R
triplesSameSubjectPath:TriplesSameSubjectPath
R
varOrTerm:VarOrTerm
R
var:Var
T
VAR1:"?person"
R
propertyListPathNotEmpty:PropertyListPathNotEmpty
R
verbPath:VerbPath
R
path:Path
R
pathAlternative:PathAlternative
R
pathSequence:PathSequence
R
pathEltOrInverse:PathEltOrInverse
R
pathElt:PathElt
R
pathPrimary:PathPrimary
R
iri:Iri
R
prefixedName:PrefixedName
T
PNAME_LN:"ex:watched"
R
objectListPath:ObjectListPath
R
objectPath:ObjectPath
R
graphNodePath:GraphNodePath
R
varOrTerm:VarOrTerm
R
var:Var
T
VAR1:"?movie"
T
"."
T
"}"
R
solutionModifier:SolutionModifier
R
valuesClause:ValuesClause
SPARQL Parse Tree Viewer
See also
Let's explore the Nobel Prize dataset
- An overview of the official Nobel Prize Linked Data dataset with some example SPARQL queries.
Introduction to SPARQL
- SPARQL is a query language for graph data. The graph model of thinking fits well a lot of use cases.
Why federation is a game-changing feature of SPARQL
- SPARQL federation is an incredibly useful feature for querying distributed RDF graphs.
SPARQL Client
- Query SPARQL endpoints online.
SPARQL Playground (RDF Playground)
- Experiment with running SPARQL queries against RDF data.
Magic SPARQL endpoints
- Instant triplestores for testing and exploration, prepopulated with the RDF/Turtle data that is inlined in the SPARQL endpoint URLs.
List of public SPARQL endpoints
- A list of public SPARQL endpoints for querying various RDF datasets.
SPARQL Editor
- A simple online editor for SPARQL (SPARQL Protocol and RDF Query Language) queries.
SPARQL on FHIR
- Query FHIR data using SPARQL.
The RDF model of the Gene Ontology, demystified
- An outline of the structure of the Gene Ontology RDF graph and ways to query it.
Data exploration on linked COVID-19 datasets
- An overview of the available RDF datasets and discovery tools for COVID-19.
Semantic Web Browser
- Look up entities on the Semantic Web.
SHACL Validator
- Validate RDF data against SHACL shapes.
How to query Wikidata using SPARQL in JavaScript
- A guide to getting data from Wikidata using SPARQL in JavaScript.
Turtle Parse Tree Viewer
- Visualize the parse tree of Turtle syntax.
Turtle Inspector
- Inspect the RDF content of Turtle files.
Turtle Editor
- Edit Turtle documents online.
OWL Functional Syntax Parse Tree Viewer
- View the parse tree of OWL Functional Syntax.
OWL reasoning
- Using OWL reasoning to infer new knowledge.
RDF* and the onset of Linked Data* and the Semantic Web*
- The evolution of RDF and the related technologies fuelled by the need to make statements about statements.
RDF graphs
- Intro to RDF graph visualization + demo.
Creating an Amazon Neptune database using AWS CDK v2
- Provisioning a graph database cluster in AWS using TypeScript.
Awesome Semantic Web
- A curated list of awesome books and resources on the Semantic Web.
Made by Anton Vasetenkov in Auckland, New Zealand.
Email
me if you want to discuss a project.