Holger Knublauch
# Saved by TopBraid on Wed Aug 10 23:13:44 PDT 2011
# Saved by TopBraid on Fri Aug 12 18:51:35 PDT 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr
# imports: http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias
# imports: http://www.reportinghub.no/ep/schema/1.0/report
......@@ -12,7 +12,9 @@
@prefix NPD_110412124707: <file:///www.reportinghub.no/input/NPD_110412124707.xml#> .
@prefix NPD_1104121247071: <file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml#> .
@prefix TemplateTest: <file:///www.reportinghub.no/examples/xml/TemplateTest.xml#> .
@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> .
@prefix arg: <http://spinrdf.org/arg#> .
@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#> .
......@@ -39,7 +41,7 @@ ddr:Cs_activity
sxml:element "witsml:activity"^^xsd:string .
ddr:Cs_alias
sxml:element "witsml:alias" , "witsml:rigAlias"^^xsd:string .
sxml:element "witsml:rigAlias"^^xsd:string , "witsml:alias" .
ddr:Cs_bitRecord
sxml:element "witsml:bitRecord" .
......@@ -87,7 +89,7 @@ ddr:Cs_drillReportPorePressure
sxml:element "witsml:drillReportPorePressure" .
ddr:Cs_drillReportStatusInfo
sxml:element "witsml:drillReportStatusInfo" , "witsml:statusInfo"^^xsd:string .
sxml:element "witsml:statusInfo"^^xsd:string , "witsml:drillReportStatusInfo" .
ddr:Cs_drillReportStratInfo
sxml:element "witsml:drillReportStratInfo" .
......@@ -123,7 +125,7 @@ ddr:Cs_refWellWellboreRig
sxml:element "witsml:refWellWellboreRig" .
ddr:Cs_wellAlias
sxml:element "witsml:wellAlias"^^xsd:string , "witsml:wellboreAlias"^^xsd:string .
sxml:element "witsml:wellboreAlias"^^xsd:string , "witsml:wellAlias"^^xsd:string .
ddr:Cs_wellCRS
sxml:element "witsml:wellCRS" .
......@@ -140,208 +142,238 @@ ddr:Obj_drillReport
ddr:Thing
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 018 - Construct all other object properties"^^xsd:string ;
rdfs:comment "STEP 004 - Construct UOM values"^^xsd:string ;
sp:templates ([ sp:object _:b1 ;
sp:predicate _:b2 ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object _:b3 ;
sp:predicate ddr:uom ;
sp:subject _:b2
] [ sp:object _:b4 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b2
] [ sp:object _:b2 ;
sp:predicate _:b5 ;
sp:subject spin:_this
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b3
sp:subject _:b6
] [ sp:object spin:_this ;
sp:predicate rdf:subject ;
sp:subject _:b3
] [ sp:object _:b2 ;
sp:subject _:b6
] [ sp:object _:b5 ;
sp:predicate rdf:predicate ;
sp:subject _:b3
] [ sp:object _:b1 ;
sp:subject _:b6
] [ sp:object _:b4 ;
sp:predicate rdf:object ;
sp:subject _:b3
] [ sp:object _:b3 ;
sp:subject _:b6
] [ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b1
sp:subject _:b7
]) ;
sp:where ([ sp:object _:b4 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b5
] [ sp:object _:b2 ;
sp:predicate owl:onProperty ;
sp:subject _:b5
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 _:b2
] ;
sp:variable _:b6
] [ sp:object _:b4 ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object _:b1 ;
sp:where ([ sp:object _:b7 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject spin:_this
] [ sp:object _:b8 ;
sp:predicate rdf:type ;
sp:subject _:b7
] [ sp:object _:b3 ;
sp:predicate ddr:uom ;
sp:subject _:b7
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "aNode"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b1
sp:subject _:b7
])
] [ sp:object _:b7 ;
sp:predicate sxml:tag ;
sp:subject _:b1
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
sp:arg1 _:b7 ;
sp:arg2 "(.*):(.*)" ;
sp:arg3 "$2"
[ rdf:type afn:localname ;
sp:arg1 _:b8
] ;
sp:variable _:b8
] [ rdf:type sp:Filter ;
sp:variable _:b9
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:eq ;
sp:arg1 _:b8 ;
sp:arg2 _:b6
]
] [ sp:object _:b9 ;
[ rdf:type smf:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
sp:arg2 _:b9
]
] ;
sp:variable _:b5
] [ sp:object owl:ObjectProperty ;
sp:predicate rdf:type ;
sp:subject _:b5
] [ sp:object _:b5 ;
sp:predicate owl:onProperty ;
sp:subject _:b10
] [ sp:object _:b1 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b10
] [ sp:object _:b11 ;
sp:predicate rdf:type ;
sp:subject spin:_this
] [ rdf:type sp:TriplePath ;
sp:object _:b5 ;
sp:object _:b10 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b9
sp:subject _:b11
] [ sp:object _:b12 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b7
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b12
] [ sp:object _:b13 ;
sp:predicate sxml:text ;
sp:subject _:b12
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:double ;
sp:arg1 _:b13
] ;
sp:variable _:b4
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 002 - Construct datatype datetime values"^^xsd:string ;
sp:templates ([ sp:object _:b10 ;
sp:predicate _:b11 ;
rdfs:comment "STEP 006 - Construct Enumerated Values"^^xsd:string ;
sp:templates ([ sp:object _:b14 ;
sp:predicate _:b15 ;
sp:subject spin:_this
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b12
sp:subject _:b16
] [ sp:object spin:_this ;
sp:predicate rdf:subject ;
sp:subject _:b12
] [ sp:object _:b11 ;
sp:subject _:b16
] [ sp:object _:b15 ;
sp:predicate rdf:predicate ;
sp:subject _:b12
] [ sp:object _:b10 ;
sp:subject _:b16
] [ sp:object _:b14 ;
sp:predicate rdf:object ;
sp:subject _:b12
] [ sp:object _:b12 ;
sp:subject _:b16
] [ sp:object _:b16 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b13
sp:subject _:b17
]) ;
sp:where ([ sp:object _:b13 ;
sp:where ([ sp:object _:b17 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject spin:_this
] [ sp:object _:b14 ;
] [ sp:object _:b18 ;
sp:predicate rdf:type ;
sp:subject _:b13
sp:subject _:b17
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "uom"^^xsd:string
] ;
sp:predicate ddr:uom ;
sp:subject _:b13
sp:subject _:b17
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 _:b14
[ rdf:type smf:titleCase ;
sp:arg1 [ rdf:type afn:localname ;
sp:arg1 _:b18
]
] ;
sp:variable _:b15
sp:variable _:b19
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
sp:arg2 _:b15
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#enum" ;
sp:arg2 _:b19
]
] ;
sp:variable _:b11
] [ sp:object owl:DatatypeProperty ;
sp:variable _:b15
] [ sp:object owl:ObjectProperty ;
sp:predicate rdf:type ;
sp:subject _:b11
] [ sp:object _:b11 ;
sp:subject _:b15
] [ sp:object _:b15 ;
sp:predicate owl:onProperty ;
sp:subject _:b16
] [ sp:object _:b17 ;
sp:subject _:b20
] [ sp:object _:b21 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b16
sp:subject _:b20
] [ sp:object _:b22 ;
sp:predicate rdf:type ;
sp:subject spin:_this
] [ rdf:type sp:TriplePath ;
sp:object xsd:dateTime ;
sp:object _:b20 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b17
] [ sp:object _:b18 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b13
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b18
] [ sp:object _:b19 ;
sp:predicate sxml:text ;
sp:subject _:b18
] [ sp:object _:b20 ;
sp:predicate rdf:type ;
sp:subject spin:_this
sp:subject _:b22
] [ rdf:type sp:TriplePath ;
sp:object _:b16 ;
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 _:b20
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:dateTime ;
sp:arg1 _:b19
] ;
sp:variable _:b10
sp:subject _:b21
] [ sp:object _:b23 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b17
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b23
] [ sp:object _:b24 ;
sp:predicate sxml:text ;
sp:subject _:b23
] [ sp:object _:b21 ;
sp:predicate rdf:type ;
sp:subject _:b14
] [ sp:object _:b24 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b14
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 020 - Construct all other object properties - WIP"^^xsd:string ;
sp:templates ([ sp:object _:b21 ;
sp:predicate _:b22 ;
rdfs:comment "STEP 018 - Construct all object properties that need to match on tags"^^xsd:string ;
sp:templates ([ sp:object _:b25 ;
sp:predicate _:b26 ;
sp:subject spin:_this
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b23
sp:subject _:b27
] [ sp:object spin:_this ;
sp:predicate rdf:subject ;
sp:subject _:b23
] [ sp:object _:b22 ;
sp:subject _:b27
] [ sp:object _:b26 ;
sp:predicate rdf:predicate ;
sp:subject _:b23
] [ sp:object _:b21 ;
sp:subject _:b27
] [ sp:object _:b25 ;
sp:predicate rdf:object ;
sp:subject _:b23
] [ sp:object _:b23 ;
sp:subject _:b27
] [ sp:object _:b27 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b21
sp:subject _:b25
]) ;
sp:where ([ sp:object _:b24 ;
sp:where ([ sp:object _:b28 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b25
] [ sp:object _:b22 ;
sp:subject _:b29
] [ sp:object _:b26 ;
sp:predicate owl:onProperty ;
sp:subject _:b25
] [ sp:object _:b24 ;
sp:subject _:b29
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 _:b26
] ;
sp:variable _:b30
] [ sp:object _:b28 ;
sp:predicate rdf:type ;
sp:subject _:b21
] [ sp:object _:b21 ;
sp:subject _:b25
] [ sp:object _:b25 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject spin:_this
] [ rdf:type sp:NotExists ;
......@@ -349,311 +381,204 @@ ddr:Thing
[ sp:varName "aNode"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b21
sp:subject _:b25
])
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "xmlTag"^^xsd:string
] ;
sp:predicate sxml:tag ;
sp:subject _:b21
])
] [ sp:object _:b26 ;
] [ sp:object _:b31 ;
sp:predicate sxml:tag ;
sp:subject _:b25
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
sp:arg1 _:b31 ;
sp:arg2 "(.*):(.*)" ;
sp:arg3 "$2"
] ;
sp:variable _:b32
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:eq ;
sp:arg1 _:b32 ;
sp:arg2 _:b30
]
] [ sp:object _:b33 ;
sp:predicate rdf:type ;
sp:subject spin:_this
] [ rdf:type sp:TriplePath ;
sp:object _:b25 ;
sp:object _:b29 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b26
sp:subject _:b33
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 006 - Construct Enumerated Values"^^xsd:string ;
sp:templates ([ sp:object _:b27 ;
sp:predicate _:b28 ;
rdfs:comment "STEP 009 - Construct all datatype values"^^xsd:string ;
sp:templates ([ sp:object _:b34 ;
sp:predicate _:b35 ;
sp:subject spin:_this
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b29
sp:subject _:b36
] [ sp:object spin:_this ;
sp:predicate rdf:subject ;
sp:subject _:b29
] [ sp:object _:b28 ;
sp:subject _:b36
] [ sp:object _:b35 ;
sp:predicate rdf:predicate ;
sp:subject _:b29
] [ sp:object _:b27 ;
sp:subject _:b36
] [ sp:object _:b34 ;
sp:predicate rdf:object ;
sp:subject _:b29
] [ sp:object _:b29 ;
sp:subject _:b36
] [ sp:object _:b36 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b30
sp:subject _:b37
]) ;
sp:where ([ sp:object _:b30 ;
sp:where ([ sp:object _:b37 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject spin:_this
] [ sp:object _:b31 ;
] [ sp:object _:b38 ;
sp:predicate rdf:type ;
sp:subject _:b30
sp:subject _:b37
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "uom"^^xsd:string
[ sp:varName "aNode"^^xsd:string
] ;
sp:predicate ddr:uom ;
sp:subject _:b30
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b37
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:titleCase ;
sp:arg1 [ rdf:type afn:localname ;
sp:arg1 _:b31
]
[ rdf:type afn:localname ;
sp:arg1 _:b38
] ;
sp:variable _:b32
sp:variable _:b39
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#enum" ;
sp:arg2 _:b32
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
sp:arg2 _:b39
]
] ;
sp:variable _:b28
] [ sp:object owl:ObjectProperty ;
sp:variable _:b35
] [ sp:object owl:DatatypeProperty ;
sp:predicate rdf:type ;
sp:subject _:b28
] [ sp:object _:b28 ;
sp:subject _:b35
] [ sp:object _:b35 ;
sp:predicate owl:onProperty ;
sp:subject _:b33
] [ sp:object _:b34 ;
sp:subject _:b40
] [ sp:object _:b41 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b33
] [ sp:object _:b35 ;
sp:subject _:b40
] [ sp:object rdfs:Datatype ;
sp:predicate rdf:type ;
sp:subject spin:_this
sp:subject _:b41
] [ rdf:type sp:TriplePath ;
sp:object _:b33 ;
sp:object _:b42 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b35
sp:subject _:b41
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:eq ;
sp:arg1 [ rdf:type afn:namespace ;
sp:arg1 _:b42
] ;
sp:arg2 "http://www.w3.org/2001/XMLSchema#"
]
] [ sp:object _:b43 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b37
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b43
] [ sp:object _:b44 ;
sp:predicate sxml:text ;
sp:subject _:b43
] [ sp:object _:b45 ;
sp:predicate rdf:type ;
sp:subject spin:_this
] [ rdf:type sp:TriplePath ;
sp:object <http://www.linkedmodel.org/schema/dtype#EnumeratedValue> ;
sp:object _:b40 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b34
] [ sp:object _:b36 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b30
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b36
] [ sp:object _:b37 ;
sp:predicate sxml:text ;
sp:subject _:b36
] [ sp:object _:b34 ;
sp:predicate rdf:type ;
sp:subject _:b27
] [ sp:object _:b37 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b27
sp:subject _:b45
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:cast ;
arg:datatype _:b42 ;
sp:arg1 _:b44
] ;
sp:variable _:b34
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 004 - Construct UOM values"^^xsd:string ;
sp:templates ([ sp:object _:b38 ;
sp:predicate rdf:type ;
sp:subject _:b39
] [ sp:object _:b40 ;
sp:predicate ddr:uom ;
sp:subject _:b39
] [ sp:object _:b41 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b39
] [ sp:object _:b39 ;
sp:predicate _:b42 ;
rdfs:comment "STEP 020 - Construct all other object properties"^^xsd:string ;
sp:templates ([ sp:object _:b46 ;
sp:predicate _:b47 ;
sp:subject spin:_this
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b43
sp:subject _:b48
] [ sp:object spin:_this ;
sp:predicate rdf:subject ;
sp:subject _:b43
] [ sp:object _:b42 ;
sp:subject _:b48
] [ sp:object _:b47 ;
sp:predicate rdf:predicate ;
sp:subject _:b43
] [ sp:object _:b41 ;
sp:subject _:b48
] [ sp:object _:b46 ;
sp:predicate rdf:object ;
sp:subject _:b43
] [ sp:object _:b43 ;
sp:subject _:b48
] [ sp:object _:b48 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b44
sp:subject _:b46
]) ;
sp:where ([ sp:object _:b44 ;
sp:where ([ sp:object _:b49 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b50
] [ sp:object _:b47 ;
sp:predicate owl:onProperty ;
sp:subject _:b50
] [ sp:object _:b49 ;
sp:predicate rdf:type ;
sp:subject _:b46
] [ sp:object _:b46 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject spin:_this
] [ sp:object _:b45 ;
sp:predicate rdf:type ;
sp:subject _:b44
] [ sp:object _:b40 ;
sp:predicate ddr:uom ;
sp:subject _:b44
] [ 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 _:b44
sp:subject _:b46
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 _:b45
] ;
sp:variable _:b46
] [ 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 _:b46
]
] ;
sp:variable _:b42
] [ sp:object owl:ObjectProperty ;
sp:predicate rdf:type ;
sp:subject _:b42
] [ sp:object _:b42 ;
sp:predicate owl:onProperty ;
sp:subject _:b47
] [ sp:object _:b38 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b47
] [ sp:object _:b48 ;
sp:predicate rdf:type ;
sp:subject spin:_this
] [ rdf:type sp:TriplePath ;
sp:object _:b47 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b48
] [ sp:object _:b49 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b44
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b49
] [ sp:object _:b50 ;
sp:predicate sxml:text ;
sp:subject _:b49
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:double ;
sp:arg1 _:b50
] ;
sp:variable _:b41
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 003 - Construct datatype string values"^^xsd:string ;
sp:templates ([ sp:object _:b51 ;
sp:predicate _:b52 ;
sp:subject spin:_this
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b53
] [ sp:object spin:_this ;
sp:predicate rdf:subject ;
sp:subject _:b53
] [ sp:object _:b52 ;
sp:predicate rdf:predicate ;
sp:subject _:b53
] [ sp:object _:b51 ;
sp:predicate rdf:object ;
sp:subject _:b53
] [ sp:object _:b53 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b54
]) ;
sp:where ([ sp:object _:b54 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject spin:_this
] [ sp:object _:b55 ;
sp:predicate rdf:type ;
sp:subject _:b54
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "uom"^^xsd:string
[ sp:varName "xmlTag"^^xsd:string
] ;
sp:predicate ddr:uom ;
sp:subject _:b54
sp:predicate sxml:tag ;
sp:subject _:b46
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 _:b55
] ;
sp:variable _:b56
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
sp:arg2 _:b56
]
] ;
sp:variable _:b52
] [ sp:object owl:DatatypeProperty ;
sp:predicate rdf:type ;
sp:subject _:b52
] [ sp:object _:b52 ;
sp:predicate owl:onProperty ;
sp:subject _:b57
] [ sp:object _:b58 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b57
] [ 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 _:b58
] [ sp:object _:b59 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b54
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b59
] [ sp:object _:b51 ;
sp:predicate sxml:text ;
sp:subject _:b59
] [ sp:object _:b60 ;
sp:predicate rdf:type ;
sp:subject spin:_this
] [ rdf:type sp:TriplePath ;
sp:object _:b57 ;
sp:object _:b50 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b60
sp:subject _:b51
])
] .
......@@ -676,347 +601,324 @@ ddr:version
owl:Thing
spin:query
[ rdf:type sp:Select ;
sp:where ([ sp:object
[ sp:varName "p"^^xsd:string
] ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b61
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "b"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b61
])
])
] ;
spin:query
[ rdf:type sp:Select ;
sp:resultVariables (_:b62 _:b63 _:b64 _:b65) ;
sp:where ([ sp:object _:b65 ;
sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ;
sp:subject _:b64
] [ sp:object _:b64 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b63
] [ rdf:type sp:Union ;
sp:elements (([ sp:object <http://topbraid.org/sxsd#Sequence> ;
sp:predicate rdf:type ;
sp:subject _:b63
]) ([ sp:object <http://topbraid.org/sxsd#Choice> ;
sp:predicate rdf:type ;
sp:subject _:b63
]))
] [ sp:object _:b63 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b62
])
] ;
spin:query
[ rdf:type sp:Select ;
sp:resultVariables (_:b66 _:b67 _:b68 _:b69) ;
sp:resultVariables (_:b52 _:b53 _:b54 _:b55) ;
sp:where ([ sp:object <http://topbraid.org/sxsd#ComplexType> ;
sp:predicate rdf:type ;
sp:subject _:b70
sp:subject _:b56
] [ rdf:type sp:TriplePath ;
sp:object _:b71 ;
sp:object _:b57 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath <http://www.topbraid.org/2007/05/composite.owl#child>
] ;
sp:subject _:b70
] [ sp:object _:b72 ;
sp:subject _:b56
] [ sp:object _:b58 ;
sp:predicate <http://topbraid.org/sxsd#name> ;
sp:subject _:b70
] [ sp:object _:b69 ;
sp:subject _:b56
] [ sp:object _:b55 ;
sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ;
sp:subject _:b71
] [ sp:object _:b73 ;
sp:subject _:b57
] [ sp:object _:b59 ;
sp:predicate <http://topbraid.org/sxsd#name> ;
sp:subject _:b71
sp:subject _:b57
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:titleCase ;
sp:arg1 _:b73
sp:arg1 _:b59
] ;
sp:variable _:b74
sp:variable _:b60
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ;
sp:arg2 _:b74
sp:arg2 _:b60
]
] ;
sp:variable _:b68
sp:variable _:b54
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:titleCase ;
sp:arg1 _:b72 ;
sp:arg1 _:b58 ;
sp:arg2 "[a-z]s"
] ;
sp:variable _:b75
sp:variable _:b61
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
sp:arg2 _:b75
sp:arg2 _:b61
]
] ;
sp:variable _:b67
sp:variable _:b53
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/map/ddr#" ;
sp:arg2 _:b75 ;
sp:arg2 _:b61 ;
sp:arg3 "-has" ;
sp:arg4 _:b74
sp:arg4 _:b60
]
] ;
sp:variable _:b66
sp:variable _:b52
])
] ;
spin:query
[ rdf:type sp:Select ;
sp:resultVariables (_:b62 _:b63 _:b64 _:b65) ;
sp:where ([ sp:object _:b65 ;
sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ;
sp:subject _:b64
] [ sp:object _:b64 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b63
] [ rdf:type sp:Union ;
sp:elements (([ sp:object <http://topbraid.org/sxsd#Sequence> ;
sp:predicate rdf:type ;
sp:subject _:b63
]) ([ sp:object <http://topbraid.org/sxsd#Choice> ;
sp:predicate rdf:type ;
sp:subject _:b63
]))
] [ sp:object _:b63 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b62
])
] ;
spin:query
[ rdf:type sp:Select ;
sp:where ([ sp:object
[ sp:varName "p"^^xsd:string
] ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b66
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "b"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b66
])
])
] ;
spin:update
[ rdf:type sp:Modify ;
sp:deletePattern ([ sp:object _:b76 ;
sp:deletePattern ([ sp:object _:b67 ;
sp:predicate rdfs:label ;
sp:subject _:b77
sp:subject _:b68
]) ;
sp:insertPattern ([ sp:object _:b78 ;
sp:insertPattern ([ sp:object _:b69 ;
sp:predicate rdfs:label ;
sp:subject _:b77
sp:subject _:b68
]) ;
sp:where ([ sp:object _:b77 ;
sp:where ([ sp:object _:b68 ;
sp:predicate owl:onProperty ;
sp:subject
[ sp:varName "r"^^xsd:string
]
] [ sp:object _:b76 ;
] [ sp:object _:b67 ;
sp:predicate rdfs:label ;
sp:subject _:b77
sp:subject _:b68
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type fn:starts-with ;
sp:arg1 _:b76 ;
sp:arg1 _:b67 ;
sp:arg2 "has"
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:trim ;
sp:arg1 [ rdf:type smf:regex ;
sp:arg1 _:b76 ;
sp:arg1 _:b67 ;
sp:arg2 "has(.*)" ;
sp:arg3 "$1"
]
] ;
sp:variable _:b78
sp:variable _:b69
])
] .
_:b38
sp:varName "rangeU"^^xsd:string .
_:b40
sp:varName "uom"^^xsd:string .
_:b41
sp:varName "value"^^xsd:string .
_:b42
sp:varName "opnameU"^^xsd:string .
_:b44
sp:varName "child"^^xsd:string .
_:b45
sp:varName "childType"^^xsd:string .
_:b46
sp:varName "childLocalName"^^xsd:string .
_:b47
sp:varName "allValuesRestriction"^^xsd:string .
_:b48
sp:varName "instType"^^xsd:string .
_:b49
sp:varName "textNode"^^xsd:string .
_:b50
sp:varName "text"^^xsd:string .
_:b27
_:b14
sp:varName "enumeratedValue"^^xsd:string .
_:b28
_:b15
sp:varName "opnameU"^^xsd:string .
_:b30
_:b17
sp:varName "child"^^xsd:string .
_:b31
_:b18
sp:varName "childType"^^xsd:string .
_:b32
_:b19
sp:varName "childLocalName"^^xsd:string .
_:b33
_:b20
sp:varName "valuesRestriction"^^xsd:string .
_:b34
_:b21
sp:varName "rangeU"^^xsd:string .
_:b35
_:b22
sp:varName "instType"^^xsd:string .
_:b36
_:b23
sp:varName "textNode"^^xsd:string .
_:b37
_:b24
sp:varName "text"^^xsd:string .
_:b10
sp:varName "dateTime"^^xsd:string .
_:b1 sp:varName "rangeU"^^xsd:string .
_:b11
sp:varName "dtpnameU"^^xsd:string .
_:b3 sp:varName "uom"^^xsd:string .
_:b13
sp:varName "child"^^xsd:string .
_:b4 sp:varName "value"^^xsd:string .
_:b14
sp:varName "childType"^^xsd:string .
_:b15
sp:varName "childLocalName"^^xsd:string .
_:b5 sp:varName "opnameU"^^xsd:string .
_:b16
sp:varName "valuesRestriction"^^xsd:string .
_:b7 sp:varName "child"^^xsd:string .
_:b17
sp:varName "rangeType"^^xsd:string .
_:b8 sp:varName "childType"^^xsd:string .
_:b18
sp:varName "textNode"^^xsd:string .
_:b9 sp:varName "childLocalName"^^xsd:string .
_:b19
sp:varName "text"^^xsd:string .
_:b10
sp:varName "allValuesRestriction"^^xsd:string .
_:b20
_:b11
sp:varName "instType"^^xsd:string .
_:b51
sp:varName "text"^^xsd:string .
_:b52
sp:varName "dtpnameU"^^xsd:string .
_:b54
sp:varName "child"^^xsd:string .
_:b12
sp:varName "textNode"^^xsd:string .
_:b55
sp:varName "childType"^^xsd:string .
_:b13
sp:varName "text"^^xsd:string .
_:b56
sp:varName "childLocalName"^^xsd:string .
_:b66
sp:varName "c"^^xsd:string .
_:b57
sp:varName "valuesRestriction"^^xsd:string .
_:b62
sp:varName "pp"^^xsd:string .
_:b58
sp:varName "rangeType"^^xsd:string .
_:b63
sp:varName "p"^^xsd:string .
_:b59
sp:varName "textNode"^^xsd:string .
_:b64
sp:varName "s"^^xsd:string .
_:b60
sp:varName "instType"^^xsd:string .
_:b65
sp:varName "e"^^xsd:string .
_:b66
_:b52
sp:varName "ddrCPU"^^xsd:string .
_:b67
_:b53
sp:varName "ddrCU"^^xsd:string .
_:b68
_:b54
sp:varName "ddrPU"^^xsd:string .
_:b69
_:b55
sp:varName "mre"^^xsd:string .
_:b70
_:b56
sp:varName "s"^^xsd:string .
_:b71
_:b57
sp:varName "c"^^xsd:string .
_:b72
_:b58
sp:varName "name"^^xsd:string .
_:b73
_:b59
sp:varName "pname"^^xsd:string .
_:b74
_:b60
sp:varName "tcpname"^^xsd:string .
_:b75
_:b61
sp:varName "tcname"^^xsd:string .
_:b62
sp:varName "pp"^^xsd:string .
_:b67
sp:varName "oldLabel"^^xsd:string .
_:b63
_:b68
sp:varName "p"^^xsd:string .
_:b64
sp:varName "s"^^xsd:string .
_:b69
sp:varName "newLabel"^^xsd:string .
_:b65
sp:varName "e"^^xsd:string .
_:b50
sp:varName "valuesRestriction"^^xsd:string .
_:b61
sp:varName "c"^^xsd:string .
_:b49
sp:varName "childType"^^xsd:string .
_:b76
sp:varName "oldLabel"^^xsd:string .
_:b47
sp:varName "formalProperty"^^xsd:string .
_:b77
sp:varName "p"^^xsd:string .
_:b46
sp:varName "child"^^xsd:string .
_:b78
sp:varName "newLabel"^^xsd:string .
_:b51
sp:varName "instType"^^xsd:string .
_:b25
_:b29
sp:varName "valuesRestriction"^^xsd:string .
_:b24
_:b28
sp:varName "childType"^^xsd:string .
_:b22
_:b26
sp:varName "formalProperty"^^xsd:string .
_:b21
_:b30
sp:varName "propertyName"^^xsd:string .
_:b25
sp:varName "child"^^xsd:string .
_:b26
_:b31
sp:varName "xmlTag"^^xsd:string .
_:b32
sp:varName "tagName"^^xsd:string .
_:b33
sp:varName "instType"^^xsd:string .
_:b5 sp:varName "valuesRestriction"^^xsd:string .
_:b37
sp:varName "child"^^xsd:string .
_:b38
sp:varName "childType"^^xsd:string .
_:b4 sp:varName "childType"^^xsd:string .
_:b39
sp:varName "childLocalName"^^xsd:string .
_:b35
sp:varName "dtpnameU"^^xsd:string .
_:b40
sp:varName "valuesRestriction"^^xsd:string .
_:b2 sp:varName "formalProperty"^^xsd:string .
_:b41
sp:varName "rangeType"^^xsd:string .
_:b6 sp:varName "propertyName"^^xsd:string .
_:b42
sp:varName "someXSDtype"^^xsd:string .
_:b1 sp:varName "child"^^xsd:string .
_:b43
sp:varName "textNode"^^xsd:string .
_:b7 sp:varName "xmlTag"^^xsd:string .
_:b44
sp:varName "text"^^xsd:string .
_:b8 sp:varName "tagName"^^xsd:string .
_:b45
sp:varName "instType"^^xsd:string .
_:b9 sp:varName "instType"^^xsd:string .
_:b34
sp:varName "value"^^xsd:string .
......
# Saved by TopBraid on Wed Aug 10 23:13:45 PDT 2011
# Saved by TopBraid on Fri Aug 12 18:51:35 PDT 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......