Skip to content

Instantly share code, notes, and snippets.

@justin2004
Last active April 29, 2021 12:26
Show Gist options
  • Save justin2004/ef23ed273cf52c15573fa037a74d0939 to your computer and use it in GitHub Desktop.
Save justin2004/ef23ed273cf52c15573fa037a74d0939 to your computer and use it in GitHub Desktop.
rdf* to rdf
@prefix ex: <http://example/> .
ex:s ex:p ex:o .
[ a <http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement> ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#object>
ex:o ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate>
ex:p ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#subject>
ex:s ;
ex:q ex:z
] .
@prefix ex: <http://example/> .
ex:s ex:p ex:o .
<<ex:s ex:p ex:o>> ex:q ex:z .
"On one hand, RDF* and SPARQL* may be understood–and used–simply as syntactic sugar on top of RDF and SPARQL.
That is, any RDF*-specific syntax such as Turtle* may be parsed directly into plain RDF data that uses RDF
reification or any of the other approaches to annotate statements in RDF. Likewise, SPARQL* queries may be
rewritten into ordinary SPARQL queries."
https://blog.liu.se/olafhartig/2019/01/10/position-statement-rdf-star-and-sparql-star/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment