Clean up examples and generate alternative representations.
authorMo McRoberts <mo.mcroberts@bbc.co.uk>
Wed, 11 Sep 2013 15:50:27 +0100
changeset 36 f0974dabb109
parent 35 8233a5e7156b
child 37 454d00f70185
Clean up examples and generate alternative representations.
examples/example10.nt
examples/example10.rdf
examples/example10.ttl
examples/example11.nt
examples/example11.rdf
examples/example11.ttl
examples/example3.nt
examples/example3.rdf
examples/example3.ttl
examples/example4.nt
examples/example4.rdf
examples/example4.ttl
examples/example5.nt
examples/example5.rdf
examples/example5.ttl
examples/example6.nt
examples/example6.rdf
examples/example6.ttl
examples/example7.nt
examples/example7.rdf
examples/example7.ttl
examples/example8.nt
examples/example8.rdf
examples/example8.ttl
examples/example9.nt
examples/example9.rdf
examples/example9.ttl
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/example10.nt	Wed Sep 11 15:50:27 2013 +0100
@@ -0,0 +1,9 @@
+_:genid1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Permission> .
+_:genid1 <http://w3.org/ns/odrl/2/action> <http://w3.org/ns/odrl/2/display> .
+_:genid1 <http://w3.org/ns/odrl/2/target> <http://example.com/myPlace:billie:photos:football2010> .
+_:genid1 <http://w3.org/ns/odrl/2/assigner> <http://example.com/myPlace:billie> .
+_:genid1 <http://w3.org/ns/odrl/2/assignee> <http://example.com/myPlace:network:football> .
+<http://example.com/policy:5109> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Agreement> .
+<http://example.com/policy:5109> <http://w3.org/ns/odrl/2/permission> _:genid1 .
+<http://example.com/myPlace:billie> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Party> .
+<http://example.com/myPlace:network:football> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Group> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/example10.rdf	Wed Sep 11 15:50:27 2013 +0100
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<rdf:RDF
+   xmlns:odrl="http://w3.org/ns/odrl/2/"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+  <odrl:Party rdf:about="http://example.com/myPlace:billie"/>
+  <odrl:Group rdf:about="http://example.com/myPlace:network:football"/>
+  <odrl:Agreement rdf:about="http://example.com/policy:5109">
+    <odrl:permission>
+      <odrl:Permission>
+        <odrl:action rdf:resource="http://w3.org/ns/odrl/2/display"/>
+        <odrl:assignee rdf:resource="http://example.com/myPlace:network:football"/>
+        <odrl:assigner rdf:resource="http://example.com/myPlace:billie"/>
+        <odrl:target rdf:resource="http://example.com/myPlace:billie:photos:football2010"/>
+      </odrl:Permission>
+    </odrl:permission>
+  </odrl:Agreement>
+</rdf:RDF>
--- a/examples/example10.ttl	Wed Sep 11 14:34:52 2013 +0100
+++ b/examples/example10.ttl	Wed Sep 11 15:50:27 2013 +0100
@@ -1,57 +1,15 @@
-@prefix : <http://example10.com#> .
-@prefix owl: <http://www.w3.org/2002/07/owl#> .
-@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
-@prefix xml: <http://www.w3.org/XML/1998/namespace> .
-@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@base <http://example.com/> .
 @prefix odrl: <http://w3.org/ns/odrl/2/> .
-@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
-@base <http://example10.com> .
-
-<http://example10.com> rdf:type owl:Ontology ;
-                       
-                       rdfs:comment """Scenario 3.10
-""" ;
-                       
-                       owl:imports odrl: .
-
-
-#################################################################
-#
-#    Individuals
-#
-#################################################################
-
-
-
-
 
-###  http://example10.com#myPlaceBilliePhotosFootball2010
-
-:myPlaceBilliePhotosFootball2010 rdf:type owl:NamedIndividual .
-
-
-
-###  http://example10.com#myplaceBillie
-
-:myplaceBillie rdf:type owl:NamedIndividual .
-
-
-
-###  http://example10.com#myplacefootball
+</policy:5109>
+	a odrl:Agreement ;
+	odrl:permission [
+		a odrl:Permission ;
+		odrl:action odrl:display ;
+		odrl:target </myPlace:billie:photos:football2010> ;
+		odrl:assigner </myPlace:billie> ;
+		odrl:assignee </myPlace:network:football>
+	] .
 
-:myplacefootball odrl:scope odrl:group .
-:policy5109 rdf:type odrl:Agreement ;
-            
-            odrl:permission [
-				rdf:type odrl:Permission ;
-			    odrl:target :myPlaceBilliePhotosFootball2010 ;
-			    odrl:assigner :myplaceBillie ;
-			    odrl:assignee :myplacefootball ;
-			   odrl:action odrl:display .
-			] .
-
-
-
-
-###  Generated by the OWL API (version 3.4.2) http://owlapi.sourceforge.net
-
+</myPlace:billie> a odrl:Party .
+</myPlace:network:football> a odrl:Group .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/example11.nt	Wed Sep 11 15:50:27 2013 +0100
@@ -0,0 +1,6 @@
+_:genid1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Permission> .
+_:genid1 <http://w3.org/ns/odrl/2/action> <http://w3.org/ns/odrl/2/index> .
+_:genid1 <http://w3.org/ns/odrl/2/target> <http://example.com/archive/2010> .
+_:genid1 <http://example.com/x#collection> <http://example.com/x/database> .
+<http://example.com/policy:881212> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Set> .
+<http://example.com/policy:881212> <http://w3.org/ns/odrl/2/permission> _:genid1 .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/example11.rdf	Wed Sep 11 15:50:27 2013 +0100
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<rdf:RDF
+   xmlns:odrl="http://w3.org/ns/odrl/2/"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:x="http://example.com/x#">
+  <odrl:Set rdf:about="http://example.com/policy:881212">
+    <odrl:permission>
+      <odrl:Permission>
+        <x:collection rdf:resource="http://example.com/x/database"/>
+        <odrl:action rdf:resource="http://w3.org/ns/odrl/2/index"/>
+        <odrl:target rdf:resource="http://example.com/archive/2010"/>
+      </odrl:Permission>
+    </odrl:permission>
+  </odrl:Set>
+</rdf:RDF>
--- a/examples/example11.ttl	Wed Sep 11 14:34:52 2013 +0100
+++ b/examples/example11.ttl	Wed Sep 11 15:50:27 2013 +0100
@@ -1,52 +1,12 @@
-@prefix : <http://example11.com#> .
-@prefix owl: <http://www.w3.org/2002/07/owl#> .
-@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
-@prefix xml: <http://www.w3.org/XML/1998/namespace> .
-@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@base <http://example.com/> .
 @prefix odrl: <http://w3.org/ns/odrl/2/> .
