Showing
5 changed files
with
35 additions
and
1 deletions
... | @@ -23,7 +23,7 @@ | ... | @@ -23,7 +23,7 @@ |
23 | 23 | ||
24 | <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> | 24 | <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> |
25 | rdf:type owl:Ontology ; | 25 | rdf:type owl:Ontology ; |
26 | - owl:imports <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.reportinghub.no/ep/schema/1.0/production-activity> , <http://www.reportinghub.no/ep/schema/1.0/production-equipment> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> ; | 26 | + owl:imports <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/production-equipment> , <http://www.reportinghub.no/ep/schema/1.0/production-activity> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> ; |
27 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 27 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
28 | 28 | ||
29 | ep-mpr-spin-lib:Function | 29 | ep-mpr-spin-lib:Function |
... | @@ -1586,6 +1586,40 @@ ep-mpr-spin-lib:selectFrequencyScale | ... | @@ -1586,6 +1586,40 @@ ep-mpr-spin-lib:selectFrequencyScale |
1586 | ]) | 1586 | ]) |
1587 | ] . | 1587 | ] . |
1588 | 1588 | ||
1589 | +ep-mpr-spin-lib:selectIdFromReportingHubUri | ||
1590 | + rdf:type spin:Function ; | ||
1591 | + rdfs:label "select ID from ReportingHub URI"^^xsd:string ; | ||
1592 | + rdfs:subClassOf ep-mpr-spin-lib:Function ; | ||
1593 | + spin:body | ||
1594 | + [ rdf:type sp:Select ; | ||
1595 | + sp:resultVariables ([ sp:varName "id"^^xsd:string | ||
1596 | + ]) ; | ||
1597 | + sp:where ([ rdf:type sp:Bind ; | ||
1598 | + sp:expression | ||
1599 | + [ rdf:type sp:if ; | ||
1600 | + sp:arg1 [ rdf:type sp:eq ; | ||
1601 | + sp:arg1 [ rdf:type fn:substring ; | ||
1602 | + sp:arg1 spin:_arg1 ; | ||
1603 | + sp:arg2 0 ; | ||
1604 | + sp:arg3 5 | ||
1605 | + ] ; | ||
1606 | + sp:arg2 "https" | ||
1607 | + ] ; | ||
1608 | + sp:arg2 [ rdf:type fn:substring ; | ||
1609 | + sp:arg1 spin:_arg1 ; | ||
1610 | + sp:arg2 8 | ||
1611 | + ] ; | ||
1612 | + sp:arg3 [ rdf:type fn:substring ; | ||
1613 | + sp:arg1 spin:_arg1 ; | ||
1614 | + sp:arg2 7 | ||
1615 | + ] | ||
1616 | + ] ; | ||
1617 | + sp:variable | ||
1618 | + [ sp:varName "id"^^xsd:string | ||
1619 | + ] | ||
1620 | + ]) | ||
1621 | + ] . | ||
1622 | + | ||
1589 | ep-mpr-spin-lib:selectInjectedFluidType | 1623 | ep-mpr-spin-lib:selectInjectedFluidType |
1590 | rdf:type spin:Function ; | 1624 | rdf:type spin:Function ; |
1591 | rdfs:label "select InjectedFluidType"^^xsd:string ; | 1625 | rdfs:label "select InjectedFluidType"^^xsd:string ; | ... | ... |
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
-
Please register or login to post a comment