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-22 20:15:31 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3d4f088b42ab31aed4adc4cf615ac35781d66612
3d4f088b
1 parent
233bedc1
Started Object Property SPIN RD transform
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
309 additions
and
2 deletions
www.reportinghub.no/refdata/transform/class2rd.ttl
www.reportinghub.no/refdata/transform/objprop2rd.ttl
www.reportinghub.no/refdata/transform/objprop2rd.ttl.tbc
www.reportinghub.no/refdata/transform/class2rd.ttl
View file @
3d4f088
...
...
@@ -125,7 +125,7 @@ owl:Class
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"000
2
Handle subclasses"
^^
xsd:
string
;
rdfs:
comment
"000
3
Handle subclasses"
^^
xsd:
string
;
sp:
templates
([
sp:
object
ISO-15926-2_2003:
Specialization
;
sp:
predicate
rdf:
type
;
sp:
subject
...
...
@@ -192,7 +192,7 @@ owl:Class
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"000
3
Set Part 2 Class of EHR RD Class"
^^
xsd:
string
;
rdfs:
comment
"000
4
Set Part 2 Class of EHR RD Class"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"p2class"
^^
xsd:
string
]
;
...
...
www.reportinghub.no/refdata/transform/objprop2rd.ttl
0 → 100644
View file @
3d4f088
# baseURI: http://www.reportinghub.no/refdata/transform/objprop2rd
# 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/refdata/DrillingClasses
@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
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
sp:
<http://spinrdf.org/sp#>
.
@prefix
spif:
<http://spinrdf.org/spif#>
.
@prefix
spin:
<http://spinrdf.org/spin#>
.
@prefix
spl:
<http://spinrdf.org/spl#>
.
@prefix
xsd:
<http://www.w3.org/2001/XMLSchema#>
.
<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/DrillingClasses>
;
owl:
versionInfo
"Created with TopBraid Composer"
^^
xsd:
string
.
owl:
ObjectProperty
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"0001 Set URI and designation for EHR RD from Object Property NOT Class of Indirect Property"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"thisrduri"
^^
xsd:
string
]
;
sp:
predicate
owl:
sameAs
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"desigation"
^^
xsd:
string
]
;
sp:
predicate
<http://posccaesar.org/rdl/hasDesignation>
;
sp:
subject
[
sp:
varName
"thisrduri"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"definition"
^^
xsd:
string
]
;
sp:
predicate
<http://posccaesar.org/rdl/hasDefinition>
;
sp:
subject
[
sp:
varName
"thisrduri"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"pcaid"
^^
xsd:
string
]
;
sp:
predicate
<http://posccaesar.org/rdl/hasIdPCA>
;
sp:
subject
[
sp:
varName
"thisrduri"
^^
xsd:
string
]
])
;
sp:
where
([
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/ep/schema/core#Class_of_indirect_property>
;
sp:
predicate
rdf:
type
;
sp:
subject
spin:
_this
])
]
[
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
[
sp:
varName
"seerd"
^^
xsd:
string
]
;
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
]
;
sp:
predicate
rdfs:
comment
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"label"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
sp:
subject
spin:
_this
]
[
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/{?pcaid}>"
]
;
sp:
variable
[
sp:
varName
"thisrduri"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
fn:
upper-case
;
sp:
arg1
[
sp:
varName
"label"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"desigation"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"0002 Set URI and designation for EHR RD from Object Property Class of Indirect Property"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"thisrduri"
^^
xsd:
string
]
;
sp:
predicate
owl:
sameAs
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"desigation"
^^
xsd:
string
]
;
sp:
predicate
<http://posccaesar.org/rdl/hasDesignation>
;
sp:
subject
[
sp:
varName
"thisrduri"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"definition"
^^
xsd:
string
]
;
sp:
predicate
<http://posccaesar.org/rdl/hasDefinition>
;
sp:
subject
[
sp:
varName
"thisrduri"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"pcaid"
^^
xsd:
string
]
;
sp:
predicate
<http://posccaesar.org/rdl/hasIdPCA>
;
sp:
subject
[
sp:
varName
"thisrduri"
^^
xsd:
string
]
]
[
sp:
object
ISO-15926-2_2003:
ClassOfIndirectProperty
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"thisrduri"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
<http://www.reportinghub.no/ep/schema/core#Class_of_indirect_property>
;
sp:
predicate
rdf:
type
;
sp:
subject
spin:
_this
]
[
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
[
sp:
varName
"seerd"
^^
xsd:
string
]
;
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
]
;
sp:
predicate
rdfs:
comment
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"label"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
sp:
subject
spin:
_this
]
[
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/{?pcaid}>"
]
;
sp:
variable
[
sp:
varName
"thisrduri"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
fn:
upper-case
;
sp:
arg1
[
sp:
varName
"label"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"desigation"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"0004 Set Class of Indirect Property Possessor"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"possessor"
^^
xsd:
string
]
;
sp:
predicate
ISO-15926-2_2003:
hasClassOfPossessor
;
sp:
subject
[
sp:
varName
"rdproperty"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
<http://www.reportinghub.no/ep/schema/core#Class_of_indirect_property>
;
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
"possessor"
^^
xsd:
string
]
;
sp:
predicate
owl:
sameAs
;
sp:
subject
[
sp:
varName
"domain"
^^
xsd:
string
]
])
]
.
www.reportinghub.no/refdata/transform/objprop2rd.ttl.tbc
0 → 100644
View file @
3d4f088
# baseURI: null
@prefix
composite:
<http://www.topbraid.org/2007/05/composite.owl#>
.
@prefix
forms:
<http://www.topbraid.org/2007/01/forms.owl#>
.
@prefix
inference:
<http://www.topbraid.org/2007/06/inference.owl#>
.
@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
visual:
<http://topbraid.org/visual#>
.
@prefix
xsd:
<http://www.w3.org/2001/XMLSchema#>
.
<http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfIndirectProperty>
forms:
keyProperties
(
rdfs:
label
rdfs:
comment
<http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasPossessor>
)
.
[]
rdf:
type
inference:
Configuration
;
composite:
child
[
rdf:
type
<http://spinrdf.org/spin#TopSPIN>
;
<http://spinrdf.org/spin#topSPINOptions>
"singlePass"
;
composite:
index
"0"
^^
xsd:
int
]
.
Please
register
or
login
to post a comment