-@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
-@prefix x: <http://examplex.com#> .
-@base <http://example11.com> .
-
-<http://example11.com> rdf:type owl:Ontology ;
-                       
-                       rdfs:comment "Scenario 3.11 "@en ;
-                       
-                       owl:imports odrl: .
-
-
-#################################################################
-#
-#    Individuals
-#
-#################################################################
-
-
-###  http://example11.com#archive
+@prefix x: <http://example.com/x#> .
 
-:archive rdf:type owl:NamedIndividual .
-
-
-
-###  http://example11.com#database
-
-:database rdf:type owl:NamedIndividual .
-
-
-
-###  http://example11.com#policy881212
-
-:policy881212 rdf:type odrl:Set ,
-                       owl:NamedIndividual ;
-              
-              odrl:permission [ rdf:type odrl:Permission ;
-                                odrl:target :archive ;
-                                x:collection :database ;
-                                odrl:action odrl:index
-                              ] .
-
-
-
-
-###  Generated by the OWL API (version 3.4.2) http://owlapi.sourceforge.net
-
+</policy:881212>
+	a odrl:Set ;
+	odrl:permission [
+		a odrl:Permission ;
+		odrl:action odrl:index ;
+		odrl:target </archive/2010> ;
+		x:collection </x/database>
+	] .
--- a/examples/example3.nt	Wed Sep 11 14:34:52 2013 +0100
+++ b/examples/example3.nt	Wed Sep 11 15:50:27 2013 +0100
@@ -1,13 +1,23 @@
-<http://example3.com> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Ontology> .
-<http://example3.com> <http://www.w3.org/2000/01/rdf-schema#comment> "Scenario 3.3 "@en .
-<http://example3.com> <http://www.w3.org/2002/07/owl#imports> <http://w3.org/ns/odrl/2/> .
-<http://example3.com#AUD50> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Asset> .
-<http://example3.com#billie888> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Party> .
-<http://example3.com#music4545> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Asset> .
-<http://example3.com#sony10> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Party> .
-_:genid1 <http://w3.org/ns/odrl/2/unit> "AUD" .
-_:genid1 <http://w3.org/ns/odrl/2/rightOperand> "5" .
-_:genid1 <http://w3.org/ns/odrl/2/operator> <http://w3.org/ns/odrl/2/eq> .
-<http://example3.com#duty05> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Duty> .
-<http://example3.com#duty05> <http://w3.org/ns/odrl/2/action> <http://w3.org/ns/odrl/2/pay> .
-<http://example3.com#duty05> <http://w3.org/ns/odrl/2/constraint> _:genid1 .
+_:genid1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Permission> .
+_:genid1 <http://w3.org/ns/odrl/2/target> <http://example.com/music:4545> .
+_:genid1 <http://w3.org/ns/odrl/2/assigner> <http://example.com/sony:10> .
+_:genid1 <http://w3.org/ns/odrl/2/assignee> <http://example.com/billie:888> .
+_:genid1 <http://w3.org/ns/odrl/2/action> <http://w3.org/ns/odrl/2/play> .
+_:genid1 <http://w3.org/ns/odrl/2/duty> _:requirements .
+_:genid2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Constraint> .
+_:genid2 <http://w3.org/ns/odrl/2/count> "1"^^<http://www.w3.org/2001/XMLSchema#integer> .
+_:genid2 <http://w3.org/ns/odrl/2/operator> <http://w3.org/ns/odrl/2/lteq> .
+_:genid3 <http://w3.org/ns/odrl/2/target> <http://example.com/music:4545> .
+_:genid3 <http://w3.org/ns/odrl/2/assigner> <http://example.com/sony:10> .
+_:genid3 <http://w3.org/ns/odrl/2/assignee> <http://example.com/billie:888> .
+_:genid3 <http://w3.org/ns/odrl/2/action> <http://w3.org/ns/odrl/2/copy> .
+_:genid3 <http://w3.org/ns/odrl/2/duty> _:requirements .
+_:genid3 <http://w3.org/ns/odrl/2/constraint> _:genid2 .
+<http://example.com/policy:9001> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Agreement> .
+<http://example.com/policy:9001> <http://w3.org/ns/odrl/2/permission> _:genid1 .
+<http://example.com/policy:9001> <http://w3.org/ns/odrl/2/permission> _:genid3 .
+_:requirements <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Duty> .
+_:requirements <http://w3.org/ns/odrl/2/action> <http://w3.org/ns/odrl/2/pay> .
+_:requirements <http://w3.org/ns/odrl/2/target> <http://example.com/ubl:AUD0.50> .
+<http://example.com/sony:10> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Party> .
+<http://example.com/billie:888> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Party> .
--- a/examples/example3.rdf	Wed Sep 11 14:34:52 2013 +0100
+++ b/examples/example3.rdf	Wed Sep 11 15:50:27 2013 +0100
@@ -1,28 +1,37 @@
 <?xml version="1.0" encoding="utf-8"?>
 <rdf:RDF
    xmlns:odrl="http://w3.org/ns/odrl/2/"
-   xmlns:owl="http://www.w3.org/2002/07/owl#"
-   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
-   xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
-   xmlns:xml="http://www.w3.org/XML/1998/namespace"
-   xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
-   xmlns="http://example3.com#">
-  <owl:Ontology rdf:about="http://example3.com">
-    <rdfs:comment xml:lang="en">Scenario 3.3 </rdfs:comment>
-    <owl:imports rdf:resource="http://w3.org/ns/odrl/2/"/>
-  </owl:Ontology>
-  <odrl:Asset rdf:about="http://example3.com#AUD50"/>
-  <odrl:Party rdf:about="http://example3.com#billie888"/>
-  <odrl:Duty rdf:about="http://example3.com#duty05">
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+  <odrl:Party rdf:about="http://example.com/billie:888"/>
+  <odrl:Agreement rdf:about="http://example.com/policy:9001">
+    <odrl:permission>
+      <odrl:Permission>
+        <odrl:action rdf:resource="http://w3.org/ns/odrl/2/play"/>
+        <odrl:assignee rdf:resource="http://example.com/billie:888"/>
+        <odrl:assigner rdf:resource="http://example.com/sony:10"/>
+        <odrl:duty rdf:nodeID="requirements"/>
+        <odrl:target rdf:resource="http://example.com/music:4545"/>
+      </odrl:Permission>
+    </odrl:permission>
+    <odrl:permission>
+      <rdf:Description>
+        <odrl:action rdf:resource="http://w3.org/ns/odrl/2/copy"/>
+        <odrl:assignee rdf:resource="http://example.com/billie:888"/>
+        <odrl:assigner rdf:resource="http://example.com/sony:10"/>
+        <odrl:constraint>
+          <odrl:Constraint>
+            <odrl:count rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">1</odrl:count>
+            <odrl:operator rdf:resource="http://w3.org/ns/odrl/2/lteq"/>
+          </odrl:Constraint>
+        </odrl:constraint>
+        <odrl:duty rdf:nodeID="requirements"/>
+        <odrl:target rdf:resource="http://example.com/music:4545"/>
+      </rdf:Description>
+    </odrl:permission>
+  </odrl:Agreement>
+  <odrl:Party rdf:about="http://example.com/sony:10"/>
+  <odrl:Duty rdf:nodeID="requirements">
     <odrl:action rdf:resource="http://w3.org/ns/odrl/2/pay"/>
