David Price

Finished NPD RD Release

1 # baseURI: http://www.reportinghub.no/refdata/RDL_ERHFoundationRD 1 # baseURI: http://www.reportinghub.no/refdata/RDL_ERHFoundationRD
2 # imports: http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003 2 # imports: http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003
3 # imports: http://rds.posccaesar.org/2008/06/OWL/RDL-annotations 3 # imports: http://rds.posccaesar.org/2008/06/OWL/RDL-annotations
4 +# imports: http://www.reportinghub.no/refdata/XSD-Datatypes
4 5
5 @prefix : <http://www.reportinghub.no/refdata/RDL_ERHFoundationRD#> . 6 @prefix : <http://www.reportinghub.no/refdata/RDL_ERHFoundationRD#> .
6 @prefix RDL-annotations: <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations#> . 7 @prefix RDL-annotations: <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations#> .
...@@ -41,5 +42,5 @@ pca-rdl:ERH00003 ...@@ -41,5 +42,5 @@ pca-rdl:ERH00003
41 42
42 <http://www.reportinghub.no/refdata/RDL_ERHFoundationRD> 43 <http://www.reportinghub.no/refdata/RDL_ERHFoundationRD>
43 rdf:type owl:Ontology ; 44 rdf:type owl:Ontology ;
44 - owl:imports <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003> , <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations> ; 45 + 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> ;
45 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 46 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
This diff could not be displayed because it is too large.
...@@ -3,40 +3,40 @@ ...@@ -3,40 +3,40 @@
3 # imports: http://rds.posccaesar.org/2008/06/OWL/RDL-annotations 3 # imports: http://rds.posccaesar.org/2008/06/OWL/RDL-annotations
4 4
5 @prefix : <http://posccaesar.org/rdl/> . 5 @prefix : <http://posccaesar.org/rdl/> .
6 -@prefix ISO-15926-2_2003: <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#> .
7 @prefix RDL-annotations: <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations#> . 6 @prefix RDL-annotations: <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations#> .
8 @prefix owl: <http://www.w3.org/2002/07/owl#> . 7 @prefix owl: <http://www.w3.org/2002/07/owl#> .
8 +@prefix p2: <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#> .
9 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 9 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
10 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . 10 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
11 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 11 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
12 12
13 :ERH-DATE 13 :ERH-DATE
14 - rdf:type ISO-15926-2_2003:RepresentationForm ; 14 + rdf:type p2:RepresentationForm ;
15 :hasDefinition "the W3C XML Schema Language Date Datatype"^^xsd:string ; 15 :hasDefinition "the W3C XML Schema Language Date Datatype"^^xsd:string ;
16 :hasDesignation "XML SCHEMA DATE"^^xsd:string . 16 :hasDesignation "XML SCHEMA DATE"^^xsd:string .
17 17
18 :ERH-DATETIME 18 :ERH-DATETIME
19 - rdf:type ISO-15926-2_2003:RepresentationForm ; 19 + rdf:type p2:RepresentationForm ;
20 :hasDefinition "the W3C XML Schema Language DateTime Datatype"^^xsd:string ; 20 :hasDefinition "the W3C XML Schema Language DateTime Datatype"^^xsd:string ;
21 :hasDesignation "XML SCHEMA DATETIME"^^xsd:string . 21 :hasDesignation "XML SCHEMA DATETIME"^^xsd:string .
22 22
23 :ERH-DOUBLE 23 :ERH-DOUBLE
24 - rdf:type ISO-15926-2_2003:RepresentationForm ; 24 + rdf:type p2:RepresentationForm ;
25 :hasDefinition "the W3C XML Schema Language Double Datatype"^^xsd:string ; 25 :hasDefinition "the W3C XML Schema Language Double Datatype"^^xsd:string ;
26 :hasDesignation "XML SCHEMA DOUBLE"^^xsd:string . 26 :hasDesignation "XML SCHEMA DOUBLE"^^xsd:string .
27 27
28 :ERH-FLOAT 28 :ERH-FLOAT
29 - rdf:type ISO-15926-2_2003:RepresentationForm ; 29 + rdf:type p2:RepresentationForm ;
30 :hasDefinition "the W3C XML Schema Language Float Datatype"^^xsd:string ; 30 :hasDefinition "the W3C XML Schema Language Float Datatype"^^xsd:string ;
31 :hasDesignation "XML SCHEMA FLOAT"^^xsd:string . 31 :hasDesignation "XML SCHEMA FLOAT"^^xsd:string .
32 32
33 :ERH-INTEGER 33 :ERH-INTEGER
34 - rdf:type ISO-15926-2_2003:RepresentationForm ; 34 + rdf:type p2:RepresentationForm ;
35 :hasDefinition "the W3C XML Schema Language Integer Datatype"^^xsd:string ; 35 :hasDefinition "the W3C XML Schema Language Integer Datatype"^^xsd:string ;
36 :hasDesignation "XML SCHEMA INTEGER"^^xsd:string . 36 :hasDesignation "XML SCHEMA INTEGER"^^xsd:string .
37 37
38 :ERH-STRING 38 :ERH-STRING
39 - rdf:type ISO-15926-2_2003:RepresentationForm ; 39 + rdf:type p2:RepresentationForm ;
40 :hasDefinition "the W3C XML Schema Language String Datatype"^^xsd:string ; 40 :hasDefinition "the W3C XML Schema Language String Datatype"^^xsd:string ;
41 :hasDesignation "XML SCHEMA STRING"^^xsd:string . 41 :hasDesignation "XML SCHEMA STRING"^^xsd:string .
42 42
...@@ -44,3 +44,21 @@ ...@@ -44,3 +44,21 @@
44 rdf:type owl:Ontology ; 44 rdf:type owl:Ontology ;
45 owl:imports <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003> , <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations> ; 45 owl:imports <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003> , <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations> ;
46 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 46 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
47 +
48 +xsd:date
49 + owl:sameAs :ERH-DATE .
50 +
51 +xsd:dateTime
52 + owl:sameAs :ERH-DATETIME .
53 +
54 +xsd:double
55 + owl:sameAs :ERH-DOUBLE .
56 +
57 +xsd:float
58 + owl:sameAs :ERH-FLOAT .
59 +
60 +xsd:integer
61 + owl:sameAs :ERH-INTEGER .
62 +
63 +xsd:string
64 + owl:sameAs :ERH-STRING .
......
1 +SELECT DISTINCT ?RDLDesignation ?RDLDefinition ?CoRepresented ?CoPattern ?ERHLocalname ?ERHOntology
2 +WHERE {
3 + ?s a p2:ClassOfClassOfRepresentation .
4 + ?s pca-rdl:hasDesignation ?RDLDesignation .
5 + ?s pca-rdl:hasDefinition ?RDLDefinition .
6 + OPTIONAL {
7 + ?s p2:hasClassOfRepresented ?CoRepresented . }
8 + OPTIONAL { ?s p2:hasClassOfPattern ?CoPattern . }
9 + ?erh owl:sameAs ?s .
10 + BIND (afn:localname(?erh) AS ?ERHLocalname )
11 + BIND (afn:namespace(?erh) AS ?ERHOntology )
12 +}
...\ No newline at end of file ...\ No newline at end of file
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
2 # imports: http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003 2 # imports: http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003
3 # imports: http://rds.posccaesar.org/2008/06/OWL/RDL-annotations 3 # imports: http://rds.posccaesar.org/2008/06/OWL/RDL-annotations
4 # imports: http://spinrdf.org/spin 4 # imports: http://spinrdf.org/spin
5 +# imports: http://www.reportinghub.no/np/schema/1.0/npd
5 # imports: http://www.reportinghub.no/refdata/RDL_ERHFoundationRD 6 # imports: http://www.reportinghub.no/refdata/RDL_ERHFoundationRD
6 7
7 @prefix : <http://www.reportinghub.no/refdata/transform/class2rd#> . 8 @prefix : <http://www.reportinghub.no/refdata/transform/class2rd#> .
...@@ -22,7 +23,7 @@ ...@@ -22,7 +23,7 @@
22 23
23 <http://www.reportinghub.no/refdata/transform/class2rd> 24 <http://www.reportinghub.no/refdata/transform/class2rd>
24 rdf:type owl:Ontology ; 25 rdf:type owl:Ontology ;
25 - 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> ; 26 + 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> ;
26 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 27 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
27 28
28 rdfs:Class 29 rdfs:Class
...@@ -244,6 +245,72 @@ rdfs:Class ...@@ -244,6 +245,72 @@ rdfs:Class
244 [ sp:varName "rduri"^^xsd:string 245 [ sp:varName "rduri"^^xsd:string
245 ] 246 ]
246 ]) 247 ])
248 + ] ;
249 + spin:rule
250 + [ rdf:type sp:Construct ;
251 + rdfs:comment "0195 Handle classification of RD classes as NPD"^^xsd:string ;
252 + sp:templates ([ sp:object <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#Classification> ;
253 + sp:predicate rdf:type ;
254 + sp:subject
255 + [ sp:varName "clsnuri"^^xsd:string
256 + ]
257 + ] [ sp:object
258 + [ sp:varName "thisrduri"^^xsd:string
259 + ] ;
260 + sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassified> ;
261 + sp:subject
262 + [ sp:varName "clsnuri"^^xsd:string
263 + ]
264 + ] [ sp:object <http://posccaesar.org/rdl/ERH00002> ;
265 + sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassifier> ;
266 + sp:subject
267 + [ sp:varName "clsnuri"^^xsd:string
268 + ]
269 + ] [ sp:object <http://posccaesar.org/rdl/ERH00000> ;
270 + sp:predicate rdf:type ;
271 + sp:subject
272 + [ sp:varName "clsnuri"^^xsd:string
273 + ]
274 + ]) ;
275 + sp:where ([ sp:object
276 + [ sp:varName "thisrduri"^^xsd:string
277 + ] ;
278 + sp:predicate owl:sameAs ;
279 + sp:subject spin:_this
280 + ] [ rdf:type sp:Filter ;
281 + sp:expression
282 + [ rdf:type sp:eq ;
283 + sp:arg1 [ rdf:type afn:namespace ;
284 + sp:arg1 spin:_this
285 + ] ;
286 + sp:arg2 "http://www.reportinghub.no/np/schema/npd#"
287 + ]
288 + ] [ rdf:type sp:Bind ;
289 + sp:expression
290 + [ rdf:type spif:generateUUID
291 + ] ;
292 + sp:variable
293 + [ sp:varName "uuid"^^xsd:string
294 + ]
295 + ] [ rdf:type sp:Bind ;
296 + sp:expression
297 + [ rdf:type fn:concat ;
298 + sp:arg1 "ERH" ;
299 + sp:arg2 [ sp:varName "uuid"^^xsd:string
300 + ]
301 + ] ;
302 + sp:variable
303 + [ sp:varName "pcaid"^^xsd:string
304 + ]
305 + ] [ rdf:type sp:Bind ;
306 + sp:expression
307 + [ rdf:type spif:buildURI ;
308 + sp:arg1 "<http://posccaesar.org/rdl/{?pcaid}>"
309 + ] ;
310 + sp:variable
311 + [ sp:varName "clsnuri"^^xsd:string
312 + ]
313 + ])
247 ] . 314 ] .
248 315
249 owl:Class 316 owl:Class
...@@ -695,70 +762,4 @@ owl:Class ...@@ -695,70 +762,4 @@ owl:Class
695 ] 762 ]
696 ]) 763 ])
697 ]) 764 ])
698 - ] ;
699 - spin:rule
700 - [ rdf:type sp:Construct ;
701 - rdfs:comment "0300 Handle classification of RD classes as NPD"^^xsd:string ;
702 - sp:templates ([ sp:object <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#Classification> ;
703 - sp:predicate rdf:type ;
704 - sp:subject
705 - [ sp:varName "clsnuri"^^xsd:string
706 - ]
707 - ] [ sp:object
708 - [ sp:varName "thisrduri"^^xsd:string
709 - ] ;
710 - sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassified> ;
711 - sp:subject
712 - [ sp:varName "clsnuri"^^xsd:string
713 - ]
714 - ] [ sp:object <http://posccaesar.org/rdl/ERH00002> ;
715 - sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassifier> ;
716 - sp:subject
717 - [ sp:varName "clsnuri"^^xsd:string
718 - ]
719 - ] [ sp:object <http://posccaesar.org/rdl/ERH00000> ;
720 - sp:predicate rdf:type ;
721 - sp:subject
722 - [ sp:varName "clsnuri"^^xsd:string
723 - ]
724 - ]) ;
725 - sp:where ([ sp:object
726 - [ sp:varName "thisrduri"^^xsd:string
727 - ] ;
728 - sp:predicate owl:sameAs ;
729 - sp:subject spin:_this
730 - ] [ rdf:type sp:Filter ;
731 - sp:expression
732 - [ rdf:type sp:eq ;
733 - sp:arg1 [ rdf:type afn:namespace ;
734 - sp:arg1 spin:_this
735 - ] ;
736 - sp:arg2 "http://www.reportinghub.no/np/schema/npd#"
737 - ]
738 - ] [ rdf:type sp:Bind ;
739 - sp:expression
740 - [ rdf:type spif:generateUUID
741 - ] ;
742 - sp:variable
743 - [ sp:varName "uuid"^^xsd:string
744 - ]
745 - ] [ rdf:type sp:Bind ;
746 - sp:expression
747 - [ rdf:type fn:concat ;
748 - sp:arg1 "ERH" ;
749 - sp:arg2 [ sp:varName "uuid"^^xsd:string
750 - ]
751 - ] ;
752 - sp:variable
753 - [ sp:varName "pcaid"^^xsd:string
754 - ]
755 - ] [ rdf:type sp:Bind ;
756 - sp:expression
757 - [ rdf:type spif:buildURI ;
758 - sp:arg1 "<http://posccaesar.org/rdl/{?pcaid}>"
759 - ] ;
760 - sp:variable
761 - [ sp:varName "clsnuri"^^xsd:string
762 - ]
763 - ])
764 ] . 765 ] .
......