Skip to content

Instantly share code, notes, and snippets.

@kendall kendall/matrix.ttl
Created Sep 9, 2014

Embed
What would you like to do?
Matrix graph in RDF Turtle
:m1 a :Movie; :title "The Matrix"; :year "1999-03-31".
:m2 a :Movie; :title "The Matrix Reloaded"; :year "2003-05-07".
:m3 a :Movie; :title "The Matrix Revolutions"; :year "2003-10-27".
:neo a :Actor; :name "Keanu Reeves".
:morpheus a :Actor; :name "Larry F".
:trinity a :Actor; :name "CAM".
:neo :hasRole [:as "Neo"; :in :m1].
:neo :hasRole [:as "Neo"; :in :m2].
:neo :hasRole [:as "Neo"; :in :m2].
:morpheus :hasRole [:as "Morpheus"; :in :m1].
:morpheus :hasRole [:as "Morpheus"; :in :m2].
:morpheus :hasRole [:as "Morpheus"; :in :m2].
:trinity :hasRole [:as "Trinity"; :in :m1].
:trinity :hasRole [:as "Trinity"; :in :m2].
:trinity :hasRole [:as "Trinity"; :in :m2].
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.