Showing
5 changed files
with
95 additions
and
4 deletions
This diff could not be displayed because it is too large.
1 | -# Saved by TopBraid on Sun Aug 07 17:32:11 PDT 2011 | 1 | +# Saved by TopBraid on Sun Aug 07 17:50:15 PDT 2011 |
2 | # baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr | 2 | # baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr |
3 | # imports: http://www.reportinghub.no/ep/schema/1.1.1/ddr | 3 | # imports: http://www.reportinghub.no/ep/schema/1.1.1/ddr |
4 | # imports: http://www.reportinghub.no/ep/schema/1.1/activity | 4 | # imports: http://www.reportinghub.no/ep/schema/1.1/activity |
... | @@ -683,6 +683,42 @@ owl:Thing | ... | @@ -683,6 +683,42 @@ owl:Thing |
683 | ] ; | 683 | ] ; |
684 | sp:variable _:b57 | 684 | sp:variable _:b57 |
685 | ]) | 685 | ]) |
686 | + ] ; | ||
687 | + spin:update | ||
688 | + [ rdf:type sp:Modify ; | ||
689 | + sp:deletePattern ([ sp:object _:b67 ; | ||
690 | + sp:predicate rdfs:label ; | ||
691 | + sp:subject _:b68 | ||
692 | + ]) ; | ||
693 | + sp:insertPattern ([ sp:object _:b69 ; | ||
694 | + sp:predicate rdfs:label ; | ||
695 | + sp:subject _:b68 | ||
696 | + ]) ; | ||
697 | + sp:where ([ sp:object _:b68 ; | ||
698 | + sp:predicate owl:onProperty ; | ||
699 | + sp:subject | ||
700 | + [ sp:varName "r"^^xsd:string | ||
701 | + ] | ||
702 | + ] [ sp:object _:b67 ; | ||
703 | + sp:predicate rdfs:label ; | ||
704 | + sp:subject _:b68 | ||
705 | + ] [ rdf:type sp:Filter ; | ||
706 | + sp:expression | ||
707 | + [ rdf:type fn:starts-with ; | ||
708 | + sp:arg1 _:b67 ; | ||
709 | + sp:arg2 "has" | ||
710 | + ] | ||
711 | + ] [ rdf:type sp:Bind ; | ||
712 | + sp:expression | ||
713 | + [ rdf:type smf:trim ; | ||
714 | + sp:arg1 [ rdf:type smf:regex ; | ||
715 | + sp:arg1 _:b67 ; | ||
716 | + sp:arg2 "has(.*)" ; | ||
717 | + sp:arg3 "$1" | ||
718 | + ] | ||
719 | + ] ; | ||
720 | + sp:variable _:b69 | ||
721 | + ]) | ||
686 | ] . | 722 | ] . |
687 | 723 | ||
688 | _:b25 | 724 | _:b25 |
... | @@ -857,3 +893,12 @@ _:b13 | ... | @@ -857,3 +893,12 @@ _:b13 |
857 | sp:varName "text"^^xsd:string . | 893 | sp:varName "text"^^xsd:string . |
858 | 894 | ||
859 | _:b4 sp:varName "value"^^xsd:string . | 895 | _:b4 sp:varName "value"^^xsd:string . |
896 | + | ||
897 | +_:b68 | ||
898 | + sp:varName "p"^^xsd:string . | ||
899 | + | ||
900 | +_:b67 | ||
901 | + sp:varName "oldLabel"^^xsd:string . | ||
902 | + | ||
903 | +_:b69 | ||
904 | + sp:varName "newLabel"^^xsd:string . | ... | ... |
1 | -# Saved by TopBraid on Sun Aug 07 17:32:11 PDT 2011 | 1 | +# Saved by TopBraid on Sun Aug 07 17:50:15 PDT 2011 |
2 | # baseURI: null | 2 | # baseURI: null |
3 | 3 | ||
4 | @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | 4 | @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | ... | ... |
1 | -# Saved by TopBraid on Sun Aug 07 17:28:32 PDT 2011 | 1 | +# Saved by TopBraid on Sun Aug 07 17:45:34 PDT 2011 |
2 | # baseURI: http://www.reportinghub.no/ep/transform/1.1/normalization | 2 | # baseURI: http://www.reportinghub.no/ep/transform/1.1/normalization |
3 | # imports: http://www.reportinghub.no/ep/schema/1.1/activity | 3 | # imports: http://www.reportinghub.no/ep/schema/1.1/activity |
4 | # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport | 4 | # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport |
... | @@ -9,9 +9,11 @@ | ... | @@ -9,9 +9,11 @@ |
9 | # imports: http://www.reportinghub.no/ep/schema/well | 9 | # imports: http://www.reportinghub.no/ep/schema/well |
10 | 10 | ||
11 | @prefix : <http://www.reportinghub.no/ep/transform/1.1/normalization#> . | 11 | @prefix : <http://www.reportinghub.no/ep/transform/1.1/normalization#> . |
12 | +@prefix fn: <http://www.w3.org/2005/xpath-functions#> . | ||
12 | @prefix owl: <http://www.w3.org/2002/07/owl#> . | 13 | @prefix owl: <http://www.w3.org/2002/07/owl#> . |
13 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | 14 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
14 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | 15 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
16 | +@prefix smf: <http://topbraid.org/sparqlmotionfunctions#> . | ||
15 | @prefix sp: <http://spinrdf.org/sp#> . | 17 | @prefix sp: <http://spinrdf.org/sp#> . |
16 | @prefix spin: <http://spinrdf.org/spin#> . | 18 | @prefix spin: <http://spinrdf.org/spin#> . |
17 | @prefix spl: <http://spinrdf.org/spl#> . | 19 | @prefix spl: <http://spinrdf.org/spl#> . |
... | @@ -21,3 +23,47 @@ | ... | @@ -21,3 +23,47 @@ |
21 | rdf:type owl:Ontology ; | 23 | rdf:type owl:Ontology ; |
22 | owl:imports <http://www.reportinghub.no/ep/schema/well> , <http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/report> , <http://www.reportinghub.no/ep/schema/1.1/activity> , <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> , <http://www.reportinghub.no/ep/schema/equipment> ; | 24 | owl:imports <http://www.reportinghub.no/ep/schema/well> , <http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/report> , <http://www.reportinghub.no/ep/schema/1.1/activity> , <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> , <http://www.reportinghub.no/ep/schema/equipment> ; |
23 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 25 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
26 | + | ||
27 | +owl:Thing | ||
28 | + spin:update | ||
29 | + [ rdf:type sp:Modify ; | ||
30 | + sp:deletePattern ([ sp:object _:b1 ; | ||
31 | + sp:predicate rdfs:label ; | ||
32 | + sp:subject _:b2 | ||
33 | + ]) ; | ||
34 | + sp:insertPattern ([ sp:object _:b3 ; | ||
35 | + sp:predicate rdfs:label ; | ||
36 | + sp:subject _:b2 | ||
37 | + ]) ; | ||
38 | + sp:where ([ sp:object _:b2 ; | ||
39 | + sp:predicate owl:onProperty ; | ||
40 | + sp:subject | ||
41 | + [ sp:varName "r"^^xsd:string | ||
42 | + ] | ||
43 | + ] [ sp:object _:b1 ; | ||
44 | + sp:predicate rdfs:label ; | ||
45 | + sp:subject _:b2 | ||
46 | + ] [ rdf:type sp:Filter ; | ||
47 | + sp:expression | ||
48 | + [ rdf:type fn:starts-with ; | ||
49 | + sp:arg1 _:b1 ; | ||
50 | + sp:arg2 "has" | ||
51 | + ] | ||
52 | + ] [ rdf:type sp:Bind ; | ||
53 | + sp:expression | ||
54 | + [ rdf:type smf:trim ; | ||
55 | + sp:arg1 [ rdf:type smf:regex ; | ||
56 | + sp:arg1 _:b1 ; | ||
57 | + sp:arg2 "has(.*)" ; | ||
58 | + sp:arg3 "$1" | ||
59 | + ] | ||
60 | + ] ; | ||
61 | + sp:variable _:b3 | ||
62 | + ]) | ||
63 | + ] . | ||
64 | + | ||
65 | +_:b2 sp:varName "p"^^xsd:string . | ||
66 | + | ||
67 | +_:b1 sp:varName "oldLabel"^^xsd:string . | ||
68 | + | ||
69 | +_:b3 sp:varName "newLabel"^^xsd:string . | ... | ... |
1 | -# Saved by TopBraid on Sun Aug 07 17:28:32 PDT 2011 | 1 | +# Saved by TopBraid on Sun Aug 07 17:45:34 PDT 2011 |
2 | # baseURI: null | 2 | # baseURI: null |
3 | 3 | ||
4 | @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | 4 | @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | ... | ... |
-
Please register or login to post a comment