David Price

More Class RD work

# 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
@prefix : <http://www.reportinghub.no/refdata/RDL_ERHFoundationRD#> .
@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 pca-rdl: <http://posccaesar.org/rdl/> .
@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#> .
pca-rdl:ERH00000
rdf:type ISO-15926-2_2003:Thing , owl:Class ;
rdfs:subClassOf owl:Thing ;
pca-rdl:hasDesignation
"EPIM REPORTINGHUB REFERENCE DATA THING"^^xsd:string ;
pca-rdl:hasIdPCA "ERH00000"^^xsd:string .
pca-rdl:ERH00001
rdf:type ISO-15926-2_2003:ClassOfClass , owl:Class ;
rdfs:subClassOf owl:Thing ;
pca-rdl:hasDesignation
"EPIM REPORTINGHUB REFERENCE DATA CLASS"^^xsd:string ;
pca-rdl:hasIdPCA "ERH00001"^^xsd:string .
<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:versionInfo "Created with TopBraid Composer"^^xsd:string .
SELECT DISTINCT ?RDLDesignation ?RDLDefinition ?EntityType ?RDLSuperclass ?RDLSuperclassId ?ERHLocalname ?ERHOntology
SELECT DISTINCT ?RDDesignation ?RDDefinition ?RDId ?EntityType ?RDURI ?RDSuperclass ?RDSuperclassId ?RDSuperclassURI ?ERHLocalname ?ERHOntology
WHERE {
?s pca-rdl:hasDesignation ?RDLDesignation .
?s pca-rdl:hasDefinition ?RDLDefinition .
?s rdf:type ?p2 .
?RDURI pca-rdl:hasDesignation ?RDDesignation .
?RDURI pca-rdl:hasDefinition ?RDDefinition .
?RDURI pca-rdl:hasIdPCA ?RDId .
?RDURI rdf:type ?p2 .
FILTER ( afn:namespace(?p2) = "http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#" )
BIND (afn:localname(?p2) AS ?EntityType )
OPTIONAL {
?spec ISO-15926-2_2003:hasSubclass ?s .
?spec ISO-15926-2_2003:hasSuperclass ?sup .
?sup pca-rdl:hasDesignation ?RDLSuperclass .
?sup pca-rdl:hasIdPCA ?RDLSuperclassId .
?spec ISO-15926-2_2003:hasSubclass ?RDURI .
?spec ISO-15926-2_2003:hasSuperclass ?RDSuperclassURI .
?RDSuperclassURI pca-rdl:hasDesignation ?RDSuperclass .
?RDSuperclassURI pca-rdl:hasIdPCA ?RDSuperclassId .
}
?erh owl:sameAs ?s .
?erh owl:sameAs ?RDURI .
BIND (afn:localname(?erh) AS ?ERHLocalname )
BIND (afn:namespace(?erh) AS ?ERHOntology )
}
\ No newline at end of file
......
......@@ -3,10 +3,12 @@
# 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/refdata/RDL_ERHFoundationRD
@prefix : <http://www.reportinghub.no/refdata/transform/class2rd#> .
@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#> .
......@@ -22,7 +24,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/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/ep/schema/1.0/drilling> , <http://www.reportinghub.no/refdata/RDL_ERHFoundationRD> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
rdfs:Class
......@@ -60,6 +62,11 @@ rdfs:Class
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
]
]) ;
sp:where ([ rdf:type sp:NotExists ;
sp:elements ([ sp:object owl:Class ;
......@@ -156,6 +163,11 @@ rdfs:Class
sp:subject
[ sp:varName "specuri"^^xsd:string
]
] [ sp:object <http://posccaesar.org/rdl/ERH00000> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "specuri"^^xsd:string
]
]) ;
sp:where ([ rdf:type sp:NotExists ;
sp:elements ([ sp:object owl:Class ;
......@@ -274,6 +286,33 @@ owl:Class
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
]
] [ sp:object ISO-15926-2_2003:Classification ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "clsncuri"^^xsd:string
]
] [ sp:object <http://posccaesar.org/rdl/ERH00001> ;
sp:predicate ISO-15926-2_2003:hasClassifier ;
sp:subject
[ sp:varName "clsncuri"^^xsd:string
]
] [ sp:object
[ sp:varName "thisrduri"^^xsd:string
] ;
sp:predicate ISO-15926-2_2003:hasClassified ;
sp:subject
[ sp:varName "clsncuri"^^xsd:string
]
] [ sp:object <http://posccaesar.org/rdl/ERH00000> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "clsncuri"^^xsd:string
]
]) ;
sp:where ([ rdf:type sp:NotExists ;
sp:elements ([ sp:object
......@@ -341,6 +380,31 @@ owl:Class
sp:variable
[ sp:varName "desigation"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:generateUUID
] ;
sp:variable
[ sp:varName "clsnuuid"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type fn:concat ;
sp:arg1 "ERH" ;
sp:arg2 [ sp:varName "clsnuuid"^^xsd:string
]
] ;
sp:variable
[ sp:varName "clsnid"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:buildURI ;
sp:arg1 "<http://posccaesar.org/rdl/{?clsnid}>"
] ;
sp:variable
[ sp:varName "clsncuri"^^xsd:string
]
])
] ;
spin:rule
......@@ -397,6 +461,11 @@ owl:Class
sp:subject
[ sp:varName "specuri"^^xsd:string
]
] [ sp:object <http://posccaesar.org/rdl/ERH00000> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "specuri"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "superclass"^^xsd:string
......