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
]
])
] .
......
......@@ -2,17 +2,19 @@
# 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/ep/schema/1.0/drilling
# 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/datprop2rd#> .
@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 RDL_ERHFoundationRD: <http://www.reportinghub.no/refdata/RDL_ERHFoundationRD#> .
@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> .
@prefix drilling: <http://www.reportinghub.no/ep/schema/1.0/drilling#> .
@prefix fn: <http://www.w3.org/2005/xpath-functions#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix smf: <http://topbraid.org/sparqlmotionfunctions#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spif: <http://spinrdf.org/spif#> .
@prefix spin: <http://spinrdf.org/spin#> .
......@@ -21,7 +23,7 @@
<http://www.reportinghub.no/refdata/transform/datprop2rd>
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/ep/schema/1.0/drilling> ;
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 .
owl:DatatypeProperty
......@@ -54,7 +56,12 @@ owl:DatatypeProperty
sp:subject
[ sp:varName "thisrduri"^^xsd:string
]
] [ sp:object ISO-15926-2_2003:ClassOfClassOfRepresentation ;
] [ sp:object <http://posccaesar.org/rdl/ERH00000> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "thisrduri"^^xsd:string
]
] [ sp:object <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfClassOfRepresentation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "thisrduri"^^xsd:string
......@@ -79,22 +86,6 @@ owl:DatatypeProperty
sp:predicate rdf:type ;
sp:subject spin:_this
])
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:ne ;
sp:arg1 [ rdf:type afn:namespace ;
sp:arg1 spin:_this
] ;
sp:arg2 "http://www.linkedmodel.org/schema/vaem#"
]
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:ne ;
sp:arg1 [ rdf:type afn:namespace ;
sp:arg1 spin:_this
] ;
sp:arg2 "http://www.w3.org/2004/02/skos/core#"
]
] [ sp:object
[ sp:varName "definition"^^xsd:string
] ;
......@@ -133,11 +124,186 @@ owl:DatatypeProperty
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type fn:upper-case ;
sp:arg1 [ rdf:type xsd:string ;
sp:arg1 [ sp:varName "label"^^xsd:string
]
]
] ;
sp:variable
[ sp:varName "desigation"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "0320 Set sameAs for RD items already in PCA RDL"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "rduri"^^xsd:string
] ;
sp:predicate owl:sameAs ;
sp:subject spin:_this
]) ;
sp:where ([ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "same"^^xsd:string
] ;
sp:predicate owl:sameAs ;
sp:subject spin:_this
])
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/core#Scale> ;
sp:predicate rdf:type ;
sp:subject spin:_this
])
] [ sp:object
[ sp:varName "seerd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#seeReferenceData> ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:buildURI ;
sp:arg1 [ sp:varName "seerd"^^xsd:string
]
] ;
sp:variable
[ sp:varName "rduri"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "0330 Set Property ClassOfRepresented"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "rdform"^^xsd:string
] ;
sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassOfPattern> ;
sp:subject
[ sp:varName "rdproperty"^^xsd:string
]
]) ;
sp:where ([ rdf:type sp:NotExists ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/core#Scale> ;
sp:predicate rdf:type ;
sp:subject spin:_this
])
] [ sp:object
[ sp:varName "rdproperty"^^xsd:string
] ;
sp:predicate owl:sameAs ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "range"^^xsd:string
] ;
sp:predicate rdfs:range ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "rdform"^^xsd:string
] ;
sp:predicate owl:sameAs ;
sp:subject
[ sp:varName "range"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "0330 Set Property ClassOfRepresented"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "rdclass"^^xsd:string
] ;
sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassOfRepresented> ;
sp:subject
[ sp:varName "rdproperty"^^xsd:string
]
]) ;
sp:where ([ rdf:type sp:NotExists ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/core#Scale> ;
sp:predicate rdf:type ;
sp:subject spin:_this
])
] [ sp:object
[ sp:varName "rdproperty"^^xsd:string
] ;
sp:predicate owl:sameAs ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "domain"^^xsd:string
] ;
sp:predicate rdfs:domain ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "rdclass"^^xsd:string
] ;
sp:predicate owl:sameAs ;
sp:subject
[ sp:varName "domain"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "0395 Handle classification of RD propety 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
]
])
] .
......
......@@ -2,11 +2,10 @@
# 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/ep/schema/1.0/drilling
# imports: http://www.reportinghub.no/np/schema/1.0/npd
# imports: http://www.reportinghub.no/refdata/transform/class2rd
@prefix : <http://www.reportinghub.no/refdata/transform/objprop2rd#> .
@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 afn: <http://jena.hpl.hp.com/ARQ/function#> .
@prefix class2rd: <http://www.reportinghub.no/refdata/transform/class2rd#> .
......@@ -86,7 +85,12 @@
sp:subject
[ sp:varName "thisrduri"^^xsd:string
]
] [ sp:object ISO-15926-2_2003:PropertySpace ;
] [ sp:object <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#PropertySpace> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "thisrduri"^^xsd:string
]
] [ sp:object <http://posccaesar.org/rdl/ERH00000> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "thisrduri"^^xsd:string
......@@ -109,22 +113,6 @@
sp:predicate <http://www.reportinghub.no/ep/schema/core#seeReferenceData> ;
sp:subject spin:_this
])
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:ne ;
sp:arg1 [ rdf:type afn:namespace ;
sp:arg1 spin:_this
] ;
sp:arg2 "http://www.linkedmodel.org/schema/vaem#"
]
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:ne ;
sp:arg1 [ rdf:type afn:namespace ;
sp:arg1 spin:_this
] ;
sp:arg2 "http://www.w3.org/2004/02/skos/core#"
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "definition"^^xsd:string
......@@ -176,7 +164,7 @@
<http://www.reportinghub.no/refdata/transform/objprop2rd>
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/ep/schema/1.0/drilling> , <http://www.reportinghub.no/refdata/transform/class2rd> ;
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> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
owl:ObjectProperty
......@@ -209,7 +197,12 @@ owl:ObjectProperty
sp:subject
[ sp:varName "thisrduri"^^xsd:string
]
] [ sp:object ISO-15926-2_2003:ClassOfRelationship ;
] [ sp:object <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfRelationship> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "thisrduri"^^xsd:string
]
] [ sp:object <http://posccaesar.org/rdl/ERH00000> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "thisrduri"^^xsd:string
......@@ -234,22 +227,6 @@ owl:ObjectProperty
sp:predicate <http://www.reportinghub.no/ep/schema/core#seeReferenceData> ;
sp:subject spin:_this
])
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:ne ;
sp:arg1 [ rdf:type afn:namespace ;
sp:arg1 spin:_this
] ;
sp:arg2 "http://www.linkedmodel.org/schema/vaem#"
]
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:ne ;
sp:arg1 [ rdf:type afn:namespace ;
sp:arg1 spin:_this
] ;
sp:arg2 "http://www.w3.org/2004/02/skos/core#"
]
] [ sp:object
[ sp:varName "definition"^^xsd:string
] ;
......@@ -325,7 +302,12 @@ owl:ObjectProperty
sp:subject
[ sp:varName "thisrduri"^^xsd:string
]
] [ sp:object ISO-15926-2_2003:ClassOfIndirectProperty ;
] [ sp:object <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfIndirectProperty> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "thisrduri"^^xsd:string
]
] [ sp:object <http://posccaesar.org/rdl/ERH00000> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "thisrduri"^^xsd:string
......@@ -348,22 +330,6 @@ owl:ObjectProperty
sp:predicate <http://www.reportinghub.no/ep/schema/core#seeReferenceData> ;
sp:subject spin:_this
])
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:ne ;
sp:arg1 [ rdf:type afn:namespace ;
sp:arg1 spin:_this
] ;
sp:arg2 "http://www.linkedmodel.org/schema/vaem#"
]
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:ne ;
sp:arg1 [ rdf:type afn:namespace ;
sp:arg1 spin:_this
] ;
sp:arg2 "http://www.w3.org/2004/02/skos/core#"
]
] [ sp:object
[ sp:varName "definition"^^xsd:string
] ;
......@@ -416,7 +382,7 @@ owl:ObjectProperty
sp:templates ([ sp:object
[ sp:varName "possessor"^^xsd:string
] ;
sp:predicate ISO-15926-2_2003:hasClassOfPossessor ;
sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassOfPossessor> ;
sp:subject
[ sp:varName "rdproperty"^^xsd:string
]
......@@ -449,7 +415,7 @@ owl:ObjectProperty
sp:templates ([ sp:object
[ sp:varName "space"^^xsd:string
] ;
sp:predicate ISO-15926-2_2003:hasPropertySpace ;
sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasPropertySpace> ;
sp:subject
[ sp:varName "rdproperty"^^xsd:string
]
......@@ -551,20 +517,86 @@ owl:ObjectProperty
[ sp:varName "domain"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression ISO-15926-2_2003:ClassOfParticipation ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfParticipation> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression ISO-15926-2_2003:hasClassOfWhole ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassOfWhole> ;
sp:variable
[ sp:varName "p2rel1"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression ISO-15926-2_2003:hasClassOfPart ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassOfPart> ;
sp:variable
[ sp:varName "p2rel2"^^xsd:string
]
])
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "0310 Handle classification of RD object properties 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
]
])
] .
......