-    <odrl:constraint>
-      <rdf:Description>
-        <odrl:operator rdf:resource="http://w3.org/ns/odrl/2/eq"/>
-        <odrl:rightOperand>5</odrl:rightOperand>
-        <odrl:unit>AUD</odrl:unit>
-      </rdf:Description>
-    </odrl:constraint>
+    <odrl:target rdf:resource="http://example.com/ubl:AUD0.50"/>
   </odrl:Duty>
-  <odrl:Asset rdf:about="http://example3.com#music4545"/>
-  <odrl:Party rdf:about="http://example3.com#sony10"/>
 </rdf:RDF>
--- a/examples/example3.ttl	Wed Sep 11 14:34:52 2013 +0100
+++ b/examples/example3.ttl	Wed Sep 11 15:50:27 2013 +0100
@@ -1,75 +1,33 @@
-@prefix : <http://example3.com#> .
-@prefix owl: <http://www.w3.org/2002/07/owl#> .
-@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
-@prefix xml: <http://www.w3.org/XML/1998/namespace> .
-@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@base <http://example.com/> .
 @prefix odrl: <http://w3.org/ns/odrl/2/> .
-@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
-@base <http://example3.com> .
-
-<http://example3.com> rdf:type owl:Ontology ;
-                      
-                      rdfs:comment "Scenario 3.3 "@en ;
-                      
-                      owl:imports odrl: .
-
-
-#################################################################
-#
-#    Individuals
-#
-#################################################################
-
-
-###  http://example3.com#AUD50
-
-:AUD50 rdf:type odrl:Asset .
-
-
-###  http://example3.com#billie888
-
-:billie888 rdf:type odrl:Party  .
-
-
-###  http://example3.com#music4545
-
-:music4545 rdf:type odrl:Asset .
 
-###  http://example3.com#sony10
-
-:sony10 rdf:type odrl:Party  .
-
-:duty05 rdf:type odrl:Duty ;
-	odrl:action odrl:pay;
-	odrl:constraint [ odrl:unit "AUD" ;
-                          odrl:rightOperand "5" ;
-                          odrl:operator odrl:eq
-			  ] .
-
-
-###  http://example3.com#policy9001
+</policy:9001>
+	a odrl:Agreement ;
+	odrl:permission [
+		a odrl:Permission ;
+		odrl:target </music:4545> ;
+		odrl:assigner </sony:10> ;
+		odrl:assignee </billie:888> ;
+		odrl:action odrl:play ;
+		odrl:duty _:requirements
+	] ;
+	odrl:permission [
+		odrl:target </music:4545> ;
+		odrl:assigner </sony:10> ;
+		odrl:assignee </billie:888> ;
+		odrl:action odrl:copy ;
+		odrl:duty _:requirements ;
+		odrl:constraint [
+			a odrl:Constraint ;
+			odrl:count 1 ;
+			odrl:operator odrl:lteq
+		]
+	] .
 
-:policy9001 rdf:type odrl:Agreement ;
-            odrl:permission [ odrl:target :music4545 ;
-                              odrl:assigner :sony10 ;
-                              odrl:assignee :billiee888 ;
-                              odrl:action odrl:play ;
-                              odrl:duty :duty05.
-                            ],
-			    [ odrl:target :music4545 ;
-                              odrl:assigner :sony10 ;
-                              odrl:action odrl:copy ;
-                              odrl:assignee :billiee888 ;
-					  odrl:duty :duty05;
-					  odrl:constraint [ odrl:count "1" ;
-							odrl:operator odrl:lteq
-                                        ] ;										
-				] .
+_:requirements
+	a odrl:Duty ;
+	odrl:action odrl:pay ;
+	odrl:target </ubl:AUD0.50> .
 
-
-
-
-
-
-###  Generated by the OWL API (version 3.4.2) http://owlapi.sourceforge.net
-
+</sony:10> a odrl:Party .
+</billie:888> a odrl:Party .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/example4.nt	Wed Sep 11 15:50:27 2013 +0100
@@ -0,0 +1,7 @@
+_:genid1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Permission> .
+_:genid1 <http://w3.org/ns/odrl/2/action> <http://w3.org/ns/odrl/2/display> .
+_:genid1 <http://w3.org/ns/odrl/2/assignee> <http://example.com/guest:0589> .
+_:genid1 <http://w3.org/ns/odrl/2/target> <http://example.com/news:0099> .
+<http://example.com/policy:04311> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Request> .
+<http://example.com/policy:04311> <http://w3.org/ns/odrl/2/permission> _:genid1 .
+<http://example.com/guest:0589> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Party> .
--- a/examples/example4.rdf	Wed Sep 11 14:34:52 2013 +0100
+++ b/examples/example4.rdf	Wed Sep 11 15:50:27 2013 +0100
@@ -1,24 +1,15 @@
 <?xml version="1.0" encoding="utf-8"?>
 <rdf:RDF
    xmlns:odrl="http://w3.org/ns/odrl/2/"
-   xmlns:owl="http://www.w3.org/2002/07/owl#"
-   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
-   xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
-   xmlns:xml="http://www.w3.org/XML/1998/namespace"
-   xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
-   xmlns="http://example4.com#">
-  <owl:Ontology rdf:about="http://example4.com">
-    <rdfs:comment xml:lang="en">Scenario 3.4 </rdfs:comment>
-    <owl:imports rdf:resource="http://w3.org/ns/odrl/2/"/>
-  </owl:Ontology>
-  <odrl:Permission rdf:about="http://example4.com#anonp">
-    <odrl:action rdf:resource="http://w3.org/ns/odrl/2/display"/>
-    <odrl:assignee rdf:resource="http://example4.com#guest0589"/>
-    <odrl:target rdf:resource="http://example4.com#news0099"/>
-    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#NamedIndividual"/>
-  </odrl:Permission>
-  <odrl:Party rdf:about="http://example4.com#guest0589">
-    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#NamedIndividual"/>
-  </odrl:Party>
-  <owl:NamedIndividual rdf:about="http://example4.com#news0099"/>
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+  <odrl:Party rdf:about="http://example.com/guest:0589"/>
+  <odrl:Request rdf:about="http://example.com/policy:04311">
+    <odrl:permission>
+      <odrl:Permission>
+        <odrl:action rdf:resource="http://w3.org/ns/odrl/2/display"/>
+        <odrl:assignee rdf:resource="http://example.com/guest:0589"/>
+        <odrl:target rdf:resource="http://example.com/news:0099"/>
+      </odrl:Permission>
+    </odrl:permission>
+  </odrl:Request>
 </rdf:RDF>
