Created
June 28, 2016 06:51
-
-
Save jindrichmynarz/d523a1b03df565609adfafb120bbca6d to your computer and use it in GitHub Desktop.
Generating SPARQL: SPARQL S-Expressions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (prefix ((dbo: <http://dbpedia.org/ontology/>) | |
| (foaf: <http://xmlns.com/foaf/0.1/>)) | |
| (project (?person ?name ?birthDate ?deathDate) | |
| (extend ((?deathDate ?.2)) | |
| (extend ((?birthDate ?.1)) | |
| (extend ((?name ?.0)) | |
| (group (?person) ((?.0 (sample ?_name)) (?.1 (sample ?_birthDate)) (?.2 (sample ?_deathDate))) | |
| (leftjoin | |
| (join | |
| (slice 0 10000 | |
| (project (?person) | |
| (distinct | |
| (project (?person) | |
| (order (?person) | |
| (bgp | |
| (triple ?person <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> foaf:Person) | |
| (triple ?person foaf:name ??0) | |
| (triple ?person dbo:birthDate ??1))))))) | |
| (bgp | |
| (triple ?person foaf:name ?_name) | |
| (triple ?person dbo:birthDate ?_birthDate))) | |
| (bgp (triple ?person dbo:deathDate ?_deathDate))))))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment