Holger Knublauch

Misc clean up of EP ontologies and SXML importer

1 -@prefix : <http://www.energistics.org/schemas/abstract#> . 1 +# baseURI: http://www.energistics.org/schemas/abstract
2 -@prefix vaem: <http://www.linkedmodel.org/schema/vaem#> . 2 +# imports: http://www.linkedmodel.org/schema/dtype
3 -@prefix dc: <http://purl.org/dc/elements/1.1/> . 3 +# imports: http://www.linkedmodel.org/schema/vaem
4 -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 4 +
5 -@prefix dtype: <http://www.linkedmodel.org/schema/dtype#> . 5 +@prefix abstract: <http://www.energistics.org/schemas/abstract#> .
6 -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 6 +@prefix dc: <http://purl.org/dc/elements/1.1/> .
7 -@prefix skos: <http://www.w3.org/2004/02/skos/core#> . 7 +@prefix dtype: <http://www.linkedmodel.org/schema/dtype#> .
8 - 8 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
9 -:AbstractDataObject 9 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
10 - a <http://www.w3.org/2002/07/owl#Class> ; 10 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
11 - <http://www.w3.org/2000/01/rdf-schema#label> 11 +@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
12 - "Abstract data object"^^xsd:string ; 12 +@prefix vaem: <http://www.linkedmodel.org/schema/vaem#> .
13 - <http://www.w3.org/2000/01/rdf-schema#subClassOf> 13 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
14 - :AbstractObject ; 14 +
15 - dc:description "Substitution group for normative data objects."^^xsd:string . 15 +dc:description
16 - 16 + rdfs:label "description"^^xsd:string .
17 -:AbstractContextualObject 17 +
18 - a <http://www.w3.org/2002/07/owl#Class> ; 18 +<http://www.energistics.org/schemas/abstract>
19 - <http://www.w3.org/2000/01/rdf-schema#label> 19 + rdf:type owl:Ontology ;
20 - "Abstract contextual object"^^xsd:string ; 20 + owl:imports <http://www.linkedmodel.org/schema/vaem> , <http://www.linkedmodel.org/schema/dtype> ;
21 - <http://www.w3.org/2000/01/rdf-schema#subClassOf> 21 + owl:versionInfo "Created with TopBraid Composer from the XML Schema http://www.energistics.org/schemas/abstract"^^xsd:string .
22 - :AbstractObject ; 22 +
23 - dc:description "Substitution group for contextual objects."^^xsd:string . 23 +abstract:AbstractContextualObject
24 - 24 + rdf:type owl:Class ;
25 -dc:description 25 + rdfs:label "Abstract contextual object"^^xsd:string ;
26 - <http://www.w3.org/2000/01/rdf-schema#label> 26 + rdfs:subClassOf abstract:AbstractObject ;
27 - "description"^^xsd:string . 27 + dc:description "Substitution group for contextual objects."^^xsd:string .
28 - 28 +
29 -:AbstractObject 29 +abstract:AbstractDataObject
30 - a <http://www.w3.org/2002/07/owl#Class> ; 30 + rdf:type owl:Class ;
31 - <http://www.w3.org/2000/01/rdf-schema#label> 31 + rdfs:label "Abstract data object"^^xsd:string ;
32 - "Abstract object"^^xsd:string ; 32 + rdfs:subClassOf abstract:AbstractObject ;
33 + dc:description "Substitution group for normative data objects."^^xsd:string .
34 +
35 +abstract:AbstractObject
36 + rdf:type owl:Class ;
37 + rdfs:label "Abstract object"^^xsd:string ;
33 dc:description """The intended abstract supertype of all schema roots 38 dc:description """The intended abstract supertype of all schema roots
34 that may be a member of a substitution group (whether contextual or data). 39 that may be a member of a substitution group (whether contextual or data).
35 The type of root global elements should be extended from this type and the 40 The type of root global elements should be extended from this type and the
36 - root global element should be declared to be a member of one of the above substitution groups."""^^xsd:string . 41 + root global element should be declared to be a member of one of the above substitution groups."""^^xsd:string .
37 - 42 +
38 -skos:prefLabel 43 +skos:prefLabel
39 - a <http://www.w3.org/2002/07/owl#AnnotationProperty> ; 44 + rdf:type owl:AnnotationProperty ;
40 - <http://www.w3.org/2000/01/rdf-schema#label> 45 + rdfs:label "pref label"^^xsd:string .
41 - "pref label"^^xsd:string .
42 -
43 -<http://www.energistics.org/schemas/abstract>
44 - a <http://www.w3.org/2002/07/owl#Ontology> ;
45 - <http://www.w3.org/2002/07/owl#imports>
46 - <http://www.linkedmodel.org/schema/dtype> , <http://www.linkedmodel.org/schema/vaem> ;
47 - <http://www.w3.org/2002/07/owl#versionInfo>
48 - "Created with TopBraid Composer from the XML Schema http://www.energistics.org/schemas/abstract"^^xsd:string .
......
1 -# Saved by TopBraid on Mon Aug 01 14:26:29 PDT 2011 1 +# baseURI: http://www.reportinghub.no/ep/spin/1.1/lib
2 -# baseURI: http://www.reportinghub.no/ep/spin/1.1/lib 2 +# imports: http://spinrdf.org/spin
3 -# imports: http://spinrdf.org/spin 3 +
4 - 4 +@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
5 -@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> . 5 +@prefix ep-spin-lib-1.1: <http://www.reportinghub.no/ep/spin/1.1/lib#> .
6 -@prefix ep-spin-lib-1.1: <http://www.reportinghub.no/ep/spin/1.1/lib#> . 6 +@prefix fn: <http://www.w3.org/2005/xpath-functions#> .
7 -@prefix fn: <http://www.w3.org/2005/xpath-functions#> . 7 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
8 -@prefix owl: <http://www.w3.org/2002/07/owl#> . 8 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
9 -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 9 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
10 -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . 10 +@prefix smf: <http://topbraid.org/sparqlmotionfunctions#> .
11 -@prefix smf: <http://topbraid.org/sparqlmotionfunctions#> . 11 +@prefix sp: <http://spinrdf.org/sp#> .
12 -@prefix sp: <http://spinrdf.org/sp#> . 12 +@prefix spif: <http://spinrdf.org/spif#> .
13 -@prefix spin: <http://spinrdf.org/spin#> . 13 +@prefix spin: <http://spinrdf.org/spin#> .
14 -@prefix spl: <http://spinrdf.org/spl#> . 14 +@prefix spl: <http://spinrdf.org/spl#> .
15 -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 15 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
16 - 16 +
17 -<http://www.reportinghub.no/ep/spin/1.1/lib> 17 +<http://www.reportinghub.no/ep/spin/1.1/lib>
18 - rdf:type owl:Ontology ; 18 + rdf:type owl:Ontology ;
19 - owl:imports <http://spinrdf.org/spin> ; 19 + owl:imports <http://spinrdf.org/spin> ;
20 - owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 20 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
21 - 21 +
22 -ep-spin-lib:Function 22 +ep-spin-lib:Function
23 - rdf:type spin:Function ; 23 + rdf:type spin:Function ;
24 - rdfs:label "Function"^^xsd:string ; 24 + rdfs:label "Function"^^xsd:string ;
25 - rdfs:subClassOf spin:Functions . 25 + rdfs:subClassOf spin:Functions ;
26 - 26 + spin:abstract "true"^^xsd:boolean .
27 -ep-spin-lib:buildURI 27 +
28 - rdf:type spin:Function ; 28 +ep-spin-lib:buildURI
29 - rdfs:label "build URI"^^xsd:string ; 29 + rdf:type spin:Function ;
30 - rdfs:subClassOf ep-spin-lib:Function ; 30 + rdfs:label "build URI"^^xsd:string ;
31 - spin:body 31 + rdfs:subClassOf ep-spin-lib:Function ;
32 - [ rdf:type sp:Select ; 32 + spin:body
33 - sp:resultVariables (_:b1) ; 33 + [ rdf:type sp:Select ;
34 - sp:where ([ rdf:type sp:Bind ; 34 + sp:resultVariables (_:b1) ;
35 - sp:expression 35 + sp:where ([ rdf:type sp:Bind ;
36 - [ rdf:type smf:resource ; 36 + sp:expression
37 - sp:arg1 [ rdf:type fn:concat ; 37 + [ rdf:type sp:iri ;
38 - sp:arg1 spin:_arg1 ; 38 + sp:arg1 [ rdf:type fn:concat ;
39 - sp:arg2 spin:_arg2 39 + sp:arg1 spin:_arg1 ;
40 - ] 40 + sp:arg2 spin:_arg2
41 - ] ; 41 + ]
42 - sp:variable _:b1 42 + ] ;
43 - ]) 43 + sp:variable _:b1
44 - ] ; 44 + ])
45 - spin:constraint 45 + ] ;
46 - [ rdf:type spl:Argument ; 46 + spin:constraint
47 - spl:predicate sp:arg1 ; 47 + [ rdf:type spl:Argument ;
48 - spl:valueType xsd:string 48 + spl:predicate sp:arg1 ;
49 - ] ; 49 + spl:valueType xsd:string
50 - spin:constraint 50 + ] ;
51 - [ rdf:type spl:Argument ; 51 + spin:constraint
52 - spl:predicate sp:arg2 ; 52 + [ rdf:type spl:Argument ;
53 - spl:valueType xsd:string 53 + spl:predicate sp:arg2 ;
54 - ] . 54 + spl:valueType xsd:string
55 - 55 + ] .
56 -ep-spin-lib:buildWellBoreURI 56 +
57 - rdf:type spin:Function ; 57 +ep-spin-lib:buildWellBoreURI
58 - rdfs:label "build well bore URI"^^xsd:string ; 58 + rdf:type spin:Function ;
59 - rdfs:subClassOf ep-spin-lib:Function ; 59 + rdfs:label "build well bore URI"^^xsd:string ;
60 - spin:body 60 + rdfs:subClassOf ep-spin-lib:Function ;
61 - [ rdf:type sp:Select ; 61 + spin:body
62 - sp:resultVariables (_:b2) ; 62 + [ rdf:type sp:Select ;
63 - sp:where ([ rdf:type sp:Bind ; 63 + sp:resultVariables (_:b2) ;
64 - sp:expression 64 + sp:where ([ rdf:type sp:Bind ;
65 - [ rdf:type ep-spin-lib:buildURI ; 65 + sp:expression
66 - sp:arg1 "https://www.reportinghub.no/ep/data/L_9999/W_9999#" ; 66 + [ rdf:type ep-spin-lib:buildURI ;
67 - sp:arg2 spin:_arg1 67 + sp:arg1 "https://www.reportinghub.no/ep/data/L_9999/W_9999#" ;
68 - ] ; 68 + sp:arg2 spin:_arg1
69 - sp:variable _:b2 69 + ] ;
70 - ]) 70 + sp:variable _:b2
71 - ] . 71 + ])
72 - 72 + ] .
73 -ep-spin-lib:buildWellURI 73 +
74 - rdf:type spin:Function ; 74 +ep-spin-lib:buildWellURI
75 - rdfs:label "build well URI"^^xsd:string ; 75 + rdf:type spin:Function ;
76 - rdfs:subClassOf ep-spin-lib:Function ; 76 + rdfs:label "build well URI"^^xsd:string ;
77 - spin:body 77 + rdfs:subClassOf ep-spin-lib:Function ;
78 - [ rdf:type sp:Select ; 78 + spin:body
79 - sp:resultVariables (_:b3) ; 79 + [ rdf:type sp:Select ;
80 - sp:where ([ rdf:type sp:Bind ; 80 + sp:resultVariables (_:b3) ;
81 - sp:expression 81 + sp:where ([ rdf:type sp:Bind ;
82 - [ rdf:type ep-spin-lib:buildURI ; 82 + sp:expression
83 - sp:arg1 "https://www.reportinghub.no/ep/data/L_9999#" ; 83 + [ rdf:type ep-spin-lib:buildURI ;
84 - sp:arg2 spin:_arg1 84 + sp:arg1 "https://www.reportinghub.no/ep/data/L_9999#" ;
85 - ] ; 85 + sp:arg2 spin:_arg1
86 - sp:variable _:b3 86 + ] ;
87 - ]) 87 + sp:variable _:b3
88 - ] . 88 + ])
89 - 89 + ] .
90 -ep-spin-lib:normalizeString 90 +
91 - rdf:type spin:Function ; 91 +ep-spin-lib:normalizeString
92 - rdfs:label "normalize string"^^xsd:string ; 92 + rdf:type spin:Function ;
93 - rdfs:subClassOf ep-spin-lib:Function ; 93 + rdfs:label "normalize string"^^xsd:string ;
94 - spin:body 94 + rdfs:subClassOf ep-spin-lib:Function ;
95 - [ rdf:type sp:Select ; 95 + spin:body
96 - sp:resultVariables (_:b4) ; 96 + [ rdf:type sp:Select ;
97 - sp:where ([ rdf:type sp:Bind ; 97 + sp:resultVariables (_:b4) ;
98 - sp:expression 98 + sp:where ([ rdf:type sp:Bind ;
99 - [ rdf:type smf:regex ; 99 + sp:expression
100 - sp:arg1 spin:_arg1 ; 100 + [ rdf:type spif:regex ;
101 - sp:arg2 "\\((.*)\\)" ; 101 + sp:arg1 spin:_arg1 ;
102 - sp:arg3 "" 102 + sp:arg2 "\\((.*)\\)" ;
103 - ] ; 103 + sp:arg3 ""
104 - sp:variable _:b5 104 + ] ;
105 - ] [ rdf:type sp:Bind ; 105 + sp:variable _:b5
106 - sp:expression 106 + ] [ rdf:type sp:Bind ;
107 - [ rdf:type smf:trim ; 107 + sp:expression
108 - sp:arg1 _:b5 108 + [ rdf:type spif:trim ;
109 - ] ; 109 + sp:arg1 _:b5
110 - sp:variable _:b6 110 + ] ;
111 - ] [ rdf:type sp:Bind ; 111 + sp:variable _:b6
112 - sp:expression 112 + ] [ rdf:type sp:Bind ;
113 - [ rdf:type smf:encodeURL ; 113 + sp:expression
114 - sp:arg1 _:b6 114 + [ rdf:type spif:encodeURL ;
115 - ] ; 115 + sp:arg1 _:b6
116 - sp:variable _:b7 116 + ] ;
117 - ] [ rdf:type sp:Bind ; 117 + sp:variable _:b7
118 - sp:expression 118 + ] [ rdf:type sp:Bind ;
119 - [ rdf:type smf:regex ; 119 + sp:expression
120 - sp:arg1 _:b7 ; 120 + [ rdf:type spif:regex ;
121 - sp:arg2 "%2F" ; 121 + sp:arg1 _:b7 ;
122 - sp:arg3 "_" 122 + sp:arg2 "%2F" ;
123 - ] ; 123 + sp:arg3 "_"
124 - sp:variable _:b8 124 + ] ;
125 - ] [ rdf:type sp:Bind ; 125 + sp:variable _:b8
126 - sp:expression 126 + ] [ rdf:type sp:Bind ;
127 - [ rdf:type smf:regex ; 127 + sp:expression
128 - sp:arg1 _:b8 ; 128 + [ rdf:type spif:regex ;
129 - sp:arg2 "%[0-9A-F][0-9A-F]" ; 129 + sp:arg1 _:b8 ;
130 - sp:arg3 "" 130 + sp:arg2 "%[0-9A-F][0-9A-F]" ;
131 - ] ; 131 + sp:arg3 ""
132 - sp:variable _:b9 132 + ] ;
133 - ] [ rdf:type sp:Bind ; 133 + sp:variable _:b9
134 - sp:expression 134 + ] [ rdf:type sp:Bind ;
135 - [ rdf:type smf:regex ; 135 + sp:expression
136 - sp:arg1 _:b9 ; 136 + [ rdf:type spif:regex ;
137 - sp:arg2 "\\+" ; 137 + sp:arg1 _:b9 ;
138 - sp:arg3 "_" 138 + sp:arg2 "\\+" ;
139 - ] ; 139 + sp:arg3 "_"
140 - sp:variable _:b10 140 + ] ;
141 - ] [ rdf:type sp:Bind ; 141 + sp:variable _:b10
142 - sp:expression 142 + ] [ rdf:type sp:Bind ;
143 - [ rdf:type smf:regex ; 143 + sp:expression
144 - sp:arg1 _:b10 ; 144 + [ rdf:type spif:regex ;
145 - sp:arg2 "_+" ; 145 + sp:arg1 _:b10 ;
146 - sp:arg3 "_" 146 + sp:arg2 "_+" ;
147 - ] ; 147 + sp:arg3 "_"
148 - sp:variable _:b11 148 + ] ;
149 - ] [ rdf:type sp:Bind ; 149 + sp:variable _:b11
150 - sp:expression 150 + ] [ rdf:type sp:Bind ;
151 - [ rdf:type smf:regex ; 151 + sp:expression
152 - sp:arg1 _:b11 ; 152 + [ rdf:type spif:regex ;
153 - sp:arg2 "\\*" ; 153 + sp:arg1 _:b11 ;
154 - sp:arg3 "" 154 + sp:arg2 "\\*" ;
155 - ] ; 155 + sp:arg3 ""
156 - sp:variable _:b12 156 + ] ;
157 - ] [ rdf:type sp:Bind ; 157 + sp:variable _:b12
158 - sp:expression 158 + ] [ rdf:type sp:Bind ;
159 - [ rdf:type xsd:string ; 159 + sp:expression
160 - sp:arg1 [ rdf:type smf:upperCase ; 160 + [ rdf:type xsd:string ;
161 - sp:arg1 _:b12 161 + sp:arg1 [ rdf:type spif:upperCase ;
162 - ] 162 + sp:arg1 _:b12
163 - ] ; 163 + ]
164 - sp:variable _:b4 164 + ] ;
165 - ]) 165 + sp:variable _:b4
166 - ] ; 166 + ])
167 - spin:constraint 167 + ] ;
168 - [ rdf:type spl:Argument ; 168 + spin:constraint
169 - spl:predicate sp:arg1 ; 169 + [ rdf:type spl:Argument ;
170 - spl:valueType xsd:string 170 + spl:predicate sp:arg1 ;
171 - ] . 171 + spl:valueType xsd:string
172 - 172 + ] .
173 -_:b2 sp:varName "uri"^^xsd:string . 173 +
174 - 174 +_:b2 sp:varName "uri"^^xsd:string .
175 -_:b3 sp:varName "uri"^^xsd:string . 175 +
176 - 176 +_:b3 sp:varName "uri"^^xsd:string .
177 -_:b1 sp:varName "uri"^^xsd:string . 177 +
178 - 178 +_:b1 sp:varName "uri"^^xsd:string .
179 -_:b5 sp:varName "s1"^^xsd:string . 179 +
180 - 180 +_:b5 sp:varName "s1"^^xsd:string .
181 -_:b6 sp:varName "s2"^^xsd:string . 181 +
182 - 182 +_:b6 sp:varName "s2"^^xsd:string .
183 -_:b7 sp:varName "t0a"^^xsd:string . 183 +
184 - 184 +_:b7 sp:varName "t0a"^^xsd:string .
185 -_:b8 sp:varName "t0b"^^xsd:string . 185 +
186 - 186 +_:b8 sp:varName "t0b"^^xsd:string .
187 -_:b9 sp:varName "t1"^^xsd:string . 187 +
188 - 188 +_:b9 sp:varName "t1"^^xsd:string .
189 -_:b10 189 +
190 - sp:varName "t2"^^xsd:string . 190 +_:b10
191 - 191 + sp:varName "t2"^^xsd:string .
192 -_:b11 192 +
193 - sp:varName "t3"^^xsd:string . 193 +_:b11
194 - 194 + sp:varName "t3"^^xsd:string .
195 -_:b12 195 +
196 - sp:varName "t4"^^xsd:string . 196 +_:b12
197 - 197 + sp:varName "t4"^^xsd:string .
198 -_:b4 sp:varName "normalizedStr"^^xsd:string . 198 +
199 +_:b4 sp:varName "normalizedStr"^^xsd:string .
......
1 -# Saved by TopBraid on Mon Aug 01 14:26:29 PDT 2011 1 +# baseURI: null
2 -# baseURI: null 2 +
3 - 3 +@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
4 -@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . 4 +@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> .
5 -@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> . 5 +@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> .
6 -@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> . 6 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
7 -@prefix owl: <http://www.w3.org/2002/07/owl#> . 7 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
8 -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 8 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
9 -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . 9 +@prefix visual: <http://topbraid.org/visual#> .
10 -@prefix visual: <http://topbraid.org/visual#> . 10 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
11 -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 11 +
12 - 12 +[] rdf:type inference:Configuration ;
13 -[] rdf:type inference:Configuration ; 13 + composite:child
14 - composite:child 14 + [ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
15 - [ rdf:type <http://spinrdf.org/spin#TopSPIN> ; 15 + composite:index "0"^^xsd:int
16 - composite:index "0"^^xsd:int 16 + ] .
17 - ] .
......
...@@ -119,784 +119,781 @@ ddr:DrillReports ...@@ -119,784 +119,781 @@ ddr:DrillReports
119 ddr:Obj_drillReport 119 ddr:Obj_drillReport
120 sxml:element "witsml:drillReport"^^xsd:string . 120 sxml:element "witsml:drillReport"^^xsd:string .
121 121
122 -ddr:Thing 122 +ddr:schemaLocation
123 - spin:rule 123 + rdfs:domain ddr:Obj_drillReports ;
124 - [ rdf:type sp:Construct ; 124 + sxml:attribute "xsi:schemaLocation"^^xsd:string .
125 - rdfs:comment "STEP 020 - Construct all other object properties - WIP"^^xsd:string ; 125 +
126 - sp:templates ([ sp:object _:b1 ; 126 +ddr:uom
127 - sp:predicate _:b2 ; 127 + sxml:attribute "uom"^^xsd:string .
128 - sp:subject _:b3 128 +
129 - ] [ sp:object rdf:Statement ; 129 +ddr:version
130 - sp:predicate rdf:type ; 130 + rdfs:domain ddr:DrillReports ;
131 - sp:subject _:b4 131 + sxml:attribute "version"^^xsd:string .
132 - ] [ sp:object _:b3 ; 132 +
133 - sp:predicate rdf:subject ; 133 +<http://www.reportinghub.no/ep/transform/1.1/ddr>
134 - sp:subject _:b4 134 + rdf:type owl:Ontology ;
135 - ] [ sp:object _:b2 ; 135 + owl:imports <http://spinrdf.org/spin> , <http://topbraid.org/sxml> , <http://www.reportinghub.no/ep/schema/1.1.1/ddr> ;
136 - sp:predicate rdf:predicate ; 136 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
137 - sp:subject _:b4 137 +
138 - ] [ sp:object _:b1 ; 138 +owl:Thing
139 - sp:predicate rdf:object ; 139 + spin:query
140 - sp:subject _:b4 140 + [ rdf:type sp:Select ;
141 - ] [ sp:object _:b4 ; 141 + sp:resultVariables (_:b1 _:b2 _:b3 _:b4) ;
142 - sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; 142 + sp:where ([ sp:object <http://topbraid.org/sxsd#ComplexType> ;
143 - sp:subject _:b1
144 - ]) ;
145 - sp:where ([ sp:object _:b1 ;
146 - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
147 - sp:subject _:b3
148 - ] [ sp:object _:b5 ;
149 - sp:predicate rdf:type ;
150 - sp:subject _:b1
151 - ] [ sp:object _:b6 ;
152 sp:predicate rdf:type ; 143 sp:predicate rdf:type ;
153 - sp:subject _:b3 144 + sp:subject _:b5
154 ] [ rdf:type sp:TriplePath ; 145 ] [ rdf:type sp:TriplePath ;
155 - sp:object _:b7 ; 146 + sp:object _:b6 ;
156 sp:path [ rdf:type sp:ModPath ; 147 sp:path [ rdf:type sp:ModPath ;
157 sp:modMax -2 ; 148 sp:modMax -2 ;
158 sp:modMin 0 ; 149 sp:modMin 0 ;
159 - sp:subPath rdfs:subClassOf 150 + sp:subPath <http://www.topbraid.org/2007/05/composite.owl#child>
160 ] ; 151 ] ;
152 + sp:subject _:b5
153 + ] [ sp:object _:b7 ;
154 + sp:predicate <http://topbraid.org/sxsd#name> ;
155 + sp:subject _:b5
156 + ] [ sp:object _:b4 ;
157 + sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ;
161 sp:subject _:b6 158 sp:subject _:b6
162 ] [ sp:object _:b8 ; 159 ] [ sp:object _:b8 ;
163 - sp:predicate rdfs:subClassOf ; 160 + sp:predicate <http://topbraid.org/sxsd#name> ;
164 - sp:subject _:b7 161 + sp:subject _:b6
165 - ] [ sp:object owl:Restriction ; 162 + ] [ rdf:type sp:Bind ;
166 - sp:predicate rdf:type ; 163 + sp:expression
167 - sp:subject _:b8 164 + [ rdf:type spif:titleCase ;
168 - ] [ sp:object _:b2 ; 165 + sp:arg1 _:b8
169 - sp:predicate owl:onProperty ; 166 + ] ;
170 - sp:subject _:b8 167 + sp:variable _:b9
171 - ] [ sp:object _:b5 ; 168 + ] [ rdf:type sp:Bind ;
172 - sp:predicate owl:allValuesFrom ; 169 + sp:expression
173 - sp:subject _:b8 170 + [ rdf:type spif:buildURI ;
171 + sp:arg1 [ rdf:type fn:concat ;
172 + sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ;
173 + sp:arg2 _:b9
174 + ]
175 + ] ;
176 + sp:variable _:b3
177 + ] [ rdf:type sp:Bind ;
178 + sp:expression
179 + [ rdf:type spif:titleCase ;
180 + sp:arg1 _:b7 ;
181 + sp:arg2 "[a-z]s"
182 + ] ;
183 + sp:variable _:b10
184 + ] [ rdf:type sp:Bind ;
185 + sp:expression
186 + [ rdf:type spif:buildURI ;
187 + sp:arg1 [ rdf:type fn:concat ;
188 + sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
189 + sp:arg2 _:b10
190 + ]
191 + ] ;
192 + sp:variable _:b2
193 + ] [ rdf:type sp:Bind ;
194 + sp:expression
195 + [ rdf:type spif:buildURI ;
196 + sp:arg1 [ rdf:type fn:concat ;
197 + sp:arg1 "http://www.reportinghub.no/map/ddr#" ;
198 + sp:arg2 _:b10 ;
199 + sp:arg3 "-has" ;
200 + sp:arg4 _:b9
201 + ]
202 + ] ;
203 + sp:variable _:b1
204 + ])
205 + ] ;
206 + spin:query
207 + [ rdf:type sp:Select ;
208 + sp:resultVariables (_:b11 _:b12 _:b13 _:b14) ;
209 + sp:where ([ sp:object _:b14 ;
210 + sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ;
211 + sp:subject _:b13
212 + ] [ sp:object _:b13 ;
213 + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
214 + sp:subject _:b12
215 + ] [ rdf:type sp:Union ;
216 + sp:elements (([ sp:object <http://topbraid.org/sxsd#Sequence> ;
217 + sp:predicate rdf:type ;
218 + sp:subject _:b12
219 + ]) ([ sp:object <http://topbraid.org/sxsd#Choice> ;
220 + sp:predicate rdf:type ;
221 + sp:subject _:b12
222 + ]))
223 + ] [ sp:object _:b12 ;
224 + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
225 + sp:subject _:b11
174 ]) 226 ])
175 ] ; 227 ] ;
176 spin:rule 228 spin:rule
177 [ rdf:type sp:Construct ; 229 [ rdf:type sp:Construct ;
178 - rdfs:comment "STEP 003 - Construct datatype string values"^^xsd:string ; 230 + rdfs:comment "STEP 002 - Construct datatype datetime values"^^xsd:string ;
179 - sp:templates ([ sp:object _:b9 ; 231 + sp:templates ([ sp:object _:b15 ;
180 - sp:predicate _:b10 ; 232 + sp:predicate _:b16 ;
181 - sp:subject _:b11 233 + sp:subject _:b17
182 ] [ sp:object rdf:Statement ; 234 ] [ sp:object rdf:Statement ;
183 sp:predicate rdf:type ; 235 sp:predicate rdf:type ;
184 - sp:subject _:b12 236 + sp:subject _:b18
185 - ] [ sp:object _:b11 ; 237 + ] [ sp:object _:b17 ;
186 sp:predicate rdf:subject ; 238 sp:predicate rdf:subject ;
187 - sp:subject _:b12 239 + sp:subject _:b18
188 - ] [ sp:object _:b10 ; 240 + ] [ sp:object _:b16 ;
189 sp:predicate rdf:predicate ; 241 sp:predicate rdf:predicate ;
190 - sp:subject _:b12 242 + sp:subject _:b18
191 - ] [ sp:object _:b9 ; 243 + ] [ sp:object _:b15 ;
192 sp:predicate rdf:object ; 244 sp:predicate rdf:object ;
193 - sp:subject _:b12 245 + sp:subject _:b18
194 - ] [ sp:object _:b12 ; 246 + ] [ sp:object _:b18 ;
195 sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; 247 sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
196 - sp:subject _:b13 248 + sp:subject _:b19
197 ]) ; 249 ]) ;
198 - sp:where ([ sp:object _:b13 ; 250 + sp:where ([ sp:object _:b19 ;
199 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 251 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
200 - sp:subject _:b11 252 + sp:subject _:b17
201 - ] [ sp:object _:b14 ; 253 + ] [ sp:object _:b20 ;
202 sp:predicate rdf:type ; 254 sp:predicate rdf:type ;
203 - sp:subject _:b13 255 + sp:subject _:b19
204 ] [ rdf:type sp:NotExists ; 256 ] [ rdf:type sp:NotExists ;
205 sp:elements ([ sp:object 257 sp:elements ([ sp:object
206 [ sp:varName "uom"^^xsd:string 258 [ sp:varName "uom"^^xsd:string
207 ] ; 259 ] ;
208 sp:predicate ddr:uom ; 260 sp:predicate ddr:uom ;
209 - sp:subject _:b13 261 + sp:subject _:b19
210 ]) 262 ])
211 ] [ rdf:type sp:Bind ; 263 ] [ rdf:type sp:Bind ;
212 sp:expression 264 sp:expression
213 [ rdf:type afn:localname ; 265 [ rdf:type afn:localname ;
214 - sp:arg1 _:b14 266 + sp:arg1 _:b20
215 ] ; 267 ] ;
216 - sp:variable _:b15 268 + sp:variable _:b21
217 ] [ rdf:type sp:Bind ; 269 ] [ rdf:type sp:Bind ;
218 sp:expression 270 sp:expression
219 - [ rdf:type smf:buildURI ; 271 + [ rdf:type spif:buildURI ;
220 sp:arg1 [ rdf:type fn:concat ; 272 sp:arg1 [ rdf:type fn:concat ;
221 sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ; 273 sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
222 - sp:arg2 _:b15 274 + sp:arg2 _:b21
223 ] 275 ]
224 ] ; 276 ] ;
225 - sp:variable _:b10 277 + sp:variable _:b16
226 ] [ sp:object owl:DatatypeProperty ; 278 ] [ sp:object owl:DatatypeProperty ;
227 sp:predicate rdf:type ; 279 sp:predicate rdf:type ;
228 - sp:subject _:b10 280 + sp:subject _:b16
229 - ] [ sp:object _:b16 ; 281 + ] [ sp:object _:b22 ;
230 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 282 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
231 - sp:subject _:b13 283 + sp:subject _:b19
232 ] [ sp:object sxml:TextNode ; 284 ] [ sp:object sxml:TextNode ;
233 sp:predicate rdf:type ; 285 sp:predicate rdf:type ;
234 - sp:subject _:b16 286 + sp:subject _:b22
235 - ] [ sp:object _:b9 ; 287 + ] [ sp:object _:b23 ;
236 sp:predicate sxml:text ; 288 sp:predicate sxml:text ;
237 - sp:subject _:b16 289 + sp:subject _:b22
238 - ] [ sp:object _:b17 ; 290 + ] [ sp:object _:b24 ;
239 sp:predicate rdf:type ; 291 sp:predicate rdf:type ;
240 - sp:subject _:b11 292 + sp:subject _:b17
241 ] [ rdf:type sp:TriplePath ; 293 ] [ rdf:type sp:TriplePath ;
242 - sp:object _:b18 ; 294 + sp:object _:b25 ;
243 sp:path [ rdf:type sp:ModPath ; 295 sp:path [ rdf:type sp:ModPath ;
244 sp:modMax -2 ; 296 sp:modMax -2 ;
245 sp:modMin 0 ; 297 sp:modMin 0 ;
246 sp:subPath rdfs:subClassOf 298 sp:subPath rdfs:subClassOf
247 ] ; 299 ] ;
248 - sp:subject _:b17 300 + sp:subject _:b24
249 - ] [ sp:object _:b19 ; 301 + ] [ sp:object _:b26 ;
250 sp:predicate rdfs:subClassOf ; 302 sp:predicate rdfs:subClassOf ;
251 - sp:subject _:b18 303 + sp:subject _:b25
252 ] [ sp:object owl:Restriction ; 304 ] [ sp:object owl:Restriction ;
253 sp:predicate rdf:type ; 305 sp:predicate rdf:type ;
254 - sp:subject _:b19 306 + sp:subject _:b26
255 - ] [ sp:object _:b20 ; 307 + ] [ sp:object _:b27 ;
256 sp:predicate owl:allValuesFrom ; 308 sp:predicate owl:allValuesFrom ;
257 - sp:subject _:b19 309 + sp:subject _:b26
258 - ] [ sp:object _:b10 ; 310 + ] [ sp:object _:b16 ;
259 sp:predicate owl:onProperty ; 311 sp:predicate owl:onProperty ;
260 - sp:subject _:b19 312 + sp:subject _:b26
261 ] [ rdf:type sp:TriplePath ; 313 ] [ rdf:type sp:TriplePath ;
262 - sp:object xsd:string ; 314 + sp:object xsd:dateTime ;
263 sp:path [ rdf:type sp:ModPath ; 315 sp:path [ rdf:type sp:ModPath ;
264 sp:modMax -2 ; 316 sp:modMax -2 ;
265 sp:modMin 0 ; 317 sp:modMin 0 ;
266 sp:subPath rdfs:subClassOf 318 sp:subPath rdfs:subClassOf
267 ] ; 319 ] ;
268 - sp:subject _:b20 320 + sp:subject _:b27
321 + ] [ rdf:type sp:Bind ;
322 + sp:expression
323 + [ rdf:type xsd:dateTime ;
324 + sp:arg1 _:b23
325 + ] ;
326 + sp:variable _:b15
269 ]) 327 ])
270 ] ; 328 ] ;
271 spin:rule 329 spin:rule
272 [ rdf:type sp:Construct ; 330 [ rdf:type sp:Construct ;
273 - rdfs:comment "STEP 006 - Construct Enumerated Values"^^xsd:string ; 331 + rdfs:comment "STEP 003 - Construct datatype string values"^^xsd:string ;
274 - sp:templates ([ sp:object _:b21 ; 332 + sp:templates ([ sp:object _:b28 ;
275 - sp:predicate _:b22 ; 333 + sp:predicate _:b29 ;
276 - sp:subject _:b23 334 + sp:subject _:b30
277 ] [ sp:object rdf:Statement ; 335 ] [ sp:object rdf:Statement ;
278 sp:predicate rdf:type ; 336 sp:predicate rdf:type ;
279 - sp:subject _:b24 337 + sp:subject _:b31
280 - ] [ sp:object _:b23 ; 338 + ] [ sp:object _:b30 ;
281 sp:predicate rdf:subject ; 339 sp:predicate rdf:subject ;
282 - sp:subject _:b24 340 + sp:subject _:b31
283 - ] [ sp:object _:b22 ; 341 + ] [ sp:object _:b29 ;
284 sp:predicate rdf:predicate ; 342 sp:predicate rdf:predicate ;
285 - sp:subject _:b24 343 + sp:subject _:b31
286 - ] [ sp:object _:b21 ; 344 + ] [ sp:object _:b28 ;
287 sp:predicate rdf:object ; 345 sp:predicate rdf:object ;
288 - sp:subject _:b24 346 + sp:subject _:b31
289 - ] [ sp:object _:b24 ; 347 + ] [ sp:object _:b31 ;
290 sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; 348 sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
291 - sp:subject _:b25 349 + sp:subject _:b32
292 ]) ; 350 ]) ;
293 - sp:where ([ sp:object _:b25 ; 351 + sp:where ([ sp:object _:b32 ;
294 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 352 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
295 - sp:subject _:b23 353 + sp:subject _:b30
296 - ] [ sp:object _:b26 ; 354 + ] [ sp:object _:b33 ;
297 sp:predicate rdf:type ; 355 sp:predicate rdf:type ;
298 - sp:subject _:b25 356 + sp:subject _:b32
299 ] [ rdf:type sp:NotExists ; 357 ] [ rdf:type sp:NotExists ;
300 sp:elements ([ sp:object 358 sp:elements ([ sp:object
301 [ sp:varName "uom"^^xsd:string 359 [ sp:varName "uom"^^xsd:string
302 ] ; 360 ] ;
303 sp:predicate ddr:uom ; 361 sp:predicate ddr:uom ;
304 - sp:subject _:b25 362 + sp:subject _:b32
305 ]) 363 ])
306 ] [ rdf:type sp:Bind ; 364 ] [ rdf:type sp:Bind ;
307 sp:expression 365 sp:expression
308 - [ rdf:type smf:titleCase ; 366 + [ rdf:type afn:localname ;
309 - sp:arg1 [ rdf:type afn:localname ; 367 + sp:arg1 _:b33
310 - sp:arg1 _:b26
311 - ]
312 ] ; 368 ] ;
313 - sp:variable _:b27 369 + sp:variable _:b34
314 ] [ rdf:type sp:Bind ; 370 ] [ rdf:type sp:Bind ;
315 sp:expression 371 sp:expression
316 - [ rdf:type smf:buildURI ; 372 + [ rdf:type spif:buildURI ;
317 sp:arg1 [ rdf:type fn:concat ; 373 sp:arg1 [ rdf:type fn:concat ;
318 - sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ; 374 + sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
319 - sp:arg2 _:b27 375 + sp:arg2 _:b34
320 ] 376 ]
321 ] ; 377 ] ;
322 - sp:variable _:b22 378 + sp:variable _:b29
323 - ] [ sp:object owl:ObjectProperty ; 379 + ] [ sp:object owl:DatatypeProperty ;
324 sp:predicate rdf:type ; 380 sp:predicate rdf:type ;
325 - sp:subject _:b22 381 + sp:subject _:b29
382 + ] [ sp:object _:b35 ;
383 + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
384 + sp:subject _:b32
385 + ] [ sp:object sxml:TextNode ;
386 + sp:predicate rdf:type ;
387 + sp:subject _:b35
326 ] [ sp:object _:b28 ; 388 ] [ sp:object _:b28 ;
389 + sp:predicate sxml:text ;
390 + sp:subject _:b35
391 + ] [ sp:object _:b36 ;
327 sp:predicate rdf:type ; 392 sp:predicate rdf:type ;
328 - sp:subject _:b23 393 + sp:subject _:b30
329 ] [ rdf:type sp:TriplePath ; 394 ] [ rdf:type sp:TriplePath ;
330 - sp:object _:b29 ; 395 + sp:object _:b37 ;
331 sp:path [ rdf:type sp:ModPath ; 396 sp:path [ rdf:type sp:ModPath ;
332 sp:modMax -2 ; 397 sp:modMax -2 ;
333 sp:modMin 0 ; 398 sp:modMin 0 ;
334 sp:subPath rdfs:subClassOf 399 sp:subPath rdfs:subClassOf
335 ] ; 400 ] ;
336 - sp:subject _:b28 401 + sp:subject _:b36
337 - ] [ sp:object _:b30 ; 402 + ] [ sp:object _:b38 ;
338 sp:predicate rdfs:subClassOf ; 403 sp:predicate rdfs:subClassOf ;
339 - sp:subject _:b29 404 + sp:subject _:b37
340 ] [ sp:object owl:Restriction ; 405 ] [ sp:object owl:Restriction ;
341 sp:predicate rdf:type ; 406 sp:predicate rdf:type ;
342 - sp:subject _:b30 407 + sp:subject _:b38
343 - ] [ sp:object _:b22 ; 408 + ] [ sp:object _:b39 ;
344 - sp:predicate owl:onProperty ;
345 - sp:subject _:b30
346 - ] [ sp:object _:b31 ;
347 sp:predicate owl:allValuesFrom ; 409 sp:predicate owl:allValuesFrom ;
348 - sp:subject _:b30 410 + sp:subject _:b38
411 + ] [ sp:object _:b29 ;
412 + sp:predicate owl:onProperty ;
413 + sp:subject _:b38
349 ] [ rdf:type sp:TriplePath ; 414 ] [ rdf:type sp:TriplePath ;
350 - sp:object <http://www.linkedmodel.org/schema/dtype#EnumeratedValue> ; 415 + sp:object xsd:string ;
351 sp:path [ rdf:type sp:ModPath ; 416 sp:path [ rdf:type sp:ModPath ;
352 sp:modMax -2 ; 417 sp:modMax -2 ;
353 sp:modMin 0 ; 418 sp:modMin 0 ;
354 sp:subPath rdfs:subClassOf 419 sp:subPath rdfs:subClassOf
355 ] ; 420 ] ;
356 - sp:subject _:b31 421 + sp:subject _:b39
357 - ] [ sp:object _:b32 ;
358 - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
359 - sp:subject _:b25
360 - ] [ sp:object sxml:TextNode ;
361 - sp:predicate rdf:type ;
362 - sp:subject _:b32
363 - ] [ sp:object _:b33 ;
364 - sp:predicate sxml:text ;
365 - sp:subject _:b32
366 - ] [ sp:object _:b31 ;
367 - sp:predicate rdf:type ;
368 - sp:subject _:b21
369 - ] [ sp:object _:b33 ;
370 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
371 - sp:subject _:b21
372 ]) 422 ])
373 ] ; 423 ] ;
374 spin:rule 424 spin:rule
375 [ rdf:type sp:Construct ; 425 [ rdf:type sp:Construct ;
376 rdfs:comment "STEP 004 - Construct UOM values"^^xsd:string ; 426 rdfs:comment "STEP 004 - Construct UOM values"^^xsd:string ;
377 - sp:templates ([ sp:object _:b34 ; 427 + sp:templates ([ sp:object _:b40 ;
378 sp:predicate rdf:type ; 428 sp:predicate rdf:type ;
379 - sp:subject _:b35 429 + sp:subject _:b41
380 - ] [ sp:object _:b36 ; 430 + ] [ sp:object _:b42 ;
381 sp:predicate ddr:uom ; 431 sp:predicate ddr:uom ;
382 - sp:subject _:b35 432 + sp:subject _:b41
383 - ] [ sp:object _:b37 ; 433 + ] [ sp:object _:b43 ;
384 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 434 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
385 - sp:subject _:b35 435 + sp:subject _:b41
386 - ] [ sp:object _:b35 ; 436 + ] [ sp:object _:b41 ;
387 - sp:predicate _:b38 ; 437 + sp:predicate _:b44 ;
388 - sp:subject _:b39 438 + sp:subject _:b45
389 ] [ sp:object rdf:Statement ; 439 ] [ sp:object rdf:Statement ;
390 sp:predicate rdf:type ; 440 sp:predicate rdf:type ;
391 - sp:subject _:b40 441 + sp:subject _:b46
392 - ] [ sp:object _:b39 ; 442 + ] [ sp:object _:b45 ;
393 sp:predicate rdf:subject ; 443 sp:predicate rdf:subject ;
394 - sp:subject _:b40 444 + sp:subject _:b46
395 - ] [ sp:object _:b38 ; 445 + ] [ sp:object _:b44 ;
396 sp:predicate rdf:predicate ; 446 sp:predicate rdf:predicate ;
397 - sp:subject _:b40 447 + sp:subject _:b46
398 - ] [ sp:object _:b37 ; 448 + ] [ sp:object _:b43 ;
399 sp:predicate rdf:object ; 449 sp:predicate rdf:object ;
400 - sp:subject _:b40 450 + sp:subject _:b46
401 - ] [ sp:object _:b40 ; 451 + ] [ sp:object _:b46 ;
402 sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; 452 sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
403 - sp:subject _:b41 453 + sp:subject _:b47
404 ]) ; 454 ]) ;
405 - sp:where ([ sp:object _:b41 ; 455 + sp:where ([ sp:object _:b47 ;
406 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 456 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
407 - sp:subject _:b39 457 + sp:subject _:b45
408 - ] [ sp:object _:b42 ; 458 + ] [ sp:object _:b48 ;
409 sp:predicate rdf:type ; 459 sp:predicate rdf:type ;
410 - sp:subject _:b41 460 + sp:subject _:b47
411 - ] [ sp:object _:b36 ; 461 + ] [ sp:object _:b42 ;
412 sp:predicate ddr:uom ; 462 sp:predicate ddr:uom ;
413 - sp:subject _:b41 463 + sp:subject _:b47
414 ] [ rdf:type sp:NotExists ; 464 ] [ rdf:type sp:NotExists ;
415 sp:elements ([ sp:object 465 sp:elements ([ sp:object
416 [ sp:varName "aNode"^^xsd:string 466 [ sp:varName "aNode"^^xsd:string
417 ] ; 467 ] ;
418 sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; 468 sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
419 - sp:subject _:b41 469 + sp:subject _:b47
420 ]) 470 ])
421 ] [ rdf:type sp:Bind ; 471 ] [ rdf:type sp:Bind ;
422 sp:expression 472 sp:expression
423 [ rdf:type afn:localname ; 473 [ rdf:type afn:localname ;
424 - sp:arg1 _:b42 474 + sp:arg1 _:b48
425 ] ; 475 ] ;
426 - sp:variable _:b43 476 + sp:variable _:b49
427 ] [ rdf:type sp:Bind ; 477 ] [ rdf:type sp:Bind ;
428 sp:expression 478 sp:expression
429 - [ rdf:type smf:buildURI ; 479 + [ rdf:type spif:buildURI ;
430 sp:arg1 [ rdf:type fn:concat ; 480 sp:arg1 [ rdf:type fn:concat ;
431 sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ; 481 sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ;
432 - sp:arg2 [ rdf:type smf:titleCase ; 482 + sp:arg2 [ rdf:type spif:titleCase ;
433 - sp:arg1 _:b43 483 + sp:arg1 _:b49
434 ] 484 ]
435 ] 485 ]
436 ] ; 486 ] ;
437 - sp:variable _:b38 487 + sp:variable _:b44
438 ] [ sp:object owl:ObjectProperty ; 488 ] [ sp:object owl:ObjectProperty ;
439 sp:predicate rdf:type ; 489 sp:predicate rdf:type ;
440 - sp:subject _:b38 490 + sp:subject _:b44
441 - ] [ sp:object _:b44 ; 491 + ] [ sp:object _:b50 ;
442 sp:predicate rdf:type ; 492 sp:predicate rdf:type ;
443 - sp:subject _:b39 493 + sp:subject _:b45
444 ] [ rdf:type sp:TriplePath ; 494 ] [ rdf:type sp:TriplePath ;
445 - sp:object _:b45 ; 495 + sp:object _:b51 ;
446 sp:path [ rdf:type sp:ModPath ; 496 sp:path [ rdf:type sp:ModPath ;
447 sp:modMax -2 ; 497 sp:modMax -2 ;
448 sp:modMin 0 ; 498 sp:modMin 0 ;
449 sp:subPath rdfs:subClassOf 499 sp:subPath rdfs:subClassOf
450 ] ; 500 ] ;
451 - sp:subject _:b44 501 + sp:subject _:b50
452 - ] [ sp:object _:b46 ; 502 + ] [ sp:object _:b52 ;
453 sp:predicate rdfs:subClassOf ; 503 sp:predicate rdfs:subClassOf ;
454 - sp:subject _:b45 504 + sp:subject _:b51
455 ] [ sp:object owl:Restriction ; 505 ] [ sp:object owl:Restriction ;
456 sp:predicate rdf:type ; 506 sp:predicate rdf:type ;
457 - sp:subject _:b46 507 + sp:subject _:b52
458 - ] [ sp:object _:b34 ; 508 + ] [ sp:object _:b40 ;
459 sp:predicate owl:allValuesFrom ; 509 sp:predicate owl:allValuesFrom ;
460 - sp:subject _:b46 510 + sp:subject _:b52
461 - ] [ sp:object _:b38 ; 511 + ] [ sp:object _:b44 ;
462 sp:predicate owl:onProperty ; 512 sp:predicate owl:onProperty ;
463 - sp:subject _:b46 513 + sp:subject _:b52
464 - ] [ sp:object _:b47 ; 514 + ] [ sp:object _:b53 ;
465 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 515 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
466 - sp:subject _:b41 516 + sp:subject _:b47
467 ] [ sp:object sxml:TextNode ; 517 ] [ sp:object sxml:TextNode ;
468 sp:predicate rdf:type ; 518 sp:predicate rdf:type ;
469 - sp:subject _:b47 519 + sp:subject _:b53
470 - ] [ sp:object _:b48 ; 520 + ] [ sp:object _:b54 ;
471 sp:predicate sxml:text ; 521 sp:predicate sxml:text ;
472 - sp:subject _:b47 522 + sp:subject _:b53
473 ] [ rdf:type sp:Bind ; 523 ] [ rdf:type sp:Bind ;
474 sp:expression 524 sp:expression
475 [ rdf:type xsd:double ; 525 [ rdf:type xsd:double ;
476 - sp:arg1 _:b48 526 + sp:arg1 _:b54
477 ] ; 527 ] ;
478 - sp:variable _:b37 528 + sp:variable _:b43
479 ]) 529 ])
480 ] ; 530 ] ;
481 spin:rule 531 spin:rule
482 [ rdf:type sp:Construct ; 532 [ rdf:type sp:Construct ;
483 - rdfs:comment "STEP 002 - Construct datatype datetime values"^^xsd:string ; 533 + rdfs:comment "STEP 006 - Construct Enumerated Values"^^xsd:string ;
484 - sp:templates ([ sp:object _:b49 ; 534 + sp:templates ([ sp:object _:b55 ;
485 - sp:predicate _:b50 ; 535 + sp:predicate _:b56 ;
486 - sp:subject _:b51 536 + sp:subject _:b57
487 ] [ sp:object rdf:Statement ; 537 ] [ sp:object rdf:Statement ;
488 sp:predicate rdf:type ; 538 sp:predicate rdf:type ;
489 - sp:subject _:b52 539 + sp:subject _:b58
490 - ] [ sp:object _:b51 ; 540 + ] [ sp:object _:b57 ;
491 sp:predicate rdf:subject ; 541 sp:predicate rdf:subject ;
492 - sp:subject _:b52 542 + sp:subject _:b58
493 - ] [ sp:object _:b50 ; 543 + ] [ sp:object _:b56 ;
494 sp:predicate rdf:predicate ; 544 sp:predicate rdf:predicate ;
495 - sp:subject _:b52 545 + sp:subject _:b58
496 - ] [ sp:object _:b49 ; 546 + ] [ sp:object _:b55 ;
497 sp:predicate rdf:object ; 547 sp:predicate rdf:object ;
498 - sp:subject _:b52 548 + sp:subject _:b58
499 - ] [ sp:object _:b52 ; 549 + ] [ sp:object _:b58 ;
500 sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; 550 sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
501 - sp:subject _:b53 551 + sp:subject _:b59
502 ]) ; 552 ]) ;
503 - sp:where ([ sp:object _:b53 ; 553 + sp:where ([ sp:object _:b59 ;
504 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 554 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
505 - sp:subject _:b51 555 + sp:subject _:b57
506 - ] [ sp:object _:b54 ; 556 + ] [ sp:object _:b60 ;
507 sp:predicate rdf:type ; 557 sp:predicate rdf:type ;
508 - sp:subject _:b53 558 + sp:subject _:b59
509 ] [ rdf:type sp:NotExists ; 559 ] [ rdf:type sp:NotExists ;
510 sp:elements ([ sp:object 560 sp:elements ([ sp:object
511 [ sp:varName "uom"^^xsd:string 561 [ sp:varName "uom"^^xsd:string
512 ] ; 562 ] ;
513 sp:predicate ddr:uom ; 563 sp:predicate ddr:uom ;
514 - sp:subject _:b53 564 + sp:subject _:b59
515 ]) 565 ])
516 ] [ rdf:type sp:Bind ; 566 ] [ rdf:type sp:Bind ;
517 sp:expression 567 sp:expression
518 - [ rdf:type afn:localname ; 568 + [ rdf:type spif:titleCase ;
519 - sp:arg1 _:b54 569 + sp:arg1 [ rdf:type afn:localname ;
570 + sp:arg1 _:b60
571 + ]
520 ] ; 572 ] ;
521 - sp:variable _:b55 573 + sp:variable _:b61
522 ] [ rdf:type sp:Bind ; 574 ] [ rdf:type sp:Bind ;
523 sp:expression 575 sp:expression
524 - [ rdf:type smf:buildURI ; 576 + [ rdf:type spif:buildURI ;
525 sp:arg1 [ rdf:type fn:concat ; 577 sp:arg1 [ rdf:type fn:concat ;
526 - sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ; 578 + sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ;
527 - sp:arg2 _:b55 579 + sp:arg2 _:b61
528 ] 580 ]
529 ] ; 581 ] ;
530 - sp:variable _:b50 582 + sp:variable _:b56
531 - ] [ sp:object owl:DatatypeProperty ; 583 + ] [ sp:object owl:ObjectProperty ;
532 - sp:predicate rdf:type ;
533 - sp:subject _:b50
534 - ] [ sp:object _:b56 ;
535 - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
536 - sp:subject _:b53
537 - ] [ sp:object sxml:TextNode ;
538 sp:predicate rdf:type ; 584 sp:predicate rdf:type ;
539 sp:subject _:b56 585 sp:subject _:b56
540 - ] [ sp:object _:b57 ; 586 + ] [ sp:object _:b62 ;
541 - sp:predicate sxml:text ;
542 - sp:subject _:b56
543 - ] [ sp:object _:b58 ;
544 sp:predicate rdf:type ; 587 sp:predicate rdf:type ;
545 - sp:subject _:b51 588 + sp:subject _:b57
546 ] [ rdf:type sp:TriplePath ; 589 ] [ rdf:type sp:TriplePath ;
547 - sp:object _:b59 ; 590 + sp:object _:b63 ;
548 sp:path [ rdf:type sp:ModPath ; 591 sp:path [ rdf:type sp:ModPath ;
549 sp:modMax -2 ; 592 sp:modMax -2 ;
550 sp:modMin 0 ; 593 sp:modMin 0 ;
551 sp:subPath rdfs:subClassOf 594 sp:subPath rdfs:subClassOf
552 ] ; 595 ] ;
553 - sp:subject _:b58 596 + sp:subject _:b62
554 - ] [ sp:object _:b60 ; 597 + ] [ sp:object _:b64 ;
555 sp:predicate rdfs:subClassOf ; 598 sp:predicate rdfs:subClassOf ;
556 - sp:subject _:b59 599 + sp:subject _:b63
557 ] [ sp:object owl:Restriction ; 600 ] [ sp:object owl:Restriction ;
558 sp:predicate rdf:type ; 601 sp:predicate rdf:type ;
559 - sp:subject _:b60 602 + sp:subject _:b64
560 - ] [ sp:object _:b61 ; 603 + ] [ sp:object _:b56 ;
561 - sp:predicate owl:allValuesFrom ;
562 - sp:subject _:b60
563 - ] [ sp:object _:b50 ;
564 sp:predicate owl:onProperty ; 604 sp:predicate owl:onProperty ;
565 - sp:subject _:b60 605 + sp:subject _:b64
606 + ] [ sp:object _:b65 ;
607 + sp:predicate owl:allValuesFrom ;
608 + sp:subject _:b64
566 ] [ rdf:type sp:TriplePath ; 609 ] [ rdf:type sp:TriplePath ;
567 - sp:object xsd:dateTime ; 610 + sp:object <http://www.linkedmodel.org/schema/dtype#EnumeratedValue> ;
568 sp:path [ rdf:type sp:ModPath ; 611 sp:path [ rdf:type sp:ModPath ;
569 sp:modMax -2 ; 612 sp:modMax -2 ;
570 sp:modMin 0 ; 613 sp:modMin 0 ;
571 sp:subPath rdfs:subClassOf 614 sp:subPath rdfs:subClassOf
572 ] ; 615 ] ;
573 - sp:subject _:b61 616 + sp:subject _:b65
574 - ] [ rdf:type sp:Bind ; 617 + ] [ sp:object _:b66 ;
575 - sp:expression 618 + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
576 - [ rdf:type xsd:dateTime ; 619 + sp:subject _:b59
577 - sp:arg1 _:b57 620 + ] [ sp:object sxml:TextNode ;
578 - ] ; 621 + sp:predicate rdf:type ;
579 - sp:variable _:b49 622 + sp:subject _:b66
623 + ] [ sp:object _:b67 ;
624 + sp:predicate sxml:text ;
625 + sp:subject _:b66
626 + ] [ sp:object _:b65 ;
627 + sp:predicate rdf:type ;
628 + sp:subject _:b55
629 + ] [ sp:object _:b67 ;
630 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
631 + sp:subject _:b55
580 ]) 632 ])
581 ] ; 633 ] ;
582 spin:rule 634 spin:rule
583 [ rdf:type sp:Construct ; 635 [ rdf:type sp:Construct ;
584 - rdfs:comment "STEP 030 - Construct ep-activity type statements"^^xsd:string ; 636 + rdfs:comment "STEP 020 - Construct all other object properties - WIP"^^xsd:string ;
585 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#DrillingActivity> ; 637 + sp:templates ([ sp:object _:b68 ;
638 + sp:predicate _:b69 ;
639 + sp:subject _:b70
640 + ] [ sp:object rdf:Statement ;
586 sp:predicate rdf:type ; 641 sp:predicate rdf:type ;
587 - sp:subject _:b62 642 + sp:subject _:b71
643 + ] [ sp:object _:b70 ;
644 + sp:predicate rdf:subject ;
645 + sp:subject _:b71
646 + ] [ sp:object _:b69 ;
647 + sp:predicate rdf:predicate ;
648 + sp:subject _:b71
649 + ] [ sp:object _:b68 ;
650 + sp:predicate rdf:object ;
651 + sp:subject _:b71
652 + ] [ sp:object _:b71 ;
653 + sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
654 + sp:subject _:b68
588 ]) ; 655 ]) ;
589 - sp:where ([ sp:object ddr:Cs_activity ; 656 + sp:where ([ sp:object _:b68 ;
590 - sp:predicate rdf:type ;
591 - sp:subject _:b62
592 - ])
593 - ] .
594 -
595 -ddr:schemaLocation
596 - rdfs:domain ddr:Obj_drillReports ;
597 - sxml:attribute "xsi:schemaLocation"^^xsd:string .
598 -
599 -ddr:uom
600 - sxml:attribute "uom"^^xsd:string .
601 -
602 -ddr:version
603 - rdfs:domain ddr:DrillReports ;
604 - sxml:attribute "version"^^xsd:string .
605 -
606 -<http://www.reportinghub.no/ep/transform/1.1/ddr>
607 - rdf:type owl:Ontology ;
608 - owl:imports <http://spinrdf.org/spin> , <http://topbraid.org/sxml> , <http://www.reportinghub.no/ep/schema/1.1.1/ddr> ;
609 - owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
610 -
611 -owl:Thing
612 - spin:query
613 - [ rdf:type sp:Select ;
614 - sp:resultVariables (_:b63 _:b64 _:b65 _:b66) ;
615 - sp:where ([ sp:object _:b66 ;
616 - sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ;
617 - sp:subject _:b65
618 - ] [ sp:object _:b65 ;
619 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 657 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
620 - sp:subject _:b64 658 + sp:subject _:b70
621 - ] [ rdf:type sp:Union ; 659 + ] [ sp:object _:b72 ;
622 - sp:elements (([ sp:object <http://topbraid.org/sxsd#Sequence> ;
623 - sp:predicate rdf:type ;
624 - sp:subject _:b64
625 - ]) ([ sp:object <http://topbraid.org/sxsd#Choice> ;
626 - sp:predicate rdf:type ;
627 - sp:subject _:b64
628 - ]))
629 - ] [ sp:object _:b64 ;
630 - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
631 - sp:subject _:b63
632 - ])
633 - ] ;
634 - spin:query
635 - [ rdf:type sp:Select ;
636 - sp:resultVariables (_:b67 _:b68 _:b69 _:b70) ;
637 - sp:where ([ sp:object <http://topbraid.org/sxsd#ComplexType> ;
638 sp:predicate rdf:type ; 660 sp:predicate rdf:type ;
639 - sp:subject _:b71 661 + sp:subject _:b68
662 + ] [ sp:object _:b73 ;
663 + sp:predicate rdf:type ;
664 + sp:subject _:b70
640 ] [ rdf:type sp:TriplePath ; 665 ] [ rdf:type sp:TriplePath ;
641 - sp:object _:b72 ; 666 + sp:object _:b74 ;
642 sp:path [ rdf:type sp:ModPath ; 667 sp:path [ rdf:type sp:ModPath ;
643 sp:modMax -2 ; 668 sp:modMax -2 ;
644 sp:modMin 0 ; 669 sp:modMin 0 ;
645 - sp:subPath <http://www.topbraid.org/2007/05/composite.owl#child> 670 + sp:subPath rdfs:subClassOf
646 - ] ;
647 - sp:subject _:b71
648 - ] [ sp:object _:b73 ;
649 - sp:predicate <http://topbraid.org/sxsd#name> ;
650 - sp:subject _:b71
651 - ] [ sp:object _:b70 ;
652 - sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ;
653 - sp:subject _:b72
654 - ] [ sp:object _:b74 ;
655 - sp:predicate <http://topbraid.org/sxsd#name> ;
656 - sp:subject _:b72
657 - ] [ rdf:type sp:Bind ;
658 - sp:expression
659 - [ rdf:type spif:titleCase ;
660 - sp:arg1 _:b74
661 - ] ;
662 - sp:variable _:b75
663 - ] [ rdf:type sp:Bind ;
664 - sp:expression
665 - [ rdf:type smf:buildURI ;
666 - sp:arg1 [ rdf:type fn:concat ;
667 - sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ;
668 - sp:arg2 _:b75
669 - ]
670 - ] ;
671 - sp:variable _:b69
672 - ] [ rdf:type sp:Bind ;
673 - sp:expression
674 - [ rdf:type spif:titleCase ;
675 - sp:arg1 _:b73 ;
676 - sp:arg2 "[a-z]s"
677 - ] ;
678 - sp:variable _:b76
679 - ] [ rdf:type sp:Bind ;
680 - sp:expression
681 - [ rdf:type smf:buildURI ;
682 - sp:arg1 [ rdf:type fn:concat ;
683 - sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
684 - sp:arg2 _:b76
685 - ]
686 - ] ;
687 - sp:variable _:b68
688 - ] [ rdf:type sp:Bind ;
689 - sp:expression
690 - [ rdf:type smf:buildURI ;
691 - sp:arg1 [ rdf:type fn:concat ;
692 - sp:arg1 "http://www.reportinghub.no/map/ddr#" ;
693 - sp:arg2 _:b76 ;
694 - sp:arg3 "-has" ;
695 - sp:arg4 _:b75
696 - ]
697 ] ; 671 ] ;
698 - sp:variable _:b67 672 + sp:subject _:b73
673 + ] [ sp:object _:b75 ;
674 + sp:predicate rdfs:subClassOf ;
675 + sp:subject _:b74
676 + ] [ sp:object owl:Restriction ;
677 + sp:predicate rdf:type ;
678 + sp:subject _:b75
679 + ] [ sp:object _:b69 ;
680 + sp:predicate owl:onProperty ;
681 + sp:subject _:b75
682 + ] [ sp:object _:b72 ;
683 + sp:predicate owl:allValuesFrom ;
684 + sp:subject _:b75
685 + ])
686 + ] ;
687 + spin:rule
688 + [ rdf:type sp:Construct ;
689 + rdfs:comment "STEP 030 - Construct ep-activity type statements"^^xsd:string ;
690 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#DrillingActivity> ;
691 + sp:predicate rdf:type ;
692 + sp:subject _:b76
693 + ]) ;
694 + sp:where ([ sp:object ddr:Cs_activity ;
695 + sp:predicate rdf:type ;
696 + sp:subject _:b76
699 ]) 697 ])
700 ] . 698 ] .
701 699
702 -_:b66 700 +_:b27
703 - sp:varName "e"^^xsd:string . 701 + sp:varName "rangeType"^^xsd:string .
704 -
705 -_:b65
706 - sp:varName "s"^^xsd:string .
707 -
708 -_:b64
709 - sp:varName "p"^^xsd:string .
710 -
711 -_:b63
712 - sp:varName "pp"^^xsd:string .
713 -
714 -_:b76
715 - sp:varName "tcname"^^xsd:string .
716 -
717 -_:b75
718 - sp:varName "tcpname"^^xsd:string .
719 -
720 -_:b74
721 - sp:varName "pname"^^xsd:string .
722 -
723 -_:b73
724 - sp:varName "name"^^xsd:string .
725 -
726 -_:b72
727 - sp:varName "c"^^xsd:string .
728 -
729 -_:b71
730 - sp:varName "s"^^xsd:string .
731 702
732 -_:b70 703 +_:b26
733 - sp:varName "mre"^^xsd:string . 704 + sp:varName "valuesRestriction"^^xsd:string .
734 705
735 -_:b69 706 +_:b25
736 - sp:varName "ddrPU"^^xsd:string . 707 + sp:varName "instClass"^^xsd:string .
737 708
738 -_:b68 709 +_:b24
739 - sp:varName "ddrCU"^^xsd:string . 710 + sp:varName "instType"^^xsd:string .
740 711
741 -_:b67 712 +_:b23
742 - sp:varName "ddrCPU"^^xsd:string . 713 + sp:varName "text"^^xsd:string .
743 714
744 -_:b8 sp:varName "valuesRestriction"^^xsd:string . 715 +_:b22
716 + sp:varName "textNode"^^xsd:string .
745 717
746 -_:b7 sp:varName "instClass"^^xsd:string . 718 +_:b21
719 + sp:varName "childLocalName"^^xsd:string .
747 720
748 -_:b6 sp:varName "instType"^^xsd:string . 721 +_:b20
722 + sp:varName "childType"^^xsd:string .
749 723
750 -_:b5 sp:varName "childType"^^xsd:string . 724 +_:b19
725 + sp:varName "child"^^xsd:string .
751 726
752 -_:b3 sp:varName "inst"^^xsd:string . 727 +_:b17
728 + sp:varName "inst"^^xsd:string .
753 729
754 -_:b2 sp:varName "formalProperty"^^xsd:string . 730 +_:b16
731 + sp:varName "dtpnameU"^^xsd:string .
755 732
756 -_:b1 sp:varName "child"^^xsd:string . 733 +_:b15
734 + sp:varName "dateTime"^^xsd:string .
757 735
758 -_:b20 736 +_:b39
759 sp:varName "rangeType"^^xsd:string . 737 sp:varName "rangeType"^^xsd:string .
760 738
761 -_:b19 739 +_:b38
762 sp:varName "valuesRestriction"^^xsd:string . 740 sp:varName "valuesRestriction"^^xsd:string .
763 741
764 -_:b18 742 +_:b37
765 sp:varName "instClass"^^xsd:string . 743 sp:varName "instClass"^^xsd:string .
766 744
767 -_:b17 745 +_:b36
768 sp:varName "instType"^^xsd:string . 746 sp:varName "instType"^^xsd:string .
769 747
770 -_:b16 748 +_:b35
771 sp:varName "textNode"^^xsd:string . 749 sp:varName "textNode"^^xsd:string .
772 750
773 -_:b15 751 +_:b34
774 sp:varName "childLocalName"^^xsd:string . 752 sp:varName "childLocalName"^^xsd:string .
775 753
776 -_:b14 754 +_:b33
777 sp:varName "childType"^^xsd:string . 755 sp:varName "childType"^^xsd:string .
778 756
779 -_:b13 757 +_:b32
780 sp:varName "child"^^xsd:string . 758 sp:varName "child"^^xsd:string .
781 759
782 -_:b11 760 +_:b30
783 sp:varName "inst"^^xsd:string . 761 sp:varName "inst"^^xsd:string .
784 762
785 -_:b10 763 +_:b29
786 sp:varName "dtpnameU"^^xsd:string . 764 sp:varName "dtpnameU"^^xsd:string .
787 765
788 -_:b9 sp:varName "text"^^xsd:string . 766 +_:b28
767 + sp:varName "text"^^xsd:string .
789 768
790 -_:b33 769 +_:b54
791 sp:varName "text"^^xsd:string . 770 sp:varName "text"^^xsd:string .
792 771
793 -_:b32 772 +_:b53
794 sp:varName "textNode"^^xsd:string . 773 sp:varName "textNode"^^xsd:string .
795 774
796 -_:b31 775 +_:b52
797 - sp:varName "rangeU"^^xsd:string . 776 + sp:varName "allValuesRestriction"^^xsd:string .
798 -
799 -_:b30
800 - sp:varName "valuesRestriction"^^xsd:string .
801 777
802 -_:b29 778 +_:b51
803 sp:varName "instClass"^^xsd:string . 779 sp:varName "instClass"^^xsd:string .
804 780
805 -_:b28 781 +_:b50
806 sp:varName "instType"^^xsd:string . 782 sp:varName "instType"^^xsd:string .
807 783
808 -_:b27 784 +_:b49
809 sp:varName "childLocalName"^^xsd:string . 785 sp:varName "childLocalName"^^xsd:string .
810 786
811 -_:b26 787 +_:b48
812 sp:varName "childType"^^xsd:string . 788 sp:varName "childType"^^xsd:string .
813 789
814 -_:b25 790 +_:b47
815 sp:varName "child"^^xsd:string . 791 sp:varName "child"^^xsd:string .
816 792
817 -_:b23 793 +_:b45
818 sp:varName "inst"^^xsd:string . 794 sp:varName "inst"^^xsd:string .
819 795
820 -_:b22 796 +_:b44
821 sp:varName "opnameU"^^xsd:string . 797 sp:varName "opnameU"^^xsd:string .
822 798
823 -_:b21 799 +_:b43
824 - sp:varName "enumeratedValue"^^xsd:string . 800 + sp:varName "value"^^xsd:string .
825 801
826 -_:b48 802 +_:b42
803 + sp:varName "uom"^^xsd:string .
804 +
805 +_:b40
806 + sp:varName "rangeU"^^xsd:string .
807 +
808 +_:b67
827 sp:varName "text"^^xsd:string . 809 sp:varName "text"^^xsd:string .
828 810
829 -_:b47 811 +_:b66
830 sp:varName "textNode"^^xsd:string . 812 sp:varName "textNode"^^xsd:string .
831 813
832 -_:b46 814 +_:b65
833 - sp:varName "allValuesRestriction"^^xsd:string . 815 + sp:varName "rangeU"^^xsd:string .
834 816
835 -_:b45 817 +_:b64
818 + sp:varName "valuesRestriction"^^xsd:string .
819 +
820 +_:b63
836 sp:varName "instClass"^^xsd:string . 821 sp:varName "instClass"^^xsd:string .
837 822
838 -_:b44 823 +_:b62
839 sp:varName "instType"^^xsd:string . 824 sp:varName "instType"^^xsd:string .
840 825
841 -_:b43 826 +_:b61
842 sp:varName "childLocalName"^^xsd:string . 827 sp:varName "childLocalName"^^xsd:string .
843 828
844 -_:b42 829 +_:b60
845 sp:varName "childType"^^xsd:string . 830 sp:varName "childType"^^xsd:string .
846 831
847 -_:b41 832 +_:b59
848 sp:varName "child"^^xsd:string . 833 sp:varName "child"^^xsd:string .
849 834
850 -_:b39 835 +_:b57
851 sp:varName "inst"^^xsd:string . 836 sp:varName "inst"^^xsd:string .
852 837
853 -_:b38 838 +_:b56
854 sp:varName "opnameU"^^xsd:string . 839 sp:varName "opnameU"^^xsd:string .
855 840
856 -_:b37 841 +_:b55
857 - sp:varName "value"^^xsd:string . 842 + sp:varName "enumeratedValue"^^xsd:string .
858 -
859 -_:b36
860 - sp:varName "uom"^^xsd:string .
861 -
862 -_:b34
863 - sp:varName "rangeU"^^xsd:string .
864 -
865 -_:b61
866 - sp:varName "rangeType"^^xsd:string .
867 843
868 -_:b60 844 +_:b75
869 sp:varName "valuesRestriction"^^xsd:string . 845 sp:varName "valuesRestriction"^^xsd:string .
870 846
871 -_:b59 847 +_:b74
872 sp:varName "instClass"^^xsd:string . 848 sp:varName "instClass"^^xsd:string .
873 849
874 -_:b58 850 +_:b73
875 sp:varName "instType"^^xsd:string . 851 sp:varName "instType"^^xsd:string .
876 852
877 -_:b57 853 +_:b72
878 - sp:varName "text"^^xsd:string . 854 + sp:varName "childType"^^xsd:string .
879 -
880 -_:b56
881 - sp:varName "textNode"^^xsd:string .
882 855
883 -_:b55 856 +_:b70
884 - sp:varName "childLocalName"^^xsd:string . 857 + sp:varName "inst"^^xsd:string .
885 858
886 -_:b54 859 +_:b69
887 - sp:varName "childType"^^xsd:string . 860 + sp:varName "formalProperty"^^xsd:string .
888 861
889 -_:b53 862 +_:b68
890 sp:varName "child"^^xsd:string . 863 sp:varName "child"^^xsd:string .
891 864
892 -_:b51 865 +_:b76
893 - sp:varName "inst"^^xsd:string . 866 + sp:varName "activity"^^xsd:string .
894 867
895 -_:b50 868 +_:b10
896 - sp:varName "dtpnameU"^^xsd:string . 869 + sp:varName "tcname"^^xsd:string .
897 870
898 -_:b49 871 +_:b9 sp:varName "tcpname"^^xsd:string .
899 - sp:varName "dateTime"^^xsd:string .
900 872
901 -_:b62 873 +_:b8 sp:varName "pname"^^xsd:string .
902 - sp:varName "activity"^^xsd:string . 874 +
875 +_:b7 sp:varName "name"^^xsd:string .
876 +
877 +_:b6 sp:varName "c"^^xsd:string .
878 +
879 +_:b5 sp:varName "s"^^xsd:string .
880 +
881 +_:b4 sp:varName "mre"^^xsd:string .
882 +
883 +_:b3 sp:varName "ddrPU"^^xsd:string .
884 +
885 +_:b2 sp:varName "ddrCU"^^xsd:string .
886 +
887 +_:b1 sp:varName "ddrCPU"^^xsd:string .
888 +
889 +_:b14
890 + sp:varName "e"^^xsd:string .
891 +
892 +_:b13
893 + sp:varName "s"^^xsd:string .
894 +
895 +_:b12
896 + sp:varName "p"^^xsd:string .
897 +
898 +_:b11
899 + sp:varName "pp"^^xsd:string .
......
1 -# Saved by TopBraid on Mon Aug 01 13:35:23 PDT 2011 1 +# baseURI: null
2 -# baseURI: http://www.reportinghub.no/ep/transform/normalization 2 +
3 - 3 +@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
4 -@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . 4 +@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> .
5 -@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> . 5 +@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> .
6 -@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> . 6 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
7 -@prefix owl: <http://www.w3.org/2002/07/owl#> . 7 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
8 -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 8 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
9 -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . 9 +@prefix visual: <http://topbraid.org/visual#> .
10 -@prefix visual: <http://topbraid.org/visual#> . 10 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
11 -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 11 +
12 - 12 +[] rdf:type inference:Configuration ;
13 -[] rdf:type inference:Configuration ; 13 + composite:child
14 - composite:child 14 + [ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
15 - [ rdf:type <http://spinrdf.org/spin#TopSPIN> ; 15 + <http://spinrdf.org/spin#topSPINOptions>
16 - composite:index "0"^^xsd:int 16 + "singlePass" ;
17 - ] . 17 + composite:index "0"^^xsd:int
18 + ] ;
19 + inference:completeMode
20 + "true"^^xsd:boolean .
......
1 -# Saved by TopBraid on Mon Aug 01 14:29:25 PDT 2011 1 +# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/normalization
2 -# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/normalization 2 +# imports: http://spinrdf.org/spin
3 -# imports: http://www.reportinghub.no/ep/spin/1.1/lib 3 +# imports: http://www.reportinghub.no/ep/transform/1.1/ddr
4 -# imports: http://www.reportinghub.no/ep/transform/1.1/ddr 4 +
5 -# imports: http://spinrdf.org/spin 5 +@prefix ddr-normalization: <http://www.reportinghub.no/ep/transform/ddr/normalization#> .
6 - 6 +@prefix ddr-normalization-1.1: <http://www.reportinghub.no/ep/transform/1.1/ddr/normalization#> .
7 -@prefix ddr-normalization: <http://www.reportinghub.no/ep/transform/ddr/normalization#> . 7 +@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
8 -@prefix ddr-normalization-1.1: <http://www.reportinghub.no/ep/transform/1.1/ddr/normalization#> . 8 +@prefix normalization: <http://www.reportinghub.no/ep/transform/normalization#> .
9 -@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> . 9 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
10 -@prefix normalization: <http://www.reportinghub.no/ep/transform/normalization#> . 10 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
11 -@prefix owl: <http://www.w3.org/2002/07/owl#> . 11 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
12 -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 12 +@prefix rhspin: <http://www.reportinghub.no/spin/rh#> .
13 -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . 13 +@prefix sp: <http://spinrdf.org/sp#> .
14 -@prefix sp: <http://spinrdf.org/sp#> . 14 +@prefix spin: <http://spinrdf.org/spin#> .
15 -@prefix spin: <http://spinrdf.org/spin#> . 15 +@prefix spl: <http://spinrdf.org/spl#> .
16 -@prefix spl: <http://spinrdf.org/spl#> . 16 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
17 -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 17 +
18 - 18 +<http://www.reportinghub.no/ep/schema/ddr#Obj_drillReport>
19 -<http://www.reportinghub.no/ep/schema/ddr#Obj_drillReport> 19 + spin:rule
20 - spin:rule 20 + [ rdf:type sp:Construct ;
21 - [ rdf:type sp:Construct ; 21 + rdfs:comment "STEP 101 Make Well and Well Bore Instances"^^xsd:string ;
22 - rdfs:comment "STEP 101 Make Well and Well Bore Instances"^^xsd:string ; 22 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
23 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; 23 + sp:predicate rdf:type ;
24 - sp:predicate rdf:type ; 24 + sp:subject _:b1
25 - sp:subject _:b1 25 + ] [ sp:object _:b2 ;
26 - ] [ sp:object _:b2 ; 26 + sp:predicate rdfs:label ;
27 - sp:predicate rdfs:label ; 27 + sp:subject _:b1
28 - sp:subject _:b1 28 + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ;
29 - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ; 29 + sp:predicate rdf:type ;
30 - sp:predicate rdf:type ; 30 + sp:subject _:b3
31 - sp:subject _:b3 31 + ] [ sp:object _:b4 ;
32 - ] [ sp:object _:b4 ; 32 + sp:predicate rdfs:label ;
33 - sp:predicate rdfs:label ; 33 + sp:subject _:b3
34 - sp:subject _:b3 34 + ] [ sp:object _:b1 ;
35 - ] [ sp:object _:b1 ; 35 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
36 - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; 36 + sp:subject _:b3
37 - sp:subject _:b3 37 + ]) ;
38 - ]) ; 38 + sp:where ([ sp:object _:b2 ;
39 - sp:where ([ sp:object _:b2 ; 39 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
40 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ; 40 + sp:subject spin:_this
41 - sp:subject spin:_this 41 + ] [ sp:object _:b4 ;
42 - ] [ sp:object _:b4 ; 42 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWell> ;
43 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWell> ; 43 + sp:subject spin:_this
44 - sp:subject spin:_this 44 + ] [ rdf:type sp:Bind ;
45 - ] [ rdf:type sp:Bind ; 45 + sp:expression
46 - sp:expression 46 + [ rdf:type rhspin:wellByName ;
47 - [ rdf:type ep-spin-lib:normalizeString ; 47 + sp:arg1 _:b4
48 - sp:arg1 _:b4 48 + ] ;
49 - ] ; 49 + sp:variable _:b3
50 - sp:variable _:b5 50 + ] [ rdf:type sp:Bind ;
51 - ] [ rdf:type sp:Bind ; 51 + sp:expression
52 - sp:expression 52 + [ rdf:type rhspin:wellBoreByName ;
53 - [ rdf:type ep-spin-lib:buildWellURI ; 53 + sp:arg1 _:b2
54 - sp:arg1 _:b5 54 + ] ;
55 - ] ; 55 + sp:variable _:b1
56 - sp:variable _:b3 56 + ])
57 - ] [ rdf:type sp:Bind ; 57 + ] .
58 - sp:expression 58 +
59 - [ rdf:type ep-spin-lib:normalizeString ; 59 +<http://www.reportinghub.no/ep/transform/1.1/ddr/normalization>
60 - sp:arg1 _:b2 60 + rdf:type owl:Ontology ;
61 - ] ; 61 + owl:imports <http://www.reportinghub.no/ep/transform/1.1/ddr> , <http://spinrdf.org/spin> ;
62 - sp:variable _:b6 62 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
63 - ] [ rdf:type sp:Bind ; 63 +
64 - sp:expression 64 +_:b4 sp:varName "nameWell"^^xsd:string .
65 - [ rdf:type ep-spin-lib:buildWellBoreURI ; 65 +
66 - sp:arg1 _:b6 66 +_:b3 sp:varName "well"^^xsd:string .
67 - ] ; 67 +
68 - sp:variable _:b1 68 +_:b2 sp:varName "nameWellBore"^^xsd:string .
69 - ]) 69 +
70 - ] . 70 +_:b1 sp:varName "wellBore"^^xsd:string .
71 -
72 -<http://www.reportinghub.no/ep/transform/1.1/ddr/normalization>
73 - rdf:type owl:Ontology ;
74 - owl:imports <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/transform/1.1/ddr> , <http://spinrdf.org/spin> ;
75 - owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
76 -
77 -_:b2 sp:varName "nameWellBore"^^xsd:string .
78 -
79 -_:b4 sp:varName "nameWell"^^xsd:string .
80 -
81 -_:b5 sp:varName "normalizedWellName"^^xsd:string .
82 -
83 -_:b3 sp:varName "normalizedWellNameU"^^xsd:string .
84 -
85 -_:b6 sp:varName "normalizedWellBoreName"^^xsd:string .
86 -
87 -_:b1 sp:varName "normalizedWellBoreNameU"^^xsd:string .
......
1 -# Saved by TopBraid on Mon Aug 01 14:29:25 PDT 2011 1 +# baseURI: null
2 -# baseURI: null 2 +
3 - 3 +@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
4 -@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . 4 +@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> .
5 -@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> . 5 +@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> .
6 -@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> . 6 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
7 -@prefix owl: <http://www.w3.org/2002/07/owl#> . 7 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
8 -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 8 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
9 -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . 9 +@prefix visual: <http://topbraid.org/visual#> .
10 -@prefix visual: <http://topbraid.org/visual#> . 10 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
11 -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 11 +
12 - 12 +[] rdf:type inference:Configuration ;
13 -[] rdf:type inference:Configuration ; 13 + composite:child
14 - composite:child 14 + [ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
15 - [ rdf:type <http://spinrdf.org/spin#TopSPIN> ; 15 + <http://spinrdf.org/spin#topSPINOptions>
16 - <http://spinrdf.org/spin#topSPINOptions> 16 + "singlePass" ;
17 - "singlePass" ; 17 + composite:index "0"^^xsd:int
18 - composite:index "0"^^xsd:int 18 + ] .
19 - ] .
......
1 # baseURI: http://www.reportinghub.no/spin/rh 1 # baseURI: http://www.reportinghub.no/spin/rh
2 +# imports: http://spinrdf.org/spin
2 # imports: http://topbraid.org/spin/spinmapl 3 # imports: http://topbraid.org/spin/spinmapl
3 # imports: http://www.reportinghub.no/1.1/schema/npd 4 # imports: http://www.reportinghub.no/1.1/schema/npd
4 -# imports: http://spinrdf.org/spin
5 5
6 @prefix fn: <http://www.w3.org/2005/xpath-functions#> . 6 @prefix fn: <http://www.w3.org/2005/xpath-functions#> .
7 @prefix owl: <http://www.w3.org/2002/07/owl#> . 7 @prefix owl: <http://www.w3.org/2002/07/owl#> .
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
42 <http://www.reportinghub.no/spin/rh> 42 <http://www.reportinghub.no/spin/rh>
43 rdf:type owl:Ontology ; 43 rdf:type owl:Ontology ;
44 rdfs:comment "A collection of SPIN functions and templates to support working with the ReportingHub schemas."^^xsd:string ; 44 rdfs:comment "A collection of SPIN functions and templates to support working with the ReportingHub schemas."^^xsd:string ;
45 - owl:imports <http://topbraid.org/spin/spinmapl> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/1.1/schema/npd> ; 45 + owl:imports <http://www.reportinghub.no/1.1/schema/npd> , <http://spinrdf.org/spin> , <http://topbraid.org/spin/spinmapl> ;
46 owl:versionInfo "0.1.0"^^xsd:string . 46 owl:versionInfo "0.1.0"^^xsd:string .
47 47
48 rhspin:GetWellBoresOfWell 48 rhspin:GetWellBoresOfWell
...@@ -82,7 +82,7 @@ rhspin:baaById ...@@ -82,7 +82,7 @@ rhspin:baaById
82 [ rdf:type sp:Select ; 82 [ rdf:type sp:Select ;
83 sp:resultVariables ([ rdf:type sp:iri ; 83 sp:resultVariables ([ rdf:type sp:iri ;
84 sp:arg1 [ rdf:type fn:concat ; 84 sp:arg1 [ rdf:type fn:concat ;
85 - sp:arg1 "https://www.reportinghub.no/data/npd/BAA-" ; 85 + sp:arg1 "https://www.reportinghub.no/ep/data/BAA-" ;
86 sp:arg2 [ sp:varName "id"^^xsd:string 86 sp:arg2 [ sp:varName "id"^^xsd:string
87 ] 87 ]
88 ] 88 ]
...@@ -104,7 +104,7 @@ rhspin:companyById ...@@ -104,7 +104,7 @@ rhspin:companyById
104 [ rdf:type sp:Select ; 104 [ rdf:type sp:Select ;
105 sp:resultVariables ([ rdf:type sp:iri ; 105 sp:resultVariables ([ rdf:type sp:iri ;
106 sp:arg1 [ rdf:type fn:concat ; 106 sp:arg1 [ rdf:type fn:concat ;
107 - sp:arg1 "https://www.reportinghub.no/data/npd/Company-" ; 107 + sp:arg1 "https://www.reportinghub.no/ep/data/Company-" ;
108 sp:arg2 [ sp:varName "id"^^xsd:string 108 sp:arg2 [ sp:varName "id"^^xsd:string
109 ] 109 ]
110 ] 110 ]
...@@ -126,7 +126,7 @@ rhspin:discoveryById ...@@ -126,7 +126,7 @@ rhspin:discoveryById
126 [ rdf:type sp:Select ; 126 [ rdf:type sp:Select ;
127 sp:resultVariables ([ rdf:type sp:iri ; 127 sp:resultVariables ([ rdf:type sp:iri ;
128 sp:arg1 [ rdf:type fn:concat ; 128 sp:arg1 [ rdf:type fn:concat ;
129 - sp:arg1 "https://www.reportinghub.no/data/npd/Discovery-" ; 129 + sp:arg1 "https://www.reportinghub.no/ep/data/Discovery-" ;
130 sp:arg2 [ sp:varName "id"^^xsd:string 130 sp:arg2 [ sp:varName "id"^^xsd:string
131 ] 131 ]
132 ] 132 ]
...@@ -148,7 +148,7 @@ rhspin:facilityById ...@@ -148,7 +148,7 @@ rhspin:facilityById
148 [ rdf:type sp:Select ; 148 [ rdf:type sp:Select ;
149 sp:resultVariables ([ rdf:type sp:iri ; 149 sp:resultVariables ([ rdf:type sp:iri ;
150 sp:arg1 [ rdf:type fn:concat ; 150 sp:arg1 [ rdf:type fn:concat ;
151 - sp:arg1 "https://www.reportinghub.no/data/npd/Facility-" ; 151 + sp:arg1 "https://www.reportinghub.no/ep/data/Facility-" ;
152 sp:arg2 [ sp:varName "id"^^xsd:string 152 sp:arg2 [ sp:varName "id"^^xsd:string
153 ] 153 ]
154 ] 154 ]
...@@ -170,7 +170,7 @@ rhspin:fieldById ...@@ -170,7 +170,7 @@ rhspin:fieldById
170 [ rdf:type sp:Select ; 170 [ rdf:type sp:Select ;
171 sp:resultVariables ([ rdf:type sp:iri ; 171 sp:resultVariables ([ rdf:type sp:iri ;
172 sp:arg1 [ rdf:type fn:concat ; 172 sp:arg1 [ rdf:type fn:concat ;
173 - sp:arg1 "https://www.reportinghub.no/data/npd/Field-" ; 173 + sp:arg1 "https://www.reportinghub.no/ep/data/Field-" ;
174 sp:arg2 [ sp:varName "id"^^xsd:string 174 sp:arg2 [ sp:varName "id"^^xsd:string
175 ] 175 ]
176 ] 176 ]
...@@ -192,7 +192,7 @@ rhspin:licenceById ...@@ -192,7 +192,7 @@ rhspin:licenceById
192 [ rdf:type sp:Select ; 192 [ rdf:type sp:Select ;
193 sp:resultVariables ([ rdf:type sp:iri ; 193 sp:resultVariables ([ rdf:type sp:iri ;
194 sp:arg1 [ rdf:type fn:concat ; 194 sp:arg1 [ rdf:type fn:concat ;
195 - sp:arg1 "https://www.reportinghub.no/data/npd/Licence-" ; 195 + sp:arg1 "https://www.reportinghub.no/ep/data/Licence-" ;
196 sp:arg2 [ sp:varName "id"^^xsd:string 196 sp:arg2 [ sp:varName "id"^^xsd:string
197 ] 197 ]
198 ] 198 ]
...@@ -207,6 +207,91 @@ rhspin:licenceById ...@@ -207,6 +207,91 @@ rhspin:licenceById
207 ] ; 207 ] ;
208 spin:returnType <http://www.reportinghub.no/schema/npd#Licence> . 208 spin:returnType <http://www.reportinghub.no/schema/npd#Licence> .
209 209
210 +rhspin:normalizeString
211 + rdf:type spin:Function ;
212 + rdfs:comment "Takes a raw string and \"normalizes\" it, replacing special characters so that they can be used in URIs."^^xsd:string ;
213 + rdfs:label "normalize string"^^xsd:string ;
214 + rdfs:subClassOf spl:StringFunctions ;
215 + spin:body
216 + [ rdf:type sp:Select ;
217 + sp:resultVariables (_:b3) ;
218 + sp:where ([ rdf:type sp:Bind ;
219 + sp:expression
220 + [ rdf:type spif:regex ;
221 + sp:arg1 spin:_arg1 ;
222 + sp:arg2 "\\((.*)\\)" ;
223 + sp:arg3 ""
224 + ] ;
225 + sp:variable _:b4
226 + ] [ rdf:type sp:Bind ;
227 + sp:expression
228 + [ rdf:type spif:trim ;
229 + sp:arg1 _:b4
230 + ] ;
231 + sp:variable _:b5
232 + ] [ rdf:type sp:Bind ;
233 + sp:expression
234 + [ rdf:type spif:encodeURL ;
235 + sp:arg1 _:b5
236 + ] ;
237 + sp:variable _:b6
238 + ] [ rdf:type sp:Bind ;
239 + sp:expression
240 + [ rdf:type spif:regex ;
241 + sp:arg1 _:b6 ;
242 + sp:arg2 "%2F" ;
243 + sp:arg3 "_"
244 + ] ;
245 + sp:variable _:b7
246 + ] [ rdf:type sp:Bind ;
247 + sp:expression
248 + [ rdf:type spif:regex ;
249 + sp:arg1 _:b7 ;
250 + sp:arg2 "%[0-9A-F][0-9A-F]" ;
251 + sp:arg3 ""
252 + ] ;
253 + sp:variable _:b8
254 + ] [ rdf:type sp:Bind ;
255 + sp:expression
256 + [ rdf:type spif:regex ;
257 + sp:arg1 _:b8 ;
258 + sp:arg2 "\\+" ;
259 + sp:arg3 "_"
260 + ] ;
261 + sp:variable _:b9
262 + ] [ rdf:type sp:Bind ;
263 + sp:expression
264 + [ rdf:type spif:regex ;
265 + sp:arg1 _:b9 ;
266 + sp:arg2 "_+" ;
267 + sp:arg3 "_"
268 + ] ;
269 + sp:variable _:b10
270 + ] [ rdf:type sp:Bind ;
271 + sp:expression
272 + [ rdf:type spif:regex ;
273 + sp:arg1 _:b10 ;
274 + sp:arg2 "\\*" ;
275 + sp:arg3 ""
276 + ] ;
277 + sp:variable _:b11
278 + ] [ rdf:type sp:Bind ;
279 + sp:expression
280 + [ rdf:type xsd:string ;
281 + sp:arg1 [ rdf:type spif:upperCase ;
282 + sp:arg1 _:b11
283 + ]
284 + ] ;
285 + sp:variable _:b3
286 + ])
287 + ] ;
288 + spin:constraint
289 + [ rdf:type spl:Argument ;
290 + spl:predicate sp:arg1 ;
291 + spl:valueType xsd:string
292 + ] ;
293 + spin:returnType xsd:string .
294 +
210 rhspin:parentCompanyByName 295 rhspin:parentCompanyByName
211 rdf:type spin:Function ; 296 rdf:type spin:Function ;
212 rdfs:comment "Gets the URI resource of a parent company based on its NPD name."^^xsd:string ; 297 rdfs:comment "Gets the URI resource of a parent company based on its NPD name."^^xsd:string ;
...@@ -216,7 +301,7 @@ rhspin:parentCompanyByName ...@@ -216,7 +301,7 @@ rhspin:parentCompanyByName
216 [ rdf:type sp:Select ; 301 [ rdf:type sp:Select ;
217 sp:resultVariables ([ rdf:type sp:iri ; 302 sp:resultVariables ([ rdf:type sp:iri ;
218 sp:arg1 [ rdf:type fn:concat ; 303 sp:arg1 [ rdf:type fn:concat ;
219 - sp:arg1 "https://www.reportinghub.no/data/npd/ParentCompany-" ; 304 + sp:arg1 "https://www.reportinghub.no/ep/data/ParentCompany-" ;
220 sp:arg2 [ rdf:type spif:replaceAll ; 305 sp:arg2 [ rdf:type spif:replaceAll ;
221 sp:arg1 [ sp:varName "name"^^xsd:string 306 sp:arg1 [ sp:varName "name"^^xsd:string
222 ] ; 307 ] ;
...@@ -243,7 +328,7 @@ rhspin:tufById ...@@ -243,7 +328,7 @@ rhspin:tufById
243 [ rdf:type sp:Select ; 328 [ rdf:type sp:Select ;
244 sp:resultVariables ([ rdf:type sp:iri ; 329 sp:resultVariables ([ rdf:type sp:iri ;
245 sp:arg1 [ rdf:type fn:concat ; 330 sp:arg1 [ rdf:type fn:concat ;
246 - sp:arg1 "https://www.reportinghub.no/data/npd/TUF-" ; 331 + sp:arg1 "https://www.reportinghub.no/ep/data/TUF-" ;
247 sp:arg2 [ sp:varName "id"^^xsd:string 332 sp:arg2 [ sp:varName "id"^^xsd:string
248 ] 333 ]
249 ] 334 ]
...@@ -273,16 +358,10 @@ rhspin:wellBoreByName ...@@ -273,16 +358,10 @@ rhspin:wellBoreByName
273 [ rdf:type sp:Select ; 358 [ rdf:type sp:Select ;
274 sp:resultVariables ([ rdf:type sp:iri ; 359 sp:resultVariables ([ rdf:type sp:iri ;
275 sp:arg1 [ rdf:type fn:concat ; 360 sp:arg1 [ rdf:type fn:concat ;
276 - sp:arg1 "https://www.reportinghub.no/data/npd/WellBore-" ; 361 + sp:arg1 "https://www.reportinghub.no/ep/data/WellBore-" ;
277 - sp:arg2 [ rdf:type spif:replaceAll ; 362 + sp:arg2 [ rdf:type rhspin:normalizeString ;
278 - sp:arg1 [ rdf:type spif:replaceAll ; 363 + sp:arg1 [ sp:varName "wellBoreName"^^xsd:string
279 - sp:arg1 [ sp:varName "wellBoreName"^^xsd:string 364 + ]
280 - ] ;
281 - sp:arg2 " " ;
282 - sp:arg3 "_"
283 - ] ;
284 - sp:arg2 "/" ;
285 - sp:arg3 "__"
286 ] 365 ]
287 ] 366 ]
288 ]) ; 367 ]) ;
...@@ -305,12 +384,10 @@ rhspin:wellByName ...@@ -305,12 +384,10 @@ rhspin:wellByName
305 [ rdf:type sp:Select ; 384 [ rdf:type sp:Select ;
306 sp:resultVariables ([ rdf:type sp:iri ; 385 sp:resultVariables ([ rdf:type sp:iri ;
307 sp:arg1 [ rdf:type fn:concat ; 386 sp:arg1 [ rdf:type fn:concat ;
308 - sp:arg1 "https://www.reportinghub.no/data/npd/Well-" ; 387 + sp:arg1 "https://www.reportinghub.no/ep/data/Well-" ;
309 - sp:arg2 [ rdf:type spif:replaceAll ; 388 + sp:arg2 [ rdf:type rhspin:normalizeString ;
310 sp:arg1 [ sp:varName "wellName"^^xsd:string 389 sp:arg1 [ sp:varName "wellName"^^xsd:string
311 - ] ; 390 + ]
312 - sp:arg2 "/" ;
313 - sp:arg3 "__"
314 ] 391 ]
315 ] 392 ]
316 ]) ; 393 ]) ;
...@@ -324,6 +401,26 @@ rhspin:wellByName ...@@ -324,6 +401,26 @@ rhspin:wellByName
324 ] ; 401 ] ;
325 spin:returnType <http://www.reportinghub.no/schema/npd#Well> . 402 spin:returnType <http://www.reportinghub.no/schema/npd#Well> .
326 403
327 -_:b2 sp:varName "wellBore"^^xsd:string . 404 +_:b3 sp:varName "normalizedStr"^^xsd:string .
405 +
406 +_:b4 sp:varName "s1"^^xsd:string .
407 +
408 +_:b5 sp:varName "s2"^^xsd:string .
409 +
410 +_:b6 sp:varName "t0a"^^xsd:string .
411 +
412 +_:b7 sp:varName "t0b"^^xsd:string .
413 +
414 +_:b8 sp:varName "t1"^^xsd:string .
415 +
416 +_:b9 sp:varName "t2"^^xsd:string .
417 +
418 +_:b10
419 + sp:varName "t3"^^xsd:string .
420 +
421 +_:b11
422 + sp:varName "t4"^^xsd:string .
328 423
329 _:b1 sp:varName "wellBoreName"^^xsd:string . 424 _:b1 sp:varName "wellBoreName"^^xsd:string .
425 +
426 +_:b2 sp:varName "wellBore"^^xsd:string .
......