--- a/examples/example4.ttl	Wed Sep 11 14:34:52 2013 +0100
+++ b/examples/example4.ttl	Wed Sep 11 15:50:27 2013 +0100
@@ -1,64 +1,13 @@
-@prefix : <http://example4.com#> .
-@prefix owl: <http://www.w3.org/2002/07/owl#> .
-@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
-@prefix xml: <http://www.w3.org/XML/1998/namespace> .
-@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@base <http://example.com/> .
 @prefix odrl: <http://w3.org/ns/odrl/2/> .
-@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
-@base <http://example4.com> .
-
-<http://example4.com> rdf:type owl:Ontology ;
-                      
-                      rdfs:comment "Scenario 3.4 "@en ;
-                      
-                      owl:imports odrl: .
-
-
-#################################################################
-#
-#    Individuals
-#
-#################################################################
-
-
-###  http://example4.com#anonp
 
-:anonp rdf:type odrl:Permission ,
-                owl:NamedIndividual ;
-       
-       odrl:assignee :guest0589 ;
-       
-       odrl:target :news0099 ;
-       
-       odrl:action odrl:display .
-
-
-
-###  http://example4.com#guest0589
-
-:guest0589 rdf:type odrl:Party ,
-                    owl:NamedIndividual .
-
-
+</policy:04311>
+	a odrl:Request ;
+	odrl:permission [
+		a odrl:Permission ;
+		odrl:action odrl:display ;
+		odrl:assignee </guest:0589> ;
+		odrl:target </news:0099>
+	] .
 
-###  http://example4.com#news0099
-
-:news0099 rdf:type owl:NamedIndividual .
-
-
-
-###  http://example4.com#policy04311
-
-:policy04311 rdf:type odrl:Request ;
-             odrl:permission [
-				rdf:type odrl:Permission ;
-				   odrl:assignee :guest0589 ;
-				   odrl:target :news0099 ;
-				   odrl:action odrl:display .			 
-			 ].
-
-
-
-
-###  Generated by the OWL API (version 3.4.2) http://owlapi.sourceforge.net
-
+</guest:0589> a odrl:Party .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/example5.nt	Wed Sep 11 15:50:27 2013 +0100
@@ -0,0 +1,9 @@
+_:genid1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Constraint> .
+_:genid1 <http://w3.org/ns/odrl/2/operator> <http://w3.org/ns/odrl/2/lteq> .
+_:genid1 <http://w3.org/ns/odrl/2/dateTime> "2010-12-31"^^<http://www.w3.org/2001/XMLSchema#date> .
+_:genid2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Permission> .
+_:genid2 <http://w3.org/ns/odrl/2/action> <http://w3.org/ns/odrl/2/play> .
+_:genid2 <http://w3.org/ns/odrl/2/target> <http://example.com/game:4589> .
+_:genid2 <http://w3.org/ns/odrl/2/constraint> _:genid1 .
+<http://example.com/policy:0811> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Ticket> .
+<http://example.com/policy:0811> <http://w3.org/ns/odrl/2/permission> _:genid2 .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/example5.rdf	Wed Sep 11 15:50:27 2013 +0100
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<rdf:RDF
+   xmlns:odrl="http://w3.org/ns/odrl/2/"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
+  <odrl:Ticket rdf:about="http://example.com/policy:0811">
+    <odrl:permission>
+      <odrl:Permission>
+        <odrl:action rdf:resource="http://w3.org/ns/odrl/2/play"/>
+        <odrl:constraint>
+          <odrl:Constraint>
+            <odrl:dateTime rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2010-12-31</odrl:dateTime>
+            <odrl:operator rdf:resource="http://w3.org/ns/odrl/2/lteq"/>
+          </odrl:Constraint>
+        </odrl:constraint>
+        <odrl:target rdf:resource="http://example.com/game:4589"/>
+      </odrl:Permission>
+    </odrl:permission>
+  </odrl:Ticket>
+</rdf:RDF>
--- a/examples/example5.ttl	Wed Sep 11 14:34:52 2013 +0100
+++ b/examples/example5.ttl	Wed Sep 11 15:50:27 2013 +0100
@@ -1,46 +1,16 @@
-@prefix : <http://example5.com#> .
-@prefix owl: <http://www.w3.org/2002/07/owl#> .
-@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
-@prefix xml: <http://www.w3.org/XML/1998/namespace> .
-@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@base <http://example.com/> .
 @prefix odrl: <http://w3.org/ns/odrl/2/> .
-@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
-@base <http://example5.com> .
-
-<http://example5.com> rdf:type owl:Ontology ;
-                      
-                      rdfs:comment "Scenario 3.5" ;
-                      
-                      owl:imports odrl: .
-
-
-#################################################################
-#
-#    Individuals
-#
-#################################################################
-
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
 
