David Leal

Added mapping of Rig and its identifiers

# Saved by TopBraid on Wed Aug 10 10:37:51 BST 2011
# Saved by TopBraid on Wed Aug 10 13:54:55 BST 2011
# baseURI: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.linkedmodel.org/1.2/schema/vaem
......@@ -25,7 +25,7 @@ ep-core:PhysicalThing
rdfs:subClassOf owl:Thing .
ep-core:apiName
rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:DatatypeProperty ;
rdfs:label "API name"^^xsd:string ;
rdfs:range xsd:string ;
rdfs:subPropertyOf ep-core:name .
......@@ -35,11 +35,11 @@ ep-core:basisFor
rdfs:label "basis for"^^xsd:string .
ep-core:derivedFrom
rdf:type owl:ObjectProperty , owl:TransitiveProperty ;
rdf:type owl:TransitiveProperty , owl:ObjectProperty ;
rdfs:label "derived from"^^xsd:string .
ep-core:dtiName
rdf:type owl:FunctionalProperty , owl:DatatypeProperty ;
rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
rdfs:label "DTI name"^^xsd:string ;
rdfs:range xsd:string ;
rdfs:subPropertyOf ep-core:name .
......@@ -60,7 +60,7 @@ ep-core:hasTemporalPart
owl:inverseOf ep-core:partOf .
ep-core:localFieldName
rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:DatatypeProperty ;
rdfs:label "local field name"^^xsd:string ;
rdfs:range xsd:string ;
rdfs:subPropertyOf ep-core:name .
......@@ -71,13 +71,19 @@ ep-core:name
rdfs:range xsd:string .
ep-core:npdCode
rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:DatatypeProperty ;
rdfs:label "NPD code"^^xsd:string ;
rdfs:range xsd:string ;
rdfs:subPropertyOf ep-core:name .
ep-core:npdNumber
ep-core:npdName
rdf:type owl:FunctionalProperty , owl:DatatypeProperty ;
rdfs:label "NPD name"^^xsd:string ;
rdfs:range xsd:string ;
rdfs:subPropertyOf ep-core:name .
ep-core:npdNumber
rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
rdfs:label "NPD number"^^xsd:string ;
rdfs:range xsd:string ;
rdfs:subPropertyOf ep-core:name .
......@@ -90,7 +96,7 @@ ep-core:partOf
owl:inverseOf ep-core:hasPart .
ep-core:prospectName
rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:DatatypeProperty ;
rdfs:label "prospect name"^^xsd:string ;
rdfs:range xsd:string ;
rdfs:subPropertyOf ep-core:name .
......
# baseURI: http://www.reportinghub.no/ep/schema/1.0/facility
# imports: http://purl.org/dc/elements/1.1/
# imports: http://purl.org/dc/terms/
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/schema/1.0/core
@prefix ep-fac: <http://www.reportinghub.no/ep/schema/facility#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/schema/1.0/facility>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/core> , <http://spinrdf.org/spin> , <http://purl.org/dc/terms/> , <http://purl.org/dc/elements/1.1/> ;
owl:versionInfo "0.1.0"^^xsd:string .
ep-fac:Facility
rdf:type owl:Class ;
rdfs:label "facility"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/core#PhysicalObject> .
ep-fac:FixedFacility
rdf:type owl:DeprecatedClass ;
rdfs:subClassOf ep-fac:Facility .
ep-fac:MoveableFacility
rdf:type owl:Class ;
rdfs:subClassOf ep-fac:Facility .
ep-fac:Rig
rdf:type owl:Class ;
rdfs:subClassOf ep-fac:Facility .
ep-fac:SubSurfaceFixedFacility
rdf:type owl:Class ;
rdfs:subClassOf ep-fac:FixedFacility .
ep-fac:SurfaceFixedFacility
rdf:type owl:Class ;
rdfs:subClassOf ep-fac:FixedFacility .
# Saved by TopBraid on Wed Aug 10 13:32:44 BST 2011
# baseURI: http://www.reportinghub.no/ep/schema/1.0/facility
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://purl.org/dc/elements/1.1/
# imports: http://spinrdf.org/spin
# imports: http://purl.org/dc/terms/
@prefix ep-fac: <http://www.reportinghub.no/ep/schema/facility#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/schema/1.0/facility>
rdf:type owl:Ontology ;
owl:imports <http://purl.org/dc/elements/1.1/> , <http://purl.org/dc/terms/> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/core> ;
owl:versionInfo "0.1.0"^^xsd:string .
ep-fac:AllOrPartOfTheLifeOfARig
rdf:type owl:Class ;
rdfs:label "all or part of the life of a rig"^^xsd:string ;
rdfs:subClassOf ep-fac:Facility .
ep-fac:Facility
rdf:type owl:Class ;
rdfs:label "facility"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/core#PhysicalObject> .
ep-fac:FixedFacility
rdf:type owl:DeprecatedClass ;
rdfs:subClassOf ep-fac:Facility .
ep-fac:MoveableFacility
rdf:type owl:Class ;
rdfs:subClassOf ep-fac:Facility .
ep-fac:Rig
rdf:type owl:Class ;
rdfs:label "rig"^^xsd:string ;
rdfs:subClassOf ep-fac:AllOrPartOfTheLifeOfARig .
ep-fac:SubSurfaceFixedFacility
rdf:type owl:Class ;
rdfs:subClassOf ep-fac:FixedFacility .
ep-fac:SurfaceFixedFacility
rdf:type owl:Class ;
rdfs:subClassOf ep-fac:FixedFacility .
ep-fac:TemporalPartOfARig
rdf:type owl:Class ;
rdfs:label "temporal part of a rig"^^xsd:string ;
rdfs:subClassOf ep-fac:AllOrPartOfTheLifeOfARig .
......
# Saved by TopBraid on Wed Aug 10 10:38:00 BST 2011
# Saved by TopBraid on Wed Aug 10 13:36:32 BST 2011
# baseURI: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/schema/1.0/report
# imports: http://www.reportinghub.no/ep/schema/1.0/core
......@@ -115,13 +115,53 @@ ep-spin-lib:buildPartActivityURI
])
] .
ep-spin-lib:buildRigURI
rdf:type spin:Function ;
rdfs:label "build Rig URI"^^xsd:string ;
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b5) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/Rig/" ;
sp:arg2 spin:_arg1
] ;
sp:variable _:b5
])
] .
ep-spin-lib:buildTemporalPartOfARigURI
rdf:type spin:Function ;
rdfs:label "build TemporalPartOfRig URI"^^xsd:string ;
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b6) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/Rig/" ;
sp:arg2 [ rdf:type fn:concat ;
sp:arg1 spin:_arg1 ;
sp:arg2 "$" ;
sp:arg3 spin:_arg2 ;
sp:arg4 "$" ;
sp:arg5 spin:_arg3
]
] ;
sp:variable _:b6
])
] .
ep-spin-lib:buildTemporalPartOfAWellBoreURI
rdf:type spin:Function ;
rdfs:label "build TemporalPartOfWellBore URI"^^xsd:string ;
rdfs:subClassOf ep-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 ;
......@@ -134,7 +174,7 @@ ep-spin-lib:buildTemporalPartOfAWellBoreURI
sp:arg5 spin:_arg3
]
] ;
sp:variable _:b5
sp:variable _:b7
])
] .
......@@ -144,7 +184,7 @@ ep-spin-lib:buildURI
rdfs:subClassOf ep-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 sp:iri ;
......@@ -153,17 +193,17 @@ ep-spin-lib:buildURI
sp:arg2 spin:_arg2
]
] ;
sp:variable _:b6
sp:variable _:b8
])
] ;
spin:constraint
[ rdf:type spl:Argument ;
spl:predicate sp:arg2 ;
spl:predicate sp:arg1 ;
spl:valueType xsd:string
] ;
spin:constraint
[ rdf:type spl:Argument ;
spl:predicate sp:arg1 ;
spl:predicate sp:arg2 ;
spl:valueType xsd:string
] .
......@@ -173,7 +213,7 @@ ep-spin-lib:normalizeString
rdfs:subClassOf ep-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 smf:regex ;
......@@ -181,67 +221,67 @@ ep-spin-lib:normalizeString
sp:arg2 "\\((.*)\\)" ;
sp:arg3 ""
] ;
sp:variable _:b8
sp:variable _:b10
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:trim ;
sp:arg1 _:b8
sp:arg1 _:b10
] ;
sp:variable _:b9
sp:variable _:b11
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:encodeURL ;
sp:arg1 _:b9
sp:arg1 _:b11
] ;
sp:variable _:b10
sp:variable _:b12
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
sp:arg1 _:b10 ;
sp:arg1 _:b12 ;
sp:arg2 "%2F" ;
sp:arg3 "_"
] ;
sp:variable _:b11
sp:variable _:b13
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
sp:arg1 _:b11 ;
sp:arg1 _:b13 ;
sp:arg2 "%[0-9A-F][0-9A-F]" ;
sp:arg3 ""
] ;
sp:variable _:b12
sp:variable _:b14
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
sp:arg1 _:b12 ;
sp:arg1 _:b14 ;
sp:arg2 "\\+" ;
sp:arg3 "_"
] ;
sp:variable _:b13
sp:variable _:b15
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
sp:arg1 _:b13 ;
sp:arg1 _:b15 ;
sp:arg2 "_+" ;
sp:arg3 "_"
] ;
sp:variable _:b14
sp:variable _:b16
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
sp:arg1 _:b14 ;
sp:arg1 _:b16 ;
sp:arg2 "\\*" ;
sp:arg3 ""
] ;
sp:variable _:b15
sp:variable _:b17
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:string ;
sp:arg1 [ rdf:type smf:upperCase ;
sp:arg1 _:b15
sp:arg1 _:b17
]
] ;
sp:variable _:b7
sp:variable _:b9
])
] ;
spin:constraint
......@@ -256,7 +296,7 @@ ep-spin-lib:selectDailyDrillingReportType
rdfs:subClassOf ep-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 ;
......@@ -274,7 +314,7 @@ ep-spin-lib:selectDailyDrillingReportType
sp:arg3 <http://www.reportinghub.no/ep/schema/report#FinalDailyDrillingReport>
]
] ;
sp:variable _:b16
sp:variable _:b18
])
] .
......@@ -284,7 +324,7 @@ ep-spin-lib:selectDrillingActivityPurposeType
rdfs:subClassOf ep-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 smf:if ;
......@@ -868,7 +908,7 @@ ep-spin-lib:selectDrillingActivityPurposeType
]
]
] ;
sp:variable _:b17
sp:variable _:b19
])
] .
......@@ -878,7 +918,7 @@ ep-spin-lib:selectLabelOfSystem
rdfs:subClassOf ep-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 ;
......@@ -924,7 +964,7 @@ ep-spin-lib:selectLabelOfSystem
]
]
] ;
sp:variable _:b18
sp:variable _:b20
])
] .
......@@ -934,7 +974,7 @@ ep-spin-lib:selectPressureTestType
rdfs:subClassOf ep-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 smf:if ;
......@@ -951,7 +991,7 @@ ep-spin-lib:selectPressureTestType
sp:arg2 <http://www.reportinghub.no/ep/schema/1.0/activity#LeakOffTest>
]
] ;
sp:variable _:b19
sp:variable _:b21
])
] .
......@@ -961,60 +1001,66 @@ ep-spin-lib:selectWellBoreDrillingType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b20) ;
sp:where ([ sp:object _:b20 ;
sp:resultVariables (_:b22) ;
sp:where ([ sp:object _:b22 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#mapsTo> ;
sp:subject spin:_arg1
])
] .
_:b7 sp:varName "normalizedStr"^^xsd:string .
_:b1 sp:varName "uri"^^xsd:string .
_:b8 sp:varName "s1"^^xsd:string .
_:b2 sp:varName "uri"^^xsd:string .
_:b9 sp:varName "s2"^^xsd:string .
_:b3 sp:varName "uri"^^xsd:string .
_:b4 sp:varName "uri"^^xsd:string .
_:b7 sp:varName "uri"^^xsd:string .
_:b8 sp:varName "uri"^^xsd:string .
_:b9 sp:varName "normalizedStr"^^xsd:string .
_:b10
sp:varName "t0a"^^xsd:string .
sp:varName "s1"^^xsd:string .
_:b11
sp:varName "t0b"^^xsd:string .
sp:varName "s2"^^xsd:string .
_:b12
sp:varName "t1"^^xsd:string .
sp:varName "t0a"^^xsd:string .
_:b13
sp:varName "t2"^^xsd:string .
sp:varName "t0b"^^xsd:string .
_:b14
sp:varName "t3"^^xsd:string .
sp:varName "t1"^^xsd:string .
_:b15
sp:varName "t4"^^xsd:string .
sp:varName "t2"^^xsd:string .
_:b16
sp:varName "dailyDrillingReportType"^^xsd:string .
sp:varName "t3"^^xsd:string .
_:b17
sp:varName "drillingActivityPurposeType"^^xsd:string .
sp:varName "t4"^^xsd:string .
_:b18
sp:varName "dailyDrillingReportType"^^xsd:string .
_:b19
sp:varName "pressureTestType"^^xsd:string .
sp:varName "drillingActivityPurposeType"^^xsd:string .
_:b20
sp:varName "wellBoreDrillingType"^^xsd:string .
_:b18
sp:varName "dailyDrillingReportType"^^xsd:string .
_:b1 sp:varName "uri"^^xsd:string .
_:b2 sp:varName "uri"^^xsd:string .
_:b21
sp:varName "pressureTestType"^^xsd:string .
_:b3 sp:varName "uri"^^xsd:string .
_:b22
sp:varName "wellBoreDrillingType"^^xsd:string .
_:b4 sp:varName "uri"^^xsd:string .
_:b6 sp:varName "uri"^^xsd:string .
_:b5 sp:varName "uri"^^xsd:string .
_:b6 sp:varName "uri"^^xsd:string .
......
# Saved by TopBraid on Wed Aug 10 10:38:00 BST 2011
# Saved by TopBraid on Wed Aug 10 13:36:32 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Wed Aug 10 11:35:30 BST 2011
# Saved by TopBraid on Wed Aug 10 14:09:07 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/normalization
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/activity
# imports: http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias
# imports: http://www.reportinghub.no/ep/transform/1.1/wellboreInfo
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo
......@@ -15,11 +16,12 @@
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix wellAndWellBoreAlias: <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias#> .
@prefix wellboreInfo: <http://www.reportinghub.no/ep/transform/1.1/wellboreInfo#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/transform/1.1/normalization>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias> , <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> , <http://www.reportinghub.no/ep/transform/1.1/ddr/activity> , <http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo> ;
owl:imports <http://www.reportinghub.no/ep/transform/1.1/wellboreInfo> , <http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo> , <http://www.reportinghub.no/ep/transform/1.1/ddr/activity> , <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> , <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
owl:Thing
......
# Saved by TopBraid on Wed Aug 10 11:35:30 BST 2011
# Saved by TopBraid on Wed Aug 10 14:09:07 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr
# imports: http://spinrdf.org/spin
# imports: http://topbraid.org/sxml
# imports: http://www.reportinghub.no/ep/schema/1.0/activity
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.reportinghub.no/ep/schema/1.0/ddr
# imports: http://www.reportinghub.no/ep/schema/1.0/equipment
# imports: http://www.reportinghub.no/ep/schema/1.0/report
# imports: http://www.reportinghub.no/ep/schema/1.0/well
@prefix NPD_110412124707: <file:///www.reportinghub.no/input/NPD_110412124707.xml#> .
@prefix NPD_1104121247071: <file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml#> .
@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> .
@prefix ddr: <http://www.reportinghub.no/ep/schema/ddr#> .
@prefix fn: <http://www.w3.org/2005/xpath-functions#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix smf: <http://topbraid.org/sparqlmotionfunctions#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spif: <http://spinrdf.org/spif#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix sxml: <http://topbraid.org/sxml#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
ddr:Cs_activity
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 030 - Construct ep-activity type statements"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#DrillingActivity> ;
sp:predicate rdf:type ;
sp:subject spin:_this
]) ;
sp:where ()
] ;
sxml:element "witsml:activity"^^xsd:string .
ddr:Cs_alias
sxml:element "witsml:rigAlias"^^xsd:string , "witsml:alias" .
ddr:Cs_bitRecord
sxml:element "witsml:bitRecord" .
ddr:Cs_documentAudit
sxml:element "witsml:documentAudit" .
ddr:Cs_documentEvent
sxml:element "witsml:documentEvent" .
ddr:Cs_documentFileCreation
sxml:element "witsml:documentFileCreation" .
ddr:Cs_documentInfo
sxml:element "witsml:documentInfo" .
ddr:Cs_documentSecurityInfo
sxml:element "witsml:documentSecurityInfo" .
ddr:Cs_drillReportControlIncidentInfo
sxml:element "witsml:drillReportControlIncidentInfo" .
ddr:Cs_drillReportCoreInfo
sxml:element "witsml:drillReportCoreInfo" .
ddr:Cs_drillReportEquipFailureInfo
sxml:element "witsml:drillReportEquipFailureInfo" .
ddr:Cs_drillReportFormTestInfo
sxml:element "witsml:drillReportFormTestInfo" .
ddr:Cs_drillReportGasReadingInfo
sxml:element "witsml:drillReportGasReadingInfo" .
ddr:Cs_drillReportLithShowInfo
sxml:element "witsml:drillReportLithShowInfo" .
ddr:Cs_drillReportLogInfo
sxml:element "witsml:drillReportLogInfo" .
ddr:Cs_drillReportPerfInfo
sxml:element "witsml:drillReportPerfInfo" .
ddr:Cs_drillReportPorePressure
sxml:element "witsml:drillReportPorePressure" .
ddr:Cs_drillReportStatusInfo
sxml:element "witsml:statusInfo"^^xsd:string , "witsml:drillReportStatusInfo" .
ddr:Cs_drillReportStratInfo
sxml:element "witsml:drillReportStratInfo" .
ddr:Cs_drillReportSurveyStation
sxml:element "witsml:drillReportSurveyStation" .
ddr:Cs_drillReportWellTestInfo
sxml:element "witsml:drillReportWellTestInfo" .
ddr:Cs_drillReportWellboreInfo
sxml:element "witsml:wellboreInfo"^^xsd:string .
ddr:Cs_fluid
sxml:element "witsml:fluid" .
ddr:Cs_geodeticModel
sxml:element "witsml:geodeticModel" .
ddr:Cs_localCRS
sxml:element "witsml:localCRS" .
ddr:Cs_location
sxml:element "witsml:location" .
ddr:Cs_projectionx
sxml:element "witsml:projectionx" .
ddr:Cs_refWellWellbore
sxml:element "witsml:refWellWellbore" .
ddr:Cs_refWellWellboreRig
sxml:element "witsml:refWellWellboreRig" .
ddr:Cs_wellAlias
sxml:element "witsml:wellAlias" , "witsml:wellboreAlias"^^xsd:string .
ddr:Cs_wellCRS
sxml:element "witsml:wellCRS" .
ddr:Cs_wellDatum
sxml:element "witsml:wellDatum" .
ddr:DrillReports
sxml:element "witsml:drillReports"^^xsd:string .
ddr:Obj_drillReport
sxml:element "witsml:drillReport"^^xsd:string .
ddr:Thing
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 004 - Construct UOM values"^^xsd:string ;
sp:templates ([ sp:object _:b1 ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object _:b3 ;
sp:predicate ddr:uom ;
sp:subject _:b2
] [ sp:object _:b4 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b2
] [ sp:object _:b2 ;
sp:predicate _:b5 ;
sp:subject spin:_this
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b6
] [ sp:object spin:_this ;
sp:predicate rdf:subject ;
sp:subject _:b6
] [ sp:object _:b5 ;
sp:predicate rdf:predicate ;
sp:subject _:b6
] [ sp:object _:b4 ;
sp:predicate rdf:object ;
sp:subject _:b6
] [ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b7
]) ;
sp:where ([ sp:object _:b7 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject spin:_this
] [ sp:object _:b8 ;
sp:predicate rdf:type ;
sp:subject _:b7
] [ sp:object _:b3 ;
sp:predicate ddr:uom ;
sp:subject _:b7
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "aNode"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b7
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 _:b8
] ;
sp:variable _:b9
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
sp:arg2 _:b9
]
] ;
sp:variable _:b5
] [ sp:object owl:ObjectProperty ;
sp:predicate rdf:type ;
sp:subject _:b5
] [ sp:object _:b5 ;
sp:predicate owl:onProperty ;
sp:subject _:b10
] [ sp:object _:b1 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b10
] [ sp:object _:b11 ;
sp:predicate rdf:type ;
sp:subject spin:_this
] [ rdf:type sp:TriplePath ;
sp:object _:b10 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b11
] [ sp:object _:b12 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b7
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b12
] [ sp:object _:b13 ;
sp:predicate sxml:text ;
sp:subject _:b12
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:double ;
sp:arg1 _:b13
] ;
sp:variable _:b4
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 006 - Construct Enumerated Values"^^xsd:string ;
sp:templates ([ sp:object _:b14 ;
sp:predicate _:b15 ;
sp:subject spin:_this
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b16
] [ sp:object spin:_this ;
sp:predicate rdf:subject ;
sp:subject _:b16
] [ sp:object _:b15 ;
sp:predicate rdf:predicate ;
sp:subject _:b16
] [ sp:object _:b14 ;
sp:predicate rdf:object ;
sp:subject _:b16
] [ sp:object _:b16 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b17
]) ;
sp:where ([ sp:object _:b17 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject spin:_this
] [ sp:object _:b18 ;
sp:predicate rdf:type ;
sp:subject _:b17
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "uom"^^xsd:string
] ;
sp:predicate ddr:uom ;
sp:subject _:b17
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:titleCase ;
sp:arg1 [ rdf:type afn:localname ;
sp:arg1 _:b18
]
] ;
sp:variable _:b19
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#enum" ;
sp:arg2 _:b19
]
] ;
sp:variable _:b15
] [ sp:object owl:ObjectProperty ;
sp:predicate rdf:type ;
sp:subject _:b15
] [ sp:object _:b15 ;
sp:predicate owl:onProperty ;
sp:subject _:b20
] [ sp:object _:b21 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b20
] [ sp:object _:b22 ;
sp:predicate rdf:type ;
sp:subject spin:_this
] [ rdf:type sp:TriplePath ;
sp:object _:b20 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b22
] [ rdf:type sp:TriplePath ;
sp:object <http://www.linkedmodel.org/schema/dtype#EnumeratedValue> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b21
] [ sp:object _:b23 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b17
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b23
] [ sp:object _:b24 ;
sp:predicate sxml:text ;
sp:subject _:b23
] [ sp:object _:b21 ;
sp:predicate rdf:type ;
sp:subject _:b14
] [ sp:object _:b24 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b14
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 020 - Construct all other object properties - WIP"^^xsd:string ;
sp:templates ([ sp:object _:b25 ;
sp:predicate _:b26 ;
sp:subject spin:_this
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b27
] [ sp:object spin:_this ;
sp:predicate rdf:subject ;
sp:subject _:b27
] [ sp:object _:b26 ;
sp:predicate rdf:predicate ;
sp:subject _:b27
] [ sp:object _:b25 ;
sp:predicate rdf:object ;
sp:subject _:b27
] [ sp:object _:b27 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b25
]) ;
sp:where ([ sp:object _:b28 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b29
] [ sp:object _:b26 ;
sp:predicate owl:onProperty ;
sp:subject _:b29
] [ sp:object _:b28 ;
sp:predicate rdf:type ;
sp:subject _:b25
] [ sp:object _:b25 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject spin:_this
] [ sp:object _:b30 ;
sp:predicate rdf:type ;
sp:subject spin:_this
] [ rdf:type sp:TriplePath ;
sp:object _:b29 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b30
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 002 - Construct datatype datetime values"^^xsd:string ;
sp:templates ([ sp:object _:b31 ;
sp:predicate _:b32 ;
sp:subject spin:_this
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b33
] [ sp:object spin:_this ;
sp:predicate rdf:subject ;
sp:subject _:b33
] [ sp:object _:b32 ;
sp:predicate rdf:predicate ;
sp:subject _:b33
] [ sp:object _:b31 ;
sp:predicate rdf:object ;
sp:subject _:b33
] [ sp:object _:b33 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b34
]) ;
sp:where ([ sp:object _:b34 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject spin:_this
] [ sp:object _:b35 ;
sp:predicate rdf:type ;
sp:subject _:b34
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "uom"^^xsd:string
] ;
sp:predicate ddr:uom ;
sp:subject _:b34
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 _:b35
] ;
sp:variable _:b36
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
sp:arg2 _:b36
]
] ;
sp:variable _:b32
] [ sp:object owl:DatatypeProperty ;
sp:predicate rdf:type ;
sp:subject _:b32
] [ sp:object _:b32 ;
sp:predicate owl:onProperty ;
sp:subject _:b37
] [ sp:object _:b38 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b37
] [ rdf:type sp:TriplePath ;
sp:object xsd:dateTime ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b38
] [ sp:object _:b39 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b34
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b39
] [ sp:object _:b40 ;
sp:predicate sxml:text ;
sp:subject _:b39
] [ sp:object _:b41 ;
sp:predicate rdf:type ;
sp:subject spin:_this
] [ rdf:type sp:TriplePath ;
sp:object _:b37 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b41
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:dateTime ;
sp:arg1 _:b40
] ;
sp:variable _:b31
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 003 - Construct datatype string values"^^xsd:string ;
sp:templates ([ sp:object _:b42 ;
sp:predicate _:b43 ;
sp:subject spin:_this
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b44
] [ sp:object spin:_this ;
sp:predicate rdf:subject ;
sp:subject _:b44
] [ sp:object _:b43 ;
sp:predicate rdf:predicate ;
sp:subject _:b44
] [ sp:object _:b42 ;
sp:predicate rdf:object ;
sp:subject _:b44
] [ sp:object _:b44 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b45
]) ;
sp:where ([ sp:object _:b45 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject spin:_this
] [ sp:object _:b46 ;
sp:predicate rdf:type ;
sp:subject _:b45
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "uom"^^xsd:string
] ;
sp:predicate ddr:uom ;
sp:subject _:b45
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 _:b46
] ;
sp:variable _:b47
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
sp:arg2 _:b47
]
] ;
sp:variable _:b43
] [ sp:object owl:DatatypeProperty ;
sp:predicate rdf:type ;
sp:subject _:b43
] [ sp:object _:b43 ;
sp:predicate owl:onProperty ;
sp:subject _:b48
] [ sp:object _:b49 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b48
] [ rdf:type sp:TriplePath ;
sp:object xsd:string ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b49
] [ sp:object _:b50 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b45
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b50
] [ sp:object _:b42 ;
sp:predicate sxml:text ;
sp:subject _:b50
] [ sp:object _:b51 ;
sp:predicate rdf:type ;
sp:subject spin:_this
] [ rdf:type sp:TriplePath ;
sp:object _:b48 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b51
])
] .
ddr:schemaLocation
rdfs:domain ddr:Obj_drillReports ;
sxml:attribute "xsi:schemaLocation"^^xsd:string .
ddr:uom
sxml:attribute "uom"^^xsd:string .
ddr:version
rdfs:domain ddr:DrillReports ;
sxml:attribute "version"^^xsd:string .
<http://www.reportinghub.no/ep/transform/1.1/ddr>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://topbraid.org/sxml> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/activity> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
owl:Thing
spin:query
[ rdf:type sp:Select ;
sp:resultVariables (_:b52 _:b53 _:b54 _:b55) ;
sp:where ([ sp:object <http://topbraid.org/sxsd#ComplexType> ;
sp:predicate rdf:type ;
sp:subject _:b56
] [ rdf:type sp:TriplePath ;
sp:object _:b57 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath <http://www.topbraid.org/2007/05/composite.owl#child>
] ;
sp:subject _:b56
] [ sp:object _:b58 ;
sp:predicate <http://topbraid.org/sxsd#name> ;
sp:subject _:b56
] [ sp:object _:b55 ;
sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ;
sp:subject _:b57
] [ sp:object _:b59 ;
sp:predicate <http://topbraid.org/sxsd#name> ;
sp:subject _:b57
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:titleCase ;
sp:arg1 _:b59
] ;
sp:variable _:b60
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ;
sp:arg2 _:b60
]
] ;
sp:variable _:b54
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:titleCase ;
sp:arg1 _:b58 ;
sp:arg2 "[a-z]s"
] ;
sp:variable _:b61
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
sp:arg2 _:b61
]
] ;
sp:variable _:b53
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/map/ddr#" ;
sp:arg2 _:b61 ;
sp:arg3 "-has" ;
sp:arg4 _:b60
]
] ;
sp:variable _:b52
])
] ;
spin:query
[ rdf:type sp:Select ;
sp:resultVariables (_:b62 _:b63 _:b64 _:b65) ;
sp:where ([ sp:object _:b65 ;
sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ;
sp:subject _:b64
] [ sp:object _:b64 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b63
] [ rdf:type sp:Union ;
sp:elements (([ sp:object <http://topbraid.org/sxsd#Sequence> ;
sp:predicate rdf:type ;
sp:subject _:b63
]) ([ sp:object <http://topbraid.org/sxsd#Choice> ;
sp:predicate rdf:type ;
sp:subject _:b63
]))
] [ sp:object _:b63 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b62
])
] ;
spin:query
[ rdf:type sp:Select ;
sp:where ([ sp:object
[ sp:varName "p"^^xsd:string
] ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b66
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "b"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b66
])
])
] ;
spin:update
[ rdf:type sp:Modify ;
sp:deletePattern ([ sp:object _:b67 ;
sp:predicate rdfs:label ;
sp:subject _:b68
]) ;
sp:insertPattern ([ sp:object _:b69 ;
sp:predicate rdfs:label ;
sp:subject _:b68
]) ;
sp:where ([ sp:object _:b68 ;
sp:predicate owl:onProperty ;
sp:subject
[ sp:varName "r"^^xsd:string
]
] [ sp:object _:b67 ;
sp:predicate rdfs:label ;
sp:subject _:b68
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type fn:starts-with ;
sp:arg1 _:b67 ;
sp:arg2 "has"
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:trim ;
sp:arg1 [ rdf:type smf:regex ;
sp:arg1 _:b67 ;
sp:arg2 "has(.*)" ;
sp:arg3 "$1"
]
] ;
sp:variable _:b69
])
] .
_:b42
sp:varName "text"^^xsd:string .
_:b43
sp:varName "dtpnameU"^^xsd:string .
_:b45
sp:varName "child"^^xsd:string .
_:b46
sp:varName "childType"^^xsd:string .
_:b47
sp:varName "childLocalName"^^xsd:string .
_:b48
sp:varName "valuesRestriction"^^xsd:string .
_:b49
sp:varName "rangeType"^^xsd:string .
_:b50
sp:varName "textNode"^^xsd:string .
_:b51
sp:varName "instType"^^xsd:string .
_:b31
sp:varName "dateTime"^^xsd:string .
_:b32
sp:varName "dtpnameU"^^xsd:string .
_:b34
sp:varName "child"^^xsd:string .
_:b35
sp:varName "childType"^^xsd:string .
_:b36
sp:varName "childLocalName"^^xsd:string .
_:b37
sp:varName "valuesRestriction"^^xsd:string .
_:b38
sp:varName "rangeType"^^xsd:string .
_:b39
sp:varName "textNode"^^xsd:string .
_:b40
sp:varName "text"^^xsd:string .
_:b41
sp:varName "instType"^^xsd:string .
_:b25
sp:varName "child"^^xsd:string .
_:b26
sp:varName "formalProperty"^^xsd:string .
_:b28
sp:varName "childType"^^xsd:string .
_:b29
sp:varName "valuesRestriction"^^xsd:string .
_:b30
sp:varName "instType"^^xsd:string .
_:b14
sp:varName "enumeratedValue"^^xsd:string .
_:b15
sp:varName "opnameU"^^xsd:string .
_:b17
sp:varName "child"^^xsd:string .
_:b18
sp:varName "childType"^^xsd:string .
_:b19
sp:varName "childLocalName"^^xsd:string .
_:b20
sp:varName "valuesRestriction"^^xsd:string .
_:b21
sp:varName "rangeU"^^xsd:string .
_:b22
sp:varName "instType"^^xsd:string .
_:b23
sp:varName "textNode"^^xsd:string .
_:b24
sp:varName "text"^^xsd:string .
_:b1 sp:varName "rangeU"^^xsd:string .
_:b3 sp:varName "uom"^^xsd:string .
_:b4 sp:varName "value"^^xsd:string .
_:b5 sp:varName "opnameU"^^xsd:string .
_:b7 sp:varName "child"^^xsd:string .
_:b8 sp:varName "childType"^^xsd:string .
_:b9 sp:varName "childLocalName"^^xsd:string .
_:b10
sp:varName "allValuesRestriction"^^xsd:string .
_:b11
sp:varName "instType"^^xsd:string .
_:b12
sp:varName "textNode"^^xsd:string .
_:b13
sp:varName "text"^^xsd:string .
_:b66
sp:varName "c"^^xsd:string .
_:b62
sp:varName "pp"^^xsd:string .
_:b63
sp:varName "p"^^xsd:string .
_:b64
sp:varName "s"^^xsd:string .
_:b65
sp:varName "e"^^xsd:string .
_:b52
sp:varName "ddrCPU"^^xsd:string .
_:b53
sp:varName "ddrCU"^^xsd:string .
_:b54
sp:varName "ddrPU"^^xsd:string .
_:b55
sp:varName "mre"^^xsd:string .
_:b56
sp:varName "s"^^xsd:string .
_:b57
sp:varName "c"^^xsd:string .
_:b58
sp:varName "name"^^xsd:string .
_:b59
sp:varName "pname"^^xsd:string .
_:b60
sp:varName "tcpname"^^xsd:string .
_:b61
sp:varName "tcname"^^xsd:string .
_:b67
sp:varName "oldLabel"^^xsd:string .
_:b68
sp:varName "p"^^xsd:string .
_:b69
sp:varName "newLabel"^^xsd:string .
# Saved by TopBraid on Wed Aug 10 12:50:05 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr
# imports: http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias
# imports: http://www.reportinghub.no/ep/schema/1.0/report
# imports: http://www.reportinghub.no/ep/schema/1.0/well
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.reportinghub.no/ep/schema/1.0/equipment
# imports: http://www.reportinghub.no/ep/schema/1.0/activity
# imports: http://www.reportinghub.no/ep/schema/1.0/ddr
# imports: http://spinrdf.org/spin
# imports: http://topbraid.org/sxml
@prefix NPD_110412124707: <file:///www.reportinghub.no/input/NPD_110412124707.xml#> .
@prefix NPD_1104121247071: <file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml#> .
@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> .
@prefix ddr: <http://www.reportinghub.no/ep/schema/ddr#> .
@prefix fn: <http://www.w3.org/2005/xpath-functions#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix smf: <http://topbraid.org/sparqlmotionfunctions#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spif: <http://spinrdf.org/spif#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix sxml: <http://topbraid.org/sxml#> .
@prefix wellAndWellBoreAlias: <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
ddr:Cs_activity
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 030 - Construct ep-activity type statements"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#DrillingActivity> ;
sp:predicate rdf:type ;
sp:subject spin:_this
]) ;
sp:where ()
] ;
sxml:element "witsml:activity"^^xsd:string .
ddr:Cs_alias
sxml:element "witsml:alias" , "witsml:rigAlias"^^xsd:string .
ddr:Cs_bitRecord
sxml:element "witsml:bitRecord" .
ddr:Cs_documentAudit
sxml:element "witsml:documentAudit" .
ddr:Cs_documentEvent
sxml:element "witsml:documentEvent" .
ddr:Cs_documentFileCreation
sxml:element "witsml:documentFileCreation" .
ddr:Cs_documentInfo
sxml:element "witsml:documentInfo" .
ddr:Cs_documentSecurityInfo
sxml:element "witsml:documentSecurityInfo" .
ddr:Cs_drillReportControlIncidentInfo
sxml:element "witsml:drillReportControlIncidentInfo" .
ddr:Cs_drillReportCoreInfo
sxml:element "witsml:drillReportCoreInfo" .
ddr:Cs_drillReportEquipFailureInfo
sxml:element "witsml:drillReportEquipFailureInfo" .
ddr:Cs_drillReportFormTestInfo
sxml:element "witsml:drillReportFormTestInfo" .
ddr:Cs_drillReportGasReadingInfo
sxml:element "witsml:drillReportGasReadingInfo" .
ddr:Cs_drillReportLithShowInfo
sxml:element "witsml:drillReportLithShowInfo" .
ddr:Cs_drillReportLogInfo
sxml:element "witsml:drillReportLogInfo" .
ddr:Cs_drillReportPerfInfo
sxml:element "witsml:drillReportPerfInfo" .
ddr:Cs_drillReportPorePressure
sxml:element "witsml:drillReportPorePressure" .
ddr:Cs_drillReportStatusInfo
sxml:element "witsml:drillReportStatusInfo" , "witsml:statusInfo"^^xsd:string .
ddr:Cs_drillReportStratInfo
sxml:element "witsml:drillReportStratInfo" .
ddr:Cs_drillReportSurveyStation
sxml:element "witsml:drillReportSurveyStation" .
ddr:Cs_drillReportWellTestInfo
sxml:element "witsml:drillReportWellTestInfo" .
ddr:Cs_drillReportWellboreInfo
sxml:element "witsml:wellboreInfo"^^xsd:string .
ddr:Cs_fluid
sxml:element "witsml:fluid" .
ddr:Cs_geodeticModel
sxml:element "witsml:geodeticModel" .
ddr:Cs_localCRS
sxml:element "witsml:localCRS" .
ddr:Cs_location
sxml:element "witsml:location" .
ddr:Cs_projectionx
sxml:element "witsml:projectionx" .
ddr:Cs_refWellWellbore
sxml:element "witsml:refWellWellbore" .
ddr:Cs_refWellWellboreRig
sxml:element "witsml:refWellWellboreRig" .
ddr:Cs_wellAlias
sxml:element "witsml:wellboreAlias"^^xsd:string , "witsml:wellAlias" .
ddr:Cs_wellCRS
sxml:element "witsml:wellCRS" .
ddr:Cs_wellDatum
sxml:element "witsml:wellDatum" .
ddr:DrillReports
sxml:element "witsml:drillReports"^^xsd:string .
ddr:Obj_drillReport
sxml:element "witsml:drillReport"^^xsd:string .
ddr:Thing
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 003 - Construct datatype string values"^^xsd:string ;
sp:templates ([ sp:object _:b1 ;
sp:predicate _:b2 ;
sp:subject spin:_this
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object spin:_this ;
sp:predicate rdf:subject ;
sp:subject _:b3
] [ sp:object _:b2 ;
sp:predicate rdf:predicate ;
sp:subject _:b3
] [ sp:object _:b1 ;
sp:predicate rdf:object ;
sp:subject _:b3
] [ sp:object _:b3 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b4
]) ;
sp:where ([ sp:object _:b4 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject spin:_this
] [ sp:object _:b5 ;
sp:predicate rdf:type ;
sp:subject _:b4
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "uom"^^xsd:string
] ;
sp:predicate ddr:uom ;
sp:subject _:b4
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 _:b5
] ;
sp:variable _:b6
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
sp:arg2 _:b6
]
] ;
sp:variable _:b2
] [ sp:object owl:DatatypeProperty ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object _:b2 ;
sp:predicate owl:onProperty ;
sp:subject _:b7
] [ sp:object _:b8 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b7
] [ rdf:type sp:TriplePath ;
sp:object xsd:string ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b8
] [ sp:object _:b9 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b4
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b9
] [ sp:object _:b1 ;
sp:predicate sxml:text ;
sp:subject _:b9
] [ sp:object _:b10 ;
sp:predicate rdf:type ;
sp:subject spin:_this
] [ rdf:type sp:TriplePath ;
sp:object _:b7 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b10
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 002 - Construct datatype datetime values"^^xsd:string ;
sp:templates ([ sp:object _:b11 ;
sp:predicate _:b12 ;
sp:subject spin:_this
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b13
] [ sp:object spin:_this ;
sp:predicate rdf:subject ;
sp:subject _:b13
] [ sp:object _:b12 ;
sp:predicate rdf:predicate ;
sp:subject _:b13
] [ sp:object _:b11 ;
sp:predicate rdf:object ;
sp:subject _:b13
] [ sp:object _:b13 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b14
]) ;
sp:where ([ sp:object _:b14 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject spin:_this
] [ sp:object _:b15 ;
sp:predicate rdf:type ;
sp:subject _:b14
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "uom"^^xsd:string
] ;
sp:predicate ddr:uom ;
sp:subject _:b14
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 _:b15
] ;
sp:variable _:b16
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
sp:arg2 _:b16
]
] ;
sp:variable _:b12
] [ sp:object owl:DatatypeProperty ;
sp:predicate rdf:type ;
sp:subject _:b12
] [ sp:object _:b12 ;
sp:predicate owl:onProperty ;
sp:subject _:b17
] [ sp:object _:b18 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b17
] [ rdf:type sp:TriplePath ;
sp:object xsd:dateTime ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b18
] [ sp:object _:b19 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b14
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b19
] [ sp:object _:b20 ;
sp:predicate sxml:text ;
sp:subject _:b19
] [ sp:object _:b21 ;
sp:predicate rdf:type ;
sp:subject spin:_this
] [ rdf:type sp:TriplePath ;
sp:object _:b17 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b21
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:dateTime ;
sp:arg1 _:b20
] ;
sp:variable _:b11
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 020 - Construct all other object properties - WIP"^^xsd:string ;
sp:templates ([ sp:object _:b22 ;
sp:predicate _:b23 ;
sp:subject spin:_this
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b24
] [ sp:object spin:_this ;
sp:predicate rdf:subject ;
sp:subject _:b24
] [ sp:object _:b23 ;
sp:predicate rdf:predicate ;
sp:subject _:b24
] [ sp:object _:b22 ;
sp:predicate rdf:object ;
sp:subject _:b24
] [ sp:object _:b24 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b22
]) ;
sp:where ([ sp:object _:b25 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b26
] [ sp:object _:b23 ;
sp:predicate owl:onProperty ;
sp:subject _:b26
] [ sp:object _:b25 ;
sp:predicate rdf:type ;
sp:subject _:b22
] [ sp:object _:b22 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject spin:_this
] [ sp:object _:b27 ;
sp:predicate rdf:type ;
sp:subject spin:_this
] [ rdf:type sp:TriplePath ;
sp:object _:b26 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b27
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 006 - Construct Enumerated Values"^^xsd:string ;
sp:templates ([ sp:object _:b28 ;
sp:predicate _:b29 ;
sp:subject spin:_this
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b30
] [ sp:object spin:_this ;
sp:predicate rdf:subject ;
sp:subject _:b30
] [ sp:object _:b29 ;
sp:predicate rdf:predicate ;
sp:subject _:b30
] [ sp:object _:b28 ;
sp:predicate rdf:object ;
sp:subject _:b30
] [ sp:object _:b30 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b31
]) ;
sp:where ([ sp:object _:b31 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject spin:_this
] [ sp:object _:b32 ;
sp:predicate rdf:type ;
sp:subject _:b31
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "uom"^^xsd:string
] ;
sp:predicate ddr:uom ;
sp:subject _:b31
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:titleCase ;
sp:arg1 [ rdf:type afn:localname ;
sp:arg1 _:b32
]
] ;
sp:variable _:b33
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#enum" ;
sp:arg2 _:b33
]
] ;
sp:variable _:b29
] [ sp:object owl:ObjectProperty ;
sp:predicate rdf:type ;
sp:subject _:b29
] [ sp:object _:b29 ;
sp:predicate owl:onProperty ;
sp:subject _:b34
] [ sp:object _:b35 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b34
] [ sp:object _:b36 ;
sp:predicate rdf:type ;
sp:subject spin:_this
] [ rdf:type sp:TriplePath ;
sp:object _:b34 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b36
] [ rdf:type sp:TriplePath ;
sp:object <http://www.linkedmodel.org/schema/dtype#EnumeratedValue> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b35
] [ sp:object _:b37 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b31
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b37
] [ sp:object _:b38 ;
sp:predicate sxml:text ;
sp:subject _:b37
] [ sp:object _:b35 ;
sp:predicate rdf:type ;
sp:subject _:b28
] [ sp:object _:b38 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b28
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 004 - Construct UOM values"^^xsd:string ;
sp:templates ([ sp:object _:b39 ;
sp:predicate rdf:type ;
sp:subject _:b40
] [ sp:object _:b41 ;
sp:predicate ddr:uom ;
sp:subject _:b40
] [ sp:object _:b42 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b40
] [ sp:object _:b40 ;
sp:predicate _:b43 ;
sp:subject spin:_this
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b44
] [ sp:object spin:_this ;
sp:predicate rdf:subject ;
sp:subject _:b44
] [ sp:object _:b43 ;
sp:predicate rdf:predicate ;
sp:subject _:b44
] [ sp:object _:b42 ;
sp:predicate rdf:object ;
sp:subject _:b44
] [ sp:object _:b44 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b45
]) ;
sp:where ([ sp:object _:b45 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject spin:_this
] [ sp:object _:b46 ;
sp:predicate rdf:type ;
sp:subject _:b45
] [ sp:object _:b41 ;
sp:predicate ddr:uom ;
sp:subject _:b45
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "aNode"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b45
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 _:b46
] ;
sp:variable _:b47
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
sp:arg2 _:b47
]
] ;
sp:variable _:b43
] [ sp:object owl:ObjectProperty ;
sp:predicate rdf:type ;
sp:subject _:b43
] [ sp:object _:b43 ;
sp:predicate owl:onProperty ;
sp:subject _:b48
] [ sp:object _:b39 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b48
] [ sp:object _:b49 ;
sp:predicate rdf:type ;
sp:subject spin:_this
] [ rdf:type sp:TriplePath ;
sp:object _:b48 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b49
] [ sp:object _:b50 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b45
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b50
] [ sp:object _:b51 ;
sp:predicate sxml:text ;
sp:subject _:b50
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:double ;
sp:arg1 _:b51
] ;
sp:variable _:b42
])
] .
ddr:schemaLocation
rdfs:domain ddr:Obj_drillReports ;
sxml:attribute "xsi:schemaLocation"^^xsd:string .
ddr:uom
sxml:attribute "uom"^^xsd:string .
ddr:version
rdfs:domain ddr:DrillReports ;
sxml:attribute "version"^^xsd:string .
<http://www.reportinghub.no/ep/transform/1.1/ddr>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://topbraid.org/sxml> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/activity> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
owl:Thing
spin:query
[ rdf:type sp:Select ;
sp:where ([ sp:object
[ sp:varName "p"^^xsd:string
] ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b52
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "b"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b52
])
])
] ;
spin:query
[ rdf:type sp:Select ;
sp:resultVariables (_:b53 _:b54 _:b55 _:b56) ;
sp:where ([ sp:object _:b56 ;
sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ;
sp:subject _:b55
] [ sp:object _:b55 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b54
] [ rdf:type sp:Union ;
sp:elements (([ sp:object <http://topbraid.org/sxsd#Sequence> ;
sp:predicate rdf:type ;
sp:subject _:b54
]) ([ sp:object <http://topbraid.org/sxsd#Choice> ;
sp:predicate rdf:type ;
sp:subject _:b54
]))
] [ sp:object _:b54 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b53
])
] ;
spin:query
[ rdf:type sp:Select ;
sp:resultVariables (_:b57 _:b58 _:b59 _:b60) ;
sp:where ([ sp:object <http://topbraid.org/sxsd#ComplexType> ;
sp:predicate rdf:type ;
sp:subject _:b61
] [ rdf:type sp:TriplePath ;
sp:object _:b62 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath <http://www.topbraid.org/2007/05/composite.owl#child>
] ;
sp:subject _:b61
] [ sp:object _:b63 ;
sp:predicate <http://topbraid.org/sxsd#name> ;
sp:subject _:b61
] [ sp:object _:b60 ;
sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ;
sp:subject _:b62
] [ sp:object _:b64 ;
sp:predicate <http://topbraid.org/sxsd#name> ;
sp:subject _:b62
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:titleCase ;
sp:arg1 _:b64
] ;
sp:variable _:b65
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ;
sp:arg2 _:b65
]
] ;
sp:variable _:b59
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:titleCase ;
sp:arg1 _:b63 ;
sp:arg2 "[a-z]s"
] ;
sp:variable _:b66
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
sp:arg2 _:b66
]
] ;
sp:variable _:b58
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/map/ddr#" ;
sp:arg2 _:b66 ;
sp:arg3 "-has" ;
sp:arg4 _:b65
]
] ;
sp:variable _:b57
])
] ;
spin:update
[ rdf:type sp:Modify ;
sp:deletePattern ([ sp:object _:b67 ;
sp:predicate rdfs:label ;
sp:subject _:b68
]) ;
sp:insertPattern ([ sp:object _:b69 ;
sp:predicate rdfs:label ;
sp:subject _:b68
]) ;
sp:where ([ sp:object _:b68 ;
sp:predicate owl:onProperty ;
sp:subject
[ sp:varName "r"^^xsd:string
]
] [ sp:object _:b67 ;
sp:predicate rdfs:label ;
sp:subject _:b68
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type fn:starts-with ;
sp:arg1 _:b67 ;
sp:arg2 "has"
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:trim ;
sp:arg1 [ rdf:type smf:regex ;
sp:arg1 _:b67 ;
sp:arg2 "has(.*)" ;
sp:arg3 "$1"
]
] ;
sp:variable _:b69
])
] .
_:b69
sp:varName "newLabel"^^xsd:string .
_:b68
sp:varName "p"^^xsd:string .
_:b67
sp:varName "oldLabel"^^xsd:string .
_:b52
sp:varName "c"^^xsd:string .
_:b56
sp:varName "e"^^xsd:string .
_:b55
sp:varName "s"^^xsd:string .
_:b54
sp:varName "p"^^xsd:string .
_:b53
sp:varName "pp"^^xsd:string .
_:b66
sp:varName "tcname"^^xsd:string .
_:b65
sp:varName "tcpname"^^xsd:string .
_:b64
sp:varName "pname"^^xsd:string .
_:b63
sp:varName "name"^^xsd:string .
_:b62
sp:varName "c"^^xsd:string .
_:b61
sp:varName "s"^^xsd:string .
_:b60
sp:varName "mre"^^xsd:string .
_:b59
sp:varName "ddrPU"^^xsd:string .
_:b58
sp:varName "ddrCU"^^xsd:string .
_:b57
sp:varName "ddrCPU"^^xsd:string .
_:b10
sp:varName "instType"^^xsd:string .
_:b9 sp:varName "textNode"^^xsd:string .
_:b8 sp:varName "rangeType"^^xsd:string .
_:b7 sp:varName "valuesRestriction"^^xsd:string .
_:b6 sp:varName "childLocalName"^^xsd:string .
_:b5 sp:varName "childType"^^xsd:string .
_:b4 sp:varName "child"^^xsd:string .
_:b2 sp:varName "dtpnameU"^^xsd:string .
_:b1 sp:varName "text"^^xsd:string .
_:b21
sp:varName "instType"^^xsd:string .
_:b20
sp:varName "text"^^xsd:string .
_:b19
sp:varName "textNode"^^xsd:string .
_:b18
sp:varName "rangeType"^^xsd:string .
_:b17
sp:varName "valuesRestriction"^^xsd:string .
_:b16
sp:varName "childLocalName"^^xsd:string .
_:b15
sp:varName "childType"^^xsd:string .
_:b14
sp:varName "child"^^xsd:string .
_:b12
sp:varName "dtpnameU"^^xsd:string .
_:b11
sp:varName "dateTime"^^xsd:string .
_:b27
sp:varName "instType"^^xsd:string .
_:b26
sp:varName "valuesRestriction"^^xsd:string .
_:b25
sp:varName "childType"^^xsd:string .
_:b23
sp:varName "formalProperty"^^xsd:string .
_:b22
sp:varName "child"^^xsd:string .
_:b38
sp:varName "text"^^xsd:string .
_:b37
sp:varName "textNode"^^xsd:string .
_:b36
sp:varName "instType"^^xsd:string .
_:b35
sp:varName "rangeU"^^xsd:string .
_:b34
sp:varName "valuesRestriction"^^xsd:string .
_:b33
sp:varName "childLocalName"^^xsd:string .
_:b32
sp:varName "childType"^^xsd:string .
_:b31
sp:varName "child"^^xsd:string .
_:b29
sp:varName "opnameU"^^xsd:string .
_:b28
sp:varName "enumeratedValue"^^xsd:string .
_:b51
sp:varName "text"^^xsd:string .
_:b50
sp:varName "textNode"^^xsd:string .
_:b49
sp:varName "instType"^^xsd:string .
_:b48
sp:varName "allValuesRestriction"^^xsd:string .
_:b47
sp:varName "childLocalName"^^xsd:string .
_:b46
sp:varName "childType"^^xsd:string .
_:b45
sp:varName "child"^^xsd:string .
_:b43
sp:varName "opnameU"^^xsd:string .
_:b42
sp:varName "value"^^xsd:string .
_:b41
sp:varName "uom"^^xsd:string .
_:b39
sp:varName "rangeU"^^xsd:string .
......
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> .
@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix visual: <http://topbraid.org/visual#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
[] rdf:type inference:Configuration ;
composite:child
[ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
<http://spinrdf.org/spin#topSPINOptions>
"singlePass" ;
composite:index "0"^^xsd:int
] ;
inference:completeMode
"true"^^xsd:boolean .
# Saved by TopBraid on Wed Aug 10 12:50:05 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> .
@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix visual: <http://topbraid.org/visual#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
[] rdf:type inference:Configuration ;
composite:child
[ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
<http://spinrdf.org/spin#topSPINOptions>
"singlePass" ;
composite:index "0"^^xsd:int
] ;
inference:completeMode
"true"^^xsd:boolean .
......
# Saved by TopBraid on Wed Aug 10 14:05:00 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/wellboreInfo
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/schema/1.0/ddr
# imports: http://spinrdf.org/spin
@prefix : <http://www.reportinghub.no/ep/transform/1.1/wellboreInfo#> .
@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
@prefix fn: <http://www.w3.org/2005/xpath-functions#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix smf: <http://topbraid.org/sparqlmotionfunctions#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/schema/ddr#Obj_drillReport>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 161 Set name for Rig"^^xsd:string ;
sp:templates ([ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#npdName> ;
sp:subject _:b2
]) ;
sp:where ([ sp:object _:b3 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#wellboreInfo> ;
sp:subject spin:_this
] [ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#rigAlias> ;
sp:subject _:b5
] [ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#name> ;
sp:subject _:b6
] [ sp:object "NPD Name" ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#namingSystem> ;
sp:subject _:b6
] [ sp:object _:b7 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onRig> ;
sp:subject _:b8
] [ sp:object _:b2 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b7
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b3
] ;
sp:variable _:b9
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b9 ;
sp:arg2 _:b4
] ;
sp:variable _:b8
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 160 Set rig for drilling activity"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfARig> ;
sp:predicate rdf:type ;
sp:subject _:b10
] [ sp:object _:b10 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onRig> ;
sp:subject _:b11
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#Rig> ;
sp:predicate rdf:type ;
sp:subject _:b12
] [ sp:object _:b13 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#npdCode> ;
sp:subject _:b12
] [ sp:object _:b12 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b10
]) ;
sp:where ([ sp:object _:b14 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b15 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b16 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b17 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#wellboreInfo> ;
sp:subject spin:_this
] [ sp:object _:b18 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#rigAlias> ;
sp:subject _:b17
] [ sp:object "NPD Code" ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#namingSystem> ;
sp:subject _:b18
] [ sp:object _:b13 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#name> ;
sp:subject _:b18
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b14
] ;
sp:variable _:b19
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b13
] ;
sp:variable _:b20
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b19 ;
sp:arg2 _:b15
] ;
sp:variable _:b11
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildRigURI ;
sp:arg1 _:b20
] ;
sp:variable _:b12
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildTemporalPartOfARigURI ;
sp:arg1 _:b20 ;
sp:arg2 _:b15 ;
sp:arg3 _:b16
] ;
sp:variable _:b10
])
] .
<http://www.reportinghub.no/ep/transform/1.1/wellboreInfo>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/spin/1.1/lib> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
[] rdf:type smf:regex .
[] rdf:type smf:trim .
[] rdf:type fn:starts-with .
[] rdf:type sp:Modify .
_:b14
sp:varName "nameWellBore"^^xsd:string .
_:b15
sp:varName "dTimStart"^^xsd:string .
_:b16
sp:varName "dTimEnd"^^xsd:string .
_:b17
sp:varName "wellboreInfo"^^xsd:string .
_:b18
sp:varName "rigAlias"^^xsd:string .
_:b13
sp:varName "nameRig"^^xsd:string .
_:b19
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b20
sp:varName "normalizedRigName"^^xsd:string .
_:b11
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b12
sp:varName "rig"^^xsd:string .
_:b10
sp:varName "temporalPartOfARig"^^xsd:string .
_:b3 sp:varName "nameWellBore"^^xsd:string .
_:b4 sp:varName "dTimStart"^^xsd:string .
_:b5 sp:varName "wellboreInfo"^^xsd:string .
_:b6 sp:varName "rigAlias"^^xsd:string .
_:b1 sp:varName "name"^^xsd:string .
_:b8 sp:varName "dailyDrillingActivity"^^xsd:string .
_:b7 sp:varName "temporalPartOfARig"^^xsd:string .
_:b2 sp:varName "rig"^^xsd:string .
_:b9 sp:varName "normalizedWellBoreName"^^xsd:string .
([] [] [ rdf:type sp:Filter
] [ rdf:type sp:Bind
]) .
([]) .
([]) .
......@@ -3,13 +3,13 @@
<link rel="stylesheet" type="text/css" href="lib/rh/ddr.css" />
</head>
<body>
<h1>Summary report Wellbore: {# SELECT ?wellBoreName WHERE { ?reportOn iso15926:hasPart/ep-activity:onWellBore/iso15926:temporalPartOf/rdfs:label ?wellBoreName } }</h1>
<h1>Summary report Wellbore: {# SELECT ?wellBoreName WHERE { ?reportOn ep-activity:onWellBore/ep-core:temporalPartOf/ep-core:npdCode ?wellBoreName } }</h1>
<div>End time: {= ui:label(spl:object(?reportOn, ep-activity:finishedAt)) }</div>
<hr />
<table><tr>
<td class="ddrSummaryLeft">
<rhswp:NameValuePair arg:name="Report Number:" arg:value="{ spl:object(?this, ?) }" />
<rhswp:NameValuePair arg:name="Wellbore:" arg:value="{# SELECT ?wellBoreName WHERE { ?reportOn iso15926:hasPart/ep-activity:onWellBore/iso15926:temporalPartOf/rdfs:label ?wellBoreName } }" />
<rhswp:NameValuePair arg:name="Wellbore:" arg:value="{= SELECT ?wellBoreName WHERE { ?reportOn ep-activity:onWellBore/ep-core:temporalPartOf/ep-core:npdCode ?wellBoreName } }" />
<rhswp:NameValuePair arg:name="Status:" arg:value="{= ui:label(spl:object(?this, rdf:type)) }" />
<rhswp:NameValuePair arg:name="Operator:" arg:value="{ spl:object(?this, ???) }" />
<rhswp:NameValuePair arg:name="Rig name:" arg:value="{ spl:object(?this, ???) }" />
......