Holger Knublauch

Removed map/ddr and schema/map imports

# Saved by TopBraid on Wed Jul 27 19:58:27 PDT 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr
# imports: http://www.reportinghub.no/ep/schema/1.1.1/ddr
# imports: http://www.reportinghub.no/1.1/map/ddr
# imports: http://www.reportinghub.no/1.1/schema/map
# imports: http://spinrdf.org/spin
# imports: http://topbraid.org/sxml
@prefix NPD_110412124707: <file:///www.reportinghub.no/input/NPD_110412124707.xml#> .
@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> .
@prefix ddr: <http://www.reportinghub.no/ep/schema/ddr#> .
@prefix fn: <http://www.w3.org/2005/xpath-functions#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix smf: <http://topbraid.org/sparqlmotionfunctions#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spif: <http://spinrdf.org/spif#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix sxml: <http://topbraid.org/sxml#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
ddr:Cs_activity
sxml:element "witsml:activity"^^xsd:string .
ddr:Cs_alias
sxml:element "witsml:rigAlias"^^xsd:string , "witsml:alias" .
ddr:Cs_bitRecord
sxml:element "witsml:bitRecord" .
ddr:Cs_documentAudit
sxml:element "witsml:documentAudit" .
ddr:Cs_documentEvent
sxml:element "witsml:documentEvent" .
ddr:Cs_documentFileCreation
sxml:element "witsml:documentFileCreation" .
ddr:Cs_documentInfo
sxml:element "witsml:documentInfo" .
ddr:Cs_documentSecurityInfo
sxml:element "witsml:documentSecurityInfo" .
ddr:Cs_drillReportControlIncidentInfo
sxml:element "witsml:drillReportControlIncidentInfo" .
ddr:Cs_drillReportCoreInfo
sxml:element "witsml:drillReportCoreInfo" .
ddr:Cs_drillReportEquipFailureInfo
sxml:element "witsml:drillReportEquipFailureInfo" .
ddr:Cs_drillReportFormTestInfo
sxml:element "witsml:drillReportFormTestInfo" .
ddr:Cs_drillReportGasReadingInfo
sxml:element "witsml:drillReportGasReadingInfo" .
ddr:Cs_drillReportLithShowInfo
sxml:element "witsml:drillReportLithShowInfo" .
ddr:Cs_drillReportLogInfo
sxml:element "witsml:drillReportLogInfo" .
ddr:Cs_drillReportPerfInfo
sxml:element "witsml:drillReportPerfInfo" .
ddr:Cs_drillReportPorePressure
sxml:element "witsml:drillReportPorePressure" .
ddr:Cs_drillReportStatusInfo
sxml:element "witsml:statusInfo"^^xsd:string , "witsml:drillReportStatusInfo" .
ddr:Cs_drillReportStratInfo
sxml:element "witsml:drillReportStratInfo" .
ddr:Cs_drillReportSurveyStation
sxml:element "witsml:drillReportSurveyStation" .
ddr:Cs_drillReportWellTestInfo
sxml:element "witsml:drillReportWellTestInfo" .
ddr:Cs_drillReportWellboreInfo
sxml:element "witsml:drillReportWellboreInfo" .
ddr:Cs_fluid
sxml:element "witsml:fluid" .
ddr:Cs_geodeticModel
sxml:element "witsml:geodeticModel" .
ddr:Cs_localCRS
sxml:element "witsml:localCRS" .
ddr:Cs_location
sxml:element "witsml:location" .
ddr:Cs_projectionx
sxml:element "witsml:projectionx" .
ddr:Cs_refWellWellbore
sxml:element "witsml:refWellWellbore" .
ddr:Cs_refWellWellboreRig
sxml:element "witsml:refWellWellboreRig" .
ddr:Cs_wellAlias
sxml:element "witsml:wellAlias" , "witsml:wellboreAlias"^^xsd:string .
ddr:Cs_wellCRS
sxml:element "witsml:wellCRS" .
ddr:Cs_wellDatum
sxml:element "witsml:wellDatum" .
ddr:DrillReports
sxml:element "witsml:drillReports"^^xsd:string .
ddr:Obj_drillReport
sxml:element "witsml:drillReport"^^xsd:string .
ddr:Thing
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 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 _:b1
]) ;
sp:where ([ sp:object ddr:Cs_activity ;
sp:predicate rdf:type ;
sp:subject _:b1
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 002 - Construct datatype datetime values"^^xsd:string ;
sp:templates ([ sp:object _:b2 ;
sp:predicate _:b3 ;
sp:subject _:b4
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b5
] [ sp:object _:b4 ;
sp:predicate rdf:subject ;
sp:subject _:b5
] [ sp:object _:b3 ;
sp:predicate rdf:predicate ;
sp:subject _:b5
] [ sp:object _:b2 ;
sp:predicate rdf:object ;
sp:subject _:b5
] [ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b6
]) ;
sp:where ([ sp:object _:b6 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b4
] [ sp:object _:b7 ;
sp:predicate rdf:type ;
sp:subject _:b6
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "uom"^^xsd:string
] ;
sp:predicate ddr:uom ;
sp:subject _:b6
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 _:b7
] ;
sp:variable _:b8
] [ 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 _:b8
]
] ;
sp:variable _:b3
] [ sp:object owl:DatatypeProperty ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object _:b9 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b6
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b9
] [ sp:object _:b10 ;
sp:predicate sxml:text ;
sp:subject _:b9
] [ sp:object _:b11 ;
sp:predicate rdf:type ;
sp:subject _:b4
] [ rdf:type sp:TriplePath ;
sp:object _:b12 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b11
] [ sp:object _:b13 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b12
] [ sp:object owl:Restriction ;
sp:predicate rdf:type ;
sp:subject _:b13
] [ sp:object _:b14 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b13
] [ sp:object _:b3 ;
sp:predicate owl:onProperty ;
sp:subject _:b13
] [ rdf:type sp:TriplePath ;
sp:object xsd:dateTime ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b14
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:dateTime ;
sp:arg1 _:b10
] ;
sp:variable _:b2
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 004 - Construct UOM values"^^xsd:string ;
sp:templates ([ sp:object _:b15 ;
sp:predicate rdf:type ;
sp:subject _:b16
] [ sp:object _:b17 ;
sp:predicate ddr:uom ;
sp:subject _:b16
] [ sp:object _:b18 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b16
] [ sp:object _:b16 ;
sp:predicate _:b19 ;
sp:subject _:b20
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b21
] [ sp:object _:b20 ;
sp:predicate rdf:subject ;
sp:subject _:b21
] [ sp:object _:b19 ;
sp:predicate rdf:predicate ;
sp:subject _:b21
] [ sp:object _:b18 ;
sp:predicate rdf:object ;
sp:subject _:b21
] [ sp:object _:b21 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b22
]) ;
sp:where ([ sp:object _:b22 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b20
] [ sp:object _:b23 ;
sp:predicate rdf:type ;
sp:subject _:b22
] [ sp:object _:b17 ;
sp:predicate ddr:uom ;
sp:subject _:b22
] [ 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 _:b22
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 _:b23
] ;
sp:variable _:b24
] [ 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 [ rdf:type smf:titleCase ;
sp:arg1 _:b24
]
]
] ;
sp:variable _:b19
] [ sp:object owl:ObjectProperty ;
sp:predicate rdf:type ;
sp:subject _:b19
] [ sp:object _:b25 ;
sp:predicate rdf:type ;
sp:subject _:b20
] [ rdf:type sp:TriplePath ;
sp:object _:b26 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b25
] [ sp:object _:b27 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b26
] [ sp:object owl:Restriction ;
sp:predicate rdf:type ;
sp:subject _:b27
] [ sp:object _:b15 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b27
] [ sp:object _:b19 ;
sp:predicate owl:onProperty ;
sp:subject _:b27
] [ sp:object _:b28 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b22
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b28
] [ sp:object _:b29 ;
sp:predicate sxml:text ;
sp:subject _:b28
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:double ;
sp:arg1 _:b29
] ;
sp:variable _:b18
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 006 - Construct Enumerated Values"^^xsd:string ;
sp:templates ([ sp:object _:b30 ;
sp:predicate _:b31 ;
sp:subject _:b32
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b33
] [ sp:object _:b32 ;
sp:predicate rdf:subject ;
sp:subject _:b33
] [ sp:object _:b31 ;
sp:predicate rdf:predicate ;
sp:subject _:b33
] [ sp:object _:b30 ;
sp:predicate rdf:object ;
sp:subject _:b33
] [ sp:object _:b33 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b34
]) ;
sp:where ([ sp:object _:b34 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b32
] [ sp:object _:b35 ;
sp:predicate rdf:type ;
sp:subject _:b34
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "uom"^^xsd:string
] ;
sp:predicate ddr:uom ;
sp:subject _:b34
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:titleCase ;
sp:arg1 [ rdf:type afn:localname ;
sp:arg1 _:b35
]
] ;
sp:variable _:b36
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ;
sp:arg2 _:b36
]
] ;
sp:variable _:b31
] [ sp:object owl:ObjectProperty ;
sp:predicate rdf:type ;
sp:subject _:b31
] [ sp:object _:b37 ;
sp:predicate rdf:type ;
sp:subject _:b32
] [ rdf:type sp:TriplePath ;
sp:object _:b38 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b37
] [ sp:object _:b39 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b38
] [ sp:object owl:Restriction ;
sp:predicate rdf:type ;
sp:subject _:b39
] [ sp:object _:b31 ;
sp:predicate owl:onProperty ;
sp:subject _:b39
] [ sp:object _:b40 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b39
] [ rdf:type sp:TriplePath ;
sp:object <http://www.linkedmodel.org/schema/dtype#EnumeratedValue> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b40
] [ sp:object _:b41 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b34
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b41
] [ sp:object _:b42 ;
sp:predicate sxml:text ;
sp:subject _:b41
] [ sp:object _:b40 ;
sp:predicate rdf:type ;
sp:subject _:b30
] [ sp:object _:b42 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b30
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 003 - Construct datatype string values"^^xsd:string ;
sp:templates ([ sp:object _:b43 ;
sp:predicate _:b44 ;
sp:subject _:b45
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b46
] [ sp:object _:b45 ;
sp:predicate rdf:subject ;
sp:subject _:b46
] [ sp:object _:b44 ;
sp:predicate rdf:predicate ;
sp:subject _:b46
] [ sp:object _:b43 ;
sp:predicate rdf:object ;
sp:subject _:b46
] [ sp:object _:b46 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b47
]) ;
sp:where ([ sp:object _:b47 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b45
] [ sp:object _:b48 ;
sp:predicate rdf:type ;
sp:subject _:b47
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "uom"^^xsd:string
] ;
sp:predicate ddr:uom ;
sp:subject _:b47
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 _:b48
] ;
sp:variable _:b49
] [ 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 _:b49
]
] ;
sp:variable _:b44
] [ sp:object owl:DatatypeProperty ;
sp:predicate rdf:type ;
sp:subject _:b44
] [ sp:object _:b50 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b47
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b50
] [ sp:object _:b43 ;
sp:predicate sxml:text ;
sp:subject _:b50
] [ sp:object _:b51 ;
sp:predicate rdf:type ;
sp:subject _:b45
] [ rdf:type sp:TriplePath ;
sp:object _:b52 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b51
] [ sp:object _:b53 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b52
] [ sp:object owl:Restriction ;
sp:predicate rdf:type ;
sp:subject _:b53
] [ sp:object _:b54 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b53
] [ sp:object _:b44 ;
sp:predicate owl:onProperty ;
sp:subject _:b53
] [ rdf:type sp:TriplePath ;
sp:object xsd:string ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b54
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 020 - Construct all other object properties - WIP"^^xsd:string ;
sp:templates ([ sp:object _:b55 ;
sp:predicate _:b56 ;
sp:subject _:b57
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b58
] [ sp:object _:b57 ;
sp:predicate rdf:subject ;
sp:subject _:b58
] [ sp:object _:b56 ;
sp:predicate rdf:predicate ;
sp:subject _:b58
] [ sp:object _:b55 ;
sp:predicate rdf:object ;
sp:subject _:b58
] [ sp:object _:b58 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b55
]) ;
sp:where ([ sp:object _:b55 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b57
] [ sp:object _:b59 ;
sp:predicate rdf:type ;
sp:subject _:b55
] [ sp:object _:b60 ;
sp:predicate rdf:type ;
sp:subject _:b57
] [ rdf:type sp:TriplePath ;
sp:object _:b61 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b60
] [ sp:object _:b62 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b61
] [ sp:object owl:Restriction ;
sp:predicate rdf:type ;
sp:subject _:b62
] [ sp:object _:b56 ;
sp:predicate owl:onProperty ;
sp:subject _:b62
] [ sp:object _:b59 ;
sp:predicate owl:allValuesFrom ;
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://www.reportinghub.no/1.1/schema/map> , <http://topbraid.org/sxml> , <http://www.reportinghub.no/1.1/map/ddr> , <http://spinrdf.org/spin> , <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 <http://topbraid.org/sxsd#ComplexType> ;
sp:predicate rdf:type ;
sp:subject _:b67
] [ rdf:type sp:TriplePath ;
sp:object _:b68 ;
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 _:b67
] [ sp:object _:b69 ;
sp:predicate <http://topbraid.org/sxsd#name> ;
sp:subject _:b67
] [ sp:object _:b66 ;
sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ;
sp:subject _:b68
] [ sp:object _:b70 ;
sp:predicate <http://topbraid.org/sxsd#name> ;
sp:subject _:b68
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:titleCase ;
sp:arg1 _:b70
] ;
sp:variable _:b71
] [ 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 _:b71
]
] ;
sp:variable _:b65
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:titleCase ;
sp:arg1 _:b69 ;
sp:arg2 "[a-z]s"
] ;
sp:variable _:b72
] [ 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 _:b72
]
] ;
sp:variable _:b64
] [ 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 _:b72 ;
sp:arg3 "-has" ;
sp:arg4 _:b71
]
] ;
sp:variable _:b63
])
] ;
spin:query
[ rdf:type sp:Select ;
sp:resultVariables (_:b73 _:b74 _:b75 _:b76) ;
sp:where ([ sp:object _:b76 ;
sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ;
sp:subject _:b75
] [ sp:object _:b75 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b74
] [ rdf:type sp:Union ;
sp:elements (([ sp:object <http://topbraid.org/sxsd#Sequence> ;
sp:predicate rdf:type ;
sp:subject _:b74
]) ([ sp:object <http://topbraid.org/sxsd#Choice> ;
sp:predicate rdf:type ;
sp:subject _:b74
]))
] [ sp:object _:b74 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b73
])
] .
_:b55
sp:varName "child"^^xsd:string .
_:b56
sp:varName "formalProperty"^^xsd:string .
_:b57
sp:varName "inst"^^xsd:string .
_:b59
sp:varName "childType"^^xsd:string .
_:b60
sp:varName "instType"^^xsd:string .
_:b61
sp:varName "instClass"^^xsd:string .
_:b62
sp:varName "valuesRestriction"^^xsd:string .
_:b43
sp:varName "text"^^xsd:string .
_:b44
sp:varName "dtpnameU"^^xsd:string .
_:b45
sp:varName "inst"^^xsd:string .
_:b47
sp:varName "child"^^xsd:string .
_:b48
sp:varName "childType"^^xsd:string .
_:b49
sp:varName "childLocalName"^^xsd:string .
_:b50
sp:varName "textNode"^^xsd:string .
_:b51
sp:varName "instType"^^xsd:string .
_:b52
sp:varName "instClass"^^xsd:string .
_:b53
sp:varName "valuesRestriction"^^xsd:string .
_:b54
sp:varName "rangeType"^^xsd:string .
_:b30
sp:varName "enumeratedValue"^^xsd:string .
_:b31
sp:varName "opnameU"^^xsd:string .
_:b32
sp:varName "inst"^^xsd:string .
_:b34
sp:varName "child"^^xsd:string .
_:b35
sp:varName "childType"^^xsd:string .
_:b36
sp:varName "childLocalName"^^xsd:string .
_:b37
sp:varName "instType"^^xsd:string .
_:b38
sp:varName "instClass"^^xsd:string .
_:b39
sp:varName "valuesRestriction"^^xsd:string .
_:b40
sp:varName "rangeU"^^xsd:string .
_:b41
sp:varName "textNode"^^xsd:string .
_:b42
sp:varName "text"^^xsd:string .
_:b15
sp:varName "rangeU"^^xsd:string .
_:b17
sp:varName "uom"^^xsd:string .
_:b18
sp:varName "value"^^xsd:string .
_:b19
sp:varName "opnameU"^^xsd:string .
_:b20
sp:varName "inst"^^xsd:string .
_:b22
sp:varName "child"^^xsd:string .
_:b23
sp:varName "childType"^^xsd:string .
_:b24
sp:varName "childLocalName"^^xsd:string .
_:b25
sp:varName "instType"^^xsd:string .
_:b26
sp:varName "instClass"^^xsd:string .
_:b27
sp:varName "allValuesRestriction"^^xsd:string .
_:b28
sp:varName "textNode"^^xsd:string .
_:b29
sp:varName "text"^^xsd:string .
_:b2 sp:varName "dateTime"^^xsd:string .
_:b3 sp:varName "dtpnameU"^^xsd:string .
_:b4 sp:varName "inst"^^xsd:string .
_:b6 sp:varName "child"^^xsd:string .
_:b7 sp:varName "childType"^^xsd:string .
_:b8 sp:varName "childLocalName"^^xsd:string .
_:b9 sp:varName "textNode"^^xsd:string .
_:b10
sp:varName "text"^^xsd:string .
_:b11
sp:varName "instType"^^xsd:string .
_:b12
sp:varName "instClass"^^xsd:string .
_:b13
sp:varName "valuesRestriction"^^xsd:string .
_:b14
sp:varName "rangeType"^^xsd:string .
_:b73
sp:varName "pp"^^xsd:string .
_:b74
sp:varName "p"^^xsd:string .
_:b75
sp:varName "s"^^xsd:string .
_:b76
sp:varName "e"^^xsd:string .
_:b63
sp:varName "ddrCPU"^^xsd:string .
_:b64
sp:varName "ddrCU"^^xsd:string .
_:b65
sp:varName "ddrPU"^^xsd:string .
_:b66
sp:varName "mre"^^xsd:string .
_:b67
sp:varName "s"^^xsd:string .
_:b68
sp:varName "c"^^xsd:string .
_:b69
sp:varName "name"^^xsd:string .
_:b70
sp:varName "pname"^^xsd:string .
_:b71
sp:varName "tcpname"^^xsd:string .
_:b72
sp:varName "tcname"^^xsd:string .
_:b1 sp:varName "activity"^^xsd:string .
# 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.1.1/ddr
@prefix NPD_110412124707: <file:///www.reportinghub.no/input/NPD_110412124707.xml#> .
@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> .
@prefix ddr: <http://www.reportinghub.no/ep/schema/ddr#> .
@prefix fn: <http://www.w3.org/2005/xpath-functions#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix smf: <http://topbraid.org/sparqlmotionfunctions#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spif: <http://spinrdf.org/spif#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix sxml: <http://topbraid.org/sxml#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
ddr:Cs_activity
sxml:element "witsml:activity"^^xsd:string .
ddr:Cs_alias
sxml:element "witsml:alias" , "witsml:rigAlias"^^xsd:string .
ddr:Cs_bitRecord
sxml:element "witsml:bitRecord" .
ddr:Cs_documentAudit
sxml:element "witsml:documentAudit" .
ddr:Cs_documentEvent
sxml:element "witsml:documentEvent" .
ddr:Cs_documentFileCreation
sxml:element "witsml:documentFileCreation" .
ddr:Cs_documentInfo
sxml:element "witsml:documentInfo" .
ddr:Cs_documentSecurityInfo
sxml:element "witsml:documentSecurityInfo" .
ddr:Cs_drillReportControlIncidentInfo
sxml:element "witsml:drillReportControlIncidentInfo" .
ddr:Cs_drillReportCoreInfo
sxml:element "witsml:drillReportCoreInfo" .
ddr:Cs_drillReportEquipFailureInfo
sxml:element "witsml:drillReportEquipFailureInfo" .
ddr:Cs_drillReportFormTestInfo
sxml:element "witsml:drillReportFormTestInfo" .
ddr:Cs_drillReportGasReadingInfo
sxml:element "witsml:drillReportGasReadingInfo" .
ddr:Cs_drillReportLithShowInfo
sxml:element "witsml:drillReportLithShowInfo" .
ddr:Cs_drillReportLogInfo
sxml:element "witsml:drillReportLogInfo" .
ddr:Cs_drillReportPerfInfo
sxml:element "witsml:drillReportPerfInfo" .
ddr:Cs_drillReportPorePressure
sxml:element "witsml:drillReportPorePressure" .
ddr:Cs_drillReportStatusInfo
sxml:element "witsml:drillReportStatusInfo" , "witsml:statusInfo"^^xsd:string .
ddr:Cs_drillReportStratInfo
sxml:element "witsml:drillReportStratInfo" .
ddr:Cs_drillReportSurveyStation
sxml:element "witsml:drillReportSurveyStation" .
ddr:Cs_drillReportWellTestInfo
sxml:element "witsml:drillReportWellTestInfo" .
ddr:Cs_drillReportWellboreInfo
sxml:element "witsml:drillReportWellboreInfo" .
ddr:Cs_fluid
sxml:element "witsml:fluid" .
ddr:Cs_geodeticModel
sxml:element "witsml:geodeticModel" .
ddr:Cs_localCRS
sxml:element "witsml:localCRS" .
ddr:Cs_location
sxml:element "witsml:location" .
ddr:Cs_projectionx
sxml:element "witsml:projectionx" .
ddr:Cs_refWellWellbore
sxml:element "witsml:refWellWellbore" .
ddr:Cs_refWellWellboreRig
sxml:element "witsml:refWellWellboreRig" .
ddr:Cs_wellAlias
sxml:element "witsml:wellboreAlias"^^xsd:string , "witsml:wellAlias" .
ddr:Cs_wellCRS
sxml:element "witsml:wellCRS" .
ddr:Cs_wellDatum
sxml:element "witsml:wellDatum" .
ddr:DrillReports
sxml:element "witsml:drillReports"^^xsd:string .
ddr:Obj_drillReport
sxml:element "witsml:drillReport"^^xsd:string .
ddr:Thing
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 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 ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ rdf:type sp:TriplePath ;
sp:object _:b7 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _: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
])
] ;
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
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b12
] [ sp:object _:b11 ;
sp:predicate rdf:subject ;
sp:subject _:b12
] [ sp:object _:b10 ;
sp:predicate rdf:predicate ;
sp:subject _:b12
] [ sp:object _:b9 ;
sp:predicate rdf:object ;
sp:subject _:b12
] [ sp:object _:b12 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b13
]) ;
sp:where ([ sp:object _:b13 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b11
] [ sp:object _:b14 ;
sp:predicate rdf:type ;
sp:subject _:b13
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "uom"^^xsd:string
] ;
sp:predicate ddr:uom ;
sp:subject _:b13
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 _:b14
] ;
sp:variable _:b15
] [ 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 _:b15
]
] ;
sp:variable _:b10
] [ sp:object owl:DatatypeProperty ;
sp:predicate rdf:type ;
sp:subject _:b10
] [ sp:object _:b16 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b13
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b16
] [ sp:object _:b9 ;
sp:predicate sxml:text ;
sp:subject _:b16
] [ sp:object _:b17 ;
sp:predicate rdf:type ;
sp:subject _:b11
] [ rdf:type sp:TriplePath ;
sp:object _:b18 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b17
] [ sp:object _:b19 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b18
] [ sp:object owl:Restriction ;
sp:predicate rdf:type ;
sp:subject _:b19
] [ sp:object _:b20 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b19
] [ sp:object _:b10 ;
sp:predicate owl:onProperty ;
sp:subject _:b19
] [ rdf:type sp:TriplePath ;
sp:object xsd:string ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b20
])
] ;
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
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b24
] [ sp:object _:b23 ;
sp:predicate rdf:subject ;
sp:subject _:b24
] [ sp:object _:b22 ;
sp:predicate rdf:predicate ;
sp:subject _:b24
] [ sp:object _:b21 ;
sp:predicate rdf:object ;
sp:subject _:b24
] [ sp:object _:b24 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b25
]) ;
sp:where ([ sp:object _:b25 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b23
] [ sp:object _:b26 ;
sp:predicate rdf:type ;
sp:subject _:b25
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "uom"^^xsd:string
] ;
sp:predicate ddr:uom ;
sp:subject _:b25
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:titleCase ;
sp:arg1 [ rdf:type afn:localname ;
sp:arg1 _:b26
]
] ;
sp:variable _:b27
] [ 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 _:b27
]
] ;
sp:variable _:b22
] [ sp:object owl:ObjectProperty ;
sp:predicate rdf:type ;
sp:subject _:b22
] [ sp:object _:b28 ;
sp:predicate rdf:type ;
sp:subject _:b23
] [ rdf:type sp:TriplePath ;
sp:object _:b29 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b28
] [ sp:object _:b30 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b29
] [ 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:predicate owl:allValuesFrom ;
sp:subject _:b30
] [ rdf:type sp:TriplePath ;
sp:object <http://www.linkedmodel.org/schema/dtype#EnumeratedValue> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _: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
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 004 - Construct UOM values"^^xsd:string ;
sp:templates ([ sp:object _:b34 ;
sp:predicate rdf:type ;
sp:subject _:b35
] [ sp:object _:b36 ;
sp:predicate ddr:uom ;
sp:subject _:b35
] [ sp:object _:b37 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b35
] [ sp:object _:b35 ;
sp:predicate _:b38 ;
sp:subject _:b39
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b40
] [ sp:object _:b39 ;
sp:predicate rdf:subject ;
sp:subject _:b40
] [ sp:object _:b38 ;
sp:predicate rdf:predicate ;
sp:subject _:b40
] [ sp:object _:b37 ;
sp:predicate rdf:object ;
sp:subject _:b40
] [ sp:object _:b40 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b41
]) ;
sp:where ([ sp:object _:b41 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b39
] [ sp:object _:b42 ;
sp:predicate rdf:type ;
sp:subject _:b41
] [ sp:object _:b36 ;
sp:predicate ddr:uom ;
sp:subject _:b41
] [ 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
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 _:b42
] ;
sp:variable _:b43
] [ 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 [ rdf:type smf:titleCase ;
sp:arg1 _:b43
]
]
] ;
sp:variable _:b38
] [ sp:object owl:ObjectProperty ;
sp:predicate rdf:type ;
sp:subject _:b38
] [ sp:object _:b44 ;
sp:predicate rdf:type ;
sp:subject _:b39
] [ rdf:type sp:TriplePath ;
sp:object _:b45 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b44
] [ sp:object _:b46 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b45
] [ sp:object owl:Restriction ;
sp:predicate rdf:type ;
sp:subject _:b46
] [ sp:object _:b34 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b46
] [ sp:object _:b38 ;
sp:predicate owl:onProperty ;
sp:subject _:b46
] [ sp:object _:b47 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b41
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b47
] [ sp:object _:b48 ;
sp:predicate sxml:text ;
sp:subject _:b47
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:double ;
sp:arg1 _:b48
] ;
sp:variable _:b37
])
] ;
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
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b52
] [ sp:object _:b51 ;
sp:predicate rdf:subject ;
sp:subject _:b52
] [ sp:object _:b50 ;
sp:predicate rdf:predicate ;
sp:subject _:b52
] [ sp:object _:b49 ;
sp:predicate rdf:object ;
sp:subject _:b52
] [ sp:object _:b52 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b53
]) ;
sp:where ([ sp:object _:b53 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b51
] [ sp:object _:b54 ;
sp:predicate rdf:type ;
sp:subject _:b53
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "uom"^^xsd:string
] ;
sp:predicate ddr:uom ;
sp:subject _:b53
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 _:b54
] ;
sp:variable _:b55
] [ 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 _:b55
]
] ;
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:predicate rdf:type ;
sp:subject _:b56
] [ sp:object _:b57 ;
sp:predicate sxml:text ;
sp:subject _:b56
] [ sp:object _:b58 ;
sp:predicate rdf:type ;
sp:subject _:b51
] [ rdf:type sp:TriplePath ;
sp:object _:b59 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b58
] [ sp:object _:b60 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b59
] [ 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:predicate owl:onProperty ;
sp:subject _:b60
] [ rdf:type sp:TriplePath ;
sp:object xsd:dateTime ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b61
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:dateTime ;
sp:arg1 _:b57
] ;
sp:variable _:b49
])
] ;
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 _:b62
]) ;
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: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:predicate rdf:type ;
sp:subject _:b71
] [ rdf:type sp:TriplePath ;
sp:object _:b72 ;
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:variable _:b67
])
] .
_: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 .
_:b70
sp:varName "mre"^^xsd:string .
_:b69
sp:varName "ddrPU"^^xsd:string .
_:b68
sp:varName "ddrCU"^^xsd:string .
_:b67
sp:varName "ddrCPU"^^xsd:string .
_:b8 sp:varName "valuesRestriction"^^xsd:string .
_:b7 sp:varName "instClass"^^xsd:string .
_:b6 sp:varName "instType"^^xsd:string .
_:b5 sp:varName "childType"^^xsd:string .
_:b3 sp:varName "inst"^^xsd:string .
_:b2 sp:varName "formalProperty"^^xsd:string .
_:b1 sp:varName "child"^^xsd:string .
_:b20
sp:varName "rangeType"^^xsd:string .
_:b19
sp:varName "valuesRestriction"^^xsd:string .
_:b18
sp:varName "instClass"^^xsd:string .
_:b17
sp:varName "instType"^^xsd:string .
_:b16
sp:varName "textNode"^^xsd:string .
_:b15
sp:varName "childLocalName"^^xsd:string .
_:b14
sp:varName "childType"^^xsd:string .
_:b13
sp:varName "child"^^xsd:string .
_:b11
sp:varName "inst"^^xsd:string .
_:b10
sp:varName "dtpnameU"^^xsd:string .
_:b9 sp:varName "text"^^xsd:string .
_:b33
sp:varName "text"^^xsd:string .
_:b32
sp:varName "textNode"^^xsd:string .
_:b31
sp:varName "rangeU"^^xsd:string .
_:b30
sp:varName "valuesRestriction"^^xsd:string .
_:b29
sp:varName "instClass"^^xsd:string .
_:b28
sp:varName "instType"^^xsd:string .
_:b27
sp:varName "childLocalName"^^xsd:string .
_:b26
sp:varName "childType"^^xsd:string .
_:b25
sp:varName "child"^^xsd:string .
_:b23
sp:varName "inst"^^xsd:string .
_:b22
sp:varName "opnameU"^^xsd:string .
_:b21
sp:varName "enumeratedValue"^^xsd:string .
_:b48
sp:varName "text"^^xsd:string .
_:b47
sp:varName "textNode"^^xsd:string .
_:b46
sp:varName "allValuesRestriction"^^xsd:string .
_:b45
sp:varName "instClass"^^xsd:string .
_:b44
sp:varName "instType"^^xsd:string .
_:b43
sp:varName "childLocalName"^^xsd:string .
_:b42
sp:varName "childType"^^xsd:string .
_:b41
sp:varName "child"^^xsd:string .
_:b39
sp:varName "inst"^^xsd:string .
_:b38
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 .
_:b60
sp:varName "valuesRestriction"^^xsd:string .
_:b59
sp:varName "instClass"^^xsd:string .
_:b58
sp:varName "instType"^^xsd:string .
_:b57
sp:varName "text"^^xsd:string .
_:b56
sp:varName "textNode"^^xsd:string .
_:b55
sp:varName "childLocalName"^^xsd:string .
_:b54
sp:varName "childType"^^xsd:string .
_:b53
sp:varName "child"^^xsd:string .
_:b51
sp:varName "inst"^^xsd:string .
_:b50
sp:varName "dtpnameU"^^xsd:string .
_:b49
sp:varName "dateTime"^^xsd:string .
_:b62
sp:varName "activity"^^xsd:string .
......