-###  http://example5.com#game4589
-
-:game4589 rdf:type owl:NamedIndividual .
-
-
-
-###  http://example5.com#policy0811
-
-:policy0811 rdf:type odrl:Ticket ;
-            odrl:permission [ rdf:type odrl:Permission ;
-                              odrl:target :game4589 ;
-                              odrl:action odrl:play ;
-                              odrl:constraint [ rdf:type odrl:Constraint ;
-                                                odrl:dateTime "2010-12-31" ;
-                                                odrl:operator odrl:lteq
-                                              ]
-                            ] .
-
-
-
-
-###  Generated by the OWL API (version 3.4.2) http://owlapi.sourceforge.net
-
+</policy:0811>
+	a odrl:Ticket ;
+	odrl:permission [
+		a odrl:Permission ;
+		odrl:action odrl:play ;
+		odrl:target </game:4589> ;
+		odrl:constraint [
+			a odrl:Constraint ;
+			odrl:operator odrl:lteq ;
+			odrl:dateTime "2010-12-31"^^xsd:date
+		]
+	] .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/example6.nt	Wed Sep 11 15:50:27 2013 +0100
@@ -0,0 +1,25 @@
+_:genid1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Constraint> .
+_:genid1 <http://w3.org/ns/odrl/2/operator> <http://w3.org/ns/odrl/2/eq> .
+_:genid1 <http://w3.org/ns/odrl/2/spatial> <http://psi.oasis-open.org/iso/3166/#380> .
+_:genid2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Permission> .
+_:genid2 <http://w3.org/ns/odrl/2/action> <http://w3.org/ns/odrl/2/distribute> .
+_:genid2 <http://w3.org/ns/odrl/2/target> <http://example.com/wallpaper:2321> .
+_:genid2 <http://w3.org/ns/odrl/2/assigner> <http://example.com/sony:99> .
+_:genid2 <http://w3.org/ns/odrl/2/constraint> _:genid1 .
+_:genid2 <http://w3.org/ns/odrl/2/duty> <http://example.com/duty:01> .
+_:genid2 <http://w3.org/ns/odrl/2/duty> <http://example.com/duty:02> .
+<http://example.com/policy:5531> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Offer> .
+<http://example.com/policy:5531> <http://w3.org/ns/odrl/2/permission> _:genid2 .
+<http://example.com/duty:01> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Duty> .
+<http://example.com/duty:01> <http://w3.org/ns/odrl/2/action> <http://w3.org/ns/odrl/2/pay> .
+<http://example.com/duty:01> <http://w3.org/ns/odrl/2/target> <http://example.com/ubl:EU1000.00> .
+<http://example.com/duty:02> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Duty> .
+<http://example.com/duty:02> <http://w3.org/ns/odrl/2/action> <http://w3.org/ns/odrl/2/nextPolicy> .
+<http://example.com/duty:02> <http://w3.org/ns/odrl/2/target> <http://example.com/policy:7777> .
+_:genid3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Permission> .
+_:genid3 <http://w3.org/ns/odrl/2/action> <http://w3.org/ns/odrl/2/display> .
+_:genid3 <http://w3.org/ns/odrl/2/target> <http://example.com/wallpaper:2321> .
+_:genid3 <http://w3.org/ns/odrl/2/duty> <http://example.com/duty:02> .
+<http://example.com/policy:7777> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Set> .
+<http://example.com/policy:7777> <http://w3.org/ns/odrl/2/permission> _:genid3 .
+<http://example.com/sony:99> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Party> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/example6.rdf	Wed Sep 11 15:50:27 2013 +0100
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="utf-8"?>
+<rdf:RDF
+   xmlns:odrl="http://w3.org/ns/odrl/2/"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+  <odrl:Duty rdf:about="http://example.com/duty:01">
+    <odrl:action rdf:resource="http://w3.org/ns/odrl/2/pay"/>
+    <odrl:target rdf:resource="http://example.com/ubl:EU1000.00"/>
+  </odrl:Duty>
+  <odrl:Duty rdf:about="http://example.com/duty:02">
+    <odrl:action rdf:resource="http://w3.org/ns/odrl/2/nextPolicy"/>
+    <odrl:target rdf:resource="http://example.com/policy:7777"/>
+  </odrl:Duty>
+  <odrl:Offer rdf:about="http://example.com/policy:5531">
+    <odrl:permission>
+      <odrl:Permission>
+        <odrl:action rdf:resource="http://w3.org/ns/odrl/2/distribute"/>
+        <odrl:assigner rdf:resource="http://example.com/sony:99"/>
+        <odrl:constraint>
+          <odrl:Constraint>
+            <odrl:operator rdf:resource="http://w3.org/ns/odrl/2/eq"/>
+            <odrl:spatial rdf:resource="http://psi.oasis-open.org/iso/3166/#380"/>
+          </odrl:Constraint>
+        </odrl:constraint>
+        <odrl:duty rdf:resource="http://example.com/duty:01"/>
+        <odrl:duty rdf:resource="http://example.com/duty:02"/>
+        <odrl:target rdf:resource="http://example.com/wallpaper:2321"/>
+      </odrl:Permission>
+    </odrl:permission>
+  </odrl:Offer>
+  <odrl:Set rdf:about="http://example.com/policy:7777">
+    <odrl:permission>
+      <odrl:Permission>
+        <odrl:action rdf:resource="http://w3.org/ns/odrl/2/display"/>
+        <odrl:duty rdf:resource="http://example.com/duty:02"/>
+        <odrl:target rdf:resource="http://example.com/wallpaper:2321"/>
+      </odrl:Permission>
+    </odrl:permission>
+  </odrl:Set>
+  <odrl:Party rdf:about="http://example.com/sony:99"/>
+</rdf:RDF>
--- a/examples/example6.ttl	Wed Sep 11 14:34:52 2013 +0100
+++ b/examples/example6.ttl	Wed Sep 11 15:50:27 2013 +0100
@@ -1,48 +1,38 @@
-@prefix : <http://example6.com#> .
-@prefix owl: <http://www.w3.org/2002/07/owl#> .
-@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
-@prefix xml: <http://www.w3.org/XML/1998/namespace> .
-@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@base <http://example.com/> .
 @prefix odrl: <http://w3.org/ns/odrl/2/> .
-@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
-@base <http://example6.com> .
 
