| 1 | <h2>Full example</h2> |
| 2 | <pre><code>@base <http://example.org/> . |
| 3 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
| 4 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
| 5 | @prefix foaf: <http://xmlns.com/foaf/0.1/> . |
| 6 | @prefix rel: <http://www.perceive.net/schemas/relationship/> . |
| 7 | |
| 8 | GRAPH <urn:myGraph> { |
| 9 | <#green-goblin> |
| 10 | rel:enemyOf <#spiderman> ; |
| 11 | a foaf:Person ; # in the context of the Marvel universe |
| 12 | foaf:name "Green Goblin" . |
| 13 | |
| 14 | <#spiderman> |
| 15 | rel:enemyOf <#green-goblin> ; |
| 16 | a foaf:Person ; |
| 17 | foaf:name "Spiderman", "Человек-паук"@ru . |
| 18 | }</code></pre> |