Holger Knublauch

Added rhspin:GetFields template to support schematron upload page

......@@ -177,6 +177,44 @@ rhspin:DPRTableTemplates
spl:valueType <http://www.reportinghub.no/ep/schema/production-report#DailyProductionReport>
] .
rhspin:GetFields
rdf:type spin:SelectTemplate ;
rdfs:comment "Gets the name and id of all Fields known to the system."^^xsd:string ;
rdfs:label "Get fields"^^xsd:string ;
rdfs:subClassOf spin:SelectTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:distinct "true"^^xsd:boolean ;
sp:orderBy ([ sp:varName "fieldName"^^xsd:string
]) ;
sp:resultVariables ([ sp:varName "fieldName"^^xsd:string
] [ sp:varName "fieldId"^^xsd:string
]) ;
sp:where ([ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Field> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "field"^^xsd:string
]
] [ sp:object
[ sp:varName "fieldName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "field"^^xsd:string
]
] [ sp:object
[ sp:varName "fieldId"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ;
sp:subject
[ sp:varName "field"^^xsd:string
]
]) ;
sp:graphNameNode npdata:npd
])
] .
rhspin:GetFieldsOfCompanyName
rdf:type spin:SelectTemplate ;
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
_:b6 sp:varName "well"^^xsd:string .
_:b4 sp:varName "wellBore"^^xsd:string .
_:b12
sp:varName "wellBore"^^xsd:string .
_:b4 sp:varName "wellBore"^^xsd:string .
_:b8 sp:varName "wellBore"^^xsd:string .
_:b3 sp:varName "wellBoreId"^^xsd:string .
......