-<http://example6.com> rdf:type owl:Ontology ;
-                      
-                      rdfs:comment "Scenario 3.6" ;
-                      
-                      owl:imports odrl:null .
-
-:policy5531 rdf:type odrl:Offer ;
-	odrl:permission [ rdf:type odrl:Permission ;
-		odrl:target :wallpaper2321 ;
-                odrl:assigner :sony99 ;
-                odrl:action odrl:distribute ;
-                odrl:constraint [ rdf:type odrl:Constraint ;
-			odrl:operator odrl:eq;
-			odrl:rightOperand "iso3166:IT" 			
+</policy:5531>
+	a odrl:Offer ;
+	odrl:permission [
+		a odrl:Permission ;
+		odrl:action odrl:distribute ;
+		odrl:target </wallpaper:2321> ;
+		odrl:assigner </sony:99> ;
+		odrl:constraint [
+			a odrl:Constraint ;
+			odrl:operator odrl:eq ;
+			odrl:spatial <http://psi.oasis-open.org/iso/3166/#380>
 		] ;
-                odrl:duty :duty01;
-                odrl:duty :duty02;
-        ].
-:policy7777 rdf:type odrl:Set ;
-	odrl:duty :duty02;
-	odrl:permission [ rdf:type odrl:Permission ;
-		odrl:target :wallpaper2321 ;
-		odrl:action odrl:display
-		].
-:duty01 rdf:type odrl:Duty;
-	odrl:action odrl:pay;
-	odrl:constraint [ rdf:type odrl:Constraint;
-		odrl:operator odrl:eq;
-		odrl:rightOperand "1000.00";
-		odrl:unit "EUR"
-	].
-:duty02 rdf:type odrl:Duty;
-	odrl:action odrl:nextPolicy.
-		      
-		      
+		odrl:duty </duty:01>, </duty:02>
+	] .
 
+</duty:01>
+	a odrl:Duty ;
+	odrl:action odrl:pay ;
+	odrl:target </ubl:EU1000.00> .
 
-###  Generated by the OWL API (version 3.3.1957) http://owlapi.sourceforge.net
+</duty:02>
+	a odrl:Duty ;
+	odrl:action odrl:nextPolicy ;
+	odrl:target </policy:7777> .
 
+</policy:7777>
+	a odrl:Set ;
+	odrl:permission [
+		a odrl:Permission ;
+		odrl:action odrl:display ;
+		odrl:target </wallpaper:2321> ;
+		odrl:duty </duty:02>
+	] .
+
+</sony:99> a odrl:Party .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/example7.nt	Wed Sep 11 15:50:27 2013 +0100
@@ -0,0 +1,20 @@
+_:genid1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Constraint> .
+_:genid1 <http://w3.org/ns/odrl/2/operator> <http://w3.org/ns/odrl/2/eq> .
+_:genid1 <http://w3.org/ns/odrl/2/dateTime> "P30D"^^<http://www.w3.org/2001/XMLSchema#dateTime> .
+_:genid2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Duty> .
+_:genid2 <http://w3.org/ns/odrl/2/action> <http://w3.org/ns/odrl/2/delete> .
+_:genid2 <http://w3.org/ns/odrl/2/constraint> _:genid1 .
+_:genid3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Constraint> .
+_:genid3 <http://w3.org/ns/odrl/2/operator> <http://w3.org/ns/odrl/2/eq> .
+_:genid3 <http://w3.org/ns/odrl/2/purpose> <http://www.w3.org/2006/01/P3Pv11contact> .
+_:genid4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Permission> .
+_:genid4 <http://w3.org/ns/odrl/2/action> <http://w3.org/ns/odrl/2/distribute> .
+_:genid4 <http://w3.org/ns/odrl/2/target> <http://example.com/billie:888:personal-data> .
+_:genid4 <http://w3.org/ns/odrl/2/assigner> <http://example.com/billie:888> .
+_:genid4 <http://w3.org/ns/odrl/2/assignee> <http://example.com/gov:health:au> .
+_:genid4 <http://w3.org/ns/odrl/2/duty> _:genid2 .
+_:genid4 <http://w3.org/ns/odrl/2/constraint> _:genid3 .
+<http://example.com/policy:1111> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Privacy> .
+<http://example.com/policy:1111> <http://w3.org/ns/odrl/2/permission> _:genid4 .
+<http://example.com/billie:888> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Party> .
+<http://example.com/gov:health:au> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Party> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/example7.rdf	Wed Sep 11 15:50:27 2013 +0100
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>
+<rdf:RDF
+   xmlns:odrl="http://w3.org/ns/odrl/2/"
+   xmlns:p3p="http://www.w3.org/2006/01/P3Pv11"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
+  <odrl:Party rdf:about="http://example.com/billie:888"/>
+  <odrl:Party rdf:about="http://example.com/gov:health:au"/>
+  <odrl:Privacy rdf:about="http://example.com/policy:1111">
+    <odrl:permission>
+      <odrl:Permission>
+        <odrl:action rdf:resource="http://w3.org/ns/odrl/2/distribute"/>
+        <odrl:assignee rdf:resource="http://example.com/gov:health:au"/>
+        <odrl:assigner rdf:resource="http://example.com/billie:888"/>
+        <odrl:constraint>
+          <odrl:Constraint>
+            <odrl:operator rdf:resource="http://w3.org/ns/odrl/2/eq"/>
+            <odrl:purpose rdf:resource="http://www.w3.org/2006/01/P3Pv11contact"/>
+          </odrl:Constraint>
+        </odrl:constraint>
+        <odrl:duty>
+          <odrl:Duty>
+            <odrl:action rdf:resource="http://w3.org/ns/odrl/2/delete"/>
+            <odrl:constraint>
+              <odrl:Constraint>
+                <odrl:dateTime rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">P30D</odrl:dateTime>
+                <odrl:operator rdf:resource="http://w3.org/ns/odrl/2/eq"/>
+              </odrl:Constraint>
+            </odrl:constraint>
+          </odrl:Duty>
+        </odrl:duty>
+        <odrl:target rdf:resource="http://example.com/billie:888:personal-data"/>
+      </odrl:Permission>
+    </odrl:permission>
+  </odrl:Privacy>
+</rdf:RDF>
--- a/examples/example7.ttl	Wed Sep 11 14:34:52 2013 +0100
+++ b/examples/example7.ttl	Wed Sep 11 15:50:27 2013 +0100
@@ -1,52 +1,31 @@
-@prefix : <http://example7.com#> .
-@prefix owl: <http://www.w3.org/2002/07/owl#> .
-@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
-@prefix xml: <http://www.w3.org/XML/1998/namespace> .
-@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@base <http://example.com/> .
 @prefix odrl: <http://w3.org/ns/odrl/2/> .
-@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
-@base <http://example7.com> .
-
-<http://example7.com> rdf:type owl:Ontology ;
-                      
-                      rdfs:comment "Scenario 3.7" ;
-                      
-                      owl:imports odrl: .
-
-
-#################################################################
-#
-#    Individuals
-#
-#################################################################
-
-
-
+@prefix p3p: <http://www.w3.org/2006/01/P3Pv11> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
 
-###  http://example7.com#policy1111
-
-:policy1111 rdf:type odrl:Privacy ;
-        odrl:permission [ rdf:type odrl:Permission ;
+</policy:1111>
+	a odrl:Privacy ;
+	odrl:permission [
+		a odrl:Permission ;
+		odrl:action odrl:distribute ;
+		odrl:target </billie:888:personal-data> ;
+		odrl:assigner </billie:888> ;
+		odrl:assignee </gov:health:au> ;
+		odrl:duty [
+			a odrl:Duty ;
+			odrl:action odrl:delete ;
 			odrl:constraint [
-				odrl:rightOperand "p3pcontact" ;
-				odrl:operator odrl:eq
-				] ;
-			odrl:duty [ rdf:type odrl:Duty  ;
-				odrl:constraint [ rdf:type odrl:Constraint;
-					odrl:dateTime """P30D""" ;
-					odrl:operator odrl:eq 
-					] ;
-				odrl:target :billie888personaldata ;
-				odrl:action odrl:delete 	   
-			];
-			odrl:assigner :billie888 ;
-			odrl:target :billie888personaldata ;
-			odrl:assignee :govhealthau ;
-			odrl:action odrl:distribute 			
-		] .
+				a odrl:Constraint ;
+				odrl:operator odrl:eq ;
+				odrl:dateTime "P30D"^^xsd:dateTime 
+			]
+		] ;
+		odrl:constraint [
+			a odrl:Constraint ;
+			odrl:operator odrl:eq ;
+			odrl:purpose p3p:contact
+		]
+	] .
 
