forked from trungdong/notebooks
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathprimer-example.ttl
117 lines (94 loc) · 3.64 KB
/
primer-example.ttl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix exn: <http://www.example.org#> .
@prefix exg: <http://www.example.org#> .
@prefix exc: <http://www.example.org#> .
@prefix exb: <http://www.example.org#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
# The examples below are taken from, and follow the same order
# as in the W3C PROV Primer, http://www.w3.org/TR/prov-primer/
# Entities
exn:article a prov:Entity ;
dcterms:title "Crime rises in cities" .
exg:dataset1 a prov:Entity .
exc:regionList a prov:Entity .
exc:composition1 a prov:Entity .
exc:chart1 a prov:Entity .
# Activities
exc:compile1 a prov:Activity .
exc:compose1 a prov:Activity .
exc:illustrate1 a prov:Activity .
# Usage and Generation
exc:compose1 prov:used exg:dataset1 ;
prov:used exc:regionList .
exc:composition1 prov:wasGeneratedBy exc:compose1 .
exc:illustrate1 prov:used exc:composition1 .
exc:chart1 prov:wasGeneratedBy exc:illustrate1 .
# Agents and Responsibility
exc:compose1 prov:wasAssociatedWith exc:derek .
exc:illustrate1 prov:wasAssociatedWith exc:derek .
exc:derek a prov:Agent ;
a prov:Person ;
foaf:givenName "Derek"^^xsd:string ;
foaf:mbox <mailto:[email protected]> .
exc:derek prov:actedOnBehalfOf exc:chartgen .
exc:chartgen a prov:Agent ;
a prov:Organization ;
foaf:name "Chart Generators Inc" .
exc:chart1 prov:wasAttributedTo exc:derek .
# Roles
exc:dataToCompose a prov:Role .
exc:regionsToAggregateBy a prov:Role .
exc:composedData a prov:Role .
exc:analyst a prov:Role .
exc:compose1 prov:qualifiedUsage [
a prov:Usage ;
prov:entity exg:dataset1 ;
prov:hadRole exc:dataToCompose
] .
exc:compose1 prov:qualifiedUsage [
a prov:Usage ;
prov:entity exc:regionList ;
prov:hadRole exc:regionsToAggregateBy
] .
exc:compose1 prov:qualifiedAssociation [
a prov:Association ;
prov:agent exc:derek ;
prov:hadRole exc:analyst
] .
exc:composition1 prov:qualifiedGeneration [
a prov:Generation ;
prov:activity exc:compose1 ;
prov:hadRole exc:composedData
] .
# Revision and Derivation
exg:dataSet2 a prov:Entity ;
prov:wasRevisionOf exg:dataset1 .
exc:chart2 a prov:Entity ;
prov:wasDerivedFrom exg:dataSet2 .
exc:chart2 a prov:Entity ;
prov:wasRevisionOf exc:chart1 .
# Plans
exg:correct1 a prov:Activity .
exg:edith a prov:Agent, prov:Person .
exg:instructions a prov:Plan .
exg:correct1 prov:qualifiedAssociation [
a prov:Association ;
prov:agent exg:edith ;
prov:hadPlan exg:instructions
] .
exg:dataSet2 prov:wasGeneratedBy exg:correct1 .
# Time
exc:chart1 prov:generatedAtTime "2012-03-02T10:30:00"^^xsd:dateTime .
exc:chart2 prov:generatedAtTime "2012-04-01T15:21:00"^^xsd:dateTime .
exg:correct1 prov:startedAtTime "2012-03-31T09:21:00"^^xsd:dateTime ;
prov:endedAtTime "2012-04-01T15:21:00"^^xsd:dateTime .
# Alternate Entities and Specialization
exb:quoteInBlogEntry-20130326 a prov:Entity ;
prov:wasQuotedFrom exn:article .
exn:articleV1 a prov:Entity ;
prov:specializationOf exn:article .
exn:articleV2 prov:specializationOf exn:article .
exn:articleV2 prov:alternateOf exn:articleV1 .