Holger Knublauch

Merge branch 'master' of

https://github.com/TopQuadrant/EPIM-Ontologies.git

Conflicts:
	www.reportinghub.no/swp/DailyDrillingReport.uispin.html

Also: linked download page to new service
......@@ -27,7 +27,7 @@
<div id="content">
<h3>Download a Daily Drilling Report</h3>
<form action="ddrFileDownload">
<form action="download-report">
<table>
<tr>
......@@ -58,12 +58,12 @@
<td style="padding-left:20px; vertical-align: top">
<div>
<div class="formHeader">2. Select Well Bore:</div>
<select size="5" id="wellBoreSelect" style="width:200px">
<select size="5" id="wellBoreSelect" name="wellboreId" style="width:200px">
</select>
</div><br />
<div>
<div class="formHeader">3. Select Date(s):</div>
<input type="text" id="datepicker1" name="date1" style="width: 90px" />&nbsp;-&nbsp;<input type="text" id="datepicker2" name="date2" style="width: 90px" />
<input type="text" id="datepicker1" name="timeFrom" style="width: 90px" />&nbsp;-&nbsp;<input type="text" id="datepicker2" name="timeTo" style="width: 90px" />
<script>
$(function() {
$("#datepicker1").datepicker();
......
# 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
......@@ -23,6 +24,12 @@ ep-core:PhysicalThing
rdfs:label "physical thing"^^xsd:string ;
rdfs:subClassOf owl:Thing .
ep-core:apiName
rdf:type owl:FunctionalProperty , owl:DatatypeProperty ;
rdfs:label "API name"^^xsd:string ;
rdfs:range xsd:string ;
rdfs:subPropertyOf ep-core:name .
ep-core:basisFor
rdf:type owl:ObjectProperty ;
rdfs:label "basis for"^^xsd:string .
......@@ -31,6 +38,12 @@ ep-core:derivedFrom
rdf:type owl:TransitiveProperty , owl:ObjectProperty ;
rdfs:label "derived from"^^xsd:string .
ep-core:dtiName
rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
rdfs:label "DTI name"^^xsd:string ;
rdfs:range xsd:string ;
rdfs:subPropertyOf ep-core:name .
ep-core:hasPart
rdf:type owl:TransitiveProperty ;
rdfs:domain ep-core:PhysicalThing ;
......@@ -46,11 +59,35 @@ ep-core:hasTemporalPart
rdfs:subPropertyOf ep-core:hasPart ;
owl:inverseOf ep-core:partOf .
ep-core:localFieldName
rdf:type owl:FunctionalProperty , owl:DatatypeProperty ;
rdfs:label "local field name"^^xsd:string ;
rdfs:range xsd:string ;
rdfs:subPropertyOf ep-core:name .
ep-core:name
rdf:type owl:DatatypeProperty ;
rdfs:label "name"^^xsd:string ;
rdfs:range xsd:string .
ep-core:npdCode
rdf:type owl:FunctionalProperty , owl:DatatypeProperty ;
rdfs:label "NPD code"^^xsd:string ;
rdfs:range xsd:string ;
rdfs:subPropertyOf ep-core:name .
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 .
ep-core:partOf
rdf:type owl:TransitiveProperty ;
rdfs:domain ep-core:PhysicalThing ;
......@@ -58,6 +95,12 @@ ep-core:partOf
rdfs:range ep-core:PhysicalThing ;
owl:inverseOf ep-core:hasPart .
ep-core:prospectName
rdf:type owl:FunctionalProperty , owl:DatatypeProperty ;
rdfs:label "prospect name"^^xsd:string ;
rdfs:range xsd:string ;
rdfs:subPropertyOf ep-core:name .
ep-core:temporalPartOf
rdf:type owl:TransitiveProperty ;
rdfs:domain ep-core:PhysicalThing ;
......
# 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://purl.org/dc/terms/
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# 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#> .
......@@ -15,9 +16,14 @@
<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: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 ;
......@@ -33,7 +39,8 @@ ep-fac:MoveableFacility
ep-fac:Rig
rdf:type owl:Class ;
rdfs:subClassOf ep-fac:Facility .
rdfs:label "rig"^^xsd:string ;
rdfs:subClassOf ep-fac:AllOrPartOfTheLifeOfARig .
ep-fac:SubSurfaceFixedFacility
rdf:type owl:Class ;
......@@ -42,3 +49,8 @@ ep-fac:SubSurfaceFixedFacility
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 Tue Aug 09 20:54:10 BST 2011
# baseURI: http://www.reportinghub.no/ep/schema/1.1/activity
# imports: http://www.linkedmodel.org/1.2/schema/vaem
# imports: http://www.reportinghub.no/ep/schema/organization
# imports: http://www.reportinghub.no/ep/schema/equipment
# imports: http://www.linkedmodel.org/1.1/schema/ordered
# imports: http://www.reportinghub.no/ep/schema/1.1/core
# imports: http://www.reportinghub.no/ep/schema/well
@prefix : <http://www.reportinghub.no/ep/schema/1.1/activity#> .
@prefix ep-activity: <http://www.reportinghub.no/ep/schema/activity#> .
@prefix organization: <http://www.reportinghub.no/ep/schema/organization#> .
@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 xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/schema/1.1/activity>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/organization> , <http://www.reportinghub.no/ep/schema/1.1/core> , <http://www.linkedmodel.org/1.2/schema/vaem> , <http://www.linkedmodel.org/1.1/schema/ordered> , <http://www.reportinghub.no/ep/schema/equipment> , <http://www.reportinghub.no/ep/schema/well> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-activity:Activity
rdf:type owl:Class ;
rdfs:label "Activity"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/core#PhysicalThing> ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:Activity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#during>
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:Activity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#overlaps>
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:Activity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#before>
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:Activity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#after>
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-activity:startedAt
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-activity:finishedAt
] .
ep-activity:DailyDrillingActivity
rdf:type owl:Class ;
rdfs:label "Daily drilling activity"^^xsd:string ;
rdfs:subClassOf ep-activity:DrillingActivity ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:DrillingActivity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#last>
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom <http://www.reportinghub.no/ep/schema/well#AllOrPartOfTheLifeOfAWellBore> ;
owl:onProperty ep-activity:onWellBore
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#first>
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:DrillingActivity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#first>
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:Activity ;
owl:onProperty <http://www.reportinghub.no/ep/schema/core#hasPart>
] .
ep-activity:DailyDrillingReportFinalisationType
rdf:type rdfs:Class ;
rdfs:label "daily drilling report finalisation type"^^xsd:string ;
rdfs:subClassOf owl:Class .
ep-activity:DailyProductionActivity
rdf:type owl:Class ;
rdfs:label "Daily production activity"^^xsd:string ;
rdfs:subClassOf ep-activity:ProductionActivity ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:ProductionActivity ;
owl:onProperty ep-activity:hasSubActivity
] .
ep-activity:Drill-bypass
rdf:type ep-activity:WellBoreDrillingType ;
rdfs:label "drill bypass"^^xsd:string ;
rdfs:subClassOf ep-activity:DrillingActivity .
ep-activity:Drill-initial
rdf:type ep-activity:WellBoreDrillingType ;
rdfs:label "drill initial"^^xsd:string ;
rdfs:subClassOf ep-activity:DrillingActivity .
ep-activity:Drill-re-entry
rdf:type ep-activity:WellBoreDrillingType ;
rdfs:label "drill re-entry"^^xsd:string ;
rdfs:subClassOf ep-activity:DrillingActivity .
ep-activity:Drill-re-spud
rdf:type ep-activity:WellBoreDrillingType ;
rdfs:label "drill re-spud"^^xsd:string ;
rdfs:subClassOf ep-activity:DrillingActivity .
ep-activity:Drill-redrill
rdf:type ep-activity:WellBoreDrillingType ;
rdfs:label "redrill"^^xsd:string ;
rdfs:subClassOf ep-activity:DrillingActivity .
ep-activity:Drill-sidetrack
rdf:type ep-activity:WellBoreDrillingType ;
rdfs:label "drill sidetrack"^^xsd:string ;
rdfs:subClassOf ep-activity:DrillingActivity .
ep-activity:DrillingActivity
rdf:type owl:Class ;
rdfs:label "Drilling activity"^^xsd:string ;
rdfs:subClassOf ep-activity:Activity .
ep-activity:FormationIntegrityTest
rdf:type ep-activity:PressureTestType , owl:Class ;
rdfs:label "formation integrity test"^^xsd:string ;
rdfs:subClassOf ep-activity:WellBorePressureTest ;
owl:disjointWith ep-activity:LeakOffTest .
ep-activity:LeakOffTest
rdf:type ep-activity:PressureTestType , owl:Class ;
rdfs:label "leak-off test"^^xsd:string ;
rdfs:subClassOf ep-activity:WellBorePressureTest ;
owl:disjointWith ep-activity:FormationIntegrityTest .
ep-activity:MonthlyDrillingActivity
rdf:type owl:Class ;
rdfs:label "Weekly drilling activity"^^xsd:string ;
rdfs:subClassOf ep-activity:DrillingActivity ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:WeeklyDrillingActivity ;
owl:onProperty ep-activity:hasSubActivity
] .
ep-activity:MonthlyProductionActivity
rdf:type owl:Class ;
rdfs:label "Monthly production activity"^^xsd:string ;
rdfs:subClassOf ep-activity:ProductionActivity ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:WeeklyProductionActivity ;
owl:onProperty ep-activity:hasSubActivity
] .
ep-activity:OffshoreActivity
rdf:type owl:Class ;
rdfs:label "Offshore activity"^^xsd:string ;
rdfs:subClassOf ep-activity:Activity .
ep-activity:OffshoreWellActivity
rdf:type owl:Class ;
rdfs:label "Offshore well activity"^^xsd:string ;
rdfs:subClassOf ep-activity:OffshoreActivity ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom <http://www.reportinghub.no/ep/schema/well#Well> ;
owl:onProperty ep-activity:onWell
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-activity:onRig
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-activity:onWell
] .
ep-activity:PressureTestType
rdf:type rdfs:Class ;
rdfs:label "pressure test type"^^xsd:string ;
rdfs:subClassOf owl:Class .
ep-activity:ProductionActivity
rdf:type owl:Class ;
rdfs:label "Production activity"^^xsd:string ;
rdfs:subClassOf ep-activity:Activity .
ep-activity:WeeklyDrillingActivity
rdf:type owl:Class ;
rdfs:label "Weekly drilling activity"^^xsd:string ;
rdfs:subClassOf ep-activity:DrillingActivity ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:DailyDrillingActivity ;
owl:onProperty ep-activity:hasSubActivity
] .
ep-activity:WeeklyProductionActivity
rdf:type owl:Class ;
rdfs:label "Weekly production activity"^^xsd:string ;
rdfs:subClassOf ep-activity:ProductionActivity ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:DailyProductionActivity ;
owl:onProperty ep-activity:hasSubActivity
] .
ep-activity:WellBoreDrillingType
rdf:type rdfs:Class ;
rdfs:label "well bore drilling type"^^xsd:string ;
rdfs:subClassOf owl:Class .
ep-activity:WellBorePressureTest
rdf:type owl:Class ;
rdfs:label "well bore pressure test"^^xsd:string ;
rdfs:subClassOf ep-activity:Activity .
ep-activity:createdAt
rdf:type owl:FunctionalProperty , owl:DatatypeProperty ;
rdfs:label "created at"^^xsd:string ;
rdfs:range <http://www.linkedmodel.org/schema/vaem#dateUnion> .
ep-activity:finishedAt
rdf:type owl:DatatypeProperty ;
rdfs:label "finished at"^^xsd:string ;
rdfs:range <http://www.linkedmodel.org/schema/vaem#dateUnion> .
ep-activity:hasSubActivity
rdf:type owl:ObjectProperty ;
rdfs:label "has sub activity"^^xsd:string .
ep-activity:onRig
rdf:type owl:ObjectProperty ;
rdfs:label "on rig"^^xsd:string .
ep-activity:onWell
rdf:type owl:ObjectProperty ;
rdfs:label "on well"^^xsd:string .
ep-activity:onWellBore
rdf:type owl:FunctionalProperty , owl:ObjectProperty ;
rdfs:label "on WellBore"^^xsd:string .
ep-activity:reportOn
rdf:type owl:ObjectProperty ;
rdfs:label "report on"^^xsd:string .
ep-activity:startedAt
rdf:type owl:DatatypeProperty ;
rdfs:label "started at"^^xsd:string ;
rdfs:range <http://www.linkedmodel.org/schema/vaem#dateUnion> .
ep-activity:wellBoreDrillingType
rdf:type owl:FunctionalProperty , owl:ObjectProperty ;
rdfs:domain ep-activity:DrillingActivity ;
rdfs:label "has sub activity"^^xsd:string ;
rdfs:range ep-activity:WellBoreDrillingType ;
rdfs:subPropertyOf rdf:type .
ep-activity:wellboreDrillingContractor
rdf:type owl:FunctionalProperty , owl:ObjectProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/well#WellBore> ;
rdfs:label "wellbore drilling contractor"^^xsd:string ;
rdfs:range organization:Company .
ep-activity:wellboreOperator
rdf:type owl:FunctionalProperty , owl:ObjectProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/well#WellBore> ;
rdfs:label "wellbore operator"^^xsd:string ;
rdfs:range organization:Company .
<http://www.reportinghub.no/ep/schema/report#FinalDailyDrillingReport>
rdf:type ep-activity:DailyDrillingReportFinalisationType .
<http://www.reportinghub.no/ep/schema/report#NormalDailyDrillingReport>
rdf:type ep-activity:DailyDrillingReportFinalisationType .
<http://www.reportinghub.no/ep/schema/report#PreliminaryDailyDrillingReport>
rdf:type ep-activity:DailyDrillingReportFinalisationType .
# Saved by TopBraid on Wed Aug 10 13:36:32 BST 2011
# baseURI: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/schema/1.0/activity
# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose
# 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/core
# imports: http://www.reportinghub.no/ep/schema/1.0/well
# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose
# 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://www.reportinghub.no/spin/rh
@prefix activity-purpose: <http://www.reportinghub.no/ep/schema/1.0/activity-purpose#> .
......@@ -80,7 +81,7 @@ ep-spin-lib:buildDailyDrillingReportURI
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/DailyDrillingReport#" ;
sp:arg1 "https://www.reportinghub.no/ep/data/DailyDrillingReport/" ;
sp:arg2 [ rdf:type fn:concat ;
sp:arg1 spin:_arg1 ;
sp:arg2 "$" ;
......@@ -114,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 ;
......@@ -133,7 +174,7 @@ ep-spin-lib:buildTemporalPartOfAWellBoreURI
sp:arg5 spin:_arg3
]
] ;
sp:variable _:b5
sp:variable _:b7
])
] .
......@@ -143,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 ;
......@@ -152,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
] .
......@@ -172,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 ;
......@@ -180,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
......@@ -255,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 ;
......@@ -273,7 +314,7 @@ ep-spin-lib:selectDailyDrillingReportType
sp:arg3 <http://www.reportinghub.no/ep/schema/report#FinalDailyDrillingReport>
]
] ;
sp:variable _:b16
sp:variable _:b18
])
] .
......@@ -283,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 ;
......@@ -867,7 +908,63 @@ ep-spin-lib:selectDrillingActivityPurposeType
]
]
] ;
sp:variable _:b17
sp:variable _:b19
])
] .
ep-spin-lib:selectLabelOfSystem
rdf:type spin:Function ;
rdfs:label "select DailyDrillingReportType"^^xsd:string ;
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b20) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#WNS_API>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#apiName> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#WNS_DTI>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#dtiName> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#WNS_NPDcode>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#npdCode> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#WNS_NPDnumber>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#npdNumber> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#WNS_localfield>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#localFieldName> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#WNS_prospect>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#prospectName> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/core#name>
]
]
]
]
]
] ;
sp:variable _:b20
])
] .
......@@ -877,7 +974,7 @@ ep-spin-lib:selectPressureTestType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b18) ;
sp:resultVariables (_:b21) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:if ;
......@@ -894,7 +991,7 @@ ep-spin-lib:selectPressureTestType
sp:arg2 <http://www.reportinghub.no/ep/schema/1.0/activity#LeakOffTest>
]
] ;
sp:variable _:b18
sp:variable _:b21
])
] .
......@@ -904,57 +1001,66 @@ ep-spin-lib:selectWellBoreDrillingType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b19) ;
sp:where ([ sp:object _:b19 ;
sp:resultVariables (_:b22) ;
sp:where ([ sp:object _:b22 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#mapsTo> ;
sp:subject spin:_arg1
])
] .
_:b19
sp:varName "wellBoreDrillingType"^^xsd:string .
_:b1 sp:varName "uri"^^xsd:string .
_:b16
sp:varName "dailyDrillingReportType"^^xsd:string .
_:b2 sp:varName "uri"^^xsd:string .
_:b6 sp:varName "uri"^^xsd:string .
_:b3 sp:varName "uri"^^xsd:string .
_:b1 sp:varName "uri"^^xsd:string .
_:b4 sp:varName "uri"^^xsd:string .
_:b18
sp:varName "pressureTestType"^^xsd:string .
_:b7 sp:varName "uri"^^xsd:string .
_:b17
sp:varName "drillingActivityPurposeType"^^xsd:string .
_:b8 sp:varName "uri"^^xsd:string .
_:b15
sp:varName "t4"^^xsd:string .
_:b9 sp:varName "normalizedStr"^^xsd:string .
_:b14
sp:varName "t3"^^xsd:string .
_:b10
sp:varName "s1"^^xsd:string .
_:b13
sp:varName "t2"^^xsd:string .
_:b11
sp:varName "s2"^^xsd:string .
_:b12
sp:varName "t1"^^xsd:string .
sp:varName "t0a"^^xsd:string .
_:b11
_:b13
sp:varName "t0b"^^xsd:string .
_:b10
sp:varName "t0a"^^xsd:string .
_:b14
sp:varName "t1"^^xsd:string .
_:b9 sp:varName "s2"^^xsd:string .
_:b15
sp:varName "t2"^^xsd:string .
_:b8 sp:varName "s1"^^xsd:string .
_:b16
sp:varName "t3"^^xsd:string .
_:b7 sp:varName "normalizedStr"^^xsd:string .
_:b17
sp:varName "t4"^^xsd:string .
_:b5 sp:varName "uri"^^xsd:string .
_:b18
sp:varName "dailyDrillingReportType"^^xsd:string .
_:b4 sp:varName "uri"^^xsd:string .
_:b19
sp:varName "drillingActivityPurposeType"^^xsd:string .
_:b3 sp:varName "uri"^^xsd:string .
_:b20
sp:varName "dailyDrillingReportType"^^xsd:string .
_:b2 sp:varName "uri"^^xsd:string .
_:b21
sp:varName "pressureTestType"^^xsd:string .
_:b22
sp:varName "wellBoreDrillingType"^^xsd:string .
_:b6 sp:varName "uri"^^xsd:string .
_:b5 sp:varName "uri"^^xsd:string .
......
# 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:13:52 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/schema/1.0/activity
# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose
# 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
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
# 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-purpose
# imports: http://www.reportinghub.no/ep/schema/1.0/activity
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr
# imports: http://www.reportinghub.no/ep/schema/1.0/ddr
# imports: http://spinrdf.org/spin
@prefix NPD_1104121247071: <file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml#> .
@prefix arg: <http://spinrdf.org/arg#> .
......@@ -31,120 +32,88 @@
<http://www.reportinghub.no/ep/schema/ddr#Obj_drillReport>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 101 Create DailyDrillingReport, DailyDrillingActivity, TemporalPartOfAWellBore and WellBore
Minimum data - createDate, dTimStart, nameWellBore"""^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> ;
rdfs:comment "STEP 104 Create Well"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingActivity> ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object _:b2 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#reportOn> ;
sp:subject _:b1
] [ sp:object _:b3 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#createdAt> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject _:b1
] [ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ;
sp:subject _:b3
] [ sp:object _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject _:b2
] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ;
sp:predicate rdf:type ;
sp:subject _:b5
] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
sp:predicate rdf:type ;
sp:subject _:b6
] [ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b5
] [ sp:object _:b7 ;
sp:predicate rdfs:label ;
sp:subject _:b6
] [ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b2
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject _:b1
]) ;
sp:where ([ sp:object _:b7 ;
sp:where ([ sp:object _:b5 ;
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:object _:b2 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWell> ;
sp:subject spin:_this
] [ sp:object _:b8 ;
] [ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b3 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ;
sp:subject spin:_this
] [ sp:object _:b7 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b3
] [ sp:object _:b4 ;
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 _:b7
] ;
sp:variable _:b9
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
sp:arg1 _:b9 ;
sp:arg2 _:b3
sp:arg1 _:b5
] ;
sp:variable _:b1
sp:variable _:b8
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b9 ;
sp:arg2 _:b4
sp:arg1 _:b8 ;
sp:arg2 _:b6
] ;
sp:variable _:b2
sp:variable _:b3
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildTemporalPartOfAWellBoreURI ;
sp:arg1 _:b9 ;
sp:arg2 _:b4 ;
sp:arg3 _:b8
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b2
] ;
sp:variable _:b5
sp:variable _:b9
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type rhspin:wellBoreByName ;
arg:wellBoreName _:b7
[ rdf:type rhspin:wellByName ;
arg:wellName _:b9
] ;
sp:variable _:b6
sp:variable _:b1
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 103
Classify a DailyDrillingReport"""^^xsd:string ;
rdfs:comment "STEP 102 Transfer dTimEnd"^^xsd:string ;
sp:templates ([ sp:object _:b10 ;
sp:predicate rdf:type ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject _:b11
]) ;
sp:where ([ sp:object _:b12 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b13 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b14 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#enumVersionKind> ;
] [ sp:object _:b10 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimEnd> ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectDailyDrillingReportType ;
sp:arg1 _:b14
] ;
sp:variable _:b10
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b12
] ;
sp:variable _:b15
sp:variable _:b14
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
sp:arg1 _:b15 ;
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b14 ;
sp:arg2 _:b13
] ;
sp:variable _:b11
......@@ -152,214 +121,252 @@ Classify a DailyDrillingReport"""^^xsd:string ;
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 101a Set name of DailyDrillingReport as label
rdfs:comment """STEP 101 Create DailyDrillingReport, DailyDrillingActivity, TemporalPartOfAWellBore and WellBore
Minimum data - createDate, dTimStart, nameWellBore"""^^xsd:string ;
sp:templates ([ sp:object _:b16 ;
sp:predicate rdfs:label ;
sp:subject _:b17
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> ;
sp:predicate rdf:type ;
sp:subject _:b15
] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingActivity> ;
sp:predicate rdf:type ;
sp:subject _:b16
] [ sp:object _:b16 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#reportOn> ;
sp:subject _:b15
] [ sp:object _:b17 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#createdAt> ;
sp:subject _:b15
] [ sp:object _:b18 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject _:b16
] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ;
sp:predicate rdf:type ;
sp:subject _:b19
] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
sp:predicate rdf:type ;
sp:subject _:b20
] [ sp:object _:b20 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b19
] [ sp:object _:b21 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject _:b20
] [ sp:object _:b19 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b16
]) ;
sp:where ([ sp:object _:b18 ;
sp:where ([ sp:object _:b21 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b16 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#name> ;
] [ sp:object _:b18 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b19 ;
] [ sp:object _:b22 ;
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#createDate> ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b18
sp:arg1 _:b21
] ;
sp:variable _:b20
sp:variable _:b23
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
sp:arg1 _:b20 ;
sp:arg2 _:b19
sp:arg1 _:b23 ;
sp:arg2 _:b17
] ;
sp:variable _:b17
])
sp:variable _:b15
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b23 ;
sp:arg2 _:b18
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 102 Transfer dTimEnd"^^xsd:string ;
sp:templates ([ sp:object _:b21 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject _:b22
]) ;
sp:where ([ sp:object _:b23 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b24 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b21 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimEnd> ;
sp:subject spin:_this
sp:variable _:b16
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b23
[ rdf:type ep-spin-lib:buildTemporalPartOfAWellBoreURI ;
sp:arg1 _:b23 ;
sp:arg2 _:b18 ;
sp:arg3 _:b22
] ;
sp:variable _:b25
sp:variable _:b19
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b25 ;
sp:arg2 _:b24
[ rdf:type rhspin:wellBoreByName ;
arg:wellBoreName _:b21
] ;
sp:variable _:b22
sp:variable _:b20
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 104 Create Well"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ;
rdfs:comment """STEP 103
Classify a DailyDrillingReport"""^^xsd:string ;
sp:templates ([ sp:object _:b24 ;
sp:predicate rdf:type ;
sp:subject _:b26
] [ sp:object _:b27 ;
sp:predicate rdfs:label ;
sp:subject _:b26
] [ sp:object _:b26 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ;
sp:subject _:b28
] [ sp:object _:b29 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject _:b26
sp:subject _:b25
]) ;
sp:where ([ sp:object _:b30 ;
sp:where ([ sp:object _:b26 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b27 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWell> ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ;
sp:subject spin:_this
] [ sp:object _:b31 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
] [ sp:object _:b28 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#enumVersionKind> ;
sp:subject spin:_this
] [ sp:object _:b29 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b28
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectDailyDrillingReportType ;
sp:arg1 _:b28
] ;
sp:variable _:b24
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b30
sp:arg1 _:b26
] ;
sp:variable _:b32
sp:variable _:b29
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b32 ;
sp:arg2 _:b31
[ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
sp:arg1 _:b29 ;
sp:arg2 _:b27
] ;
sp:variable _:b25
])
] ;
sp:variable _:b28
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 101a Set name of DailyDrillingReport as label
Minimum data - createDate, dTimStart, nameWellBore"""^^xsd:string ;
sp:templates ([ sp:object _:b30 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject _:b31
]) ;
sp:where ([ sp:object _:b32 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b30 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#name> ;
sp:subject spin:_this
] [ sp:object _:b33 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b27
sp:arg1 _:b32
] ;
sp:variable _:b33
sp:variable _:b34
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type rhspin:wellByName ;
sp:arg1 _:b33
[ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
sp:arg1 _:b34 ;
sp:arg2 _:b33
] ;
sp:variable _:b26
sp:variable _:b31
])
] .
<http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/transform/1.1/ddr> ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/ep/transform/1.1/ddr> , <http://www.reportinghub.no/ep/schema/1.0/report> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
_:b6 sp:varName "wellBore"^^xsd:string .
_:b5 sp:varName "temporalPartOfAWellBore"^^xsd:string .
_:b32
sp:varName "nameWellBore"^^xsd:string .
_:b2 sp:varName "dailyDrillingActivity"^^xsd:string .
_:b30
sp:varName "nameDailyDrillingReport"^^xsd:string .
_:b1 sp:varName "dailyDrillingReport"^^xsd:string .
_:b33
sp:varName "createDate"^^xsd:string .
_:b9 sp:varName "normalizedWellBoreName"^^xsd:string .
_:b34
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b3 sp:varName "createDate"^^xsd:string .
_:b31
sp:varName "dailyDrillingReport"^^xsd:string .
_:b8 sp:varName "dTimEnd"^^xsd:string .
_:b21
sp:varName "nameWellBore"^^xsd:string .
_:b4 sp:varName "dTimStart"^^xsd:string .
_:b18
sp:varName "dTimStart"^^xsd:string .
_:b7 sp:varName "nameWellBore"^^xsd:string .
_:b22
sp:varName "dTimEnd"^^xsd:string .
_:b33
sp:varName "normalizedWellName"^^xsd:string .
_:b17
sp:varName "createDate"^^xsd:string .
_:b32
_:b23
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b31
sp:varName "dTimStart"^^xsd:string .
_:b15
sp:varName "dailyDrillingReport"^^xsd:string .
_:b30
sp:varName "nameWellBore"^^xsd:string .
_:b16
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b29
_:b19
sp:varName "temporalPartOfAWellBore"^^xsd:string .
_:b20
sp:varName "wellBore"^^xsd:string .
_:b28
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b5 sp:varName "nameWellBore"^^xsd:string .
_:b27
sp:varName "nameWell"^^xsd:string .
_:b2 sp:varName "nameWell"^^xsd:string .
_:b26
sp:varName "well"^^xsd:string .
_:b6 sp:varName "dTimStart"^^xsd:string .
_:b15
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b3 sp:varName "dailyDrillingActivity"^^xsd:string .
_:b14
sp:varName "versionKind"^^xsd:string .
_:b7 sp:varName "temporalPartOfAWellBore"^^xsd:string .
_:b13
sp:varName "createDate"^^xsd:string .
_:b4 sp:varName "wellBore"^^xsd:string .
_:b12
sp:varName "nameWellBore"^^xsd:string .
_:b8 sp:varName "normalizedWellBoreName"^^xsd:string .
_:b11
sp:varName "dailyDrillingReport"^^xsd:string .
_:b9 sp:varName "normalizedWellName"^^xsd:string .
_:b10
sp:varName "dailyDrillingReportType"^^xsd:string .
_:b1 sp:varName "well"^^xsd:string .
_:b20
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b24
sp:varName "dailyDrillingReportType"^^xsd:string .
_:b19
sp:varName "createDate"^^xsd:string .
_:b25
sp:varName "dailyDrillingReport"^^xsd:string .
_:b18
_:b26
sp:varName "nameWellBore"^^xsd:string .
_:b17
sp:varName "dailyDrillingReport"^^xsd:string .
_:b27
sp:varName "createDate"^^xsd:string .
_:b16
sp:varName "nameDailyDrillingReport"^^xsd:string .
_:b28
sp:varName "versionKind"^^xsd:string .
_:b25
_:b29
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b24
sp:varName "dTimStart"^^xsd:string .
_:b10
sp:varName "dTimEnd"^^xsd:string .
_:b23
_:b11
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b12
sp:varName "nameWellBore"^^xsd:string .
_:b22
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b13
sp:varName "dTimStart"^^xsd:string .
_:b21
sp:varName "dTimEnd"^^xsd:string .
_:b14
sp:varName "normalizedWellBoreName"^^xsd:string .
......
# Saved by TopBraid on Wed Aug 10 11:13:52 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Wed Aug 10 14:09:07 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/normalization
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/schema/1.0/activity
# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose
# 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
# 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
......@@ -20,11 +15,13 @@
@prefix sp: <http://spinrdf.org/sp#> .
@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/ddr/statusInfo> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/transform/1.1/ddr/activity> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> , <http://www.reportinghub.no/ep/schema/1.0/ddr> ;
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
......@@ -65,8 +62,8 @@ owl:Thing
])
] .
_:b3 sp:varName "newLabel"^^xsd:string .
_:b1 sp:varName "oldLabel"^^xsd:string .
_:b2 sp:varName "p"^^xsd:string .
_:b1 sp:varName "oldLabel"^^xsd:string .
_:b3 sp:varName "newLabel"^^xsd:string .
......
# Saved by TopBraid on Wed Aug 10 14:09:07 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Wed Aug 10 18:50:05 PDT 2011
# 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/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#> .
......@@ -21,8 +23,18 @@
@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#> .
NPD_1104121247071:r-0-7
sxml:element "witsml:wellAlias"^^xsd:string .
NPD_1104121247071:r-0-8
sxml:element "witsml:wellboreAlias"^^xsd:string .
NPD_1104121247071:r-0-9
sxml:element "witsml:wellboreAlias"^^xsd:string .
ddr:Cs_activity
spin:rule
[ rdf:type sp:Construct ;
......@@ -120,7 +132,7 @@ ddr:Cs_refWellWellboreRig
sxml:element "witsml:refWellWellboreRig" .
ddr:Cs_wellAlias
sxml:element "witsml:wellAlias" , "witsml:wellboreAlias"^^xsd:string .
sxml:element "witsml:wellboreAlias"^^xsd:string , "witsml:wellAlias"^^xsd:string .
ddr:Cs_wellCRS
sxml:element "witsml:wellCRS" .
......@@ -137,175 +149,245 @@ ddr:Obj_drillReport
ddr:Thing
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 004 - Construct UOM values"^^xsd:string ;
rdfs:comment "STEP 018 - Construct all other object properties - WIP"^^xsd:string ;
sp:templates ([ sp:object _:b1 ;
sp:predicate _:b2 ;
sp:subject spin:_this
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b2
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 ddr:uom ;
sp:subject _:b2
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b1
]) ;
sp:where ([ sp:object _:b4 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b5
] [ sp:object _:b2 ;
sp:predicate owl:onProperty ;
sp:subject _:b5
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 _:b2
] ;
sp:variable _:b6
] [ sp:object _:b4 ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object _:b1 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject spin:_this
] [ sp:object _:b7 ;
sp:predicate sxml:instanceElement ;
sp:subject _:b1
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
sp:arg1 _:b7 ;
sp:arg2 "(.*):(.*)" ;
sp:arg3 "$2"
] ;
sp:variable _:b8
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:eq ;
sp:arg1 _:b8 ;
sp:arg2 _:b6
]
] [ sp:object _:b9 ;
sp:predicate rdf:type ;
sp:subject spin:_this
] [ rdf:type sp:TriplePath ;
sp:object _:b5 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b9
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 004 - Construct UOM values"^^xsd:string ;
sp:templates ([ sp:object _:b10 ;
sp:predicate rdf:type ;
sp:subject _:b11
] [ sp:object _:b12 ;
sp:predicate ddr:uom ;
sp:subject _:b11
] [ sp:object _:b13 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b2
] [ sp:object _:b2 ;
sp:predicate _:b5 ;
sp:subject _:b11
] [ sp:object _:b11 ;
sp:predicate _:b14 ;
sp:subject spin:_this
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b6
sp:subject _:b15
] [ sp:object spin:_this ;
sp:predicate rdf:subject ;
sp:subject _:b6
] [ sp:object _:b5 ;
sp:subject _:b15
] [ sp:object _:b14 ;
sp:predicate rdf:predicate ;
sp:subject _:b6
] [ sp:object _:b4 ;
sp:subject _:b15
] [ sp:object _:b13 ;
sp:predicate rdf:object ;
sp:subject _:b6
] [ sp:object _:b6 ;
sp:subject _:b15
] [ sp:object _:b15 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b7
sp:subject _:b16
]) ;
sp:where ([ sp:object _:b7 ;
sp:where ([ sp:object _:b16 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject spin:_this
] [ sp:object _:b8 ;
] [ sp:object _:b17 ;
sp:predicate rdf:type ;
sp:subject _:b7
] [ sp:object _:b3 ;
sp:subject _:b16
] [ sp:object _:b12 ;
sp:predicate ddr:uom ;
sp:subject _:b7
sp:subject _:b16
] [ 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
sp:subject _:b16
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 _:b8
sp:arg1 _:b17
] ;
sp:variable _:b9
sp:variable _:b18
] [ 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:arg2 _:b18
]
] ;
sp:variable _:b5
sp:variable _:b14
] [ sp:object owl:ObjectProperty ;
sp:predicate rdf:type ;
sp:subject _:b5
] [ sp:object _:b5 ;
sp:subject _:b14
] [ sp:object _:b14 ;
sp:predicate owl:onProperty ;
sp:subject _:b10
] [ sp:object _:b1 ;
sp:subject _:b19
] [ sp:object _:b10 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b10
] [ sp:object _:b11 ;
sp:subject _:b19
] [ sp:object _:b20 ;
sp:predicate rdf:type ;
sp:subject spin:_this
] [ rdf:type sp:TriplePath ;
sp:object _:b10 ;
sp:object _:b19 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b11
] [ sp:object _:b12 ;
sp:subject _:b20
] [ sp:object _:b21 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b7
sp:subject _:b16
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b12
] [ sp:object _:b13 ;
sp:subject _:b21
] [ sp:object _:b22 ;
sp:predicate sxml:text ;
sp:subject _:b12
sp:subject _:b21
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:double ;
sp:arg1 _:b13
sp:arg1 _:b22
] ;
sp:variable _:b4
sp:variable _:b13
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 006 - Construct Enumerated Values"^^xsd:string ;
sp:templates ([ sp:object _:b14 ;
sp:predicate _:b15 ;
sp:templates ([ sp:object _:b23 ;
sp:predicate _:b24 ;
sp:subject spin:_this
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b16
sp:subject _:b25
] [ sp:object spin:_this ;
sp:predicate rdf:subject ;
sp:subject _:b16
] [ sp:object _:b15 ;
sp:subject _:b25
] [ sp:object _:b24 ;
sp:predicate rdf:predicate ;
sp:subject _:b16
] [ sp:object _:b14 ;
sp:subject _:b25
] [ sp:object _:b23 ;
sp:predicate rdf:object ;
sp:subject _:b16
] [ sp:object _:b16 ;
sp:subject _:b25
] [ sp:object _:b25 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b17
sp:subject _:b26
]) ;
sp:where ([ sp:object _:b17 ;
sp:where ([ sp:object _:b26 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject spin:_this
] [ sp:object _:b18 ;
] [ sp:object _:b27 ;
sp:predicate rdf:type ;
sp:subject _:b17
sp:subject _:b26
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "uom"^^xsd:string
] ;
sp:predicate ddr:uom ;
sp:subject _:b17
sp:subject _:b26
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:titleCase ;
sp:arg1 [ rdf:type afn:localname ;
sp:arg1 _:b18
sp:arg1 _:b27
]
] ;
sp:variable _:b19
sp:variable _:b28
] [ 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:arg2 _:b28
]
] ;
sp:variable _:b15
sp:variable _:b24
] [ sp:object owl:ObjectProperty ;
sp:predicate rdf:type ;
sp:subject _:b15
] [ sp:object _:b15 ;
sp:subject _:b24
] [ sp:object _:b24 ;
sp:predicate owl:onProperty ;
sp:subject _:b20
] [ sp:object _:b21 ;
sp:subject _:b29
] [ sp:object _:b30 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b20
] [ sp:object _:b22 ;
sp:subject _:b29
] [ sp:object _:b31 ;
sp:predicate rdf:type ;
sp:subject spin:_this
] [ rdf:type sp:TriplePath ;
sp:object _:b20 ;
sp:object _:b29 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b22
sp:subject _:b31
] [ rdf:type sp:TriplePath ;
sp:object <http://www.linkedmodel.org/schema/dtype#EnumeratedValue> ;
sp:path [ rdf:type sp:ModPath ;
......@@ -313,130 +395,137 @@ ddr:Thing
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b21
] [ sp:object _:b23 ;
sp:subject _:b30
] [ sp:object _:b32 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b17
sp:subject _:b26
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b23
] [ sp:object _:b24 ;
sp:subject _:b32
] [ sp:object _:b33 ;
sp:predicate sxml:text ;
sp:subject _:b23
] [ sp:object _:b21 ;
sp:subject _:b32
] [ sp:object _:b30 ;
sp:predicate rdf:type ;
sp:subject _:b14
] [ sp:object _:b24 ;
sp:subject _:b23
] [ sp:object _:b33 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b14
sp:subject _:b23
])
] ;
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:templates ([ sp:object _:b34 ;
sp:predicate _:b35 ;
sp:subject spin:_this
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b27
sp:subject _:b36
] [ sp:object spin:_this ;
sp:predicate rdf:subject ;
sp:subject _:b27
] [ sp:object _:b26 ;
sp:subject _:b36
] [ sp:object _:b35 ;
sp:predicate rdf:predicate ;
sp:subject _:b27
] [ sp:object _:b25 ;
sp:subject _:b36
] [ sp:object _:b34 ;
sp:predicate rdf:object ;
sp:subject _:b27
] [ sp:object _:b27 ;
sp:subject _:b36
] [ sp:object _:b36 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b25
sp:subject _:b34
]) ;
sp:where ([ sp:object _:b28 ;
sp:where ([ sp:object _:b37 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b29
] [ sp:object _:b26 ;
sp:subject _:b38
] [ sp:object _:b35 ;
sp:predicate owl:onProperty ;
sp:subject _:b29
] [ sp:object _:b28 ;
sp:subject _:b38
] [ sp:object _:b37 ;
sp:predicate rdf:type ;
sp:subject _:b25
] [ sp:object _:b25 ;
sp:subject _:b34
] [ sp:object _:b34 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject spin:_this
] [ sp:object _:b30 ;
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "xmlTag"^^xsd:string
] ;
sp:predicate sxml:instanceElement ;
sp:subject _:b34
])
] [ sp:object _:b39 ;
sp:predicate rdf:type ;
sp:subject spin:_this
] [ rdf:type sp:TriplePath ;
sp:object _:b29 ;
sp:object _:b38 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b30
sp:subject _:b39
])
] ;
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:templates ([ sp:object _:b40 ;
sp:predicate _:b41 ;
sp:subject spin:_this
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b33
sp:subject _:b42
] [ sp:object spin:_this ;
sp:predicate rdf:subject ;
sp:subject _:b33
] [ sp:object _:b32 ;
sp:subject _:b42
] [ sp:object _:b41 ;
sp:predicate rdf:predicate ;
sp:subject _:b33
] [ sp:object _:b31 ;
sp:subject _:b42
] [ sp:object _:b40 ;
sp:predicate rdf:object ;
sp:subject _:b33
] [ sp:object _:b33 ;
sp:subject _:b42
] [ sp:object _:b42 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b34
sp:subject _:b43
]) ;
sp:where ([ sp:object _:b34 ;
sp:where ([ sp:object _:b43 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject spin:_this
] [ sp:object _:b35 ;
] [ sp:object _:b44 ;
sp:predicate rdf:type ;
sp:subject _:b34
sp:subject _:b43
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "uom"^^xsd:string
] ;
sp:predicate ddr:uom ;
sp:subject _:b34
sp:subject _:b43
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 _:b35
sp:arg1 _:b44
] ;
sp:variable _:b36
sp:variable _:b45
] [ 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:arg2 _:b45
]
] ;
sp:variable _:b32
sp:variable _:b41
] [ sp:object owl:DatatypeProperty ;
sp:predicate rdf:type ;
sp:subject _:b32
] [ sp:object _:b32 ;
sp:subject _:b41
] [ sp:object _:b41 ;
sp:predicate owl:onProperty ;
sp:subject _:b37
] [ sp:object _:b38 ;
sp:subject _:b46
] [ sp:object _:b47 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b37
sp:subject _:b46
] [ rdf:type sp:TriplePath ;
sp:object xsd:dateTime ;
sp:path [ rdf:type sp:ModPath ;
......@@ -444,94 +533,94 @@ ddr:Thing
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b38
] [ sp:object _:b39 ;
sp:subject _:b47
] [ sp:object _:b48 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b34
sp:subject _:b43
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b39
] [ sp:object _:b40 ;
sp:subject _:b48
] [ sp:object _:b49 ;
sp:predicate sxml:text ;
sp:subject _:b39
] [ sp:object _:b41 ;
sp:subject _:b48
] [ sp:object _:b50 ;
sp:predicate rdf:type ;
sp:subject spin:_this
] [ rdf:type sp:TriplePath ;
sp:object _:b37 ;
sp:object _:b46 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b41
sp:subject _:b50
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:dateTime ;
sp:arg1 _:b40
sp:arg1 _:b49
] ;
sp:variable _:b31
sp:variable _:b40
])
] ;
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:templates ([ sp:object _:b51 ;
sp:predicate _:b52 ;
sp:subject spin:_this
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b44
sp:subject _:b53
] [ sp:object spin:_this ;
sp:predicate rdf:subject ;
sp:subject _:b44
] [ sp:object _:b43 ;
sp:subject _:b53
] [ sp:object _:b52 ;
sp:predicate rdf:predicate ;
sp:subject _:b44
] [ sp:object _:b42 ;
sp:subject _:b53
] [ sp:object _:b51 ;
sp:predicate rdf:object ;
sp:subject _:b44
] [ sp:object _:b44 ;
sp:subject _:b53
] [ sp:object _:b53 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b45
sp:subject _:b54
]) ;
sp:where ([ sp:object _:b45 ;
sp:where ([ sp:object _:b54 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject spin:_this
] [ sp:object _:b46 ;
] [ sp:object _:b55 ;
sp:predicate rdf:type ;
sp:subject _:b45
sp:subject _:b54
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "uom"^^xsd:string
] ;
sp:predicate ddr:uom ;
sp:subject _:b45
sp:subject _:b54
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 _:b46
sp:arg1 _:b55
] ;
sp:variable _:b47
sp:variable _:b56
] [ 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:arg2 _:b56
]
] ;
sp:variable _:b43
sp:variable _:b52
] [ sp:object owl:DatatypeProperty ;
sp:predicate rdf:type ;
sp:subject _:b43
] [ sp:object _:b43 ;
sp:subject _:b52
] [ sp:object _:b52 ;
sp:predicate owl:onProperty ;
sp:subject _:b48
] [ sp:object _:b49 ;
sp:subject _:b57
] [ sp:object _:b58 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b48
sp:subject _:b57
] [ rdf:type sp:TriplePath ;
sp:object xsd:string ;
sp:path [ rdf:type sp:ModPath ;
......@@ -539,27 +628,27 @@ ddr:Thing
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b49
] [ sp:object _:b50 ;
sp:subject _:b58
] [ sp:object _:b59 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b45
sp:subject _:b54
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b50
] [ sp:object _:b42 ;
sp:predicate sxml:text ;
sp:subject _:b50
sp:subject _:b59
] [ sp:object _:b51 ;
sp:predicate sxml:text ;
sp:subject _:b59
] [ sp:object _:b60 ;
sp:predicate rdf:type ;
sp:subject spin:_this
] [ rdf:type sp:TriplePath ;
sp:object _:b48 ;
sp:object _:b57 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b51
sp:subject _:b60
])
] .
......@@ -576,97 +665,97 @@ ddr:version
<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: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:resultVariables (_:b52 _:b53 _:b54 _:b55) ;
sp:resultVariables (_:b61 _:b62 _:b63 _:b64) ;
sp:where ([ sp:object <http://topbraid.org/sxsd#ComplexType> ;
sp:predicate rdf:type ;
sp:subject _:b56
sp:subject _:b65
] [ rdf:type sp:TriplePath ;
sp:object _:b57 ;
sp:object _:b66 ;
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:subject _:b65
] [ sp:object _:b67 ;
sp:predicate <http://topbraid.org/sxsd#name> ;
sp:subject _:b56
] [ sp:object _:b55 ;
sp:subject _:b65
] [ sp:object _:b64 ;
sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ;
sp:subject _:b57
] [ sp:object _:b59 ;
sp:subject _:b66
] [ sp:object _:b68 ;
sp:predicate <http://topbraid.org/sxsd#name> ;
sp:subject _:b57
sp:subject _:b66
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:titleCase ;
sp:arg1 _:b59
sp:arg1 _:b68
] ;
sp:variable _:b60
sp:variable _:b69
] [ 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:arg2 _:b69
]
] ;
sp:variable _:b54
sp:variable _:b63
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:titleCase ;
sp:arg1 _:b58 ;
sp:arg1 _:b67 ;
sp:arg2 "[a-z]s"
] ;
sp:variable _:b61
sp:variable _:b70
] [ 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:arg2 _:b70
]
] ;
sp:variable _:b53
sp:variable _:b62
] [ 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:arg2 _:b70 ;
sp:arg3 "-has" ;
sp:arg4 _:b60
sp:arg4 _:b69
]
] ;
sp:variable _:b52
sp:variable _:b61
])
] ;
spin:query
[ rdf:type sp:Select ;
sp:resultVariables (_:b62 _:b63 _:b64 _:b65) ;
sp:where ([ sp:object _:b65 ;
sp:resultVariables (_:b71 _:b72 _:b73 _:b74) ;
sp:where ([ sp:object _:b74 ;
sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ;
sp:subject _:b64
] [ sp:object _:b64 ;
sp:subject _:b73
] [ sp:object _:b73 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b63
sp:subject _:b72
] [ rdf:type sp:Union ;
sp:elements (([ sp:object <http://topbraid.org/sxsd#Sequence> ;
sp:predicate rdf:type ;
sp:subject _:b63
sp:subject _:b72
]) ([ sp:object <http://topbraid.org/sxsd#Choice> ;
sp:predicate rdf:type ;
sp:subject _:b63
sp:subject _:b72
]))
] [ sp:object _:b63 ;
] [ sp:object _:b72 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b62
sp:subject _:b71
])
] ;
spin:query
......@@ -675,231 +764,254 @@ owl:Thing
[ sp:varName "p"^^xsd:string
] ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b66
sp:subject _:b75
] [ 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
sp:subject _:b75
])
])
] ;
spin:update
[ rdf:type sp:Modify ;
sp:deletePattern ([ sp:object _:b67 ;
sp:deletePattern ([ sp:object _:b76 ;
sp:predicate rdfs:label ;
sp:subject _:b68
sp:subject _:b77
]) ;
sp:insertPattern ([ sp:object _:b69 ;
sp:insertPattern ([ sp:object _:b78 ;
sp:predicate rdfs:label ;
sp:subject _:b68
sp:subject _:b77
]) ;
sp:where ([ sp:object _:b68 ;
sp:where ([ sp:object _:b77 ;
sp:predicate owl:onProperty ;
sp:subject
[ sp:varName "r"^^xsd:string
]
] [ sp:object _:b67 ;
] [ sp:object _:b76 ;
sp:predicate rdfs:label ;
sp:subject _:b68
sp:subject _:b77
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type fn:starts-with ;
sp:arg1 _:b67 ;
sp:arg1 _:b76 ;
sp:arg2 "has"
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:trim ;
sp:arg1 [ rdf:type smf:regex ;
sp:arg1 _:b67 ;
sp:arg1 _:b76 ;
sp:arg2 "has(.*)" ;
sp:arg3 "$1"
]
] ;
sp:variable _:b69
sp:variable _:b78
])
] .
_:b42
_:b51
sp:varName "text"^^xsd:string .
_:b43
_:b52
sp:varName "dtpnameU"^^xsd:string .
_:b45
_:b54
sp:varName "child"^^xsd:string .
_:b46
_:b55
sp:varName "childType"^^xsd:string .
_:b47
_:b56
sp:varName "childLocalName"^^xsd:string .
_:b48
_:b57
sp:varName "valuesRestriction"^^xsd:string .
_:b49
_:b58
sp:varName "rangeType"^^xsd:string .
_:b50
_:b59
sp:varName "textNode"^^xsd:string .
_:b51
_:b60
sp:varName "instType"^^xsd:string .
_:b31
_:b40
sp:varName "dateTime"^^xsd:string .
_:b32
_:b41
sp:varName "dtpnameU"^^xsd:string .
_:b34
_:b43
sp:varName "child"^^xsd:string .
_:b35
_:b44
sp:varName "childType"^^xsd:string .
_:b36
_:b45
sp:varName "childLocalName"^^xsd:string .
_:b37
_:b46
sp:varName "valuesRestriction"^^xsd:string .
_:b38
_:b47
sp:varName "rangeType"^^xsd:string .
_:b39
_:b48
sp:varName "textNode"^^xsd:string .
_:b40
_:b49
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
_:b50
sp:varName "instType"^^xsd:string .
_:b14
_:b23
sp:varName "enumeratedValue"^^xsd:string .
_:b15
_:b24
sp:varName "opnameU"^^xsd:string .
_:b17
_:b26
sp:varName "child"^^xsd:string .
_:b18
_:b27
sp:varName "childType"^^xsd:string .
_:b19
_:b28
sp:varName "childLocalName"^^xsd:string .
_:b20
_:b29
sp:varName "valuesRestriction"^^xsd:string .
_:b21
_:b30
sp:varName "rangeU"^^xsd:string .
_:b22
_:b31
sp:varName "instType"^^xsd:string .
_:b23
_:b32
sp:varName "textNode"^^xsd:string .
_:b24
_:b33
sp:varName "text"^^xsd:string .
_:b1 sp:varName "rangeU"^^xsd:string .
_:b10
sp:varName "rangeU"^^xsd:string .
_:b3 sp:varName "uom"^^xsd:string .
_:b12
sp:varName "uom"^^xsd:string .
_:b4 sp:varName "value"^^xsd:string .
_:b13
sp:varName "value"^^xsd:string .
_:b5 sp:varName "opnameU"^^xsd:string .
_:b14
sp:varName "opnameU"^^xsd:string .
_:b7 sp:varName "child"^^xsd:string .
_:b16
sp:varName "child"^^xsd:string .
_:b8 sp:varName "childType"^^xsd:string .
_:b17
sp:varName "childType"^^xsd:string .
_:b9 sp:varName "childLocalName"^^xsd:string .
_:b18
sp:varName "childLocalName"^^xsd:string .
_:b10
_:b19
sp:varName "allValuesRestriction"^^xsd:string .
_:b11
_:b20
sp:varName "instType"^^xsd:string .
_:b12
_:b21
sp:varName "textNode"^^xsd:string .
_:b13
_:b22
sp:varName "text"^^xsd:string .
_:b66
_:b75
sp:varName "c"^^xsd:string .
_:b62
_:b71
sp:varName "pp"^^xsd:string .
_:b63
_:b72
sp:varName "p"^^xsd:string .
_:b64
_:b73
sp:varName "s"^^xsd:string .
_:b65
_:b74
sp:varName "e"^^xsd:string .
_:b52
_:b61
sp:varName "ddrCPU"^^xsd:string .
_:b53
_:b62
sp:varName "ddrCU"^^xsd:string .
_:b54
_:b63
sp:varName "ddrPU"^^xsd:string .
_:b55
_:b64
sp:varName "mre"^^xsd:string .
_:b56
_:b65
sp:varName "s"^^xsd:string .
_:b57
_:b66
sp:varName "c"^^xsd:string .
_:b58
_:b67
sp:varName "name"^^xsd:string .
_:b59
_:b68
sp:varName "pname"^^xsd:string .
_:b60
_:b69
sp:varName "tcpname"^^xsd:string .
_:b61
_:b70
sp:varName "tcname"^^xsd:string .
_:b67
_:b76
sp:varName "oldLabel"^^xsd:string .
_:b68
_:b77
sp:varName "p"^^xsd:string .
_:b69
_:b78
sp:varName "newLabel"^^xsd:string .
_:b38
sp:varName "valuesRestriction"^^xsd:string .
_:b37
sp:varName "childType"^^xsd:string .
_:b35
sp:varName "formalProperty"^^xsd:string .
_:b34
sp:varName "child"^^xsd:string .
_:b39
sp:varName "instType"^^xsd:string .
_:b5 sp:varName "valuesRestriction"^^xsd:string .
_:b4 sp:varName "childType"^^xsd:string .
_:b2 sp:varName "formalProperty"^^xsd:string .
_:b6 sp:varName "propertyName"^^xsd:string .
_:b1 sp:varName "child"^^xsd:string .
_:b7 sp:varName "xmlTag"^^xsd:string .
_:b8 sp:varName "tagName"^^xsd:string .
_:b9 sp:varName "instType"^^xsd:string .
......
# Saved by TopBraid on Wed Aug 10 18:50:05 PDT 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Wed Aug 10 11:12:10 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias
# 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/wellAndWellBoreAlias#> .
@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 151 Transfer WellBore aliases"^^xsd:string ;
sp:templates ([ sp:object _:b1 ;
sp:predicate _:b2 ;
sp:subject _:b3
]) ;
sp:where ([ sp:object _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#wellboreAlias> ;
sp:subject spin:_this
] [ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#name> ;
sp:subject _:b6
] [ sp:object _:b7 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#enumNamingSystem> ;
sp:subject _:b6
] [ sp:object _:b8 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b9
] [ sp:object _:b3 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b8
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b4
] ;
sp:variable _:b10
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b10 ;
sp:arg2 _:b5
] ;
sp:variable _:b9
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectLabelOfSystem ;
sp:arg1 _:b7
] ;
sp:variable _:b2
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 150 Transfer Well aliases"^^xsd:string ;
sp:templates ([ sp:object _:b11 ;
sp:predicate _:b12 ;
sp:subject _:b13
]) ;
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#wellAlias> ;
sp:subject spin:_this
] [ sp:object _:b11 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#name> ;
sp:subject _:b16
] [ sp:object _:b17 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#enumNamingSystem> ;
sp:subject _:b16
] [ sp:object _:b13 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ;
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:buildDailyDrillingActivityURI ;
sp:arg1 _:b19 ;
sp:arg2 _:b15
] ;
sp:variable _:b18
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectLabelOfSystem ;
sp:arg1 _:b17
] ;
sp:variable _:b12
])
] .
<http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias>
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 .
_:b14
sp:varName "nameWellBore"^^xsd:string .
_:b15
sp:varName "dTimStart"^^xsd:string .
_:b16
sp:varName "wellAlias"^^xsd:string .
_:b11
sp:varName "name"^^xsd:string .
_:b17
sp:varName "namingSystem"^^xsd:string .
_:b18
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b13
sp:varName "well"^^xsd:string .
_:b19
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b12
sp:varName "labelOfSystem"^^xsd:string .
_:b4 sp:varName "nameWellBore"^^xsd:string .
_:b5 sp:varName "dTimStart"^^xsd:string .
_:b6 sp:varName "wellBoreAlias"^^xsd:string .
_:b1 sp:varName "name"^^xsd:string .
_:b7 sp:varName "namingSystem"^^xsd:string .
_:b9 sp:varName "dailyDrillingActivity"^^xsd:string .
_:b8 sp:varName "temporalPartOfAWellBore"^^xsd:string .
_:b3 sp:varName "wellBore"^^xsd:string .
_:b10
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b2 sp:varName "labelOfSystem"^^xsd:string .
[] rdf:type smf:regex .
[] rdf:type smf:trim .
[] rdf:type fn:starts-with .
[] rdf:type sp:Modify .
([]) .
([]) .
([] [] [ rdf:type sp:Filter
] [ rdf:type sp:Bind
]) .
# 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
]) .
([]) .
([]) .