-
-
-
-###  Generated by the OWL API (version 3.4.2) http://owlapi.sourceforge.net
-
+</billie:888> a odrl:Party .
+</gov:health:au> a odrl:Party .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/example8.nt	Wed Sep 11 15:50:27 2013 +0100
@@ -0,0 +1,16 @@
+_:genid1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Permission> .
+_:genid1 <http://w3.org/ns/odrl/2/action> <http://w3.org/ns/odrl/2/play> .
+_:genid1 <http://w3.org/ns/odrl/2/assignee> <http://example.com/billie:888> .
+_:genid1 <http://w3.org/ns/odrl/2/assigner> <http://example.com/sony:10> .
+_:genid1 <http://w3.org/ns/odrl/2/target> <http://example.com/music:1234908> .
+_:genid2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Prohibition> .
+_:genid2 <http://w3.org/ns/odrl/2/action> <http://example.com/mobile#ringtone> .
+_:genid2 <http://w3.org/ns/odrl/2/assignee> <http://example.com/billie:888> .
+_:genid2 <http://w3.org/ns/odrl/2/assigner> <http://example.com/sony:10> .
+_:genid2 <http://w3.org/ns/odrl/2/target> <http://example.com/music:1234908> .
+<http://example.com/policy:3433> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Agreement> .
+<http://example.com/policy:3433> <http://w3.org/ns/odrl/2/conflict> <http://w3.org/ns/odrl/2/perm> .
+<http://example.com/policy:3433> <http://w3.org/ns/odrl/2/permission> _:genid1 .
+<http://example.com/policy:3433> <http://w3.org/ns/odrl/2/prohibition> _:genid2 .
+<http://example.com/billie:888> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Party> .
+<http://example.com/sony:10> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Party> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/example8.rdf	Wed Sep 11 15:50:27 2013 +0100
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<rdf:RDF
+   xmlns:mobile="http://example.com/mobile#"
+   xmlns:odrl="http://w3.org/ns/odrl/2/"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+  <odrl:Party rdf:about="http://example.com/billie:888"/>
+  <odrl:Agreement rdf:about="http://example.com/policy:3433">
+    <odrl:conflict rdf:resource="http://w3.org/ns/odrl/2/perm"/>
+    <odrl:permission>
+      <odrl:Permission>
+        <odrl:action rdf:resource="http://w3.org/ns/odrl/2/play"/>
+        <odrl:assignee rdf:resource="http://example.com/billie:888"/>
+        <odrl:assigner rdf:resource="http://example.com/sony:10"/>
+        <odrl:target rdf:resource="http://example.com/music:1234908"/>
+      </odrl:Permission>
+    </odrl:permission>
+    <odrl:prohibition>
+      <odrl:Prohibition>
+        <odrl:action rdf:resource="http://example.com/mobile#ringtone"/>
+        <odrl:assignee rdf:resource="http://example.com/billie:888"/>
+        <odrl:assigner rdf:resource="http://example.com/sony:10"/>
+        <odrl:target rdf:resource="http://example.com/music:1234908"/>
+      </odrl:Prohibition>
+    </odrl:prohibition>
+  </odrl:Agreement>
+  <odrl:Party rdf:about="http://example.com/sony:10"/>
+</rdf:RDF>
--- a/examples/example8.ttl	Wed Sep 11 14:34:52 2013 +0100
+++ b/examples/example8.ttl	Wed Sep 11 15:50:27 2013 +0100
@@ -1,79 +1,24 @@
-@prefix : <http://example8.com#> .
-@prefix owl: <http://www.w3.org/2002/07/owl#> .
-@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
-@prefix xml: <http://www.w3.org/XML/1998/namespace> .
-@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@base <http://example.com/> .
 @prefix odrl: <http://w3.org/ns/odrl/2/> .
-@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
-@prefix mobile: <http://mobile.com#> .
-@base <http://example8.com> .
-
-<http://example8.com> rdf:type owl:Ontology ;
-                      
-                      rdfs:comment "Scenario 3.8"@en ;
-                      
-                      owl:imports odrl:null .
-
-
-#################################################################
-#
-#    Annotation properties
-#
-#################################################################
-
-
-
-
-
-#################################################################
-#
-#    Datatypes
-#
-#################################################################
-
-
-
+@prefix mobile: <http://example.com/mobile#> .
 
-#################################################################
-#
-#    Classes
-#
-#################################################################
-
-
-
-
-#################################################################
-#
-#    Individuals
-#
-#################################################################
-
-
-
-
-:policy3433 rdf:type odrl:Agreement;
+</policy:3433>
+	a odrl:Agreement ;
 	odrl:conflict odrl:perm ;
-	odrl:permission [ rdf:type odrl:Permission ;
-		odrl:assignee :billie888 ;
-		odrl:assigner :sony10 ;
-		odrl:target :music1234908 ;
-		odrl:action odrl:play
-		] ;
-	odrl:prohibition [ rdf:type odrl:Prohibition ; 
-		odrl:assignee :billie888 ;
-		odrl:assigner :sony10 ;
-		odrl:target :music1234908 ;
-		odrl:action mobile:ringtone
-	].
+	odrl:permission [
+		a odrl:Permission ;
+		odrl:action odrl:play ;
+		odrl:assignee </billie:888> ;
+		odrl:assigner </sony:10> ;
+		odrl:target </music:1234908>
+	] ;
+	odrl:prohibition [
+		a odrl:Prohibition ; 
+		odrl:action mobile:ringtone ;
+		odrl:assignee </billie:888> ;
+		odrl:assigner </sony:10> ;
+		odrl:target </music:1234908>
+	] .
 
