Ralph Hodgson

Removed XML import from TRANSFORM_ddr (should not have been kept

there)
# Saved by TopBraid on Sun Aug 07 17:28:32 PDT 2011
# Saved by TopBraid on Sun Aug 07 17:32:11 PDT 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr
# imports: http://www.reportinghub.no/ep/schema/1.1.1/ddr
# imports: file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml
# imports: http://www.reportinghub.no/ep/schema/1.1/activity
# imports: http://spinrdf.org/spin
# imports: http://topbraid.org/sxml
......@@ -135,160 +134,164 @@ ddr:Obj_drillReport
ddr:Thing
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 006 - Construct Enumerated Values"^^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 _:b4
sp:subject _:b7
]) ;
sp:where ([ sp:object _:b4 ;
sp:where ([ sp:object _:b7 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject spin:_this
] [ sp:object _:b5 ;
] [ sp:object _:b8 ;
sp:predicate rdf:type ;
sp:subject _:b4
sp:subject _:b7
] [ sp:object _:b3 ;
sp:predicate ddr:uom ;
sp:subject _:b7
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "uom"^^xsd:string
[ sp:varName "aNode"^^xsd:string
] ;
sp:predicate ddr:uom ;
sp:subject _:b4
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b7
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:titleCase ;
sp:arg1 [ rdf:type afn:localname ;
sp:arg1 _:b5
]
[ rdf:type afn:localname ;
sp:arg1 _:b8
] ;
sp:variable _:b6
sp:variable _:b9
] [ 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 _:b6
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ;
sp:arg2 [ rdf:type smf:titleCase ;
sp:arg1 _:b9
]
]
] ;
sp:variable _:b2
sp:variable _:b5
] [ sp:object owl:ObjectProperty ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object _:b2 ;
sp:subject _:b5
] [ sp:object _:b5 ;
sp:predicate owl:onProperty ;
sp:subject _:b7
] [ sp:object _:b8 ;
sp:subject _:b10
] [ sp:object _:b1 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b7
] [ sp:object _:b9 ;
sp:subject _:b10
] [ sp:object _:b11 ;
sp:predicate rdf:type ;
sp:subject spin:_this
] [ rdf:type sp:TriplePath ;
sp:object _:b7 ;
sp:object _:b10 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b9
] [ 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 _:b8
] [ sp:object _:b10 ;
sp:subject _:b11
] [ sp:object _:b12 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b4
sp:subject _:b7
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b10
] [ sp:object _:b11 ;
sp:subject _:b12
] [ sp:object _:b13 ;
sp:predicate sxml:text ;
sp:subject _:b10
] [ sp:object _:b8 ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object _:b11 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b1
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 _:b12 ;
sp:predicate _:b13 ;
sp:templates ([ sp:object _:b14 ;
sp:predicate _:b15 ;
sp:subject spin:_this
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b14
sp:subject _:b16
] [ sp:object spin:_this ;
sp:predicate rdf:subject ;
sp:subject _:b14
] [ sp:object _:b13 ;
sp:subject _:b16
] [ sp:object _:b15 ;
sp:predicate rdf:predicate ;
sp:subject _:b14
] [ sp:object _:b12 ;
sp:predicate rdf:object ;
sp:subject _:b14
sp:subject _:b16
] [ sp:object _:b14 ;
sp:predicate rdf:object ;
sp:subject _:b16
] [ sp:object _:b16 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b15
sp:subject _:b17
]) ;
sp:where ([ sp:object _:b15 ;
sp:where ([ sp:object _:b17 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject spin:_this
] [ sp:object _:b16 ;
] [ sp:object _:b18 ;
sp:predicate rdf:type ;
sp:subject _:b15
sp:subject _:b17
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "uom"^^xsd:string
] ;
sp:predicate ddr:uom ;
sp:subject _:b15
sp:subject _:b17
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 _:b16
sp:arg1 _:b18
] ;
sp:variable _:b17
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 _:b17
sp:arg2 _:b19
]
] ;
sp:variable _:b13
sp:variable _:b15
] [ sp:object owl:DatatypeProperty ;
sp:predicate rdf:type ;
sp:subject _:b13
] [ sp:object _:b13 ;
sp:subject _:b15
] [ sp:object _:b15 ;
sp:predicate owl:onProperty ;
sp:subject _:b18
] [ sp:object _:b19 ;
sp:subject _:b20
] [ sp:object _:b21 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b18
sp:subject _:b20
] [ rdf:type sp:TriplePath ;
sp:object xsd:dateTime ;
sp:path [ rdf:type sp:ModPath ;
......@@ -296,181 +299,177 @@ ddr:Thing
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b19
] [ sp:object _:b20 ;
sp:subject _:b21
] [ sp:object _:b22 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b15
sp:subject _:b17
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b20
] [ sp:object _:b21 ;
sp:subject _:b22
] [ sp:object _:b23 ;
sp:predicate sxml:text ;
sp:subject _:b20
] [ sp:object _:b22 ;
sp:subject _:b22
] [ sp:object _:b24 ;
sp:predicate rdf:type ;
sp:subject spin:_this
] [ rdf:type sp:TriplePath ;
sp:object _:b18 ;
sp:object _:b20 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b22
sp:subject _:b24
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:dateTime ;
sp:arg1 _:b21
sp:arg1 _:b23
] ;
sp:variable _:b12
sp:variable _:b14
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 020 - Construct all other object properties - WIP"^^xsd:string ;
sp:templates ([ sp:object _:b23 ;
sp:predicate _:b24 ;
sp:templates ([ sp:object _:b25 ;
sp:predicate _:b26 ;
sp:subject spin:_this
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b25
sp:subject _:b27
] [ sp:object spin:_this ;
sp:predicate rdf:subject ;
sp:subject _:b25
] [ sp:object _:b24 ;
sp:subject _:b27
] [ sp:object _:b26 ;
sp:predicate rdf:predicate ;
sp:subject _:b25
] [ sp:object _:b23 ;
sp:predicate rdf:object ;
sp:subject _:b25
sp:subject _:b27
] [ sp:object _:b25 ;
sp:predicate rdf:object ;
sp:subject _:b27
] [ sp:object _:b27 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b23
sp:subject _:b25
]) ;
sp:where ([ sp:object _:b26 ;
sp:where ([ sp:object _:b28 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b27
] [ sp:object _:b24 ;
sp:predicate owl:onProperty ;
sp:subject _:b27
sp:subject _:b29
] [ sp:object _:b26 ;
sp:predicate owl:onProperty ;
sp:subject _:b29
] [ sp:object _:b28 ;
sp:predicate rdf:type ;
sp:subject _:b23
] [ sp:object _:b23 ;
sp:subject _:b25
] [ sp:object _:b25 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject spin:_this
] [ sp:object _:b28 ;
] [ sp:object _:b30 ;
sp:predicate rdf:type ;
sp:subject spin:_this
] [ rdf:type sp:TriplePath ;
sp:object _:b27 ;
sp:object _:b29 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b28
sp:subject _:b30
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 004 - Construct UOM values"^^xsd:string ;
sp:templates ([ sp:object _:b29 ;
sp:predicate rdf:type ;
sp:subject _:b30
] [ sp:object _:b31 ;
sp:predicate ddr:uom ;
sp:subject _:b30
] [ sp:object _:b32 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b30
] [ sp:object _:b30 ;
sp:predicate _:b33 ;
rdfs:comment "STEP 006 - Construct Enumerated Values"^^xsd:string ;
sp:templates ([ sp:object _:b31 ;
sp:predicate _:b32 ;
sp:subject spin:_this
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b34
sp:subject _:b33
] [ sp:object spin:_this ;
sp:predicate rdf:subject ;
sp:subject _:b34
] [ sp:object _:b33 ;
sp:predicate rdf:predicate ;
sp:subject _:b34
sp:subject _:b33
] [ sp:object _:b32 ;
sp:predicate rdf:predicate ;
sp:subject _:b33
] [ sp:object _:b31 ;
sp:predicate rdf:object ;
sp:subject _:b34
] [ sp:object _:b34 ;
sp:subject _:b33
] [ sp:object _:b33 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b35
sp:subject _:b34
]) ;
sp:where ([ sp:object _:b35 ;
sp:where ([ sp:object _:b34 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject spin:_this
] [ sp:object _:b36 ;
] [ sp:object _:b35 ;
sp:predicate rdf:type ;
sp:subject _:b35
] [ sp:object _:b31 ;
sp:predicate ddr:uom ;
sp:subject _:b35
sp:subject _:b34
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "aNode"^^xsd:string
[ sp:varName "uom"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b35
sp:predicate ddr:uom ;
sp:subject _:b34
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 _:b36
[ rdf:type smf:titleCase ;
sp:arg1 [ rdf:type afn:localname ;
sp:arg1 _:b35
]
] ;
sp:variable _:b37
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 [ rdf:type smf:titleCase ;
sp:arg1 _:b37
]
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#enum" ;
sp:arg2 _:b36
]
] ;
sp:variable _:b33
sp:variable _:b32
] [ sp:object owl:ObjectProperty ;
sp:predicate rdf:type ;
sp:subject _:b33
] [ sp:object _:b33 ;
sp:subject _:b32
] [ sp:object _:b32 ;
sp:predicate owl:onProperty ;
sp:subject _:b38
] [ sp:object _:b29 ;
sp:subject _:b37
] [ sp:object _:b38 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b38
sp:subject _:b37
] [ sp:object _:b39 ;
sp:predicate rdf:type ;
sp:subject spin:_this
] [ rdf:type sp:TriplePath ;
sp:object _:b38 ;
sp:object _:b37 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
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 _:b38
] [ sp:object _:b40 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b35
sp:subject _:b34
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b40
] [ sp:object _:b41 ;
sp:predicate sxml:text ;
sp:subject _:b40
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:double ;
sp:arg1 _:b41
] ;
sp:variable _:b32
] [ sp:object _:b38 ;
sp:predicate rdf:type ;
sp:subject _:b31
] [ sp:object _:b41 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b31
])
] ;
spin:rule
......@@ -576,7 +575,7 @@ ddr:version
<http://www.reportinghub.no/ep/transform/1.1/ddr>
rdf:type owl:Ontology ;
owl:imports <file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml> , <http://spinrdf.org/spin> , <http://topbraid.org/sxml> , <http://www.reportinghub.no/ep/schema/1.1.1/ddr> , <http://www.reportinghub.no/ep/schema/1.1/activity> ;
owl:imports <http://spinrdf.org/spin> , <http://topbraid.org/sxml> , <http://www.reportinghub.no/ep/schema/1.1.1/ddr> , <http://www.reportinghub.no/ep/schema/1.1/activity> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
owl:Thing
......@@ -686,82 +685,49 @@ owl:Thing
])
] .
_:b29
sp:varName "rangeU"^^xsd:string .
_:b31
sp:varName "uom"^^xsd:string .
_:b32
sp:varName "value"^^xsd:string .
_:b33
sp:varName "opnameU"^^xsd:string .
_:b35
_:b25
sp:varName "child"^^xsd:string .
_:b36
sp:varName "childType"^^xsd:string .
_:b37
sp:varName "childLocalName"^^xsd:string .
_:b38
sp:varName "allValuesRestriction"^^xsd:string .
_:b39
sp:varName "instType"^^xsd:string .
_:b40
sp:varName "textNode"^^xsd:string .
_:b41
sp:varName "text"^^xsd:string .
_:b23
sp:varName "child"^^xsd:string .
_:b24
_:b26
sp:varName "formalProperty"^^xsd:string .
_:b26
_:b28
sp:varName "childType"^^xsd:string .
_:b27
_:b29
sp:varName "valuesRestriction"^^xsd:string .
_:b28
_:b30
sp:varName "instType"^^xsd:string .
_:b12
_:b14
sp:varName "dateTime"^^xsd:string .
_:b13
_:b15
sp:varName "dtpnameU"^^xsd:string .
_:b15
_:b17
sp:varName "child"^^xsd:string .
_:b16
_:b18
sp:varName "childType"^^xsd:string .
_:b17
_:b19
sp:varName "childLocalName"^^xsd:string .
_:b18
_:b20
sp:varName "valuesRestriction"^^xsd:string .
_:b19
_:b21
sp:varName "rangeType"^^xsd:string .
_:b20
_:b22
sp:varName "textNode"^^xsd:string .
_:b21
_:b23
sp:varName "text"^^xsd:string .
_:b22
_:b24
sp:varName "instType"^^xsd:string .
_:b42
......@@ -836,24 +802,58 @@ _:b56
_:b52
sp:varName "c"^^xsd:string .
_:b4 sp:varName "child"^^xsd:string .
_:b34
sp:varName "child"^^xsd:string .
_:b35
sp:varName "childType"^^xsd:string .
_:b5 sp:varName "childType"^^xsd:string .
_:b36
sp:varName "childLocalName"^^xsd:string .
_:b6 sp:varName "childLocalName"^^xsd:string .
_:b32
sp:varName "opnameU"^^xsd:string .
_:b2 sp:varName "opnameU"^^xsd:string .
_:b37
sp:varName "valuesRestriction"^^xsd:string .
_:b7 sp:varName "valuesRestriction"^^xsd:string .
_:b38
sp:varName "rangeU"^^xsd:string .
_:b39
sp:varName "instType"^^xsd:string .
_:b8 sp:varName "rangeU"^^xsd:string .
_:b40
sp:varName "textNode"^^xsd:string .
_:b9 sp:varName "instType"^^xsd:string .
_:b41
sp:varName "text"^^xsd:string .
_:b31
sp:varName "enumeratedValue"^^xsd:string .
_:b7 sp:varName "child"^^xsd:string .
_:b8 sp:varName "childType"^^xsd:string .
_:b3 sp:varName "uom"^^xsd:string .
_:b9 sp:varName "childLocalName"^^xsd:string .
_:b5 sp:varName "opnameU"^^xsd:string .
_:b10
sp:varName "textNode"^^xsd:string .
sp:varName "allValuesRestriction"^^xsd:string .
_:b1 sp:varName "rangeU"^^xsd:string .
_:b11
sp:varName "instType"^^xsd:string .
_:b12
sp:varName "textNode"^^xsd:string .
_:b13
sp:varName "text"^^xsd:string .
_:b1 sp:varName "enumeratedValue"^^xsd:string .
_:b4 sp:varName "value"^^xsd:string .
......
# Saved by TopBraid on Sun Aug 07 17:28:32 PDT 2011
# Saved by TopBraid on Sun Aug 07 17:32:11 PDT 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......