MonkeyChap

Added more URI functions

# Saved by TopBraid on Wed Oct 12 16:06:08 BST 2011
# Saved by TopBraid on Wed Oct 12 16:32:18 BST 2011
# baseURI: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/schema/1.0/geography
# imports: http://www.reportinghub.no/ep/schema/1.0/well
......@@ -27,6 +27,31 @@
owl:imports <http://www.witsml.org/schemas/131/addendum/combo> , <http://www.reportinghub.no/ep/schema/1.0/production-activity> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/flow> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/geography> , <http://www.reportinghub.no/ep/dpr/spin/1.1/unnamed> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-dpr-spin-lib:BuildDailyProductionReportURI
rdf:type spin:Function ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
rdfs:comment """arg1 is name of the document (this may to change when we sort out the identity lookup)
arg2 is report date"""^^xsd:string ;
sp:resultVariables (_:b1) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/dailyProductionReport/" ;
sp:arg2 [ rdf:type fn:concat ;
sp:arg1 [ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 spin:_arg1
] ;
sp:arg2 "$" ;
sp:arg3 [ sp:varName "docDate"^^xsd:string
]
]
] ;
sp:variable _:b1
])
] .
ep-dpr-spin-lib:Function
rdf:type spin:Function ;
rdfs:label "function"^^xsd:string ;
......@@ -38,7 +63,7 @@ ep-dpr-spin-lib:buildCountryURI
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b1) ;
sp:resultVariables (_:b2) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
......@@ -47,7 +72,7 @@ ep-dpr-spin-lib:buildCountryURI
sp:arg1 spin:_arg1
]
] ;
sp:variable _:b1
sp:variable _:b2
])
] .
......@@ -59,7 +84,7 @@ ep-dpr-spin-lib:buildDailyProductionActivityURI
rdfs:comment """arg1 is name of facility (this is going to change when we sort out the identity lookup)
arg2 is start date
arg3 is end date"""^^xsd:string ;
sp:resultVariables (_:b2) ;
sp:resultVariables (_:b3) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
......@@ -74,7 +99,34 @@ arg3 is end date"""^^xsd:string ;
sp:arg5 spin:_arg3
]
] ;
sp:variable _:b2
sp:variable _:b3
])
] .
ep-dpr-spin-lib:buildDailyProductionOperationsActivityURI
rdf:type spin:Function ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
rdfs:comment """arg1 is name of facility (this is going to change when we sort out the identity lookup)
arg2 is start date
arg3 is end date"""^^xsd:string ;
sp:resultVariables (_:b4) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/dailyProductionOperationsActivity/" ;
sp:arg2 [ rdf:type fn:concat ;
sp:arg1 [ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 spin:_arg1
] ;
sp:arg2 "$" ;
sp:arg3 spin:_arg2 ;
sp:arg4 "$" ;
sp:arg5 spin:_arg3
]
] ;
sp:variable _:b4
])
] .
......@@ -84,7 +136,7 @@ ep-dpr-spin-lib:buildProductFlowURI
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b3) ;
sp:resultVariables (_:b5) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
......@@ -95,7 +147,7 @@ ep-dpr-spin-lib:buildProductFlowURI
sp:arg3 spin:_arg2
]
] ;
sp:variable _:b3
sp:variable _:b5
])
] .
......@@ -105,7 +157,7 @@ ep-dpr-spin-lib:buildProductionFacilityURI
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b4) ;
sp:resultVariables (_:b6) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
......@@ -114,7 +166,7 @@ ep-dpr-spin-lib:buildProductionFacilityURI
sp:arg1 spin:_arg1
]
] ;
sp:variable _:b4
sp:variable _:b6
])
] .
......@@ -124,7 +176,7 @@ ep-dpr-spin-lib:buildProductionFlowURI
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b5) ;
sp:resultVariables (_:b7) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
......@@ -133,7 +185,7 @@ ep-dpr-spin-lib:buildProductionFlowURI
sp:arg1 spin:_arg1
]
] ;
sp:variable _:b5
sp:variable _:b7
])
] .
......@@ -143,7 +195,7 @@ ep-dpr-spin-lib:buildProductionFlowsForAPeriodURI
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b6) ;
sp:resultVariables (_:b8) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
......@@ -156,7 +208,7 @@ ep-dpr-spin-lib:buildProductionFlowsForAPeriodURI
sp:arg5 spin:_arg3
]
] ;
sp:variable _:b6
sp:variable _:b8
])
] .
......@@ -166,7 +218,7 @@ ep-dpr-spin-lib:buildStateURI
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b7) ;
sp:resultVariables (_:b9) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
......@@ -175,7 +227,7 @@ ep-dpr-spin-lib:buildStateURI
sp:arg1 spin:_arg1
]
] ;
sp:variable _:b7
sp:variable _:b9
])
] .
......@@ -185,7 +237,7 @@ ep-dpr-spin-lib:selectProductType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b8) ;
sp:resultVariables (_:b10) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -392,7 +444,7 @@ ep-dpr-spin-lib:selectProductType
]
]
] ;
sp:variable _:b8
sp:variable _:b10
])
] .
......@@ -402,7 +454,7 @@ ep-dpr-spin-lib:selectProductionFacilityType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b9) ;
sp:resultVariables (_:b11) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -581,7 +633,7 @@ ep-dpr-spin-lib:selectProductionFacilityType
]
]
] ;
sp:variable _:b9
sp:variable _:b11
])
] .
......@@ -591,7 +643,7 @@ ep-dpr-spin-lib:selectProductionFlowDefinitionType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b10) ;
sp:resultVariables (_:b12) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -651,7 +703,7 @@ ep-dpr-spin-lib:selectProductionFlowDefinitionType
]
]
] ;
sp:variable _:b10
sp:variable _:b12
])
] .
......@@ -661,7 +713,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b11) ;
sp:resultVariables (_:b13) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -679,7 +731,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType
sp:arg3 <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf>
]
] ;
sp:variable _:b11
sp:variable _:b13
])
] .
......@@ -689,7 +741,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionRelationshipType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b12) ;
sp:resultVariables (_:b14) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -707,7 +759,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionRelationshipType
sp:arg3 <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf>
]
] ;
sp:variable _:b12
sp:variable _:b14
])
] .
......@@ -717,7 +769,7 @@ ep-dpr-spin-lib:selectProductionFlowPurposeType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b13) ;
sp:resultVariables (_:b15) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -868,7 +920,7 @@ ep-dpr-spin-lib:selectProductionFlowPurposeType
]
]
] ;
sp:variable _:b13
sp:variable _:b15
])
] .
......@@ -878,7 +930,7 @@ ep-dpr-spin-lib:selectRelationshipToMeasure
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b14) ;
sp:resultVariables (_:b16) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -952,7 +1004,7 @@ ep-dpr-spin-lib:selectRelationshipToMeasure
]
]
] ;
sp:variable _:b14
sp:variable _:b16
])
] .
......@@ -961,7 +1013,7 @@ ep-dpr-spin-lib:selectSafetyActivityType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b15) ;
sp:resultVariables (_:b17) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -1105,7 +1157,7 @@ ep-dpr-spin-lib:selectSafetyActivityType
]
]
] ;
sp:variable _:b15
sp:variable _:b17
])
] .
......@@ -1115,7 +1167,7 @@ ep-dpr-spin-lib:selectTemporalPartOfAFlowDurationType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b16) ;
sp:resultVariables (_:b18) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -1189,7 +1241,7 @@ ep-dpr-spin-lib:selectTemporalPartOfAFlowDurationType
]
]
] ;
sp:variable _:b16
sp:variable _:b18
])
] .
......@@ -1198,7 +1250,7 @@ ep-dpr-spin-lib:selectTemporalPartOfActivityDurationType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b17) ;
sp:resultVariables (_:b19) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -1272,7 +1324,7 @@ ep-dpr-spin-lib:selectTemporalPartOfActivityDurationType
]
]
] ;
sp:variable _:b17
sp:variable _:b19
])
] .
......@@ -1282,7 +1334,7 @@ ep-dpr-spin-lib:selectVolumeAtStandardTemperaturePressureType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b18) ;
sp:resultVariables (_:b20) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -1307,7 +1359,7 @@ ep-dpr-spin-lib:selectVolumeAtStandardTemperaturePressureType
]
]
] ;
sp:variable _:b18
sp:variable _:b20
])
] .
......@@ -1317,7 +1369,7 @@ ep-dpr-spin-lib:selectVolumeScale
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b19) ;
sp:resultVariables (_:b21) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -1545,45 +1597,53 @@ ep-dpr-spin-lib:selectVolumeScale
]
]
] ;
sp:variable _:b19
sp:variable _:b21
])
] .
_:b2 sp:varName "uri"^^xsd:string .
_:b1 sp:varName "uri"^^xsd:string .
_:b19
_:b4 sp:varName "uri"^^xsd:string .
_:b21
sp:varName "volumeScale"^^xsd:string .
_:b18
_:b20
sp:varName "volumeAtStdType"^^xsd:string .
_:b17
_:b19
sp:varName "prodActType"^^xsd:string .
_:b16
_:b18
sp:varName "temporalPartOfAFlowDurationType"^^xsd:string .
_:b15
_:b17
sp:varName "safetyActivityType"^^xsd:string .
_:b14
_:b16
sp:varName "relationshipToMeasure"^^xsd:string .
_:b13
_:b15
sp:varName "productionFlowPurposeType"^^xsd:string .
_:b12
_:b14
sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
_:b11
_:b13
sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
_:b10
_:b12
sp:varName "productionFlowDefinitionType"^^xsd:string .
_:b9 sp:varName "productionFacilityType"^^xsd:string .
_:b11
sp:varName "productionFacilityType"^^xsd:string .
_:b10
sp:varName "productType"^^xsd:string .
_:b9 sp:varName "uri"^^xsd:string .
_:b8 sp:varName "productType"^^xsd:string .
_:b8 sp:varName "uri"^^xsd:string .
_:b7 sp:varName "uri"^^xsd:string .
......@@ -1591,8 +1651,6 @@ _:b6 sp:varName "uri"^^xsd:string .
_:b5 sp:varName "uri"^^xsd:string .
_:b4 sp:varName "uri"^^xsd:string .
_:b3 sp:varName "uri"^^xsd:string .
_:b1 sp:varName "uri"^^xsd:string .
_:b2 sp:varName "uri"^^xsd:string .
......
# Saved by TopBraid on Wed Oct 12 16:06:08 BST 2011
# Saved by TopBraid on Wed Oct 12 16:32:18 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......