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#> .
# 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 xsd: <http://www.w3.org/2001/XMLSchema#> .
@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#> .
: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 .
dc:description
rdfs:label "description"^^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 ;
<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 .
dc:description
<http://www.w3.org/2000/01/rdf-schema#label>
"description"^^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 .
:AbstractObject
a <http://www.w3.org/2002/07/owl#Class> ;
<http://www.w3.org/2000/01/rdf-schema#label>
"Abstract object"^^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 .
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
......@@ -10,6 +9,7 @@
@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#> .
......@@ -22,7 +22,8 @@
ep-spin-lib:Function
rdf:type spin:Function ;
rdfs:label "Function"^^xsd:string ;
rdfs:subClassOf spin:Functions .
rdfs:subClassOf spin:Functions ;
spin:abstract "true"^^xsd:boolean .
ep-spin-lib:buildURI
rdf:type spin:Function ;
......@@ -33,7 +34,7 @@ ep-spin-lib:buildURI
sp:resultVariables (_:b1) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:resource ;
[ rdf:type sp:iri ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 spin:_arg1 ;
sp:arg2 spin:_arg2
......@@ -96,7 +97,7 @@ ep-spin-lib:normalizeString
sp:resultVariables (_:b4) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
[ rdf:type spif:regex ;
sp:arg1 spin:_arg1 ;
sp:arg2 "\\((.*)\\)" ;
sp:arg3 ""
......@@ -104,19 +105,19 @@ ep-spin-lib:normalizeString
sp:variable _:b5
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:trim ;
[ rdf:type spif:trim ;
sp:arg1 _:b5
] ;
sp:variable _:b6
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:encodeURL ;
[ rdf:type spif:encodeURL ;
sp:arg1 _:b6
] ;
sp:variable _:b7
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
[ rdf:type spif:regex ;
sp:arg1 _:b7 ;
sp:arg2 "%2F" ;
sp:arg3 "_"
......@@ -124,7 +125,7 @@ ep-spin-lib:normalizeString
sp:variable _:b8
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
[ rdf:type spif:regex ;
sp:arg1 _:b8 ;
sp:arg2 "%[0-9A-F][0-9A-F]" ;
sp:arg3 ""
......@@ -132,7 +133,7 @@ ep-spin-lib:normalizeString
sp:variable _:b9
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
[ rdf:type spif:regex ;
sp:arg1 _:b9 ;
sp:arg2 "\\+" ;
sp:arg3 "_"
......@@ -140,7 +141,7 @@ ep-spin-lib:normalizeString
sp:variable _:b10
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
[ rdf:type spif:regex ;
sp:arg1 _:b10 ;
sp:arg2 "_+" ;
sp:arg3 "_"
......@@ -148,7 +149,7 @@ ep-spin-lib:normalizeString
sp:variable _:b11
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
[ rdf:type spif:regex ;
sp:arg1 _:b11 ;
sp:arg2 "\\*" ;
sp:arg3 ""
......@@ -157,7 +158,7 @@ ep-spin-lib:normalizeString
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:string ;
sp:arg1 [ rdf:type smf:upperCase ;
sp:arg1 [ rdf:type spif:upperCase ;
sp:arg1 _:b12
]
] ;
......
# Saved by TopBraid on Mon Aug 01 14:26:29 PDT 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Mon Aug 01 13:35:23 PDT 2011
# baseURI: http://www.reportinghub.no/ep/transform/normalization
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> .
......@@ -13,5 +12,9 @@
[] 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
# 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#> .
......@@ -11,6 +9,7 @@
@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#> .
......@@ -44,44 +43,28 @@
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
[ rdf:type rhspin:wellByName ;
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 ;
[ rdf:type rhspin:wellBoreByName ;
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:imports <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 .
_:b3 sp:varName "well"^^xsd:string .
_:b6 sp:varName "normalizedWellBoreName"^^xsd:string .
_:b2 sp:varName "nameWellBore"^^xsd:string .
_:b1 sp:varName "normalizedWellBoreNameU"^^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#> .
......