-###  Generated by the OWL API (version 3.3.1957) http://owlapi.sourceforge.net
-
-
-
-
-
-
-
-
-
+</billie:888> a odrl:Party .
+</sony:10> a odrl:Party .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/example9.nt	Wed Sep 11 15:50:27 2013 +0100
@@ -0,0 +1,18 @@
+_:genid1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Permission> .
+_:genid1 <http://w3.org/ns/odrl/2/action> <http://w3.org/ns/odrl/2/print> .
+_:genid1 <http://w3.org/ns/odrl/2/target> <http://example.com/report:2321> .
+_:genid1 <http://w3.org/ns/odrl/2/assigner> <http://example.com/pub:88> .
+_:genid1 <http://w3.org/ns/odrl/2/assignee> <http://example.com/billie:888> .
+<http://example.com/policy:5531> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Agreement> .
+<http://example.com/policy:5531> <http://w3.org/ns/odrl/2/permission> _:genid1 .
+_:genid2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Permission> .
+_:genid2 <http://w3.org/ns/odrl/2/action> <http://w3.org/ns/odrl/2/display> .
+_:genid2 <http://w3.org/ns/odrl/2/target> <http://example.com/report:2333> .
+_:genid2 <http://w3.org/ns/odrl/2/assigner> <http://example.com/pub:88> .
+_:genid2 <http://w3.org/ns/odrl/2/assignee> <http://example.com/class:IT01> .
+<http://example.com/policy:9999> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Agreement> .
+<http://example.com/policy:9999> <http://w3.org/ns/odrl/2/inheritFrom> <http://example.com/policy:5531> .
+<http://example.com/policy:9999> <http://w3.org/ns/odrl/2/permission> _:genid2 .
+<http://example.com/pub:88> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Party> .
+<http://example.com/billie:888> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Party> .
+<http://example.com/class:IT01> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://w3.org/ns/odrl/2/Group> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/example9.rdf	Wed Sep 11 15:50:27 2013 +0100
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<rdf:RDF
+   xmlns:odrl="http://w3.org/ns/odrl/2/"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+  <odrl:Party rdf:about="http://example.com/billie:888"/>
+  <odrl:Group rdf:about="http://example.com/class:IT01"/>
+  <odrl:Agreement rdf:about="http://example.com/policy:5531">
+    <odrl:permission>
+      <odrl:Permission>
+        <odrl:action rdf:resource="http://w3.org/ns/odrl/2/print"/>
+        <odrl:assignee rdf:resource="http://example.com/billie:888"/>
+        <odrl:assigner rdf:resource="http://example.com/pub:88"/>
+        <odrl:target rdf:resource="http://example.com/report:2321"/>
+      </odrl:Permission>
+    </odrl:permission>
+  </odrl:Agreement>
+  <odrl:Agreement rdf:about="http://example.com/policy:9999">
+    <odrl:inheritFrom rdf:resource="http://example.com/policy:5531"/>
+    <odrl:permission>
+      <odrl:Permission>
+        <odrl:action rdf:resource="http://w3.org/ns/odrl/2/display"/>
+        <odrl:assignee rdf:resource="http://example.com/class:IT01"/>
+        <odrl:assigner rdf:resource="http://example.com/pub:88"/>
+        <odrl:target rdf:resource="http://example.com/report:2333"/>
+      </odrl:Permission>
+    </odrl:permission>
+  </odrl:Agreement>
+  <odrl:Party rdf:about="http://example.com/pub:88"/>
+</rdf:RDF>
--- a/examples/example9.ttl	Wed Sep 11 14:34:52 2013 +0100
+++ b/examples/example9.ttl	Wed Sep 11 15:50:27 2013 +0100
@@ -1,130 +1,27 @@
-@prefix : <http://example9.com#> .
-@prefix owl: <http://www.w3.org/2002/07/owl#> .
-@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
-@prefix xml: <http://www.w3.org/XML/1998/namespace> .
-@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@base <http://example.com/> .
 @prefix odrl: <http://w3.org/ns/odrl/2/> .
-@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
-@base <http://example9.com> .
-
-<http://example9.com> rdf:type owl:Ontology ;
-                      
-                      rdfs:comment "Scenario 3.9"@en ;
-                      
-                      owl:imports odrl:null .
-
-
-#################################################################
-#
-#    Annotation properties
-#
-#################################################################
-
-
-odrl:action rdf:type owl:AnnotationProperty .
-
-
-
-odrl:permission rdf:type owl:AnnotationProperty .
-
-
-
-odrl:assignee rdf:type owl:AnnotationProperty .
-
-
-
-odrl:target rdf:type owl:AnnotationProperty .
-
-
-
-odrl:assigner rdf:type owl:AnnotationProperty .
-
-
-
-odrl:inheritAllowed rdf:type owl:AnnotationProperty .
-
-
-
-
-
-#################################################################
-#
-#    Datatypes
-#
-#################################################################
-
-
-
-
-#################################################################
-#
-#    Classes
-#
-#################################################################
-
 
-###  http://w3.org/ns/odrl/2/Agreement
-
-odrl:Agreement rdf:type owl:Class .
-
-
-
-###  http://w3.org/ns/odrl/2/Permission
-
-odrl:Permission rdf:type owl:Class .
-
-
-
-
-
-#################################################################
-#
-#    Individuals
-#
-#################################################################
-
-
-###  http://example9.com#billie888
-
-:billie888 rdf:type owl:NamedIndividual .
-
-
-
-###  http://example9.com#policy5531
+</policy:5531>
+	a odrl:Agreement ;
+	odrl:permission [
+		a odrl:Permission ;
+		odrl:action odrl:print ;
+		odrl:target </report:2321> ;
+		odrl:assigner </pub:88> ;
+		odrl:assignee </billie:888> ;		
+	] .
+	
+</policy:9999>
+	a odrl:Agreement ;
+	odrl:inheritFrom </policy:5531> ;
+	odrl:permission [
+		a odrl:Permission ;
+		odrl:action odrl:display ;
+		odrl:target </report:2333> ;
+		odrl:assigner </pub:88> ;
+		odrl:assignee </class:IT01>
+	] .
 
-:policy5531 rdf:type odrl:Agreement;
-            odrl:inheritAllowed "true"^^xsd:boolean ;
-            odrl:permission [ rdf:type odrl:Permission ;
-                              odrl:assignee :billie888 ;
-                              odrl:assigner :pub88 ;
-                              odrl:target :report2321 ;
-                              odrl:action odrl:print
-                            ] .
-:policy9999 rdf:type odrl:Agreement;
-            <http://www.w3.org/ns/odrl/2/inheritFrom> :policy5531 ;
-            odrl:permission [ rdf:type odrl:Permission ;
-                              odrl:assignee :classIT01 ;
-                              odrl:assigner :pub88 ;
-                              odrl:target :report2333 ;
-                              odrl:action odrl:display
-                            ] .
-:classIT01 rdf:type odrl:Party;
-	odrl:scope odrl:group .
-
-
-
-###  http://example9.com#pub88
-
-:pub88 rdf:type owl:NamedIndividual .
-
-
-
-###  http://example9.com#report2321
-
-:report2321 rdf:type owl:NamedIndividual .
-
-
-
-
-###  Generated by the OWL API (version 3.3.1957) http://owlapi.sourceforge.net
-
+</pub:88> a odrl:Party .
+</billie:888> a odrl:Party .
+</class:IT01> a odrl:Group .