Holger Knublauch

Misc clean up of EP ontologies and SXML importer

@prefix : <http://www.energistics.org/schemas/abstract#> .
@prefix vaem: <http://www.linkedmodel.org/schema/vaem#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix dtype: <http://www.linkedmodel.org/schema/dtype#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
:AbstractDataObject
a <http://www.w3.org/2002/07/owl#Class> ;
<http://www.w3.org/2000/01/rdf-schema#label>
"Abstract data object"^^xsd:string ;
<http://www.w3.org/2000/01/rdf-schema#subClassOf>
:AbstractObject ;
dc:description "Substitution group for normative data objects."^^xsd:string .
:AbstractContextualObject
a <http://www.w3.org/2002/07/owl#Class> ;
<http://www.w3.org/2000/01/rdf-schema#label>
"Abstract contextual object"^^xsd:string ;
<http://www.w3.org/2000/01/rdf-schema#subClassOf>
:AbstractObject ;
dc:description "Substitution group for contextual objects."^^xsd:string .
dc:description
<http://www.w3.org/2000/01/rdf-schema#label>
"description"^^xsd:string .
:AbstractObject
a <http://www.w3.org/2002/07/owl#Class> ;
<http://www.w3.org/2000/01/rdf-schema#label>
"Abstract object"^^xsd:string ;
# baseURI: http://www.energistics.org/schemas/abstract
# imports: http://www.linkedmodel.org/schema/dtype
# imports: http://www.linkedmodel.org/schema/vaem
@prefix abstract: <http://www.energistics.org/schemas/abstract#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dtype: <http://www.linkedmodel.org/schema/dtype#> .
@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 skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix vaem: <http://www.linkedmodel.org/schema/vaem#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
dc:description
rdfs:label "description"^^xsd:string .
<http://www.energistics.org/schemas/abstract>
rdf:type owl:Ontology ;
owl:imports <http://www.linkedmodel.org/schema/vaem> , <http://www.linkedmodel.org/schema/dtype> ;
owl:versionInfo "Created with TopBraid Composer from the XML Schema http://www.energistics.org/schemas/abstract"^^xsd:string .
abstract:AbstractContextualObject
rdf:type owl:Class ;
rdfs:label "Abstract contextual object"^^xsd:string ;
rdfs:subClassOf abstract:AbstractObject ;
dc:description "Substitution group for contextual objects."^^xsd:string .
abstract:AbstractDataObject
rdf:type owl:Class ;
rdfs:label "Abstract data object"^^xsd:string ;
rdfs:subClassOf abstract:AbstractObject ;
dc:description "Substitution group for normative data objects."^^xsd:string .
abstract:AbstractObject
rdf:type owl:Class ;
rdfs:label "Abstract object"^^xsd:string ;
dc:description """The intended abstract supertype of all schema roots
that may be a member of a substitution group (whether contextual or data).
The type of root global elements should be extended from this type and the
root global element should be declared to be a member of one of the above substitution groups."""^^xsd:string .
skos:prefLabel
a <http://www.w3.org/2002/07/owl#AnnotationProperty> ;
<http://www.w3.org/2000/01/rdf-schema#label>
"pref label"^^xsd:string .
<http://www.energistics.org/schemas/abstract>
a <http://www.w3.org/2002/07/owl#Ontology> ;
<http://www.w3.org/2002/07/owl#imports>
<http://www.linkedmodel.org/schema/dtype> , <http://www.linkedmodel.org/schema/vaem> ;
<http://www.w3.org/2002/07/owl#versionInfo>
"Created with TopBraid Composer from the XML Schema http://www.energistics.org/schemas/abstract"^^xsd:string .
root global element should be declared to be a member of one of the above substitution groups."""^^xsd:string .
skos:prefLabel
rdf:type owl:AnnotationProperty ;
rdfs:label "pref label"^^xsd:string .
......
# Saved by TopBraid on Mon Aug 01 14:26:29 PDT 2011
# baseURI: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://spinrdf.org/spin
@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
@prefix ep-spin-lib-1.1: <http://www.reportinghub.no/ep/spin/1.1/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/spin/1.1/lib>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-spin-lib:Function
rdf:type spin:Function ;
rdfs:label "Function"^^xsd:string ;
rdfs:subClassOf spin:Functions .
ep-spin-lib:buildURI
rdf:type spin:Function ;
rdfs:label "build URI"^^xsd:string ;
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b1) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:resource ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 spin:_arg1 ;
sp:arg2 spin:_arg2
]
] ;
sp:variable _:b1
])
] ;
spin:constraint
[ rdf:type spl:Argument ;
spl:predicate sp:arg1 ;
spl:valueType xsd:string
] ;
spin:constraint
[ rdf:type spl:Argument ;
spl:predicate sp:arg2 ;
spl:valueType xsd:string
] .
ep-spin-lib:buildWellBoreURI
rdf:type spin:Function ;
rdfs:label "build well bore URI"^^xsd:string ;
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b2) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/L_9999/W_9999#" ;
sp:arg2 spin:_arg1
] ;
sp:variable _:b2
])
] .
ep-spin-lib:buildWellURI
rdf:type spin:Function ;
rdfs:label "build well URI"^^xsd:string ;
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b3) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/L_9999#" ;
sp:arg2 spin:_arg1
] ;
sp:variable _:b3
])
] .
ep-spin-lib:normalizeString
rdf:type spin:Function ;
rdfs:label "normalize string"^^xsd:string ;
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b4) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
sp:arg1 spin:_arg1 ;
sp:arg2 "\\((.*)\\)" ;
sp:arg3 ""
] ;
sp:variable _:b5
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:trim ;
sp:arg1 _:b5
] ;
sp:variable _:b6
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:encodeURL ;
sp:arg1 _:b6
] ;
sp:variable _:b7
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
sp:arg1 _:b7 ;
sp:arg2 "%2F" ;
sp:arg3 "_"
] ;
sp:variable _:b8
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
sp:arg1 _:b8 ;
sp:arg2 "%[0-9A-F][0-9A-F]" ;
sp:arg3 ""
] ;
sp:variable _:b9
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
sp:arg1 _:b9 ;
sp:arg2 "\\+" ;
sp:arg3 "_"
] ;
sp:variable _:b10
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
sp:arg1 _:b10 ;
sp:arg2 "_+" ;
sp:arg3 "_"
] ;
sp:variable _:b11
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
sp:arg1 _:b11 ;
sp:arg2 "\\*" ;
sp:arg3 ""
] ;
sp:variable _:b12
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:string ;
sp:arg1 [ rdf:type smf:upperCase ;
sp:arg1 _:b12
]
] ;
sp:variable _:b4
])
] ;
spin:constraint
[ rdf:type spl:Argument ;
spl:predicate sp:arg1 ;
spl:valueType xsd:string
] .
_:b2 sp:varName "uri"^^xsd:string .
_:b3 sp:varName "uri"^^xsd:string .
_:b1 sp:varName "uri"^^xsd:string .
_:b5 sp:varName "s1"^^xsd:string .
_:b6 sp:varName "s2"^^xsd:string .
_:b7 sp:varName "t0a"^^xsd:string .
_:b8 sp:varName "t0b"^^xsd:string .
_:b9 sp:varName "t1"^^xsd:string .
_:b10
sp:varName "t2"^^xsd:string .
_:b11
sp:varName "t3"^^xsd:string .
_:b12
sp:varName "t4"^^xsd:string .
_:b4 sp:varName "normalizedStr"^^xsd:string .
# baseURI: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://spinrdf.org/spin
@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
@prefix ep-spin-lib-1.1: <http://www.reportinghub.no/ep/spin/1.1/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 spif: <http://spinrdf.org/spif#> .
@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/spin/1.1/lib>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-spin-lib:Function
rdf:type spin:Function ;
rdfs:label "Function"^^xsd:string ;
rdfs:subClassOf spin:Functions ;
spin:abstract "true"^^xsd:boolean .
ep-spin-lib:buildURI
rdf:type spin:Function ;
rdfs:label "build URI"^^xsd:string ;
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b1) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:iri ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 spin:_arg1 ;
sp:arg2 spin:_arg2
]
] ;
sp:variable _:b1
])
] ;
spin:constraint
[ rdf:type spl:Argument ;
spl:predicate sp:arg1 ;
spl:valueType xsd:string
] ;
spin:constraint
[ rdf:type spl:Argument ;
spl:predicate sp:arg2 ;
spl:valueType xsd:string
] .
ep-spin-lib:buildWellBoreURI
rdf:type spin:Function ;
rdfs:label "build well bore URI"^^xsd:string ;
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b2) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/L_9999/W_9999#" ;
sp:arg2 spin:_arg1
] ;
sp:variable _:b2
])
] .
ep-spin-lib:buildWellURI
rdf:type spin:Function ;
rdfs:label "build well URI"^^xsd:string ;
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b3) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/L_9999#" ;
sp:arg2 spin:_arg1
] ;
sp:variable _:b3
])
] .
ep-spin-lib:normalizeString
rdf:type spin:Function ;
rdfs:label "normalize string"^^xsd:string ;
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b4) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
sp:arg1 spin:_arg1 ;
sp:arg2 "\\((.*)\\)" ;
sp:arg3 ""
] ;
sp:variable _:b5
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:trim ;
sp:arg1 _:b5
] ;
sp:variable _:b6
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:encodeURL ;
sp:arg1 _:b6
] ;
sp:variable _:b7
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
sp:arg1 _:b7 ;
sp:arg2 "%2F" ;
sp:arg3 "_"
] ;
sp:variable _:b8
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
sp:arg1 _:b8 ;
sp:arg2 "%[0-9A-F][0-9A-F]" ;
sp:arg3 ""
] ;
sp:variable _:b9
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
sp:arg1 _:b9 ;
sp:arg2 "\\+" ;
sp:arg3 "_"
] ;
sp:variable _:b10
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
sp:arg1 _:b10 ;
sp:arg2 "_+" ;
sp:arg3 "_"
] ;
sp:variable _:b11
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
sp:arg1 _:b11 ;
sp:arg2 "\\*" ;
sp:arg3 ""
] ;
sp:variable _:b12
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:string ;
sp:arg1 [ rdf:type spif:upperCase ;
sp:arg1 _:b12
]
] ;
sp:variable _:b4
])
] ;
spin:constraint
[ rdf:type spl:Argument ;
spl:predicate sp:arg1 ;
spl:valueType xsd:string
] .
_:b2 sp:varName "uri"^^xsd:string .
_:b3 sp:varName "uri"^^xsd:string .
_:b1 sp:varName "uri"^^xsd:string .
_:b5 sp:varName "s1"^^xsd:string .
_:b6 sp:varName "s2"^^xsd:string .
_:b7 sp:varName "t0a"^^xsd:string .
_:b8 sp:varName "t0b"^^xsd:string .
_:b9 sp:varName "t1"^^xsd:string .
_:b10
sp:varName "t2"^^xsd:string .
_:b11
sp:varName "t3"^^xsd:string .
_:b12
sp:varName "t4"^^xsd:string .
_:b4 sp:varName "normalizedStr"^^xsd:string .
......
# Saved by TopBraid on Mon Aug 01 14:26:29 PDT 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> ;
composite:index "0"^^xsd:int
] .
# 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> ;
composite:index "0"^^xsd:int
] .
......
......@@ -119,784 +119,781 @@ ddr:DrillReports
ddr:Obj_drillReport
sxml:element "witsml:drillReport"^^xsd:string .
ddr:Thing
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 020 - Construct all other object properties - WIP"^^xsd:string ;
sp:templates ([ sp:object _:b1 ;
sp:predicate _:b2 ;
sp:subject _:b3
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b4
] [ sp:object _:b3 ;
sp:predicate rdf:subject ;
sp:subject _:b4
] [ sp:object _:b2 ;
sp:predicate rdf:predicate ;
sp:subject _:b4
] [ sp:object _:b1 ;
sp:predicate rdf:object ;
sp:subject _:b4
] [ sp:object _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b1
]) ;
sp:where ([ sp:object _:b1 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b3
] [ sp:object _:b5 ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object _:b6 ;
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://spinrdf.org/spin> , <http://topbraid.org/sxml> , <http://www.reportinghub.no/ep/schema/1.1.1/ddr> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
owl:Thing
spin:query
[ rdf:type sp:Select ;
sp:resultVariables (_:b1 _:b2 _:b3 _:b4) ;
sp:where ([ sp:object <http://topbraid.org/sxsd#ComplexType> ;
sp:predicate rdf:type ;
sp:subject _:b3
sp:subject _:b5
] [ rdf:type sp:TriplePath ;
sp:object _:b7 ;
sp:object _:b6 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
sp:subPath <http://www.topbraid.org/2007/05/composite.owl#child>
] ;
sp:subject _:b5
] [ sp:object _:b7 ;
sp:predicate <http://topbraid.org/sxsd#name> ;
sp:subject _:b5
] [ sp:object _:b4 ;
sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ;
sp:subject _:b6
] [ sp:object _:b8 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b7
] [ sp:object owl:Restriction ;
sp:predicate rdf:type ;
sp:subject _:b8
] [ sp:object _:b2 ;
sp:predicate owl:onProperty ;
sp:subject _:b8
] [ sp:object _:b5 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b8
sp:predicate <http://topbraid.org/sxsd#name> ;
sp:subject _:b6
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:titleCase ;
sp:arg1 _:b8
] ;
sp:variable _:b9
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ;
sp:arg2 _:b9
]
] ;
sp:variable _:b3
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:titleCase ;
sp:arg1 _:b7 ;
sp:arg2 "[a-z]s"
] ;
sp:variable _:b10
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
sp:arg2 _:b10
]
] ;
sp:variable _:b2
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/map/ddr#" ;
sp:arg2 _:b10 ;
sp:arg3 "-has" ;
sp:arg4 _:b9
]
] ;
sp:variable _:b1
])
] ;
spin:query
[ rdf:type sp:Select ;
sp:resultVariables (_:b11 _:b12 _:b13 _:b14) ;
sp:where ([ sp:object _:b14 ;
sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ;
sp:subject _:b13
] [ sp:object _:b13 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b12
] [ rdf:type sp:Union ;
sp:elements (([ sp:object <http://topbraid.org/sxsd#Sequence> ;
sp:predicate rdf:type ;
sp:subject _:b12
]) ([ sp:object <http://topbraid.org/sxsd#Choice> ;
sp:predicate rdf:type ;
sp:subject _:b12
]))
] [ sp:object _:b12 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b11
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 003 - Construct datatype string values"^^xsd:string ;
sp:templates ([ sp:object _:b9 ;
sp:predicate _:b10 ;
sp:subject _:b11
rdfs:comment "STEP 002 - Construct datatype datetime values"^^xsd:string ;
sp:templates ([ sp:object _:b15 ;
sp:predicate _:b16 ;
sp:subject _:b17
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b12
] [ sp:object _:b11 ;
sp:subject _:b18
] [ sp:object _:b17 ;
sp:predicate rdf:subject ;
sp:subject _:b12
] [ sp:object _:b10 ;
sp:subject _:b18
] [ sp:object _:b16 ;
sp:predicate rdf:predicate ;
sp:subject _:b12
] [ sp:object _:b9 ;
sp:subject _:b18
] [ sp:object _:b15 ;
sp:predicate rdf:object ;
sp:subject _:b12
] [ sp:object _:b12 ;
sp:subject _:b18
] [ sp:object _:b18 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b13
sp:subject _:b19
]) ;
sp:where ([ sp:object _:b13 ;
sp:where ([ sp:object _:b19 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b11
] [ sp:object _:b14 ;
sp:subject _:b17
] [ sp:object _:b20 ;
sp:predicate rdf:type ;
sp:subject _:b13
sp:subject _:b19
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "uom"^^xsd:string
] ;
sp:predicate ddr:uom ;
sp:subject _:b13
sp:subject _:b19
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 _:b14
sp:arg1 _:b20
] ;
sp:variable _:b15
sp:variable _:b21
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:buildURI ;
[ rdf:type spif:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
sp:arg2 _:b15
sp:arg2 _:b21
]
] ;
sp:variable _:b10
sp:variable _:b16
] [ sp:object owl:DatatypeProperty ;
sp:predicate rdf:type ;
sp:subject _:b10
] [ sp:object _:b16 ;
sp:subject _:b16
] [ sp:object _:b22 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b13
sp:subject _:b19
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b16
] [ sp:object _:b9 ;
sp:subject _:b22
] [ sp:object _:b23 ;
sp:predicate sxml:text ;
sp:subject _:b16
] [ sp:object _:b17 ;
sp:subject _:b22
] [ sp:object _:b24 ;
sp:predicate rdf:type ;
sp:subject _:b11
sp:subject _:b17
] [ rdf:type sp:TriplePath ;
sp:object _:b18 ;
sp:object _:b25 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b17
] [ sp:object _:b19 ;
sp:subject _:b24
] [ sp:object _:b26 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b18
sp:subject _:b25
] [ sp:object owl:Restriction ;
sp:predicate rdf:type ;
sp:subject _:b19
] [ sp:object _:b20 ;
sp:subject _:b26
] [ sp:object _:b27 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b19
] [ sp:object _:b10 ;
sp:subject _:b26
] [ sp:object _:b16 ;
sp:predicate owl:onProperty ;
sp:subject _:b19
sp:subject _:b26
] [ rdf:type sp:TriplePath ;
sp:object xsd:string ;
sp:object xsd:dateTime ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b20
sp:subject _:b27
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:dateTime ;
sp:arg1 _:b23
] ;
sp:variable _:b15
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 006 - Construct Enumerated Values"^^xsd:string ;
sp:templates ([ sp:object _:b21 ;
sp:predicate _:b22 ;
sp:subject _:b23
rdfs:comment "STEP 003 - Construct datatype string values"^^xsd:string ;
sp:templates ([ sp:object _:b28 ;
sp:predicate _:b29 ;
sp:subject _:b30
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b24
] [ sp:object _:b23 ;
sp:subject _:b31
] [ sp:object _:b30 ;
sp:predicate rdf:subject ;
sp:subject _:b24
] [ sp:object _:b22 ;
sp:subject _:b31
] [ sp:object _:b29 ;
sp:predicate rdf:predicate ;
sp:subject _:b24
] [ sp:object _:b21 ;
sp:subject _:b31
] [ sp:object _:b28 ;
sp:predicate rdf:object ;
sp:subject _:b24
] [ sp:object _:b24 ;
sp:subject _:b31
] [ sp:object _:b31 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b25
sp:subject _:b32
]) ;
sp:where ([ sp:object _:b25 ;
sp:where ([ sp:object _:b32 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b23
] [ sp:object _:b26 ;
sp:subject _:b30
] [ sp:object _:b33 ;
sp:predicate rdf:type ;
sp:subject _:b25
sp:subject _:b32
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "uom"^^xsd:string
] ;
sp:predicate ddr:uom ;
sp:subject _:b25
sp:subject _:b32
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:titleCase ;
sp:arg1 [ rdf:type afn:localname ;
sp:arg1 _:b26
]
[ rdf:type afn:localname ;
sp:arg1 _:b33
] ;
sp:variable _:b27
sp:variable _:b34
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:buildURI ;
[ rdf:type spif:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ;
sp:arg2 _:b27
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
sp:arg2 _:b34
]
] ;
sp:variable _:b22
] [ sp:object owl:ObjectProperty ;
sp:variable _:b29
] [ sp:object owl:DatatypeProperty ;
sp:predicate rdf:type ;
sp:subject _:b22
sp:subject _:b29
] [ sp:object _:b35 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b32
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b35
] [ sp:object _:b28 ;
sp:predicate sxml:text ;
sp:subject _:b35
] [ sp:object _:b36 ;
sp:predicate rdf:type ;
sp:subject _:b23
sp:subject _:b30
] [ rdf:type sp:TriplePath ;
sp:object _:b29 ;
sp:object _:b37 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b28
] [ sp:object _:b30 ;
sp:subject _:b36
] [ sp:object _:b38 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b29
sp:subject _:b37
] [ sp:object owl:Restriction ;
sp:predicate rdf:type ;
sp:subject _:b30
] [ sp:object _:b22 ;
sp:predicate owl:onProperty ;
sp:subject _:b30
] [ sp:object _:b31 ;
sp:subject _:b38
] [ sp:object _:b39 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b30
sp:subject _:b38
] [ sp:object _:b29 ;
sp:predicate owl:onProperty ;
sp:subject _:b38
] [ rdf:type sp:TriplePath ;
sp:object <http://www.linkedmodel.org/schema/dtype#EnumeratedValue> ;
sp:object xsd:string ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b31
] [ sp:object _:b32 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b25
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b32
] [ sp:object _:b33 ;
sp:predicate sxml:text ;
sp:subject _:b32
] [ sp:object _:b31 ;
sp:predicate rdf:type ;
sp:subject _:b21
] [ sp:object _:b33 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b21
sp:subject _:b39
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 004 - Construct UOM values"^^xsd:string ;
sp:templates ([ sp:object _:b34 ;
sp:templates ([ sp:object _:b40 ;
sp:predicate rdf:type ;
sp:subject _:b35
] [ sp:object _:b36 ;
sp:subject _:b41
] [ sp:object _:b42 ;
sp:predicate ddr:uom ;
sp:subject _:b35
] [ sp:object _:b37 ;
sp:subject _:b41
] [ sp:object _:b43 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b35
] [ sp:object _:b35 ;
sp:predicate _:b38 ;
sp:subject _:b39
sp:subject _:b41
] [ sp:object _:b41 ;
sp:predicate _:b44 ;
sp:subject _:b45
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b40
] [ sp:object _:b39 ;
sp:subject _:b46
] [ sp:object _:b45 ;
sp:predicate rdf:subject ;
sp:subject _:b40
] [ sp:object _:b38 ;
sp:subject _:b46
] [ sp:object _:b44 ;
sp:predicate rdf:predicate ;
sp:subject _:b40
] [ sp:object _:b37 ;
sp:subject _:b46
] [ sp:object _:b43 ;
sp:predicate rdf:object ;
sp:subject _:b40
] [ sp:object _:b40 ;
sp:subject _:b46
] [ sp:object _:b46 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b41
sp:subject _:b47
]) ;
sp:where ([ sp:object _:b41 ;
sp:where ([ sp:object _:b47 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b39
] [ sp:object _:b42 ;
sp:subject _:b45
] [ sp:object _:b48 ;
sp:predicate rdf:type ;
sp:subject _:b41
] [ sp:object _:b36 ;
sp:subject _:b47
] [ sp:object _:b42 ;
sp:predicate ddr:uom ;
sp:subject _:b41
sp:subject _:b47
] [ 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 _:b41
sp:subject _:b47
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 _:b42
sp:arg1 _:b48
] ;
sp:variable _:b43
sp:variable _:b49
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:buildURI ;
[ rdf:type spif:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ;
sp:arg2 [ rdf:type smf:titleCase ;
sp:arg1 _:b43
sp:arg2 [ rdf:type spif:titleCase ;
sp:arg1 _:b49
]
]
] ;
sp:variable _:b38
sp:variable _:b44
] [ sp:object owl:ObjectProperty ;
sp:predicate rdf:type ;
sp:subject _:b38
] [ sp:object _:b44 ;
sp:subject _:b44
] [ sp:object _:b50 ;
sp:predicate rdf:type ;
sp:subject _:b39
sp:subject _:b45
] [ rdf:type sp:TriplePath ;
sp:object _:b45 ;
sp:object _:b51 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b44
] [ sp:object _:b46 ;
sp:subject _:b50
] [ sp:object _:b52 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b45
sp:subject _:b51
] [ sp:object owl:Restriction ;
sp:predicate rdf:type ;
sp:subject _:b46
] [ sp:object _:b34 ;
sp:subject _:b52
] [ sp:object _:b40 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b46
] [ sp:object _:b38 ;
sp:subject _:b52
] [ sp:object _:b44 ;
sp:predicate owl:onProperty ;
sp:subject _:b46
] [ sp:object _:b47 ;
sp:subject _:b52
] [ sp:object _:b53 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b41
sp:subject _:b47
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b47
] [ sp:object _:b48 ;
sp:subject _:b53
] [ sp:object _:b54 ;
sp:predicate sxml:text ;
sp:subject _:b47
sp:subject _:b53
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:double ;
sp:arg1 _:b48
sp:arg1 _:b54
] ;
sp:variable _:b37
sp:variable _:b43
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 002 - Construct datatype datetime values"^^xsd:string ;
sp:templates ([ sp:object _:b49 ;
sp:predicate _:b50 ;
sp:subject _:b51
rdfs:comment "STEP 006 - Construct Enumerated Values"^^xsd:string ;
sp:templates ([ sp:object _:b55 ;
sp:predicate _:b56 ;
sp:subject _:b57
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b52
] [ sp:object _:b51 ;
sp:subject _:b58
] [ sp:object _:b57 ;
sp:predicate rdf:subject ;
sp:subject _:b52
] [ sp:object _:b50 ;
sp:subject _:b58
] [ sp:object _:b56 ;
sp:predicate rdf:predicate ;
sp:subject _:b52
] [ sp:object _:b49 ;
sp:subject _:b58
] [ sp:object _:b55 ;
sp:predicate rdf:object ;
sp:subject _:b52
] [ sp:object _:b52 ;
sp:subject _:b58
] [ sp:object _:b58 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b53
sp:subject _:b59
]) ;
sp:where ([ sp:object _:b53 ;
sp:where ([ sp:object _:b59 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b51
] [ sp:object _:b54 ;
sp:subject _:b57
] [ sp:object _:b60 ;
sp:predicate rdf:type ;
sp:subject _:b53
sp:subject _:b59
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "uom"^^xsd:string
] ;
sp:predicate ddr:uom ;
sp:subject _:b53
sp:subject _:b59
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 _:b54
[ rdf:type spif:titleCase ;
sp:arg1 [ rdf:type afn:localname ;
sp:arg1 _:b60
]
] ;
sp:variable _:b55
sp:variable _:b61
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:buildURI ;
[ rdf:type spif:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
sp:arg2 _:b55
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ;
sp:arg2 _:b61
]
] ;
sp:variable _:b50
] [ sp:object owl:DatatypeProperty ;
sp:predicate rdf:type ;
sp:subject _:b50
] [ sp:object _:b56 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b53
] [ sp:object sxml:TextNode ;
sp:variable _:b56
] [ sp:object owl:ObjectProperty ;
sp:predicate rdf:type ;
sp:subject _:b56
] [ sp:object _:b57 ;
sp:predicate sxml:text ;
sp:subject _:b56
] [ sp:object _:b58 ;
] [ sp:object _:b62 ;
sp:predicate rdf:type ;
sp:subject _:b51
sp:subject _:b57
] [ rdf:type sp:TriplePath ;
sp:object _:b59 ;
sp:object _:b63 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b58
] [ sp:object _:b60 ;
sp:subject _:b62
] [ sp:object _:b64 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b59
sp:subject _:b63
] [ sp:object owl:Restriction ;
sp:predicate rdf:type ;
sp:subject _:b60
] [ sp:object _:b61 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b60
] [ sp:object _:b50 ;
sp:subject _:b64
] [ sp:object _:b56 ;
sp:predicate owl:onProperty ;
sp:subject _:b60
sp:subject _:b64
] [ sp:object _:b65 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b64
] [ rdf:type sp:TriplePath ;
sp:object xsd:dateTime ;
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 _:b61
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:dateTime ;
sp:arg1 _:b57
] ;
sp:variable _:b49
sp:subject _:b65
] [ sp:object _:b66 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b59
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b66
] [ sp:object _:b67 ;
sp:predicate sxml:text ;
sp:subject _:b66
] [ sp:object _:b65 ;
sp:predicate rdf:type ;
sp:subject _:b55
] [ sp:object _:b67 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b55
])
] ;
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> ;
rdfs:comment "STEP 020 - Construct all other object properties - WIP"^^xsd:string ;
sp:templates ([ sp:object _:b68 ;
sp:predicate _:b69 ;
sp:subject _:b70
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b62
sp:subject _:b71
] [ sp:object _:b70 ;
sp:predicate rdf:subject ;
sp:subject _:b71
] [ sp:object _:b69 ;
sp:predicate rdf:predicate ;
sp:subject _:b71
] [ sp:object _:b68 ;
sp:predicate rdf:object ;
sp:subject _:b71
] [ sp:object _:b71 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b68
]) ;
sp:where ([ sp:object ddr:Cs_activity ;
sp:predicate rdf:type ;
sp:subject _:b62
])
] .
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://spinrdf.org/spin> , <http://topbraid.org/sxml> , <http://www.reportinghub.no/ep/schema/1.1.1/ddr> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
owl:Thing
spin:query
[ rdf:type sp:Select ;
sp:resultVariables (_:b63 _:b64 _:b65 _:b66) ;
sp:where ([ sp:object _:b66 ;
sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ;
sp:subject _:b65
] [ sp:object _:b65 ;
sp:where ([ sp:object _:b68 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b64
] [ rdf:type sp:Union ;
sp:elements (([ sp:object <http://topbraid.org/sxsd#Sequence> ;
sp:predicate rdf:type ;
sp:subject _:b64
]) ([ sp:object <http://topbraid.org/sxsd#Choice> ;
sp:predicate rdf:type ;
sp:subject _:b64
]))
] [ sp:object _:b64 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b63
])
] ;
spin:query
[ rdf:type sp:Select ;
sp:resultVariables (_:b67 _:b68 _:b69 _:b70) ;
sp:where ([ sp:object <http://topbraid.org/sxsd#ComplexType> ;
sp:subject _:b70
] [ sp:object _:b72 ;
sp:predicate rdf:type ;
sp:subject _:b71
sp:subject _:b68
] [ sp:object _:b73 ;
sp:predicate rdf:type ;
sp:subject _:b70
] [ rdf:type sp:TriplePath ;
sp:object _:b72 ;
sp:object _:b74 ;
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 _:b71
] [ sp:object _:b73 ;
sp:predicate <http://topbraid.org/sxsd#name> ;
sp:subject _:b71
] [ sp:object _:b70 ;
sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ;
sp:subject _:b72
] [ sp:object _:b74 ;
sp:predicate <http://topbraid.org/sxsd#name> ;
sp:subject _:b72
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:titleCase ;
sp:arg1 _:b74
] ;
sp:variable _:b75
] [ 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 _:b75
]
] ;
sp:variable _:b69
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:titleCase ;
sp:arg1 _:b73 ;
sp:arg2 "[a-z]s"
] ;
sp:variable _:b76
] [ 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 _:b76
]
] ;
sp:variable _:b68
] [ 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 _:b76 ;
sp:arg3 "-has" ;
sp:arg4 _:b75
]
sp:subPath rdfs:subClassOf
] ;
sp:variable _:b67
sp:subject _:b73
] [ sp:object _:b75 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b74
] [ sp:object owl:Restriction ;
sp:predicate rdf:type ;
sp:subject _:b75
] [ sp:object _:b69 ;
sp:predicate owl:onProperty ;
sp:subject _:b75
] [ sp:object _:b72 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b75
])
] ;
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 _:b76
]) ;
sp:where ([ sp:object ddr:Cs_activity ;
sp:predicate rdf:type ;
sp:subject _:b76
])
] .
_:b66
sp:varName "e"^^xsd:string .
_:b65
sp:varName "s"^^xsd:string .
_:b64
sp:varName "p"^^xsd:string .
_:b63
sp:varName "pp"^^xsd:string .
_:b76
sp:varName "tcname"^^xsd:string .
_:b75
sp:varName "tcpname"^^xsd:string .
_:b74
sp:varName "pname"^^xsd:string .
_:b73
sp:varName "name"^^xsd:string .
_:b72
sp:varName "c"^^xsd:string .
_:b71
sp:varName "s"^^xsd:string .
_:b27
sp:varName "rangeType"^^xsd:string .
_:b70
sp:varName "mre"^^xsd:string .
_:b26
sp:varName "valuesRestriction"^^xsd:string .
_:b69
sp:varName "ddrPU"^^xsd:string .
_:b25
sp:varName "instClass"^^xsd:string .
_:b68
sp:varName "ddrCU"^^xsd:string .
_:b24
sp:varName "instType"^^xsd:string .
_:b67
sp:varName "ddrCPU"^^xsd:string .
_:b23
sp:varName "text"^^xsd:string .
_:b8 sp:varName "valuesRestriction"^^xsd:string .
_:b22
sp:varName "textNode"^^xsd:string .
_:b7 sp:varName "instClass"^^xsd:string .
_:b21
sp:varName "childLocalName"^^xsd:string .
_:b6 sp:varName "instType"^^xsd:string .
_:b20
sp:varName "childType"^^xsd:string .
_:b5 sp:varName "childType"^^xsd:string .
_:b19
sp:varName "child"^^xsd:string .
_:b3 sp:varName "inst"^^xsd:string .
_:b17
sp:varName "inst"^^xsd:string .
_:b2 sp:varName "formalProperty"^^xsd:string .
_:b16
sp:varName "dtpnameU"^^xsd:string .
_:b1 sp:varName "child"^^xsd:string .
_:b15
sp:varName "dateTime"^^xsd:string .
_:b20
_:b39
sp:varName "rangeType"^^xsd:string .
_:b19
_:b38
sp:varName "valuesRestriction"^^xsd:string .
_:b18
_:b37
sp:varName "instClass"^^xsd:string .
_:b17
_:b36
sp:varName "instType"^^xsd:string .
_:b16
_:b35
sp:varName "textNode"^^xsd:string .
_:b15
_:b34
sp:varName "childLocalName"^^xsd:string .
_:b14
_:b33
sp:varName "childType"^^xsd:string .
_:b13
_:b32
sp:varName "child"^^xsd:string .
_:b11
_:b30
sp:varName "inst"^^xsd:string .
_:b10
_:b29
sp:varName "dtpnameU"^^xsd:string .
_:b9 sp:varName "text"^^xsd:string .
_:b28
sp:varName "text"^^xsd:string .
_:b33
_:b54
sp:varName "text"^^xsd:string .
_:b32
_:b53
sp:varName "textNode"^^xsd:string .
_:b31
sp:varName "rangeU"^^xsd:string .
_:b30
sp:varName "valuesRestriction"^^xsd:string .
_:b52
sp:varName "allValuesRestriction"^^xsd:string .
_:b29
_:b51
sp:varName "instClass"^^xsd:string .
_:b28
_:b50
sp:varName "instType"^^xsd:string .
_:b27
_:b49
sp:varName "childLocalName"^^xsd:string .
_:b26
_:b48
sp:varName "childType"^^xsd:string .
_:b25
_:b47
sp:varName "child"^^xsd:string .
_:b23
_:b45
sp:varName "inst"^^xsd:string .
_:b22
_:b44
sp:varName "opnameU"^^xsd:string .
_:b21
sp:varName "enumeratedValue"^^xsd:string .
_:b43
sp:varName "value"^^xsd:string .
_:b48
_:b42
sp:varName "uom"^^xsd:string .
_:b40
sp:varName "rangeU"^^xsd:string .
_:b67
sp:varName "text"^^xsd:string .
_:b47
_:b66
sp:varName "textNode"^^xsd:string .
_:b46
sp:varName "allValuesRestriction"^^xsd:string .
_:b65
sp:varName "rangeU"^^xsd:string .
_:b45
_:b64
sp:varName "valuesRestriction"^^xsd:string .
_:b63
sp:varName "instClass"^^xsd:string .
_:b44
_:b62
sp:varName "instType"^^xsd:string .
_:b43
_:b61
sp:varName "childLocalName"^^xsd:string .
_:b42
_:b60
sp:varName "childType"^^xsd:string .
_:b41
_:b59
sp:varName "child"^^xsd:string .
_:b39
_:b57
sp:varName "inst"^^xsd:string .
_:b38
_:b56
sp:varName "opnameU"^^xsd:string .
_:b37
sp:varName "value"^^xsd:string .
_:b36
sp:varName "uom"^^xsd:string .
_:b34
sp:varName "rangeU"^^xsd:string .
_:b61
sp:varName "rangeType"^^xsd:string .
_:b55
sp:varName "enumeratedValue"^^xsd:string .
_:b60
_:b75
sp:varName "valuesRestriction"^^xsd:string .
_:b59
_:b74
sp:varName "instClass"^^xsd:string .
_:b58
_:b73
sp:varName "instType"^^xsd:string .
_:b57
sp:varName "text"^^xsd:string .
_:b56
sp:varName "textNode"^^xsd:string .
_:b72
sp:varName "childType"^^xsd:string .
_:b55
sp:varName "childLocalName"^^xsd:string .
_:b70
sp:varName "inst"^^xsd:string .
_:b54
sp:varName "childType"^^xsd:string .
_:b69
sp:varName "formalProperty"^^xsd:string .
_:b53
_:b68
sp:varName "child"^^xsd:string .
_:b51
sp:varName "inst"^^xsd:string .
_:b76
sp:varName "activity"^^xsd:string .
_:b50
sp:varName "dtpnameU"^^xsd:string .
_:b10
sp:varName "tcname"^^xsd:string .
_:b49
sp:varName "dateTime"^^xsd:string .
_:b9 sp:varName "tcpname"^^xsd:string .
_:b62
sp:varName "activity"^^xsd:string .
_:b8 sp:varName "pname"^^xsd:string .
_:b7 sp:varName "name"^^xsd:string .
_:b6 sp:varName "c"^^xsd:string .
_:b5 sp:varName "s"^^xsd:string .
_:b4 sp:varName "mre"^^xsd:string .
_:b3 sp:varName "ddrPU"^^xsd:string .
_:b2 sp:varName "ddrCU"^^xsd:string .
_:b1 sp:varName "ddrCPU"^^xsd:string .
_:b14
sp:varName "e"^^xsd:string .
_:b13
sp:varName "s"^^xsd:string .
_:b12
sp:varName "p"^^xsd:string .
_:b11
sp:varName "pp"^^xsd:string .
......
# Saved by TopBraid on Mon Aug 01 13:35:23 PDT 2011
# baseURI: http://www.reportinghub.no/ep/transform/normalization
@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> ;
composite:index "0"^^xsd:int
] .
# 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 Mon Aug 01 14:29:25 PDT 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/normalization
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr
# imports: http://spinrdf.org/spin
@prefix ddr-normalization: <http://www.reportinghub.no/ep/transform/ddr/normalization#> .
@prefix ddr-normalization-1.1: <http://www.reportinghub.no/ep/transform/1.1/ddr/normalization#> .
@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
@prefix normalization: <http://www.reportinghub.no/ep/transform/normalization#> .
@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/ddr#Obj_drillReport>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 101 Make Well and Well Bore Instances"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object _:b2 ;
sp:predicate rdfs:label ;
sp:subject _:b1
] [ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object _:b4 ;
sp:predicate rdfs:label ;
sp:subject _:b3
] [ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject _:b3
]) ;
sp:where ([ sp:object _:b2 ;
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#nameWell> ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b4
] ;
sp:variable _:b5
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildWellURI ;
sp:arg1 _:b5
] ;
sp:variable _:b3
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b2
] ;
sp:variable _:b6
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildWellBoreURI ;
sp:arg1 _:b6
] ;
sp:variable _:b1
])
] .
<http://www.reportinghub.no/ep/transform/1.1/ddr/normalization>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/transform/1.1/ddr> , <http://spinrdf.org/spin> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
_:b2 sp:varName "nameWellBore"^^xsd:string .
_:b4 sp:varName "nameWell"^^xsd:string .
_:b5 sp:varName "normalizedWellName"^^xsd:string .
_:b3 sp:varName "normalizedWellNameU"^^xsd:string .
_:b6 sp:varName "normalizedWellBoreName"^^xsd:string .
_:b1 sp:varName "normalizedWellBoreNameU"^^xsd:string .
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/normalization
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr
@prefix ddr-normalization: <http://www.reportinghub.no/ep/transform/ddr/normalization#> .
@prefix ddr-normalization-1.1: <http://www.reportinghub.no/ep/transform/1.1/ddr/normalization#> .
@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
@prefix normalization: <http://www.reportinghub.no/ep/transform/normalization#> .
@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 rhspin: <http://www.reportinghub.no/spin/rh#> .
@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 101 Make Well and Well Bore Instances"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object _:b2 ;
sp:predicate rdfs:label ;
sp:subject _:b1
] [ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object _:b4 ;
sp:predicate rdfs:label ;
sp:subject _:b3
] [ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject _:b3
]) ;
sp:where ([ sp:object _:b2 ;
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#nameWell> ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type rhspin:wellByName ;
sp:arg1 _:b4
] ;
sp:variable _:b3
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type rhspin:wellBoreByName ;
sp:arg1 _:b2
] ;
sp:variable _:b1
])
] .
<http://www.reportinghub.no/ep/transform/1.1/ddr/normalization>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/transform/1.1/ddr> , <http://spinrdf.org/spin> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
_:b4 sp:varName "nameWell"^^xsd:string .
_:b3 sp:varName "well"^^xsd:string .
_:b2 sp:varName "nameWellBore"^^xsd:string .
_:b1 sp:varName "wellBore"^^xsd:string .
......
# Saved by TopBraid on Mon Aug 01 14:29:25 PDT 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
] .
# 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
] .
......
# baseURI: http://www.reportinghub.no/spin/rh
# imports: http://spinrdf.org/spin
# imports: http://topbraid.org/spin/spinmapl
# imports: http://www.reportinghub.no/1.1/schema/npd
# imports: http://spinrdf.org/spin
@prefix fn: <http://www.w3.org/2005/xpath-functions#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
......@@ -42,7 +42,7 @@
<http://www.reportinghub.no/spin/rh>
rdf:type owl:Ontology ;
rdfs:comment "A collection of SPIN functions and templates to support working with the ReportingHub schemas."^^xsd:string ;
owl:imports <http://topbraid.org/spin/spinmapl> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/1.1/schema/npd> ;
owl:imports <http://www.reportinghub.no/1.1/schema/npd> , <http://spinrdf.org/spin> , <http://topbraid.org/spin/spinmapl> ;
owl:versionInfo "0.1.0"^^xsd:string .
rhspin:GetWellBoresOfWell
......@@ -82,7 +82,7 @@ rhspin:baaById
[ rdf:type sp:Select ;
sp:resultVariables ([ rdf:type sp:iri ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "https://www.reportinghub.no/data/npd/BAA-" ;
sp:arg1 "https://www.reportinghub.no/ep/data/BAA-" ;
sp:arg2 [ sp:varName "id"^^xsd:string
]
]
......@@ -104,7 +104,7 @@ rhspin:companyById
[ rdf:type sp:Select ;
sp:resultVariables ([ rdf:type sp:iri ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "https://www.reportinghub.no/data/npd/Company-" ;
sp:arg1 "https://www.reportinghub.no/ep/data/Company-" ;
sp:arg2 [ sp:varName "id"^^xsd:string
]
]
......@@ -126,7 +126,7 @@ rhspin:discoveryById
[ rdf:type sp:Select ;
sp:resultVariables ([ rdf:type sp:iri ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "https://www.reportinghub.no/data/npd/Discovery-" ;
sp:arg1 "https://www.reportinghub.no/ep/data/Discovery-" ;
sp:arg2 [ sp:varName "id"^^xsd:string
]
]
......@@ -148,7 +148,7 @@ rhspin:facilityById
[ rdf:type sp:Select ;
sp:resultVariables ([ rdf:type sp:iri ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "https://www.reportinghub.no/data/npd/Facility-" ;
sp:arg1 "https://www.reportinghub.no/ep/data/Facility-" ;
sp:arg2 [ sp:varName "id"^^xsd:string
]
]
......@@ -170,7 +170,7 @@ rhspin:fieldById
[ rdf:type sp:Select ;
sp:resultVariables ([ rdf:type sp:iri ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "https://www.reportinghub.no/data/npd/Field-" ;
sp:arg1 "https://www.reportinghub.no/ep/data/Field-" ;
sp:arg2 [ sp:varName "id"^^xsd:string
]
]
......@@ -192,7 +192,7 @@ rhspin:licenceById
[ rdf:type sp:Select ;
sp:resultVariables ([ rdf:type sp:iri ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "https://www.reportinghub.no/data/npd/Licence-" ;
sp:arg1 "https://www.reportinghub.no/ep/data/Licence-" ;
sp:arg2 [ sp:varName "id"^^xsd:string
]
]
......@@ -207,6 +207,91 @@ rhspin:licenceById
] ;
spin:returnType <http://www.reportinghub.no/schema/npd#Licence> .
rhspin:normalizeString
rdf:type spin:Function ;
rdfs:comment "Takes a raw string and \"normalizes\" it, replacing special characters so that they can be used in URIs."^^xsd:string ;
rdfs:label "normalize string"^^xsd:string ;
rdfs:subClassOf spl:StringFunctions ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b3) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
sp:arg1 spin:_arg1 ;
sp:arg2 "\\((.*)\\)" ;
sp:arg3 ""
] ;
sp:variable _:b4
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:trim ;
sp:arg1 _:b4
] ;
sp:variable _:b5
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:encodeURL ;
sp:arg1 _:b5
] ;
sp:variable _:b6
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
sp:arg1 _:b6 ;
sp:arg2 "%2F" ;
sp:arg3 "_"
] ;
sp:variable _:b7
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
sp:arg1 _:b7 ;
sp:arg2 "%[0-9A-F][0-9A-F]" ;
sp:arg3 ""
] ;
sp:variable _:b8
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
sp:arg1 _:b8 ;
sp:arg2 "\\+" ;
sp:arg3 "_"
] ;
sp:variable _:b9
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
sp:arg1 _:b9 ;
sp:arg2 "_+" ;
sp:arg3 "_"
] ;
sp:variable _:b10
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
sp:arg1 _:b10 ;
sp:arg2 "\\*" ;
sp:arg3 ""
] ;
sp:variable _:b11
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:string ;
sp:arg1 [ rdf:type spif:upperCase ;
sp:arg1 _:b11
]
] ;
sp:variable _:b3
])
] ;
spin:constraint
[ rdf:type spl:Argument ;
spl:predicate sp:arg1 ;
spl:valueType xsd:string
] ;
spin:returnType xsd:string .
rhspin:parentCompanyByName
rdf:type spin:Function ;
rdfs:comment "Gets the URI resource of a parent company based on its NPD name."^^xsd:string ;
......@@ -216,7 +301,7 @@ rhspin:parentCompanyByName
[ rdf:type sp:Select ;
sp:resultVariables ([ rdf:type sp:iri ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "https://www.reportinghub.no/data/npd/ParentCompany-" ;
sp:arg1 "https://www.reportinghub.no/ep/data/ParentCompany-" ;
sp:arg2 [ rdf:type spif:replaceAll ;
sp:arg1 [ sp:varName "name"^^xsd:string
] ;
......@@ -243,7 +328,7 @@ rhspin:tufById
[ rdf:type sp:Select ;
sp:resultVariables ([ rdf:type sp:iri ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "https://www.reportinghub.no/data/npd/TUF-" ;
sp:arg1 "https://www.reportinghub.no/ep/data/TUF-" ;
sp:arg2 [ sp:varName "id"^^xsd:string
]
]
......@@ -273,16 +358,10 @@ rhspin:wellBoreByName
[ rdf:type sp:Select ;
sp:resultVariables ([ rdf:type sp:iri ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "https://www.reportinghub.no/data/npd/WellBore-" ;
sp:arg2 [ rdf:type spif:replaceAll ;
sp:arg1 [ rdf:type spif:replaceAll ;
sp:arg1 [ sp:varName "wellBoreName"^^xsd:string
] ;
sp:arg2 " " ;
sp:arg3 "_"
] ;
sp:arg2 "/" ;
sp:arg3 "__"
sp:arg1 "https://www.reportinghub.no/ep/data/WellBore-" ;
sp:arg2 [ rdf:type rhspin:normalizeString ;
sp:arg1 [ sp:varName "wellBoreName"^^xsd:string
]
]
]
]) ;
......@@ -305,12 +384,10 @@ rhspin:wellByName
[ rdf:type sp:Select ;
sp:resultVariables ([ rdf:type sp:iri ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "https://www.reportinghub.no/data/npd/Well-" ;
sp:arg2 [ rdf:type spif:replaceAll ;
sp:arg1 "https://www.reportinghub.no/ep/data/Well-" ;
sp:arg2 [ rdf:type rhspin:normalizeString ;
sp:arg1 [ sp:varName "wellName"^^xsd:string
] ;
sp:arg2 "/" ;
sp:arg3 "__"
]
]
]
]) ;
......@@ -324,6 +401,26 @@ rhspin:wellByName
] ;
spin:returnType <http://www.reportinghub.no/schema/npd#Well> .
_:b2 sp:varName "wellBore"^^xsd:string .
_:b3 sp:varName "normalizedStr"^^xsd:string .
_:b4 sp:varName "s1"^^xsd:string .
_:b5 sp:varName "s2"^^xsd:string .
_:b6 sp:varName "t0a"^^xsd:string .
_:b7 sp:varName "t0b"^^xsd:string .
_:b8 sp:varName "t1"^^xsd:string .
_:b9 sp:varName "t2"^^xsd:string .
_:b10
sp:varName "t3"^^xsd:string .
_:b11
sp:varName "t4"^^xsd:string .
_:b1 sp:varName "wellBoreName"^^xsd:string .
_:b2 sp:varName "wellBore"^^xsd:string .
......