Showing
7 changed files
with
384 additions
and
154 deletions
| 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 | ] . | ... | ... |
| ... | @@ -2,17 +2,19 @@ | ... | @@ -2,17 +2,19 @@ |
| 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/ep/schema/1.0/drilling | 5 | +# imports: http://www.reportinghub.no/np/schema/1.0/npd |
| 6 | +# imports: http://www.reportinghub.no/refdata/RDL_ERHFoundationRD | ||
| 6 | 7 | ||
| 7 | @prefix : <http://www.reportinghub.no/refdata/transform/datprop2rd#> . | 8 | @prefix : <http://www.reportinghub.no/refdata/transform/datprop2rd#> . |
| 8 | -@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#> . | 9 | @prefix RDL-annotations: <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations#> . |
| 10 | +@prefix RDL_ERHFoundationRD: <http://www.reportinghub.no/refdata/RDL_ERHFoundationRD#> . | ||
| 10 | @prefix afn: <http://jena.hpl.hp.com/ARQ/function#> . | 11 | @prefix afn: <http://jena.hpl.hp.com/ARQ/function#> . |
| 11 | @prefix drilling: <http://www.reportinghub.no/ep/schema/1.0/drilling#> . | 12 | @prefix drilling: <http://www.reportinghub.no/ep/schema/1.0/drilling#> . |
| 12 | @prefix fn: <http://www.w3.org/2005/xpath-functions#> . | 13 | @prefix fn: <http://www.w3.org/2005/xpath-functions#> . |
| 13 | @prefix owl: <http://www.w3.org/2002/07/owl#> . | 14 | @prefix owl: <http://www.w3.org/2002/07/owl#> . |
| 14 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | 15 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
| 15 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | 16 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
| 17 | +@prefix smf: <http://topbraid.org/sparqlmotionfunctions#> . | ||
| 16 | @prefix sp: <http://spinrdf.org/sp#> . | 18 | @prefix sp: <http://spinrdf.org/sp#> . |
| 17 | @prefix spif: <http://spinrdf.org/spif#> . | 19 | @prefix spif: <http://spinrdf.org/spif#> . |
| 18 | @prefix spin: <http://spinrdf.org/spin#> . | 20 | @prefix spin: <http://spinrdf.org/spin#> . |
| ... | @@ -21,7 +23,7 @@ | ... | @@ -21,7 +23,7 @@ |
| 21 | 23 | ||
| 22 | <http://www.reportinghub.no/refdata/transform/datprop2rd> | 24 | <http://www.reportinghub.no/refdata/transform/datprop2rd> |
| 23 | rdf:type owl:Ontology ; | 25 | rdf:type owl:Ontology ; |
| 24 | - 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> ; | 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> ; |
| 25 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 27 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
| 26 | 28 | ||
| 27 | owl:DatatypeProperty | 29 | owl:DatatypeProperty |
| ... | @@ -54,7 +56,12 @@ owl:DatatypeProperty | ... | @@ -54,7 +56,12 @@ owl:DatatypeProperty |
| 54 | sp:subject | 56 | sp:subject |
| 55 | [ sp:varName "thisrduri"^^xsd:string | 57 | [ sp:varName "thisrduri"^^xsd:string |
| 56 | ] | 58 | ] |
| 57 | - ] [ sp:object ISO-15926-2_2003:ClassOfClassOfRepresentation ; | 59 | + ] [ sp:object <http://posccaesar.org/rdl/ERH00000> ; |
| 60 | + sp:predicate rdf:type ; | ||
| 61 | + sp:subject | ||
| 62 | + [ sp:varName "thisrduri"^^xsd:string | ||
| 63 | + ] | ||
| 64 | + ] [ sp:object <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfClassOfRepresentation> ; | ||
| 58 | sp:predicate rdf:type ; | 65 | sp:predicate rdf:type ; |
| 59 | sp:subject | 66 | sp:subject |
| 60 | [ sp:varName "thisrduri"^^xsd:string | 67 | [ sp:varName "thisrduri"^^xsd:string |
| ... | @@ -79,22 +86,6 @@ owl:DatatypeProperty | ... | @@ -79,22 +86,6 @@ owl:DatatypeProperty |
| 79 | sp:predicate rdf:type ; | 86 | sp:predicate rdf:type ; |
| 80 | sp:subject spin:_this | 87 | sp:subject spin:_this |
| 81 | ]) | 88 | ]) |
| 82 | - ] [ rdf:type sp:Filter ; | ||
| 83 | - sp:expression | ||
| 84 | - [ rdf:type sp:ne ; | ||
| 85 | - sp:arg1 [ rdf:type afn:namespace ; | ||
| 86 | - sp:arg1 spin:_this | ||
| 87 | - ] ; | ||
| 88 | - sp:arg2 "http://www.linkedmodel.org/schema/vaem#" | ||
| 89 | - ] | ||
| 90 | - ] [ rdf:type sp:Filter ; | ||
| 91 | - sp:expression | ||
| 92 | - [ rdf:type sp:ne ; | ||
| 93 | - sp:arg1 [ rdf:type afn:namespace ; | ||
| 94 | - sp:arg1 spin:_this | ||
| 95 | - ] ; | ||
| 96 | - sp:arg2 "http://www.w3.org/2004/02/skos/core#" | ||
| 97 | - ] | ||
| 98 | ] [ sp:object | 89 | ] [ sp:object |
| 99 | [ sp:varName "definition"^^xsd:string | 90 | [ sp:varName "definition"^^xsd:string |
| 100 | ] ; | 91 | ] ; |
| ... | @@ -133,11 +124,186 @@ owl:DatatypeProperty | ... | @@ -133,11 +124,186 @@ owl:DatatypeProperty |
| 133 | ] [ rdf:type sp:Bind ; | 124 | ] [ rdf:type sp:Bind ; |
| 134 | sp:expression | 125 | sp:expression |
| 135 | [ rdf:type fn:upper-case ; | 126 | [ rdf:type fn:upper-case ; |
| 127 | + sp:arg1 [ rdf:type xsd:string ; | ||
| 136 | sp:arg1 [ sp:varName "label"^^xsd:string | 128 | sp:arg1 [ sp:varName "label"^^xsd:string |
| 137 | ] | 129 | ] |
| 130 | + ] | ||
| 138 | ] ; | 131 | ] ; |
| 139 | sp:variable | 132 | sp:variable |
| 140 | [ sp:varName "desigation"^^xsd:string | 133 | [ sp:varName "desigation"^^xsd:string |
| 141 | ] | 134 | ] |
| 142 | ]) | 135 | ]) |
| 136 | + ] ; | ||
| 137 | + spin:rule | ||
| 138 | + [ rdf:type sp:Construct ; | ||
| 139 | + rdfs:comment "0320 Set sameAs for RD items already in PCA RDL"^^xsd:string ; | ||
| 140 | + sp:templates ([ sp:object | ||
| 141 | + [ sp:varName "rduri"^^xsd:string | ||
| 142 | + ] ; | ||
| 143 | + sp:predicate owl:sameAs ; | ||
| 144 | + sp:subject spin:_this | ||
| 145 | + ]) ; | ||
| 146 | + sp:where ([ rdf:type sp:NotExists ; | ||
| 147 | + sp:elements ([ sp:object | ||
| 148 | + [ sp:varName "same"^^xsd:string | ||
| 149 | + ] ; | ||
| 150 | + sp:predicate owl:sameAs ; | ||
| 151 | + sp:subject spin:_this | ||
| 152 | + ]) | ||
| 153 | + ] [ rdf:type sp:NotExists ; | ||
| 154 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/core#Scale> ; | ||
| 155 | + sp:predicate rdf:type ; | ||
| 156 | + sp:subject spin:_this | ||
| 157 | + ]) | ||
| 158 | + ] [ sp:object | ||
| 159 | + [ sp:varName "seerd"^^xsd:string | ||
| 160 | + ] ; | ||
| 161 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#seeReferenceData> ; | ||
| 162 | + sp:subject spin:_this | ||
| 163 | + ] [ rdf:type sp:Bind ; | ||
| 164 | + sp:expression | ||
| 165 | + [ rdf:type smf:buildURI ; | ||
| 166 | + sp:arg1 [ sp:varName "seerd"^^xsd:string | ||
| 167 | + ] | ||
| 168 | + ] ; | ||
| 169 | + sp:variable | ||
| 170 | + [ sp:varName "rduri"^^xsd:string | ||
| 171 | + ] | ||
| 172 | + ]) | ||
| 173 | + ] ; | ||
| 174 | + spin:rule | ||
| 175 | + [ rdf:type sp:Construct ; | ||
| 176 | + rdfs:comment "0330 Set Property ClassOfRepresented"^^xsd:string ; | ||
| 177 | + sp:templates ([ sp:object | ||
| 178 | + [ sp:varName "rdform"^^xsd:string | ||
| 179 | + ] ; | ||
| 180 | + sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassOfPattern> ; | ||
| 181 | + sp:subject | ||
| 182 | + [ sp:varName "rdproperty"^^xsd:string | ||
| 183 | + ] | ||
| 184 | + ]) ; | ||
| 185 | + sp:where ([ rdf:type sp:NotExists ; | ||
| 186 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/core#Scale> ; | ||
| 187 | + sp:predicate rdf:type ; | ||
| 188 | + sp:subject spin:_this | ||
| 189 | + ]) | ||
| 190 | + ] [ sp:object | ||
| 191 | + [ sp:varName "rdproperty"^^xsd:string | ||
| 192 | + ] ; | ||
| 193 | + sp:predicate owl:sameAs ; | ||
| 194 | + sp:subject spin:_this | ||
| 195 | + ] [ sp:object | ||
| 196 | + [ sp:varName "range"^^xsd:string | ||
| 197 | + ] ; | ||
| 198 | + sp:predicate rdfs:range ; | ||
| 199 | + sp:subject spin:_this | ||
| 200 | + ] [ sp:object | ||
| 201 | + [ sp:varName "rdform"^^xsd:string | ||
| 202 | + ] ; | ||
| 203 | + sp:predicate owl:sameAs ; | ||
| 204 | + sp:subject | ||
| 205 | + [ sp:varName "range"^^xsd:string | ||
| 206 | + ] | ||
| 207 | + ]) | ||
| 208 | + ] ; | ||
| 209 | + spin:rule | ||
| 210 | + [ rdf:type sp:Construct ; | ||
| 211 | + rdfs:comment "0330 Set Property ClassOfRepresented"^^xsd:string ; | ||
| 212 | + sp:templates ([ sp:object | ||
| 213 | + [ sp:varName "rdclass"^^xsd:string | ||
| 214 | + ] ; | ||
| 215 | + sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassOfRepresented> ; | ||
| 216 | + sp:subject | ||
| 217 | + [ sp:varName "rdproperty"^^xsd:string | ||
| 218 | + ] | ||
| 219 | + ]) ; | ||
| 220 | + sp:where ([ rdf:type sp:NotExists ; | ||
| 221 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/core#Scale> ; | ||
| 222 | + sp:predicate rdf:type ; | ||
| 223 | + sp:subject spin:_this | ||
| 224 | + ]) | ||
| 225 | + ] [ sp:object | ||
| 226 | + [ sp:varName "rdproperty"^^xsd:string | ||
| 227 | + ] ; | ||
| 228 | + sp:predicate owl:sameAs ; | ||
| 229 | + sp:subject spin:_this | ||
| 230 | + ] [ sp:object | ||
| 231 | + [ sp:varName "domain"^^xsd:string | ||
| 232 | + ] ; | ||
| 233 | + sp:predicate rdfs:domain ; | ||
| 234 | + sp:subject spin:_this | ||
| 235 | + ] [ sp:object | ||
| 236 | + [ sp:varName "rdclass"^^xsd:string | ||
| 237 | + ] ; | ||
| 238 | + sp:predicate owl:sameAs ; | ||
| 239 | + sp:subject | ||
| 240 | + [ sp:varName "domain"^^xsd:string | ||
| 241 | + ] | ||
| 242 | + ]) | ||
| 243 | + ] ; | ||
| 244 | + spin:rule | ||
| 245 | + [ rdf:type sp:Construct ; | ||
| 246 | + rdfs:comment "0395 Handle classification of RD propety as NPD"^^xsd:string ; | ||
| 247 | + sp:templates ([ sp:object <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#Classification> ; | ||
| 248 | + sp:predicate rdf:type ; | ||
| 249 | + sp:subject | ||
| 250 | + [ sp:varName "clsnuri"^^xsd:string | ||
| 251 | + ] | ||
| 252 | + ] [ sp:object | ||
| 253 | + [ sp:varName "thisrduri"^^xsd:string | ||
| 254 | + ] ; | ||
| 255 | + sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassified> ; | ||
| 256 | + sp:subject | ||
| 257 | + [ sp:varName "clsnuri"^^xsd:string | ||
| 258 | + ] | ||
| 259 | + ] [ sp:object <http://posccaesar.org/rdl/ERH00002> ; | ||
| 260 | + sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassifier> ; | ||
| 261 | + sp:subject | ||
| 262 | + [ sp:varName "clsnuri"^^xsd:string | ||
| 263 | + ] | ||
| 264 | + ] [ sp:object <http://posccaesar.org/rdl/ERH00000> ; | ||
| 265 | + sp:predicate rdf:type ; | ||
| 266 | + sp:subject | ||
| 267 | + [ sp:varName "clsnuri"^^xsd:string | ||
| 268 | + ] | ||
| 269 | + ]) ; | ||
| 270 | + sp:where ([ sp:object | ||
| 271 | + [ sp:varName "thisrduri"^^xsd:string | ||
| 272 | + ] ; | ||
| 273 | + sp:predicate owl:sameAs ; | ||
| 274 | + sp:subject spin:_this | ||
| 275 | + ] [ rdf:type sp:Filter ; | ||
| 276 | + sp:expression | ||
| 277 | + [ rdf:type sp:eq ; | ||
| 278 | + sp:arg1 [ rdf:type afn:namespace ; | ||
| 279 | + sp:arg1 spin:_this | ||
| 280 | + ] ; | ||
| 281 | + sp:arg2 "http://www.reportinghub.no/np/schema/npd#" | ||
| 282 | + ] | ||
| 283 | + ] [ rdf:type sp:Bind ; | ||
| 284 | + sp:expression | ||
| 285 | + [ rdf:type spif:generateUUID | ||
| 286 | + ] ; | ||
| 287 | + sp:variable | ||
| 288 | + [ sp:varName "uuid"^^xsd:string | ||
| 289 | + ] | ||
| 290 | + ] [ rdf:type sp:Bind ; | ||
| 291 | + sp:expression | ||
| 292 | + [ rdf:type fn:concat ; | ||
| 293 | + sp:arg1 "ERH" ; | ||
| 294 | + sp:arg2 [ sp:varName "uuid"^^xsd:string | ||
| 295 | + ] | ||
| 296 | + ] ; | ||
| 297 | + sp:variable | ||
| 298 | + [ sp:varName "pcaid"^^xsd:string | ||
| 299 | + ] | ||
| 300 | + ] [ rdf:type sp:Bind ; | ||
| 301 | + sp:expression | ||
| 302 | + [ rdf:type spif:buildURI ; | ||
| 303 | + sp:arg1 "<http://posccaesar.org/rdl/{?pcaid}>" | ||
| 304 | + ] ; | ||
| 305 | + sp:variable | ||
| 306 | + [ sp:varName "clsnuri"^^xsd:string | ||
| 307 | + ] | ||
| 308 | + ]) | ||
| 143 | ] . | 309 | ] . | ... | ... |
| ... | @@ -2,11 +2,10 @@ | ... | @@ -2,11 +2,10 @@ |
| 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/ep/schema/1.0/drilling | 5 | +# imports: http://www.reportinghub.no/np/schema/1.0/npd |
| 6 | # imports: http://www.reportinghub.no/refdata/transform/class2rd | 6 | # imports: http://www.reportinghub.no/refdata/transform/class2rd |
| 7 | 7 | ||
| 8 | @prefix : <http://www.reportinghub.no/refdata/transform/objprop2rd#> . | 8 | @prefix : <http://www.reportinghub.no/refdata/transform/objprop2rd#> . |
| 9 | -@prefix ISO-15926-2_2003: <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#> . | ||
| 10 | @prefix RDL-annotations: <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations#> . | 9 | @prefix RDL-annotations: <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations#> . |
| 11 | @prefix afn: <http://jena.hpl.hp.com/ARQ/function#> . | 10 | @prefix afn: <http://jena.hpl.hp.com/ARQ/function#> . |
| 12 | @prefix class2rd: <http://www.reportinghub.no/refdata/transform/class2rd#> . | 11 | @prefix class2rd: <http://www.reportinghub.no/refdata/transform/class2rd#> . |
| ... | @@ -86,7 +85,12 @@ | ... | @@ -86,7 +85,12 @@ |
| 86 | sp:subject | 85 | sp:subject |
| 87 | [ sp:varName "thisrduri"^^xsd:string | 86 | [ sp:varName "thisrduri"^^xsd:string |
| 88 | ] | 87 | ] |
| 89 | - ] [ sp:object ISO-15926-2_2003:PropertySpace ; | 88 | + ] [ sp:object <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#PropertySpace> ; |
| 89 | + sp:predicate rdf:type ; | ||
| 90 | + sp:subject | ||
| 91 | + [ sp:varName "thisrduri"^^xsd:string | ||
| 92 | + ] | ||
| 93 | + ] [ sp:object <http://posccaesar.org/rdl/ERH00000> ; | ||
| 90 | sp:predicate rdf:type ; | 94 | sp:predicate rdf:type ; |
| 91 | sp:subject | 95 | sp:subject |
| 92 | [ sp:varName "thisrduri"^^xsd:string | 96 | [ sp:varName "thisrduri"^^xsd:string |
| ... | @@ -109,22 +113,6 @@ | ... | @@ -109,22 +113,6 @@ |
| 109 | sp:predicate <http://www.reportinghub.no/ep/schema/core#seeReferenceData> ; | 113 | sp:predicate <http://www.reportinghub.no/ep/schema/core#seeReferenceData> ; |
| 110 | sp:subject spin:_this | 114 | sp:subject spin:_this |
| 111 | ]) | 115 | ]) |
| 112 | - ] [ rdf:type sp:Filter ; | ||
| 113 | - sp:expression | ||
| 114 | - [ rdf:type sp:ne ; | ||
| 115 | - sp:arg1 [ rdf:type afn:namespace ; | ||
| 116 | - sp:arg1 spin:_this | ||
| 117 | - ] ; | ||
| 118 | - sp:arg2 "http://www.linkedmodel.org/schema/vaem#" | ||
| 119 | - ] | ||
| 120 | - ] [ rdf:type sp:Filter ; | ||
| 121 | - sp:expression | ||
| 122 | - [ rdf:type sp:ne ; | ||
| 123 | - sp:arg1 [ rdf:type afn:namespace ; | ||
| 124 | - sp:arg1 spin:_this | ||
| 125 | - ] ; | ||
| 126 | - sp:arg2 "http://www.w3.org/2004/02/skos/core#" | ||
| 127 | - ] | ||
| 128 | ] [ rdf:type sp:Optional ; | 116 | ] [ rdf:type sp:Optional ; |
| 129 | sp:elements ([ sp:object | 117 | sp:elements ([ sp:object |
| 130 | [ sp:varName "definition"^^xsd:string | 118 | [ sp:varName "definition"^^xsd:string |
| ... | @@ -176,7 +164,7 @@ | ... | @@ -176,7 +164,7 @@ |
| 176 | 164 | ||
| 177 | <http://www.reportinghub.no/refdata/transform/objprop2rd> | 165 | <http://www.reportinghub.no/refdata/transform/objprop2rd> |
| 178 | rdf:type owl:Ontology ; | 166 | rdf:type owl:Ontology ; |
| 179 | - 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/transform/class2rd> ; | 167 | + 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/transform/class2rd> ; |
| 180 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 168 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
| 181 | 169 | ||
| 182 | owl:ObjectProperty | 170 | owl:ObjectProperty |
| ... | @@ -209,7 +197,12 @@ owl:ObjectProperty | ... | @@ -209,7 +197,12 @@ owl:ObjectProperty |
| 209 | sp:subject | 197 | sp:subject |
| 210 | [ sp:varName "thisrduri"^^xsd:string | 198 | [ sp:varName "thisrduri"^^xsd:string |
| 211 | ] | 199 | ] |
| 212 | - ] [ sp:object ISO-15926-2_2003:ClassOfRelationship ; | 200 | + ] [ sp:object <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfRelationship> ; |
| 201 | + sp:predicate rdf:type ; | ||
| 202 | + sp:subject | ||
| 203 | + [ sp:varName "thisrduri"^^xsd:string | ||
| 204 | + ] | ||
| 205 | + ] [ sp:object <http://posccaesar.org/rdl/ERH00000> ; | ||
| 213 | sp:predicate rdf:type ; | 206 | sp:predicate rdf:type ; |
| 214 | sp:subject | 207 | sp:subject |
| 215 | [ sp:varName "thisrduri"^^xsd:string | 208 | [ sp:varName "thisrduri"^^xsd:string |
| ... | @@ -234,22 +227,6 @@ owl:ObjectProperty | ... | @@ -234,22 +227,6 @@ owl:ObjectProperty |
| 234 | sp:predicate <http://www.reportinghub.no/ep/schema/core#seeReferenceData> ; | 227 | sp:predicate <http://www.reportinghub.no/ep/schema/core#seeReferenceData> ; |
| 235 | sp:subject spin:_this | 228 | sp:subject spin:_this |
| 236 | ]) | 229 | ]) |
| 237 | - ] [ rdf:type sp:Filter ; | ||
| 238 | - sp:expression | ||
| 239 | - [ rdf:type sp:ne ; | ||
| 240 | - sp:arg1 [ rdf:type afn:namespace ; | ||
| 241 | - sp:arg1 spin:_this | ||
| 242 | - ] ; | ||
| 243 | - sp:arg2 "http://www.linkedmodel.org/schema/vaem#" | ||
| 244 | - ] | ||
| 245 | - ] [ rdf:type sp:Filter ; | ||
| 246 | - sp:expression | ||
| 247 | - [ rdf:type sp:ne ; | ||
| 248 | - sp:arg1 [ rdf:type afn:namespace ; | ||
| 249 | - sp:arg1 spin:_this | ||
| 250 | - ] ; | ||
| 251 | - sp:arg2 "http://www.w3.org/2004/02/skos/core#" | ||
| 252 | - ] | ||
| 253 | ] [ sp:object | 230 | ] [ sp:object |
| 254 | [ sp:varName "definition"^^xsd:string | 231 | [ sp:varName "definition"^^xsd:string |
| 255 | ] ; | 232 | ] ; |
| ... | @@ -325,7 +302,12 @@ owl:ObjectProperty | ... | @@ -325,7 +302,12 @@ owl:ObjectProperty |
| 325 | sp:subject | 302 | sp:subject |
| 326 | [ sp:varName "thisrduri"^^xsd:string | 303 | [ sp:varName "thisrduri"^^xsd:string |
| 327 | ] | 304 | ] |
| 328 | - ] [ sp:object ISO-15926-2_2003:ClassOfIndirectProperty ; | 305 | + ] [ sp:object <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfIndirectProperty> ; |
| 306 | + sp:predicate rdf:type ; | ||
| 307 | + sp:subject | ||
| 308 | + [ sp:varName "thisrduri"^^xsd:string | ||
| 309 | + ] | ||
| 310 | + ] [ sp:object <http://posccaesar.org/rdl/ERH00000> ; | ||
| 329 | sp:predicate rdf:type ; | 311 | sp:predicate rdf:type ; |
| 330 | sp:subject | 312 | sp:subject |
| 331 | [ sp:varName "thisrduri"^^xsd:string | 313 | [ sp:varName "thisrduri"^^xsd:string |
| ... | @@ -348,22 +330,6 @@ owl:ObjectProperty | ... | @@ -348,22 +330,6 @@ owl:ObjectProperty |
| 348 | sp:predicate <http://www.reportinghub.no/ep/schema/core#seeReferenceData> ; | 330 | sp:predicate <http://www.reportinghub.no/ep/schema/core#seeReferenceData> ; |
| 349 | sp:subject spin:_this | 331 | sp:subject spin:_this |
| 350 | ]) | 332 | ]) |
| 351 | - ] [ rdf:type sp:Filter ; | ||
| 352 | - sp:expression | ||
| 353 | - [ rdf:type sp:ne ; | ||
| 354 | - sp:arg1 [ rdf:type afn:namespace ; | ||
| 355 | - sp:arg1 spin:_this | ||
| 356 | - ] ; | ||
| 357 | - sp:arg2 "http://www.linkedmodel.org/schema/vaem#" | ||
| 358 | - ] | ||
| 359 | - ] [ rdf:type sp:Filter ; | ||
| 360 | - sp:expression | ||
| 361 | - [ rdf:type sp:ne ; | ||
| 362 | - sp:arg1 [ rdf:type afn:namespace ; | ||
| 363 | - sp:arg1 spin:_this | ||
| 364 | - ] ; | ||
| 365 | - sp:arg2 "http://www.w3.org/2004/02/skos/core#" | ||
| 366 | - ] | ||
| 367 | ] [ sp:object | 333 | ] [ sp:object |
| 368 | [ sp:varName "definition"^^xsd:string | 334 | [ sp:varName "definition"^^xsd:string |
| 369 | ] ; | 335 | ] ; |
| ... | @@ -416,7 +382,7 @@ owl:ObjectProperty | ... | @@ -416,7 +382,7 @@ owl:ObjectProperty |
| 416 | sp:templates ([ sp:object | 382 | sp:templates ([ sp:object |
| 417 | [ sp:varName "possessor"^^xsd:string | 383 | [ sp:varName "possessor"^^xsd:string |
| 418 | ] ; | 384 | ] ; |
| 419 | - sp:predicate ISO-15926-2_2003:hasClassOfPossessor ; | 385 | + sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassOfPossessor> ; |
| 420 | sp:subject | 386 | sp:subject |
| 421 | [ sp:varName "rdproperty"^^xsd:string | 387 | [ sp:varName "rdproperty"^^xsd:string |
| 422 | ] | 388 | ] |
| ... | @@ -449,7 +415,7 @@ owl:ObjectProperty | ... | @@ -449,7 +415,7 @@ owl:ObjectProperty |
| 449 | sp:templates ([ sp:object | 415 | sp:templates ([ sp:object |
| 450 | [ sp:varName "space"^^xsd:string | 416 | [ sp:varName "space"^^xsd:string |
| 451 | ] ; | 417 | ] ; |
| 452 | - sp:predicate ISO-15926-2_2003:hasPropertySpace ; | 418 | + sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasPropertySpace> ; |
| 453 | sp:subject | 419 | sp:subject |
| 454 | [ sp:varName "rdproperty"^^xsd:string | 420 | [ sp:varName "rdproperty"^^xsd:string |
| 455 | ] | 421 | ] |
| ... | @@ -551,20 +517,86 @@ owl:ObjectProperty | ... | @@ -551,20 +517,86 @@ owl:ObjectProperty |
| 551 | [ sp:varName "domain"^^xsd:string | 517 | [ sp:varName "domain"^^xsd:string |
| 552 | ] | 518 | ] |
| 553 | ] [ rdf:type sp:Bind ; | 519 | ] [ rdf:type sp:Bind ; |
| 554 | - sp:expression ISO-15926-2_2003:ClassOfParticipation ; | 520 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfParticipation> ; |
| 555 | sp:variable | 521 | sp:variable |
| 556 | [ sp:varName "p2class"^^xsd:string | 522 | [ sp:varName "p2class"^^xsd:string |
| 557 | ] | 523 | ] |
| 558 | ] [ rdf:type sp:Bind ; | 524 | ] [ rdf:type sp:Bind ; |
| 559 | - sp:expression ISO-15926-2_2003:hasClassOfWhole ; | 525 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassOfWhole> ; |
| 560 | sp:variable | 526 | sp:variable |
| 561 | [ sp:varName "p2rel1"^^xsd:string | 527 | [ sp:varName "p2rel1"^^xsd:string |
| 562 | ] | 528 | ] |
| 563 | ] [ rdf:type sp:Bind ; | 529 | ] [ rdf:type sp:Bind ; |
| 564 | - sp:expression ISO-15926-2_2003:hasClassOfPart ; | 530 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassOfPart> ; |
| 565 | sp:variable | 531 | sp:variable |
| 566 | [ sp:varName "p2rel2"^^xsd:string | 532 | [ sp:varName "p2rel2"^^xsd:string |
| 567 | ] | 533 | ] |
| 568 | ]) | 534 | ]) |
| 569 | ]) | 535 | ]) |
| 536 | + ] ; | ||
| 537 | + spin:rule | ||
| 538 | + [ rdf:type sp:Construct ; | ||
| 539 | + rdfs:comment "0310 Handle classification of RD object properties as NPD"^^xsd:string ; | ||
| 540 | + sp:templates ([ sp:object <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#Classification> ; | ||
| 541 | + sp:predicate rdf:type ; | ||
| 542 | + sp:subject | ||
| 543 | + [ sp:varName "clsnuri"^^xsd:string | ||
| 544 | + ] | ||
| 545 | + ] [ sp:object | ||
| 546 | + [ sp:varName "thisrduri"^^xsd:string | ||
| 547 | + ] ; | ||
| 548 | + sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassified> ; | ||
| 549 | + sp:subject | ||
| 550 | + [ sp:varName "clsnuri"^^xsd:string | ||
| 551 | + ] | ||
| 552 | + ] [ sp:object <http://posccaesar.org/rdl/ERH00002> ; | ||
| 553 | + sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassifier> ; | ||
| 554 | + sp:subject | ||
| 555 | + [ sp:varName "clsnuri"^^xsd:string | ||
| 556 | + ] | ||
| 557 | + ] [ sp:object <http://posccaesar.org/rdl/ERH00000> ; | ||
| 558 | + sp:predicate rdf:type ; | ||
| 559 | + sp:subject | ||
| 560 | + [ sp:varName "clsnuri"^^xsd:string | ||
| 561 | + ] | ||
| 562 | + ]) ; | ||
| 563 | + sp:where ([ sp:object | ||
| 564 | + [ sp:varName "thisrduri"^^xsd:string | ||
| 565 | + ] ; | ||
| 566 | + sp:predicate owl:sameAs ; | ||
| 567 | + sp:subject spin:_this | ||
| 568 | + ] [ rdf:type sp:Filter ; | ||
| 569 | + sp:expression | ||
| 570 | + [ rdf:type sp:eq ; | ||
| 571 | + sp:arg1 [ rdf:type afn:namespace ; | ||
| 572 | + sp:arg1 spin:_this | ||
| 573 | + ] ; | ||
| 574 | + sp:arg2 "http://www.reportinghub.no/np/schema/npd#" | ||
| 575 | + ] | ||
| 576 | + ] [ rdf:type sp:Bind ; | ||
| 577 | + sp:expression | ||
| 578 | + [ rdf:type spif:generateUUID | ||
| 579 | + ] ; | ||
| 580 | + sp:variable | ||
| 581 | + [ sp:varName "uuid"^^xsd:string | ||
| 582 | + ] | ||
| 583 | + ] [ rdf:type sp:Bind ; | ||
| 584 | + sp:expression | ||
| 585 | + [ rdf:type fn:concat ; | ||
| 586 | + sp:arg1 "ERH" ; | ||
| 587 | + sp:arg2 [ sp:varName "uuid"^^xsd:string | ||
| 588 | + ] | ||
| 589 | + ] ; | ||
| 590 | + sp:variable | ||
| 591 | + [ sp:varName "pcaid"^^xsd:string | ||
| 592 | + ] | ||
| 593 | + ] [ rdf:type sp:Bind ; | ||
| 594 | + sp:expression | ||
| 595 | + [ rdf:type spif:buildURI ; | ||
| 596 | + sp:arg1 "<http://posccaesar.org/rdl/{?pcaid}>" | ||
| 597 | + ] ; | ||
| 598 | + sp:variable | ||
| 599 | + [ sp:varName "clsnuri"^^xsd:string | ||
| 600 | + ] | ||
| 601 | + ]) | ||
| 570 | ] . | 602 | ] . | ... | ... |
-
Please register or login to post a comment