SELECT
: selecting values in tabular formCONSTRUCT
: construct new triplesASK
: check if data existsDESCRIBE
: describe a given resourceINSERT
: insert new triplesDELETE
: delete existing triplesSELECT ?name ?deathDate WHERE { ?person a dbpedia-owl:Artist; rdfs:label ?name; dbpedia-owl:birthPlace [ rdfs:label "York"@en ]. FILTER LANGMATCHES(LANG(?name), "EN") OPTIONAL { ?person dbpprop:dateOfDeath ?deathDate. } }
name | deathDate |
Albert Joseph Moore | |
Charles Francis Hansom | 1888 |
David Reed (comedian) | |
Dustin Gee | |
E Ridsdale Tate | 1922 |
RDF dataset + SPARQL query
↓
...
↓
query results
RDF dataset + SPARQL query
↓
SPARQL query processing
↓
query results
?person a dbpedia-owl:Artist. ?person rdfs:label ?name. ?person dbpedia-owl:birthPlace ?birthPlace.
?
, followed by a label. (e.g. ?name
)
OPTIONAL
, UNION
, FILTER
, ...
name | birthplace |
Bob Brockmann | http://dbpedia.org/resource/Louisiana |
Bennie Nawahi | http://dbpedia.org/resource/Honolulu |
Weird Al Yankovic | http://dbpedia.org/resource/Downey,_California |
SELECT ?x ?y ?z WHERE { ?x ?y ?z }
{ "type": "project", "input": { "type": "bgp", "patterns": [ { "type": "pattern", "subject": { "termType": "Variable", "value": "x" }, "predicate": { "termType": "Variable", "value": "y" }, "object": { "termType": "Variable", "value": "z" } } ] }, "variables": [ { "termType": "Variable", "value": "x" }, { "termType": "Variable", "value": "y" }, { "termType": "Variable", "value": "z" } ] }
SELECT ?drug ?title WHERE { ?drug db:drugCategory dbc:micronutrient. ?drug db:casRegistryNumber ?id. ?keggDrug rdf:type kegg :Drug. ?keggDrug bio2rdf:xRef ?id. ?keggDrug purl:title ?title. }
SELECT ?drug ?title WHERE { SERVICE <http://example.com/drb> { ?drug db:drugCategory dbc:micronutrient. ?drug db:casRegistryNumber ?id. } SERVICE <http://example.com/kegg> { ?keggDrug rdf:type kegg :Drug. ?keggDrug bio2rdf:xRef ?id. ?keggDrug purl:title ?title. } }
SELECT ?name WHERE { <https://alice.pods.org/profile#me> foaf:knows ?person. ?person foaf:name ?name. }
[ { "name": "Bob" }, { "name": "Carol" } ]
@comunica/query-sparql
@comunica/query-sparql
@comunica/query-sparql-link-traversal-solid
@comunica/query-sparql
@comunica/query-sparql-link-traversal-solid