SPIN_EP-PROD-property.ttl
7.84 KB
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# baseURI: http://www.reportinghub.no/ep/spin/prod-property
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/schema/1.0/erhfacts
# imports: http://www.reportinghub.no/ep/schema/1.0/production
@prefix ep-report: <http://www.reportinghub.no/ep/schema/report#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix prod-property: <http://www.reportinghub.no/ep/spin/prod-property#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/schema/flow#reportedFlowMaterial>
rdf:type spin:MagicProperty , owl:ObjectProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
rdfs:label "report end flow material"^^xsd:string ;
rdfs:range <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
rdfs:subClassOf spin:MagicProperties ;
spin:body
[ rdf:type sp:Select ;
sp:distinct "true"^^xsd:boolean ;
sp:resultVariables ([ sp:varName "quantityofmaterialinaspecifiedstate"^^xsd:string
]) ;
sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
sp:predicate rdf:type ;
sp:subject spin:_arg1
] [ sp:object
[ sp:varName "productionFlowMixedPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ;
sp:subject spin:_arg1
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlowMixedPart"^^xsd:string
]
] [ sp:object
[ sp:varName "productFlowInMonthMaterial"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ;
sp:subject
[ sp:varName "productionFlowMixedPart"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productFlowInMonthMaterial"^^xsd:string
]
] [ sp:object
[ sp:varName "productFlowInMonthMaterial"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "quantityofmaterialinaspecifiedstate"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityofmaterialinaspecifiedstate"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterialInASpecifiedState> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityofmaterialinaspecifiedstate"^^xsd:string
]
])
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "the flow that has part the material"^^xsd:string ;
spl:predicate sp:arg1 ;
spl:valueType <http://www.reportinghub.no/ep/schema/flow#ProductionFlow>
] ;
spin:returnType <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> .
ep-report:reportsOnFlow
rdf:type spin:MagicProperty , owl:ObjectProperty ;
rdfs:domain ep-report:ProductionReport ;
rdfs:label "reports on flow"^^xsd:string ;
rdfs:range <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
rdfs:subClassOf spin:MagicProperties ;
spin:body
[ rdf:type sp:Select ;
sp:distinct "true"^^xsd:boolean ;
sp:resultVariables ([ sp:varName "productionFlow"^^xsd:string
]) ;
sp:where ([ sp:object ep-report:ProductionReport ;
sp:predicate rdf:type ;
sp:subject spin:_arg1
] [ sp:object
[ sp:varName "productionReport"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "productVolumeReport"^^xsd:string
]
] [ sp:object ep-report:ProductVolumeReport ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productVolumeReport"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlowNetwork"^^xsd:string
] ;
sp:predicate ep-report:reportOn ;
sp:subject
[ sp:varName "productVolumeReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetwork> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlowNetwork"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlow"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasNetworkPart> ;
sp:subject
[ sp:varName "productionFlowNetwork"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
])
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "the report that contains flows"^^xsd:string ;
spl:predicate sp:arg1 ;
spl:valueType ep-report:ProductionReport
] ;
spin:returnType <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> .
<http://www.reportinghub.no/ep/spin/prod-property>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/erhfacts> , <http://www.reportinghub.no/ep/schema/1.0/production> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .