David Leal

Merge branch 'MPR_08-29'

......@@ -881,6 +881,47 @@ ep-dpr-spin-lib:buildShipURI
])
] .
ep-dpr-spin-lib:buildSmallFacilityURI
rdf:type spin:Function ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
rdfs:comment """ar1 is the naming system
arg2 is name of facility"""^^xsd:string ;
sp:resultVariables ([ sp:varName "uri"^^xsd:string
]) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 ""
] ;
sp:arg2 [ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/smallFacility/" ;
sp:arg2 [ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 spin:_arg1
]
] ;
sp:arg3 [ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/smallFacility/" ;
sp:arg2 [ rdf:type fn:concat ;
sp:arg1 [ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 spin:_arg1
] ;
sp:arg2 "$" ;
sp:arg3 [ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 spin:_arg2
]
]
]
] ;
sp:variable
[ sp:varName "uri"^^xsd:string
]
])
] .
ep-dpr-spin-lib:buildStateURI
rdf:type spin:Function ;
rdfs:label "build State URI"^^xsd:string ;
......@@ -7532,15 +7573,6 @@ ep-dpr-spin-lib:selectWorkScale
])
] .
_:b22
sp:varName "volumeFlowRateAtStdType"^^xsd:string .
_:b21
sp:varName "specificVolumeScale"^^xsd:string .
_:b20
sp:varName "safetyActivityType"^^xsd:string .
_:b19
sp:varName "productionFlowPurposeType"^^xsd:string .
......@@ -7588,3 +7620,12 @@ _:b3 sp:varName "uri"^^xsd:string .
_:b2 sp:varName "UUID"^^xsd:string .
_:b1 sp:varName "uri"^^xsd:string .
_:b22
sp:varName "volumeFlowRateAtStdType"^^xsd:string .
_:b21
sp:varName "specificVolumeScale"^^xsd:string .
_:b20
sp:varName "safetyActivityType"^^xsd:string .
......