David Price

SPIN to add RD links label=designation

1 +# baseURI: http://www.reportinghub.no/refdata/transform/match-designation
2 +# imports: file:///www-test.reportinghub.no/refdata/jord-single-property-dimension.xls
3 +# imports: http://spinrdf.org/spin
4 +# imports: http://www.reportinghub.no/ep/schema/1.0/core
5 +
6 +@prefix : <http://www.reportinghub.no/refdata/transform/match-designation#> .
7 +@prefix fn: <http://www.w3.org/2005/xpath-functions#> .
8 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
9 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
10 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
11 +@prefix sp: <http://spinrdf.org/sp#> .
12 +@prefix spin: <http://spinrdf.org/spin#> .
13 +@prefix spl: <http://spinrdf.org/spl#> .
14 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
15 +
16 +<http://www.reportinghub.no/ep/schema/core#PropertySpace>
17 + spin:rule
18 + [ rdf:type sp:Construct ;
19 + sp:templates ([ sp:object
20 + [ sp:varName "uri"^^xsd:string
21 + ] ;
22 + sp:predicate <http://www.reportinghub.no/ep/schema/core#seeReferenceData> ;
23 + sp:subject spin:_this
24 + ]) ;
25 + sp:where ([ rdf:type sp:NotExists ;
26 + sp:elements ([ sp:object
27 + [ sp:varName "ref"^^xsd:string
28 + ] ;
29 + sp:predicate <http://www.reportinghub.no/ep/schema/core#seeReferenceData> ;
30 + sp:subject spin:_this
31 + ])
32 + ] [ sp:object
33 + [ sp:varName "label"^^xsd:string
34 + ] ;
35 + sp:predicate rdfs:label ;
36 + sp:subject spin:_this
37 + ] [ rdf:type sp:Bind ;
38 + sp:expression
39 + [ rdf:type fn:upper-case ;
40 + sp:arg1 [ sp:varName "label"^^xsd:string
41 + ]
42 + ] ;
43 + sp:variable
44 + [ sp:varName "thisdes"^^xsd:string
45 + ]
46 + ] [ sp:object
47 + [ sp:varName "thisdes"^^xsd:string
48 + ] ;
49 + sp:predicate <file:///www-test.reportinghub.no/refdata/jord-single-property-dimension.xls#des> ;
50 + sp:subject
51 + [ sp:varName "rd"^^xsd:string
52 + ]
53 + ] [ sp:object
54 + [ sp:varName "uri"^^xsd:string
55 + ] ;
56 + sp:predicate <file:///www-test.reportinghub.no/refdata/jord-single-property-dimension.xls#uRI> ;
57 + sp:subject
58 + [ sp:varName "rd"^^xsd:string
59 + ]
60 + ])
61 + ] .
62 +
63 +<http://www.reportinghub.no/refdata/transform/match-designation>
64 + rdf:type owl:Ontology ;
65 + owl:imports <file:///www-test.reportinghub.no/refdata/jord-single-property-dimension.xls> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/core> ;
66 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
1 +# baseURI: null
2 +
3 +@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
4 +@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> .
5 +@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> .
6 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
7 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
8 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
9 +@prefix visual: <http://topbraid.org/visual#> .
10 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
11 +
12 +[] rdf:type inference:Configuration ;
13 + composite:child
14 + [ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
15 + composite:index "0"^^xsd:int
16 + ] .