Added rhspin:GetFields template to support schematron upload page
Showing
1 changed file
with
40 additions
and
2 deletions
... | @@ -177,6 +177,44 @@ rhspin:DPRTableTemplates | ... | @@ -177,6 +177,44 @@ rhspin:DPRTableTemplates |
177 | spl:valueType <http://www.reportinghub.no/ep/schema/production-report#DailyProductionReport> | 177 | spl:valueType <http://www.reportinghub.no/ep/schema/production-report#DailyProductionReport> |
178 | ] . | 178 | ] . |
179 | 179 | ||
180 | +rhspin:GetFields | ||
181 | + rdf:type spin:SelectTemplate ; | ||
182 | + rdfs:comment "Gets the name and id of all Fields known to the system."^^xsd:string ; | ||
183 | + rdfs:label "Get fields"^^xsd:string ; | ||
184 | + rdfs:subClassOf spin:SelectTemplates ; | ||
185 | + spin:body | ||
186 | + [ rdf:type sp:Select ; | ||
187 | + sp:distinct "true"^^xsd:boolean ; | ||
188 | + sp:orderBy ([ sp:varName "fieldName"^^xsd:string | ||
189 | + ]) ; | ||
190 | + sp:resultVariables ([ sp:varName "fieldName"^^xsd:string | ||
191 | + ] [ sp:varName "fieldId"^^xsd:string | ||
192 | + ]) ; | ||
193 | + sp:where ([ rdf:type sp:NamedGraph ; | ||
194 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Field> ; | ||
195 | + sp:predicate rdf:type ; | ||
196 | + sp:subject | ||
197 | + [ sp:varName "field"^^xsd:string | ||
198 | + ] | ||
199 | + ] [ sp:object | ||
200 | + [ sp:varName "fieldName"^^xsd:string | ||
201 | + ] ; | ||
202 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
203 | + sp:subject | ||
204 | + [ sp:varName "field"^^xsd:string | ||
205 | + ] | ||
206 | + ] [ sp:object | ||
207 | + [ sp:varName "fieldId"^^xsd:string | ||
208 | + ] ; | ||
209 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | ||
210 | + sp:subject | ||
211 | + [ sp:varName "field"^^xsd:string | ||
212 | + ] | ||
213 | + ]) ; | ||
214 | + sp:graphNameNode npdata:npd | ||
215 | + ]) | ||
216 | + ] . | ||
217 | + | ||
180 | rhspin:GetFieldsOfCompanyName | 218 | rhspin:GetFieldsOfCompanyName |
181 | rdf:type spin:SelectTemplate ; | 219 | rdf:type spin:SelectTemplate ; |
182 | rdfs:comment "Gets the fields that a company with a given name has access to. Result variables are ?fieldId and ?fieldName."^^xsd:string ; | 220 | rdfs:comment "Gets the fields that a company with a given name has access to. Result variables are ?fieldId and ?fieldName."^^xsd:string ; |
... | @@ -2645,11 +2683,11 @@ _:b13 | ... | @@ -2645,11 +2683,11 @@ _:b13 |
2645 | 2683 | ||
2646 | _:b6 sp:varName "well"^^xsd:string . | 2684 | _:b6 sp:varName "well"^^xsd:string . |
2647 | 2685 | ||
2648 | -_:b4 sp:varName "wellBore"^^xsd:string . | ||
2649 | - | ||
2650 | _:b12 | 2686 | _:b12 |
2651 | sp:varName "wellBore"^^xsd:string . | 2687 | sp:varName "wellBore"^^xsd:string . |
2652 | 2688 | ||
2689 | +_:b4 sp:varName "wellBore"^^xsd:string . | ||
2690 | + | ||
2653 | _:b8 sp:varName "wellBore"^^xsd:string . | 2691 | _:b8 sp:varName "wellBore"^^xsd:string . |
2654 | 2692 | ||
2655 | _:b3 sp:varName "wellBoreId"^^xsd:string . | 2693 | _:b3 sp:varName "wellBoreId"^^xsd:string . | ... | ... |
-
Please register or login to post a comment