David Price

Finished NPD RD Release

# baseURI: http://www.reportinghub.no/refdata/RDL_ERHFoundationRD
# imports: http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003
# imports: http://rds.posccaesar.org/2008/06/OWL/RDL-annotations
# imports: http://www.reportinghub.no/refdata/XSD-Datatypes
@prefix : <http://www.reportinghub.no/refdata/RDL_ERHFoundationRD#> .
@prefix RDL-annotations: <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations#> .
......@@ -41,5 +42,5 @@ pca-rdl:ERH00003
<http://www.reportinghub.no/refdata/RDL_ERHFoundationRD>
rdf:type owl:Ontology ;
owl:imports <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003> , <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations> ;
owl:imports <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003> , <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations> , <http://www.reportinghub.no/refdata/XSD-Datatypes> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
This diff could not be displayed because it is too large.
......@@ -3,40 +3,40 @@
# imports: http://rds.posccaesar.org/2008/06/OWL/RDL-annotations
@prefix : <http://posccaesar.org/rdl/> .
@prefix ISO-15926-2_2003: <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#> .
@prefix RDL-annotations: <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix p2: <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
:ERH-DATE
rdf:type ISO-15926-2_2003:RepresentationForm ;
rdf:type p2:RepresentationForm ;
:hasDefinition "the W3C XML Schema Language Date Datatype"^^xsd:string ;
:hasDesignation "XML SCHEMA DATE"^^xsd:string .
:ERH-DATETIME
rdf:type ISO-15926-2_2003:RepresentationForm ;
rdf:type p2:RepresentationForm ;
:hasDefinition "the W3C XML Schema Language DateTime Datatype"^^xsd:string ;
:hasDesignation "XML SCHEMA DATETIME"^^xsd:string .
:ERH-DOUBLE
rdf:type ISO-15926-2_2003:RepresentationForm ;
rdf:type p2:RepresentationForm ;
:hasDefinition "the W3C XML Schema Language Double Datatype"^^xsd:string ;
:hasDesignation "XML SCHEMA DOUBLE"^^xsd:string .
:ERH-FLOAT
rdf:type ISO-15926-2_2003:RepresentationForm ;
rdf:type p2:RepresentationForm ;
:hasDefinition "the W3C XML Schema Language Float Datatype"^^xsd:string ;
:hasDesignation "XML SCHEMA FLOAT"^^xsd:string .
:ERH-INTEGER
rdf:type ISO-15926-2_2003:RepresentationForm ;
rdf:type p2:RepresentationForm ;
:hasDefinition "the W3C XML Schema Language Integer Datatype"^^xsd:string ;
:hasDesignation "XML SCHEMA INTEGER"^^xsd:string .
:ERH-STRING
rdf:type ISO-15926-2_2003:RepresentationForm ;
rdf:type p2:RepresentationForm ;
:hasDefinition "the W3C XML Schema Language String Datatype"^^xsd:string ;
:hasDesignation "XML SCHEMA STRING"^^xsd:string .
......@@ -44,3 +44,21 @@
rdf:type owl:Ontology ;
owl:imports <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003> , <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
xsd:date
owl:sameAs :ERH-DATE .
xsd:dateTime
owl:sameAs :ERH-DATETIME .
xsd:double
owl:sameAs :ERH-DOUBLE .
xsd:float
owl:sameAs :ERH-FLOAT .
xsd:integer
owl:sameAs :ERH-INTEGER .
xsd:string
owl:sameAs :ERH-STRING .
......
SELECT DISTINCT ?RDLDesignation ?RDLDefinition ?CoRepresented ?CoPattern ?ERHLocalname ?ERHOntology
WHERE {
?s a p2:ClassOfClassOfRepresentation .
?s pca-rdl:hasDesignation ?RDLDesignation .
?s pca-rdl:hasDefinition ?RDLDefinition .
OPTIONAL {
?s p2:hasClassOfRepresented ?CoRepresented . }
OPTIONAL { ?s p2:hasClassOfPattern ?CoPattern . }
?erh owl:sameAs ?s .
BIND (afn:localname(?erh) AS ?ERHLocalname )
BIND (afn:namespace(?erh) AS ?ERHOntology )
}
\ No newline at end of file
......@@ -2,6 +2,7 @@
# imports: http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003
# imports: http://rds.posccaesar.org/2008/06/OWL/RDL-annotations
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/np/schema/1.0/npd
# imports: http://www.reportinghub.no/refdata/RDL_ERHFoundationRD
@prefix : <http://www.reportinghub.no/refdata/transform/class2rd#> .
......@@ -22,7 +23,7 @@
<http://www.reportinghub.no/refdata/transform/class2rd>
rdf:type owl:Ontology ;
owl:imports <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003> , <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/refdata/RDL_ERHFoundationRD> ;
owl:imports <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003> , <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/np/schema/1.0/npd> , <http://www.reportinghub.no/refdata/RDL_ERHFoundationRD> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
rdfs:Class
......@@ -244,6 +245,72 @@ rdfs:Class
[ sp:varName "rduri"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "0195 Handle classification of RD classes as NPD"^^xsd:string ;
sp:templates ([ sp:object <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#Classification> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "clsnuri"^^xsd:string
]
] [ sp:object
[ sp:varName "thisrduri"^^xsd:string
] ;
sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassified> ;
sp:subject
[ sp:varName "clsnuri"^^xsd:string
]
] [ sp:object <http://posccaesar.org/rdl/ERH00002> ;
sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassifier> ;
sp:subject
[ sp:varName "clsnuri"^^xsd:string
]
] [ sp:object <http://posccaesar.org/rdl/ERH00000> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "clsnuri"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "thisrduri"^^xsd:string
] ;
sp:predicate owl:sameAs ;
sp:subject spin:_this
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:eq ;
sp:arg1 [ rdf:type afn:namespace ;
sp:arg1 spin:_this
] ;
sp:arg2 "http://www.reportinghub.no/np/schema/npd#"
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:generateUUID
] ;
sp:variable
[ sp:varName "uuid"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type fn:concat ;
sp:arg1 "ERH" ;
sp:arg2 [ sp:varName "uuid"^^xsd:string
]
] ;
sp:variable
[ sp:varName "pcaid"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:buildURI ;
sp:arg1 "<http://posccaesar.org/rdl/{?pcaid}>"
] ;
sp:variable
[ sp:varName "clsnuri"^^xsd:string
]
])
] .
owl:Class
......@@ -695,70 +762,4 @@ owl:Class
]
])
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "0300 Handle classification of RD classes as NPD"^^xsd:string ;
sp:templates ([ sp:object <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#Classification> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "clsnuri"^^xsd:string
]
] [ sp:object
[ sp:varName "thisrduri"^^xsd:string
] ;
sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassified> ;
sp:subject
[ sp:varName "clsnuri"^^xsd:string
]
] [ sp:object <http://posccaesar.org/rdl/ERH00002> ;
sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassifier> ;
sp:subject
[ sp:varName "clsnuri"^^xsd:string
]
] [ sp:object <http://posccaesar.org/rdl/ERH00000> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "clsnuri"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "thisrduri"^^xsd:string
] ;
sp:predicate owl:sameAs ;
sp:subject spin:_this
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:eq ;
sp:arg1 [ rdf:type afn:namespace ;
sp:arg1 spin:_this
] ;
sp:arg2 "http://www.reportinghub.no/np/schema/npd#"
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:generateUUID
] ;
sp:variable
[ sp:varName "uuid"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type fn:concat ;
sp:arg1 "ERH" ;
sp:arg2 [ sp:varName "uuid"^^xsd:string
]
] ;
sp:variable
[ sp:varName "pcaid"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:buildURI ;
sp:arg1 "<http://posccaesar.org/rdl/{?pcaid}>"
] ;
sp:variable
[ sp:varName "clsnuri"^^xsd:string
]
])
] .
......