Toggle navigation
Toggle navigation
This project
Loading...
Sign in
data.posccaesar.org
/
npd
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
1
Merge Requests
0
Wiki
Network
Create a new issue
Commits
Issue Boards
Authored by
David Price
2012-11-30 16:10:20 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c465cb136354aae55ad0a97ed767ee402007f14b
c465cb13
1 parent
fbe5ce9a
More Class RD work
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
112 additions
and
10 deletions
www.reportinghub.no/refdata/RDL_ERHFoundationRD.ttl
www.reportinghub.no/refdata/sparql/SS_rd-class.sparql
www.reportinghub.no/refdata/transform/class2rd.ttl
www.reportinghub.no/refdata/RDL_ERHFoundationRD.ttl
0 → 100644
View file @
c465cb1
# 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
.
www.reportinghub.no/refdata/sparql/SS_rd-class.sparql
View file @
c465cb1
SELECT DISTINCT ?RD
LDesignation ?RDLDefinition ?EntityType ?RDLSuperclass ?RDLSuperclassId
?ERHLocalname ?ERHOntology
SELECT DISTINCT ?RD
Designation ?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 ?RDL
Superclass .
?
sup pca-rdl:hasIdPCA ?RDL
SuperclassId .
?spec ISO-15926-2_2003:hasSubclass ?
RDURI
.
?spec ISO-15926-2_2003:hasSuperclass ?
RDSuperclassURI
.
?
RDSuperclassURI pca-rdl:hasDesignation ?RD
Superclass .
?
RDSuperclassURI pca-rdl:hasIdPCA ?RD
SuperclassId .
}
?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
...
...
www.reportinghub.no/refdata/transform/class2rd.ttl
View file @
c465cb1
...
...
@@ -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
...
...
Please
register
or
login
to post a comment