David Price

More Class RD work

1 +# baseURI: http://www.reportinghub.no/refdata/RDL_ERHFoundationRD
2 +# imports: http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003
3 +# imports: http://rds.posccaesar.org/2008/06/OWL/RDL-annotations
4 +
5 +@prefix : <http://www.reportinghub.no/refdata/RDL_ERHFoundationRD#> .
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#> .
8 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
9 +@prefix pca-rdl: <http://posccaesar.org/rdl/> .
10 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
11 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
12 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
13 +
14 +pca-rdl:ERH00000
15 + rdf:type ISO-15926-2_2003:Thing , owl:Class ;
16 + rdfs:subClassOf owl:Thing ;
17 + pca-rdl:hasDesignation
18 + "EPIM REPORTINGHUB REFERENCE DATA THING"^^xsd:string ;
19 + pca-rdl:hasIdPCA "ERH00000"^^xsd:string .
20 +
21 +pca-rdl:ERH00001
22 + rdf:type ISO-15926-2_2003:ClassOfClass , owl:Class ;
23 + rdfs:subClassOf owl:Thing ;
24 + pca-rdl:hasDesignation
25 + "EPIM REPORTINGHUB REFERENCE DATA CLASS"^^xsd:string ;
26 + pca-rdl:hasIdPCA "ERH00001"^^xsd:string .
27 +
28 +<http://www.reportinghub.no/refdata/RDL_ERHFoundationRD>
29 + rdf:type owl:Ontology ;
30 + owl:imports <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003> , <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations> ;
31 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
1 -SELECT DISTINCT ?RDLDesignation ?RDLDefinition ?EntityType ?RDLSuperclass ?RDLSuperclassId ?ERHLocalname ?ERHOntology 1 +SELECT DISTINCT ?RDDesignation ?RDDefinition ?RDId ?EntityType ?RDURI ?RDSuperclass ?RDSuperclassId ?RDSuperclassURI ?ERHLocalname ?ERHOntology
2 WHERE { 2 WHERE {
3 - ?s pca-rdl:hasDesignation ?RDLDesignation . 3 + ?RDURI pca-rdl:hasDesignation ?RDDesignation .
4 - ?s pca-rdl:hasDefinition ?RDLDefinition . 4 + ?RDURI pca-rdl:hasDefinition ?RDDefinition .
5 - ?s rdf:type ?p2 . 5 + ?RDURI pca-rdl:hasIdPCA ?RDId .
6 + ?RDURI rdf:type ?p2 .
7 + FILTER ( afn:namespace(?p2) = "http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#" )
6 BIND (afn:localname(?p2) AS ?EntityType ) 8 BIND (afn:localname(?p2) AS ?EntityType )
7 OPTIONAL { 9 OPTIONAL {
8 - ?spec ISO-15926-2_2003:hasSubclass ?s . 10 + ?spec ISO-15926-2_2003:hasSubclass ?RDURI .
9 - ?spec ISO-15926-2_2003:hasSuperclass ?sup . 11 + ?spec ISO-15926-2_2003:hasSuperclass ?RDSuperclassURI .
10 - ?sup pca-rdl:hasDesignation ?RDLSuperclass . 12 + ?RDSuperclassURI pca-rdl:hasDesignation ?RDSuperclass .
11 - ?sup pca-rdl:hasIdPCA ?RDLSuperclassId . 13 + ?RDSuperclassURI pca-rdl:hasIdPCA ?RDSuperclassId .
12 } 14 }
13 15
14 - ?erh owl:sameAs ?s . 16 + ?erh owl:sameAs ?RDURI .
15 BIND (afn:localname(?erh) AS ?ERHLocalname ) 17 BIND (afn:localname(?erh) AS ?ERHLocalname )
16 BIND (afn:namespace(?erh) AS ?ERHOntology ) 18 BIND (afn:namespace(?erh) AS ?ERHOntology )
17 } 19 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -3,10 +3,12 @@ ...@@ -3,10 +3,12 @@
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/ep/schema/1.0/drilling 5 # imports: http://www.reportinghub.no/ep/schema/1.0/drilling
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#> .
8 @prefix ISO-15926-2_2003: <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#> . 9 @prefix ISO-15926-2_2003: <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#> .
9 @prefix RDL-annotations: <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations#> . 10 @prefix RDL-annotations: <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations#> .
11 +@prefix RDL_ERHFoundationRD: <http://www.reportinghub.no/refdata/RDL_ERHFoundationRD#> .
10 @prefix afn: <http://jena.hpl.hp.com/ARQ/function#> . 12 @prefix afn: <http://jena.hpl.hp.com/ARQ/function#> .
11 @prefix drilling: <http://www.reportinghub.no/ep/schema/1.0/drilling#> . 13 @prefix drilling: <http://www.reportinghub.no/ep/schema/1.0/drilling#> .
12 @prefix fn: <http://www.w3.org/2005/xpath-functions#> . 14 @prefix fn: <http://www.w3.org/2005/xpath-functions#> .
...@@ -22,7 +24,7 @@ ...@@ -22,7 +24,7 @@
22 24
23 <http://www.reportinghub.no/refdata/transform/class2rd> 25 <http://www.reportinghub.no/refdata/transform/class2rd>
24 rdf:type owl:Ontology ; 26 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/ep/schema/1.0/drilling> ; 27 + 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/ep/schema/1.0/drilling> , <http://www.reportinghub.no/refdata/RDL_ERHFoundationRD> ;
26 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 28 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
27 29
28 rdfs:Class 30 rdfs:Class
...@@ -60,6 +62,11 @@ rdfs:Class ...@@ -60,6 +62,11 @@ rdfs:Class
60 sp:subject 62 sp:subject
61 [ sp:varName "thisrduri"^^xsd:string 63 [ sp:varName "thisrduri"^^xsd:string
62 ] 64 ]
65 + ] [ sp:object <http://posccaesar.org/rdl/ERH00000> ;
66 + sp:predicate rdf:type ;
67 + sp:subject
68 + [ sp:varName "thisrduri"^^xsd:string
69 + ]
63 ]) ; 70 ]) ;
64 sp:where ([ rdf:type sp:NotExists ; 71 sp:where ([ rdf:type sp:NotExists ;
65 sp:elements ([ sp:object owl:Class ; 72 sp:elements ([ sp:object owl:Class ;
...@@ -156,6 +163,11 @@ rdfs:Class ...@@ -156,6 +163,11 @@ rdfs:Class
156 sp:subject 163 sp:subject
157 [ sp:varName "specuri"^^xsd:string 164 [ sp:varName "specuri"^^xsd:string
158 ] 165 ]
166 + ] [ sp:object <http://posccaesar.org/rdl/ERH00000> ;
167 + sp:predicate rdf:type ;
168 + sp:subject
169 + [ sp:varName "specuri"^^xsd:string
170 + ]
159 ]) ; 171 ]) ;
160 sp:where ([ rdf:type sp:NotExists ; 172 sp:where ([ rdf:type sp:NotExists ;
161 sp:elements ([ sp:object owl:Class ; 173 sp:elements ([ sp:object owl:Class ;
...@@ -274,6 +286,33 @@ owl:Class ...@@ -274,6 +286,33 @@ owl:Class
274 sp:subject 286 sp:subject
275 [ sp:varName "thisrduri"^^xsd:string 287 [ sp:varName "thisrduri"^^xsd:string
276 ] 288 ]
289 + ] [ sp:object <http://posccaesar.org/rdl/ERH00000> ;
290 + sp:predicate rdf:type ;
291 + sp:subject
292 + [ sp:varName "thisrduri"^^xsd:string
293 + ]
294 + ] [ sp:object ISO-15926-2_2003:Classification ;
295 + sp:predicate rdf:type ;
296 + sp:subject
297 + [ sp:varName "clsncuri"^^xsd:string
298 + ]
299 + ] [ sp:object <http://posccaesar.org/rdl/ERH00001> ;
300 + sp:predicate ISO-15926-2_2003:hasClassifier ;
301 + sp:subject
302 + [ sp:varName "clsncuri"^^xsd:string
303 + ]
304 + ] [ sp:object
305 + [ sp:varName "thisrduri"^^xsd:string
306 + ] ;
307 + sp:predicate ISO-15926-2_2003:hasClassified ;
308 + sp:subject
309 + [ sp:varName "clsncuri"^^xsd:string
310 + ]
311 + ] [ sp:object <http://posccaesar.org/rdl/ERH00000> ;
312 + sp:predicate rdf:type ;
313 + sp:subject
314 + [ sp:varName "clsncuri"^^xsd:string
315 + ]
277 ]) ; 316 ]) ;
278 sp:where ([ rdf:type sp:NotExists ; 317 sp:where ([ rdf:type sp:NotExists ;
279 sp:elements ([ sp:object 318 sp:elements ([ sp:object
...@@ -341,6 +380,31 @@ owl:Class ...@@ -341,6 +380,31 @@ owl:Class
341 sp:variable 380 sp:variable
342 [ sp:varName "desigation"^^xsd:string 381 [ sp:varName "desigation"^^xsd:string
343 ] 382 ]
383 + ] [ rdf:type sp:Bind ;
384 + sp:expression
385 + [ rdf:type spif:generateUUID
386 + ] ;
387 + sp:variable
388 + [ sp:varName "clsnuuid"^^xsd:string
389 + ]
390 + ] [ rdf:type sp:Bind ;
391 + sp:expression
392 + [ rdf:type fn:concat ;
393 + sp:arg1 "ERH" ;
394 + sp:arg2 [ sp:varName "clsnuuid"^^xsd:string
395 + ]
396 + ] ;
397 + sp:variable
398 + [ sp:varName "clsnid"^^xsd:string
399 + ]
400 + ] [ rdf:type sp:Bind ;
401 + sp:expression
402 + [ rdf:type spif:buildURI ;
403 + sp:arg1 "<http://posccaesar.org/rdl/{?clsnid}>"
404 + ] ;
405 + sp:variable
406 + [ sp:varName "clsncuri"^^xsd:string
407 + ]
344 ]) 408 ])
345 ] ; 409 ] ;
346 spin:rule 410 spin:rule
...@@ -397,6 +461,11 @@ owl:Class ...@@ -397,6 +461,11 @@ owl:Class
397 sp:subject 461 sp:subject
398 [ sp:varName "specuri"^^xsd:string 462 [ sp:varName "specuri"^^xsd:string
399 ] 463 ]
464 + ] [ sp:object <http://posccaesar.org/rdl/ERH00000> ;
465 + sp:predicate rdf:type ;
466 + sp:subject
467 + [ sp:varName "specuri"^^xsd:string
468 + ]
400 ]) ; 469 ]) ;
401 sp:where ([ sp:object 470 sp:where ([ sp:object
402 [ sp:varName "superclass"^^xsd:string 471 [ sp:varName "superclass"^^xsd:string
......