datprop2rd-prod.ttl
3.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# baseURI: http://www.reportinghub.no/refdata/transform/datprop2rd-prod
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/refdata/transform/datprop2rd
@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> .
@prefix datprop2rd: <http://www.reportinghub.no/refdata/transform/datprop2rd#> .
@prefix datprop2rd-prod: <http://www.reportinghub.no/refdata/transform/datprop2rd-prod#> .
@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/datprop2rd-prod>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/refdata/transform/datprop2rd> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
owl:DatatypeProperty
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "0395 Handle classification of RD propety as Production"^^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/ERH00004> ;
sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassifier> ;
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: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
]
])
] .