Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MRG]: Add rdf serialization #49

Merged
merged 35 commits into from
Oct 9, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
e5ffce8
fix: rename contants -> constants
satra Apr 28, 2014
d1d1407
enh: first pass at serialization
satra Apr 29, 2014
5799160
remove debug print
satra Apr 29, 2014
ac37255
starting deserialization
satra May 18, 2014
f2c263d
enh: updated to reflect latest upstream changes for attributes, added…
satra May 18, 2014
95bde98
compat: remove bundle statement to be compatible with Luc's output
satra May 18, 2014
c3198a3
fix: ensure that URIRefs remain as URIRefs
satra Jun 22, 2014
73b9e57
fix: resolved conflict
satra Jun 23, 2014
1e2a8c6
fix: updated QName -> QualifiedName
satra Jun 23, 2014
4a6814f
Merge remote-tracking branch 'upstream/master' into enh/rdf-1.x
satra Jun 23, 2014
08d25d3
fix: remove diff statement
satra Jun 23, 2014
481fe13
fix: add rdflib to travis
satra Jun 24, 2014
0ac1617
resolve conflicts
satra Sep 4, 2014
32fac75
updated requirements
satra Sep 4, 2014
7f2cd65
Merge remote-tracking branch 'upstream/master' into enh/rdf-1.x
satra Oct 9, 2014
b201b3d
updated rdf serialization
satra Oct 14, 2014
54cfc77
Merge remote-tracking branch 'upstream/master' into enh/rdf-1.x
satra Oct 14, 2014
089ae65
Merge remote-tracking branch 'upstream/master' into enh/rdf-1.x
satra Oct 14, 2014
68c129e
Merge remote-tracking branch 'upstream/master' into enh/rdf-1.x
satra Nov 12, 2014
4909e4f
current state
satra Nov 14, 2014
88cb118
broken attempt
satra Apr 7, 2015
2202ad8
fix: resolved conflicts with upstream
satra Jan 20, 2016
9b73c8d
temporary state
satra Mar 17, 2016
1471517
next temporary state
satra Mar 18, 2016
3c7a8c9
passing all tests except bundle and invalid scruffy variations (reads…
satra Mar 19, 2016
d4f1eaf
fixed bundle support and removed loggers
satra Mar 20, 2016
01fc278
fixing built-in roundrip tests - first pass
satra Mar 20, 2016
89aa39d
fixed most remaining cases - float, literal/decimal, and round trip o…
satra Mar 20, 2016
ecdce75
fix: switch to text_type from six
satra Mar 20, 2016
bc822d4
Merge branch 'fix/literal' into enh/rdf-1.x
satra Apr 20, 2016
56e7815
Merge remote-tracking branch 'upstream/master' into enh/rdf-1.x
satra May 1, 2016
1debd4b
fix: skipping known roundtrip and literal representation failures
satra Jun 27, 2016
949ed48
Merge remote-tracking branch 'upstream/master' into enh/rdf-1.x
satra Oct 8, 2016
1f8955e
fixed tests and skipping round trip tests that don't pass
satra Oct 8, 2016
5a29a1b
fix: upgrade setuptools before installing htmllib
satra Oct 8, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ cache:

# Install packages
install:
- pip install --upgrade setuptools
- pip install -r requirements.txt
- pip install coverage coveralls

Expand Down
2 changes: 2 additions & 0 deletions prov/serializers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@ def load_serializers():
from prov.serializers.provjson import ProvJSONSerializer
from prov.serializers.provn import ProvNSerializer
from prov.serializers.provxml import ProvXMLSerializer
from prov.serializers.provrdf import ProvRDFSerializer

Registry.serializers = {
'json': ProvJSONSerializer,
'rdf': ProvRDFSerializer,
'provn': ProvNSerializer,
'xml': ProvXMLSerializer
}
Expand Down
537 changes: 537 additions & 0 deletions prov/serializers/provrdf.py

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions prov/tests/rdf/activity1.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ex: <http://example.org/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .


ex:a1 a prov:Activity .
9 changes: 9 additions & 0 deletions prov/tests/rdf/activity2.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ex: <http://example.org/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .


ex:a2 a prov:Activity ;
rdfs:label "activity2" .
10 changes: 10 additions & 0 deletions prov/tests/rdf/activity3.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ex: <http://example.org/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .


ex:a1 a prov:Activity ;
prov:startedAtTime "2014-06-23T12:28:53.809+01:00"^^xsd:dateTime ;
prov:endedAtTime "2014-06-23T12:28:53.809+01:00"^^xsd:dateTime .
9 changes: 9 additions & 0 deletions prov/tests/rdf/activity4.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ex: <http://example.org/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .


ex:a2 a prov:Activity ;
rdfs:label "activity2" , "hello" , "bye"@en , "bonjour"@fr .
9 changes: 9 additions & 0 deletions prov/tests/rdf/activity5.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ex: <http://example.org/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .


ex:a2 a prov:Activity , "a"^^xsd:string , "1"^^xsd:int , "1.0"^^xsd:float , "true"^^xsd:string , "ex:abc"^^xsd:QName , "2014-06-23T12:28:53.843+01:00"^^xsd:dateTime , "http://example.org/hello"^^xsd:anyURI ;
rdfs:label "activity2" .
10 changes: 10 additions & 0 deletions prov/tests/rdf/activity6.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ex: <http://example.org/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .


ex:a6 a prov:Activity ;
rdfs:label "activity6" ;
prov:atLocation "London"^^xsd:string , "1"^^xsd:int , "1.0"^^xsd:float , "true"^^xsd:boolean , "ex:london"^^xsd:QName , "2014-06-23T12:28:53.858+01:00"^^xsd:dateTime , "http://example.org/london"^^xsd:anyURI , "2002"^^xsd:gYear .
10 changes: 10 additions & 0 deletions prov/tests/rdf/activity7.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ex: <http://example.org/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .


ex:a7 a prov:Activity , "a"^^xsd:string , "1"^^xsd:int , "1.0"^^xsd:float , "true"^^xsd:string , "ex:abc"^^xsd:QName , "2014-06-23T12:28:53.872+01:00"^^xsd:dateTime , "http://example.org/hello"^^xsd:anyURI ;
rdfs:label "activity7" , "hello" , "bye"@en , "bonjour"@fr ;
prov:atLocation "London"^^xsd:string , "1"^^xsd:int , "1.0"^^xsd:float , "true"^^xsd:boolean , "ex:london"^^xsd:QName , "2014-06-23T12:28:53.872+01:00"^^xsd:dateTime , "http://example.org/london"^^xsd:anyURI , "2002"^^xsd:gYear .
13 changes: 13 additions & 0 deletions prov/tests/rdf/activity8.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ex: <http://example.org/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .


ex:a8 a prov:Activity ;
prov:startedAtTime "2014-06-23T12:28:53.895+01:00"^^xsd:dateTime ;
prov:endedAtTime "2014-06-23T12:28:53.895+01:00"^^xsd:dateTime ;
a "a"^^xsd:string , "1"^^xsd:int , "1.0"^^xsd:float , "true"^^xsd:string , "ex:abc"^^xsd:QName , "2014-06-23T12:28:53.895+01:00"^^xsd:dateTime , "http://example.org/hello"^^xsd:anyURI ;
rdfs:label "activity8" , "hello" , "bye"@en , "bonjour"@fr ;
prov:atLocation "London"^^xsd:string , "1"^^xsd:int , "1.0"^^xsd:float , "true"^^xsd:boolean , "ex:london"^^xsd:QName , "2014-06-23T12:28:53.895+01:00"^^xsd:dateTime , "http://example.org/london"^^xsd:anyURI , "2002"^^xsd:gYear .
17 changes: 17 additions & 0 deletions prov/tests/rdf/activity9.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ex: <http://example.org/> .
@prefix ex2: <http://example2.org/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .


ex:a9 a prov:Activity , "a"^^xsd:string , "1"^^xsd:int , "1.0"^^xsd:float , "true"^^xsd:string , "ex:abc"^^xsd:QName , "2014-06-23T12:28:53.932+01:00"^^xsd:dateTime , "http://example.org/hello"^^xsd:anyURI ;
rdfs:label "activity9" , "hello" , "bye"@en , "bonjour"@fr ;
prov:atLocation "London"^^xsd:string , "1"^^xsd:int , "1.0"^^xsd:float , "true"^^xsd:boolean , "ex:london"^^xsd:QName , "2014-06-23T12:28:53.932+01:00"^^xsd:dateTime , "http://example.org/london"^^xsd:anyURI , "2002"^^xsd:gYear ;
ex2:tag3 "hi"^^xsd:string ;
ex:tag1 "hello"^^xsd:string , """hello
over
more
lines"""^^xsd:string ;
ex:tag2 "bye"^^xsd:string .
8 changes: 8 additions & 0 deletions prov/tests/rdf/agent1.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ex: <http://example.org/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .


ex:ag1 a prov:Agent .
9 changes: 9 additions & 0 deletions prov/tests/rdf/agent2.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ex: <http://example.org/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .


ex:ag2 a prov:Agent ;
rdfs:label "agent2" .
9 changes: 9 additions & 0 deletions prov/tests/rdf/agent3.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ex: <http://example.org/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .


ex:ag2 a prov:Agent ;
rdfs:label "agent2" , "hello" .
9 changes: 9 additions & 0 deletions prov/tests/rdf/agent4.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ex: <http://example.org/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .


ex:ag2 a prov:Agent ;
rdfs:label "agent2" , "hello" , "bye"@en .
9 changes: 9 additions & 0 deletions prov/tests/rdf/agent5.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ex: <http://example.org/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .


ex:ag2 a prov:Agent ;
rdfs:label "agent2" , "hello" , "bye"@en , "bonjour"@fr .
9 changes: 9 additions & 0 deletions prov/tests/rdf/agent6.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ex: <http://example.org/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .


ex:ag6 a prov:Agent , "a"^^xsd:string , "1"^^xsd:int , "1.0"^^xsd:float , "true"^^xsd:string , "ex:abc"^^xsd:QName , "2014-06-23T12:28:54.345+01:00"^^xsd:dateTime , "http://example.org/hello"^^xsd:anyURI ;
rdfs:label "agent6" .
10 changes: 10 additions & 0 deletions prov/tests/rdf/agent7.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ex: <http://example.org/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .


ex:ag7 a prov:Agent , "a"^^xsd:string , "1"^^xsd:int , "1.0"^^xsd:float , "true"^^xsd:string , "ex:abc"^^xsd:QName , "2014-06-23T12:28:54.363+01:00"^^xsd:dateTime , "http://example.org/hello"^^xsd:anyURI ;
rdfs:label "agent7" , "hello" , "bye"@en , "bonjour"@fr ;
prov:atLocation "London"^^xsd:string , "1"^^xsd:int , "1.0"^^xsd:float , "true"^^xsd:boolean , "2014-06-23T12:28:54.364+01:00"^^xsd:dateTime , "http://example.org/london"^^xsd:anyURI .
10 changes: 10 additions & 0 deletions prov/tests/rdf/agent8.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ex: <http://example.org/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .


ex:ag8 a prov:Agent , "a"^^xsd:string , "1"^^xsd:int , "1.0"^^xsd:float , "true"^^xsd:string , "ex:abc"^^xsd:QName , "2014-06-23T12:28:54.384+01:00"^^xsd:dateTime , "http://example.org/hello"^^xsd:anyURI ;
rdfs:label "agent8" ;
prov:atLocation "http://example.org/london"^^xsd:anyURI .
8 changes: 8 additions & 0 deletions prov/tests/rdf/alternate1.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ex: <http://example.org/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .


ex:e2 prov:alternateOf ex:e1 .
10 changes: 10 additions & 0 deletions prov/tests/rdf/association1.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ex: <http://example.org/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .


ex:assoc1 a prov:Association .

ex:a1 prov:qualifiedAssociation ex:assoc1 .
9 changes: 9 additions & 0 deletions prov/tests/rdf/association2.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ex: <http://example.org/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .


ex:assoc2 a prov:Association ;
prov:agent ex:ag1 .
11 changes: 11 additions & 0 deletions prov/tests/rdf/association3.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ex: <http://example.org/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .


ex:assoc3 a prov:Association ;
prov:agent ex:ag1 .

ex:a1 prov:qualifiedAssociation ex:assoc3 .
13 changes: 13 additions & 0 deletions prov/tests/rdf/association4.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ex: <http://example.org/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .


ex:assoc4 a prov:Association ;
prov:agent ex:ag1 .

ex:a1 prov:qualifiedAssociation ex:assoc4 .

ex:assoc4 prov:hadPlan ex:plan1 .
8 changes: 8 additions & 0 deletions prov/tests/rdf/association5.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ex: <http://example.org/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .


ex:a1 prov:wasAssociatedWith ex:ag1 .
14 changes: 14 additions & 0 deletions prov/tests/rdf/association6.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ex: <http://example.org/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .


ex:assoc6 a prov:Association ;
prov:agent ex:ag1 .

ex:a1 prov:qualifiedAssociation ex:assoc6 .

ex:assoc6 prov:hadPlan ex:plan1 ;
rdfs:label "hello" , "bye"@en , "bonjour"@fr .
15 changes: 15 additions & 0 deletions prov/tests/rdf/association7.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ex: <http://example.org/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .


ex:assoc7 a prov:Association ;
prov:agent ex:ag1 .

ex:a1 prov:qualifiedAssociation ex:assoc7 .

ex:assoc7 prov:hadPlan ex:plan1 ;
a "a"^^xsd:string , "1"^^xsd:int , "1.0"^^xsd:float , "true"^^xsd:string , "ex:abc"^^xsd:QName , "2014-06-23T12:28:52.781+01:00"^^xsd:dateTime , "http://example.org/hello"^^xsd:anyURI ;
rdfs:label "hello" , "bye"@en , "bonjour"@fr .
14 changes: 14 additions & 0 deletions prov/tests/rdf/association8.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ex: <http://example.org/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .


ex:assoc8 a prov:Association ;
prov:agent ex:ag1 .

ex:a1 prov:qualifiedAssociation ex:assoc8 .

ex:assoc8 prov:hadPlan ex:plan1 ;
prov:hadRole "someRole"^^xsd:string , "someOtherRole"^^xsd:string .
22 changes: 22 additions & 0 deletions prov/tests/rdf/association9.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ex: <http://example.org/> .
@prefix ex2: <http://example2.org/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .


ex:assoc9 a prov:Association ;
prov:agent ex:ag1 .

ex:a1 prov:qualifiedAssociation ex:assoc9 .

ex:assoc9 prov:hadPlan ex:plan1 ;
a "a"^^xsd:string , "1"^^xsd:int , "1.0"^^xsd:float , "true"^^xsd:string , "ex:abc"^^xsd:QName , "2014-06-23T12:28:53.012+01:00"^^xsd:dateTime , "http://example.org/hello"^^xsd:anyURI ;
rdfs:label "hello" , "bye"@en , "bonjour"@fr ;
ex2:tag3 "hi"^^xsd:string ;
ex:tag1 "hello"^^xsd:string , """hello
over
more
lines"""^^xsd:string ;
ex:tag2 "bye"^^xsd:string .
Loading