David Leal
1 +# baseURI: http://www.reportinghub.no/ep/spin/report-constraints
2 +# imports: http://spinrdf.org/spin
3 +# imports: http://www.reportinghub.no/ep/schema/1.0/activity
4 +# imports: http://www.reportinghub.no/ep/schema/1.0/core
5 +# imports: http://www.reportinghub.no/ep/schema/1.0/ddr
6 +# imports: http://www.reportinghub.no/ep/schema/1.0/equipment
7 +# imports: http://www.reportinghub.no/ep/schema/1.0/facility
8 +# imports: http://www.reportinghub.no/ep/schema/1.0/organization
9 +# imports: http://www.reportinghub.no/ep/schema/1.0/report
10 +# imports: http://www.reportinghub.no/ep/schema/1.0/well
11 +# imports: http://www.reportinghub.no/np/schema/1.0/npd
12 +# imports: http://www.reportinghub.no/spin/rh
13 +
14 +@prefix : <http://www.reportinghub.no/ep/spin/report-constraints#> .
15 +@prefix arg: <http://spinrdf.org/arg#> .
16 +@prefix ddr: <http://www.reportinghub.no/ep/schema/ddr#> .
17 +@prefix fn: <http://www.w3.org/2005/xpath-functions#> .
18 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
19 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
20 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
21 +@prefix rhspin: <http://www.reportinghub.no/spin/rh#> .
22 +@prefix sp: <http://spinrdf.org/sp#> .
23 +@prefix spin: <http://spinrdf.org/spin#> .
24 +@prefix spl: <http://spinrdf.org/spl#> .
25 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
26 +
27 +<http://www.reportinghub.no/ep/schema/report#DailyDrillingReport>
28 + spin:constraint
29 + [ rdf:type sp:Construct ;
30 + sp:templates ([ sp:object spin:ConstraintViolation ;
31 + sp:predicate rdf:type ;
32 + sp:subject _:b1
33 + ] [ sp:object spin:_this ;
34 + sp:predicate spin:violationRoot ;
35 + sp:subject _:b1
36 + ] [ sp:object _:b2 ;
37 + sp:predicate rdfs:label ;
38 + sp:subject _:b1
39 + ]) ;
40 + sp:where ([ rdf:type sp:TriplePath ;
41 + sp:object _:b3 ;
42 + sp:path [ rdf:type sp:SeqPath ;
43 + sp:path1
44 + [ rdf:type sp:SeqPath ;
45 + sp:path1 <http://www.reportinghub.no/ep/schema/activity#reportOn> ;
46 + sp:path2 <http://www.reportinghub.no/ep/schema/activity#onWellBore>
47 + ] ;
48 + sp:path2 <http://www.reportinghub.no/ep/schema/core#temporalPartOf>
49 + ] ;
50 + sp:subject spin:_this
51 + ] [ rdf:type sp:Bind ;
52 + sp:expression
53 + [ rdf:type rhspin:companyName
54 + ] ;
55 + sp:variable _:b4
56 + ] [ rdf:type sp:Bind ;
57 + sp:expression
58 + [ rdf:type rhspin:companyWithName ;
59 + arg:name _:b4
60 + ] ;
61 + sp:variable _:b5
62 + ] [ rdf:type sp:Filter ;
63 + sp:expression
64 + [ rdf:type sp:bound ;
65 + sp:arg1 _:b5
66 + ]
67 + ] [ rdf:type sp:NotExists ;
68 + sp:elements ([ sp:object _:b3 ;
69 + sp:predicate rhspin:companyHasLicenceForWellBore ;
70 + sp:subject _:b5
71 + ])
72 + ] [ rdf:type sp:Bind ;
73 + sp:expression
74 + [ rdf:type fn:concat ;
75 + sp:arg1 "Your company (" ;
76 + sp:arg2 _:b4 ;
77 + sp:arg3 ") does not hold a licence for well bore " ;
78 + sp:arg4 [ rdf:type rhspin:npdName ;
79 + arg:resource _:b3
80 + ]
81 + ] ;
82 + sp:variable _:b2
83 + ])
84 + ] .
85 +
86 +<http://www.reportinghub.no/ep/spin/report-constraints>
87 + rdf:type owl:Ontology ;
88 + rdfs:comment "Constraints that need to be executed after ep-report:Report generation (without SXML triples)."^^xsd:string ;
89 + owl:imports <http://www.reportinghub.no/spin/rh> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/np/schema/1.0/npd> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/ddr> ;
90 + owl:versionInfo "0.1.0"^^xsd:string .
91 +
92 +_:b2 sp:varName "message"^^xsd:string .
93 +
94 +_:b3 sp:varName "wellBore"^^xsd:string .
95 +
96 +_:b4 sp:varName "companyName"^^xsd:string .
97 +
98 +_:b5 sp:varName "company"^^xsd:string .
1 +<?xml version="1.0"?>
2 +
3 +
4 +<!DOCTYPE rdf:RDF [
5 + <!ENTITY owl "http://www.w3.org/2002/07/owl#" >
6 + <!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" >
7 + <!ENTITY owl2xml "http://www.w3.org/2006/12/owl2-xml#" >
8 + <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" >
9 + <!ENTITY rdl "http://rdl.example.org/sampleReferenceData#" >
10 + <!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" >
11 + <!ENTITY p7tm "http://standards.iso.org/iso/ts/15926/-8/ed-1/tech/reference-data/p7tm#" >
12 + <!ENTITY dm "http://standards.iso.org/iso/ts/15926/-8/ed-1/tech/reference-data/data-model#" >
13 + <!ENTITY p7tpl "http://standards.iso.org/iso/ts/15926/-8/ed-1/tech/reference-data/p7tpl#" >
14 + <!ENTITY meta "http://standards.iso.org/iso/ts/15926/-8/ed-1/tech/reference-data/metadata#" >
15 +]>
16 +
17 +
18 +<rdf:RDF xmlns="http://rdl.example.org/sampleReferenceData#"
19 + xml:base="http://rdl.example.org/sampleReferenceData"
20 + xmlns:owl2xml="http://www.w3.org/2006/12/owl2-xml#"
21 + xmlns:p7tm="http://standards.iso.org/iso/ts/15926/-8/ed-1/tech/reference-data/p7tm#"
22 + xmlns:p7tpl="http://standards.iso.org/iso/ts/15926/-8/ed-1/tech/reference-data/p7tpl#"
23 + xmlns:rdl="http://rdl.example.org/sampleReferenceData#"
24 + xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
25 + xmlns:dm="http://standards.iso.org/iso/ts/15926/-8/ed-1/tech/reference-data/data-model#"
26 + xmlns:meta="http://standards.iso.org/iso/ts/15926/-8/ed-1/tech/reference-data/metadata#"
27 + xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
28 + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
29 + xmlns:owl="http://www.w3.org/2002/07/owl#">
30 + <owl:Ontology rdf:about="">
31 + <rdfs:comment
32 + >This ontology contains examples of how a Reference Data Library can be represented using the OWL native Part 8 format.</rdfs:comment>
33 + <owl:imports rdf:resource="http://standards.iso.org/iso/ts/15926/-8/ed-1/tech/reference-data/data-model"/>
34 + <owl:imports rdf:resource="http://standards.iso.org/iso/ts/15926/-8/ed-1/tech/reference-data/metadata"/>
35 + </owl:Ontology>
36 +
37 +
38 +
39 +
40 + <!--
41 + ///////////////////////////////////////////////////////////////////////////////////////
42 + //
43 + // Classes
44 + //
45 + ///////////////////////////////////////////////////////////////////////////////////////
46 + -->
47 +
48 +
49 +
50 +
51 + <!-- http://standards.iso.org/iso/ts/15926/-8/ed-1/tech/reference-data/data-model#Activity -->
52 +
53 + <owl:Class rdf:about="&dm;Activity"/>
54 +
55 +
56 +
57 + <!-- http://standards.iso.org/iso/ts/15926/-8/ed-1/tech/reference-data/data-model#ArrangedIndividual -->
58 +
59 + <owl:Class rdf:about="&dm;ArrangedIndividual"/>
60 +
61 +
62 +
63 + <!-- http://standards.iso.org/iso/ts/15926/-8/ed-1/tech/reference-data/data-model#AssemblyOfIndividual -->
64 +
65 + <owl:Class rdf:about="&dm;AssemblyOfIndividual"/>
66 +
67 +
68 +
69 + <!-- http://standards.iso.org/iso/ts/15926/-8/ed-1/tech/reference-data/data-model#PossibleIndividual -->
70 +
71 + <owl:Class rdf:about="&dm;PossibleIndividual"/>
72 +
73 +
74 +
75 + <!-- http://rdl.example.org/sampleReferenceData#Driving -->
76 +
77 + <owl:Class rdf:about="#Driving">
78 + <meta:annUniqueName>Driving</meta:annUniqueName>
79 + <rdfs:subClassOf rdf:resource="&dm;Activity"/>
80 + </owl:Class>
81 +
82 +
83 +
84 + <!-- http://rdl.example.org/sampleReferenceData#Equipment -->
85 +
86 + <owl:Class rdf:about="#Equipment">
87 + <rdfs:subClassOf rdf:resource="&dm;ArrangedIndividual"/>
88 + <rdfs:comment
89 + >Sample class for AssemblyRelation example.</rdfs:comment>
90 + </owl:Class>
91 +
92 +
93 +
94 + <!-- http://rdl.example.org/sampleReferenceData#EquipmentHasNozzle -->
95 +
96 + <owl:Class rdf:about="#EquipmentHasNozzle">
97 + <rdfs:subClassOf rdf:resource="&dm;AssemblyOfIndividual"/>
98 + <rdfs:comment
99 + >Sample class for AssemblyRelation example.</rdfs:comment>
100 + </owl:Class>
101 +
102 +
103 +
104 + <!-- http://rdl.example.org/sampleReferenceData#HardWork -->
105 +
106 + <owl:Class rdf:about="#HardWork">
107 + <meta:annUniqueName>HardWork</meta:annUniqueName>
108 + <rdfs:subClassOf rdf:resource="&dm;Activity"/>
109 + </owl:Class>
110 +
111 +
112 +
113 + <!-- http://rdl.example.org/sampleReferenceData#Nozzle -->
114 +
115 + <owl:Class rdf:about="#Nozzle">
116 + <rdfs:subClassOf rdf:resource="&dm;PossibleIndividual"/>
117 + <rdfs:comment
118 + >Sample class for AssemblyRelation example.</rdfs:comment>
119 + </owl:Class>
120 +
121 +
122 +
123 + <!-- http://rdl.example.org/sampleReferenceData#Person -->
124 +
125 + <owl:Class rdf:about="#Person">
126 + <meta:annUniqueName>Person</meta:annUniqueName>
127 + <rdfs:subClassOf rdf:resource="&dm;PossibleIndividual"/>
128 + </owl:Class>
129 +
130 +
131 +
132 + <!-- http://rdl.example.org/sampleReferenceData#PipingNetworkSegment -->
133 +
134 + <owl:Class rdf:about="#PipingNetworkSegment">
135 + <meta:annUniqueName
136 + >PipingNetworkSegment</meta:annUniqueName>
137 + <rdfs:subClassOf rdf:resource="&dm;PossibleIndividual"/>
138 + <rdfs:comment
139 + >Sample class for AssemblyRelation example.</rdfs:comment>
140 + </owl:Class>
141 +
142 +
143 +
144 + <!-- http://rdl.example.org/sampleReferenceData#PipingNetworkSystem -->
145 +
146 + <owl:Class rdf:about="#PipingNetworkSystem">
147 + <meta:annUniqueName
148 + >PipingNetworkSystem</meta:annUniqueName>
149 + <rdfs:subClassOf rdf:resource="&dm;ArrangedIndividual"/>
150 + <rdfs:comment
151 + >Sample class for AssemblyRelation example.</rdfs:comment>
152 + </owl:Class>
153 +
154 +
155 +
156 + <!-- http://rdl.example.org/sampleReferenceData#PipingNetworkSystemHasSegment -->
157 +
158 + <owl:Class rdf:about="#PipingNetworkSystemHasSegment">
159 + <meta:annUniqueName
160 + >PipingNetworkSystemHasSegment</meta:annUniqueName>
161 + <rdfs:subClassOf rdf:resource="&dm;AssemblyOfIndividual"/>
162 + <rdfs:comment
163 + >Sample class for AssemblyRelation example.</rdfs:comment>
164 + </owl:Class>
165 +
166 +
167 +
168 + <!-- http://www.w3.org/2002/07/owl#Thing -->
169 +
170 + <owl:Class rdf:about="&owl;Thing"/>
171 +
172 +
173 +
174 + <!--
175 + ///////////////////////////////////////////////////////////////////////////////////////
176 + //
177 + // Individuals
178 + //
179 + ///////////////////////////////////////////////////////////////////////////////////////
180 + -->
181 +
182 +
183 +
184 +
185 + <!-- http://rdl.example.org/sampleReferenceData#Person -->
186 +
187 + <owl:Thing rdf:about="#Person"/>
188 +
189 +
190 +
191 + <!-- http://rdl.example.org/sampleReferenceData#PipingNetworkSegment -->
192 +
193 + <owl:Thing rdf:about="#PipingNetworkSegment"/>
194 +
195 +
196 +
197 + <!-- http://rdl.example.org/sampleReferenceData#PipingNetworkSystem -->
198 +
199 + <owl:Thing rdf:about="#PipingNetworkSystem"/>
200 +
201 +
202 +
203 + <!-- http://rdl.example.org/sampleReferenceData#PipingNetworkSystemHasSegment -->
204 +
205 + <owl:Thing rdf:about="#PipingNetworkSystemHasSegment"/>
206 +</rdf:RDF>
207 +
208 +
209 +
210 +<!-- Generated by the OWL API (version 2.2.1.1138) http://owlapi.sourceforge.net -->
211 +
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
1 +# Saved by TopBraid on Wed Aug 17 18:10:51 BST 2011
2 +# baseURI: http://standards.iso.org/iso/ts/15926/-8/ed-1/tech/reference-data/metadata
3 +
4 +@prefix iso-meta: <http://standards.iso.org/iso/ts/15926/-8/ed-1/tech/reference-data/metadata#> .
5 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
6 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
7 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
8 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
9 +
10 +<http://standards.iso.org/iso/ts/15926/-8/ed-1/tech/reference-data/metadata>
11 + rdf:type owl:Ontology ;
12 + rdfs:comment "This ontology provides metadata properties for classes, templates and individuals." ;
13 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
14 +
15 +iso-meta:annAccessCode
16 + rdf:type owl:AnnotationProperty ;
17 + rdfs:comment "A security code (resource group) of the information represented by a template instance. It is used as a parameter in an ACL (Access Control List)." ;
18 + rdfs:label "Access Code" .
19 +
20 +iso-meta:annAdministrativeNote
21 + rdf:type owl:AnnotationProperty ;
22 + rdfs:comment "An administrative note about a reference data item" ;
23 + rdfs:label "administrative note" ;
24 + rdfs:subPropertyOf rdfs:comment .
25 +
26 +iso-meta:annChangeDescription
27 + rdf:type owl:AnnotationProperty ;
28 + rdfs:comment "A description of the most recent change." ;
29 + rdfs:label "change description" ;
30 + rdfs:subPropertyOf rdfs:comment .
31 +
32 +iso-meta:annCreationDate
33 + rdf:type owl:AnnotationProperty ;
34 + rdfs:comment "The date of creation of a reference data item within the reference data library." ;
35 + rdfs:label "creation date" .
36 +
37 +iso-meta:annEffectiveDate
38 + rdf:type owl:AnnotationProperty ;
39 + rdfs:comment "The date of the status of the release of the reference data item (if released)." ;
40 + rdfs:label "effective date" .
41 +
42 +iso-meta:annExplanatoryComment
43 + rdf:type owl:AnnotationProperty ;
44 + rdfs:comment "A description of the reason for the creation of the refer-ence data item ." ;
45 + rdfs:label "explanatory comment" ;
46 + rdfs:subPropertyOf rdfs:comment .
47 +
48 +iso-meta:annExponent
49 + rdf:type owl:AnnotationProperty ;
50 + rdfs:comment "The integer number which is used to derive one unit of measure from another in an 'exponentiate' operation." ;
51 + rdfs:label "exponent" .
52 +
53 +iso-meta:annFactor_Prefix
54 + rdf:type owl:AnnotationProperty ;
55 + rdfs:comment "The real number which is used to derive one unit of measure from another in a 'factor' operation. Either a number or an ISO prefix, such as 'milli' or 'kilo' can be specified." ;
56 + rdfs:label "factor/prefix" .
57 +
58 +iso-meta:annFirstOperand
59 + rdf:type owl:AnnotationProperty ;
60 + rdfs:comment "The name identifier of the first unit of measure in a 'multiply', 'divide', 'factor' or 'exponentiate' operation." ;
61 + rdfs:label "first operand" .
62 +
63 +iso-meta:annLastChangeDate
64 + rdf:type owl:AnnotationProperty ;
65 + rdfs:comment "The data of the last change to the reference data item." ;
66 + rdfs:label "last change date" .
67 +
68 +iso-meta:annNotes
69 + rdf:type owl:AnnotationProperty ;
70 + rdfs:comment "Notes and other informative text about the reference data item." ;
71 + rdfs:label "notes" ;
72 + rdfs:subPropertyOf rdfs:comment .
73 +
74 +iso-meta:annOperator
75 + rdf:type owl:AnnotationProperty ;
76 + rdfs:comment "The operator which defined a unit of measure by an expression. The allowed values are 'multiply', 'divide', 'factor', and 'exponentiate'." ;
77 + rdfs:label "operator" .
78 +
79 +iso-meta:annRegistrationStatus
80 + rdf:type owl:AnnotationProperty ;
81 + rdfs:comment "The status of the reference data item." ;
82 + rdfs:label "registration status" .
83 +
84 +iso-meta:annRule
85 + rdf:type owl:AnnotationProperty ;
86 + rdfs:comment "A rule, method, or script applicable in application software." ;
87 + rdfs:label "Rule" .
88 +
89 +iso-meta:annSecondOperand
90 + rdf:type owl:AnnotationProperty ;
91 + rdfs:comment "The name identifier of the second unit of measure in a 'multiply' or 'divide' operation." ;
92 + rdfs:label "second operand" .
93 +
94 +iso-meta:annSource
95 + rdf:type owl:AnnotationProperty ;
96 + rdfs:comment "The source of the text definition for the reference data item." ;
97 + rdfs:label "source" ;
98 + rdfs:subPropertyOf rdfs:seeAlso .
99 +
100 +iso-meta:annStewardshipContact
101 + rdf:type owl:AnnotationProperty ;
102 + rdfs:comment "The name of the person who is the contact for the stewardship of a reference data item." ;
103 + rdfs:label "stewardship contact" .
104 +
105 +iso-meta:annStewardshipOrganization
106 + rdf:type owl:AnnotationProperty ;
107 + rdfs:comment "The name of the organization that performs the steward-ship of a reference data item." ;
108 + rdfs:label "stewardship organization" .
109 +
110 +iso-meta:annSubmissionContact
111 + rdf:type owl:AnnotationProperty ;
112 + rdfs:comment "The name of the person who is the contact for the submission of a reference data item." ;
113 + rdfs:label "submission contact" .
114 +
115 +iso-meta:annSubmittingOrganization
116 + rdf:type owl:AnnotationProperty ;
117 + rdfs:comment "The name of the organization that performs the \"submission of a reference data item." ;
118 + rdfs:label "submitting organization" .
119 +
120 +iso-meta:annSymbol
121 + rdf:type owl:AnnotationProperty ;
122 + rdfs:comment "The symbol used to represent a unit of measure." ;
123 + rdfs:label "symbol" .
124 +
125 +iso-meta:annSynonym
126 + rdf:type owl:AnnotationProperty ;
127 + rdfs:comment "A synonym for the unique name of the reference data item" ;
128 + rdfs:label "synonym" .
129 +
130 +iso-meta:annTextDefinition
131 + rdf:type owl:AnnotationProperty ;
132 + rdfs:comment "The text definition for the reference data item." ;
133 + rdfs:label "text definition" ;
134 + rdfs:subPropertyOf rdfs:comment .
135 +
136 +iso-meta:annURI
137 + rdf:type owl:AnnotationProperty ;
138 + rdfs:comment "A URI of the reference data item" ;
139 + rdfs:label "URI" .
140 +
141 +iso-meta:annUniqueName
142 + rdf:type owl:AnnotationProperty ;
143 + rdfs:comment "The name identifier of the reference data item" ;
144 + rdfs:label "unique name" ;
145 + rdfs:subPropertyOf rdfs:label .
146 +
147 +iso-meta:annUnresolvedIssues
148 + rdf:type owl:AnnotationProperty ;
149 + rdfs:comment "A description of any unresolved issues for a reference data item." ;
150 + rdfs:label "unresolved issues" .
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
...@@ -700,6 +700,40 @@ rhspin:npdName ...@@ -700,6 +700,40 @@ rhspin:npdName
700 ] ; 700 ] ;
701 spin:returnType xsd:string . 701 spin:returnType xsd:string .
702 702
703 +rhspin:npdTripleExists
704 + rdf:type spin:Function ;
705 + rdfs:comment "Checks whether the NPD graph contains a given triple (?arg1, ?arg2, ?arg3)."^^xsd:string ;
706 + rdfs:label "NPD triple exists"^^xsd:string ;
707 + rdfs:subClassOf spin:Functions ;
708 + spin:body
709 + [ rdf:type sp:Ask ;
710 + sp:where ([ rdf:type sp:NamedGraph ;
711 + sp:elements ([ sp:object spin:_arg3 ;
712 + sp:predicate spin:_arg2 ;
713 + sp:subject spin:_arg1
714 + ]) ;
715 + sp:graphNameNode npdata:npd
716 + ])
717 + ] ;
718 + spin:constraint
719 + [ rdf:type spl:Argument ;
720 + rdfs:comment "The object to match."^^xsd:string ;
721 + spl:predicate sp:arg3
722 + ] ;
723 + spin:constraint
724 + [ rdf:type spl:Argument ;
725 + rdfs:comment "The predicate to match."^^xsd:string ;
726 + spl:predicate sp:arg2 ;
727 + spl:valueType rdf:Property
728 + ] ;
729 + spin:constraint
730 + [ rdf:type spl:Argument ;
731 + rdfs:comment "The subject to find"^^xsd:string ;
732 + spl:predicate sp:arg1 ;
733 + spl:valueType rdfs:Resource
734 + ] ;
735 + spin:returnType xsd:boolean .
736 +
703 rhspin:parentCompanyByName 737 rhspin:parentCompanyByName
704 rdf:type spin:Function ; 738 rdf:type spin:Function ;
705 rdfs:comment "Gets the URI resource of a parent company based on its NPD name."^^xsd:string ; 739 rdfs:comment "Gets the URI resource of a parent company based on its NPD name."^^xsd:string ;
...@@ -797,22 +831,11 @@ rhspin:wellBoreByName ...@@ -797,22 +831,11 @@ rhspin:wellBoreByName
797 [ rdf:type sp:Select ; 831 [ rdf:type sp:Select ;
798 sp:resultVariables (_:b32) ; 832 sp:resultVariables (_:b32) ;
799 sp:where ([ rdf:type sp:NamedGraph ; 833 sp:where ([ rdf:type sp:NamedGraph ;
800 - sp:elements ([ rdf:type sp:Union ; 834 + sp:elements ([ sp:object
801 - sp:elements (([ sp:object _:b33 ; 835 + [ sp:varName "wellBoreName"^^xsd:string
802 - sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; 836 + ] ;
803 - sp:subject _:b32 837 + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
804 - ]) ([ rdf:type sp:Bind ; 838 + sp:subject _:b32
805 - sp:expression
806 - [ rdf:type spif:replaceAll ;
807 - sp:arg1 _:b33 ;
808 - sp:arg2 "/0" ;
809 - sp:arg3 "/"
810 - ] ;
811 - sp:variable _:b34
812 - ] [ sp:object _:b34 ;
813 - sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
814 - sp:subject _:b32
815 - ]))
816 ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; 839 ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
817 sp:predicate rdf:type ; 840 sp:predicate rdf:type ;
818 sp:subject _:b32 841 sp:subject _:b32
...@@ -854,21 +877,6 @@ rhspin:wellByName ...@@ -854,21 +877,6 @@ rhspin:wellByName
854 ] ; 877 ] ;
855 spin:returnType <http://www.reportinghub.no/ep/schema/well#Well> . 878 spin:returnType <http://www.reportinghub.no/ep/schema/well#Well> .
856 879
857 -_:b16
858 - sp:varName "id"^^xsd:string .
859 -
860 -_:b17
861 - sp:varName "wellBore"^^xsd:string .
862 -
863 -_:b15
864 - sp:varName "startedAt"^^xsd:string .
865 -
866 -_:b34
867 - sp:varName "str"^^xsd:string .
868 -
869 -_:b33
870 - sp:varName "wellBoreName"^^xsd:string .
871 -
872 _:b32 880 _:b32
873 sp:varName "wellBore"^^xsd:string . 881 sp:varName "wellBore"^^xsd:string .
874 882
...@@ -914,6 +922,15 @@ _:b19 ...@@ -914,6 +922,15 @@ _:b19
914 _:b18 922 _:b18
915 sp:varName "value"^^xsd:string . 923 sp:varName "value"^^xsd:string .
916 924
925 +_:b17
926 + sp:varName "wellBore"^^xsd:string .
927 +
928 +_:b16
929 + sp:varName "id"^^xsd:string .
930 +
931 +_:b15
932 + sp:varName "startedAt"^^xsd:string .
933 +
917 _:b14 934 _:b14
918 sp:varName "company"^^xsd:string . 935 sp:varName "company"^^xsd:string .
919 936
......
1 -<ui:group>
2 - <div>&nbsp;</div>
3 - <div class="logoContainer"><a href="http://www.epim.no" target="_new"><img src="lib/rh/images/logoEpim.gif" width="201" height="106" align="right" title="EPIM" /></a>
4 - <div style="padding: 10px">
5 - <h1>ReportingHub</h1>
6 - <div>You are logged in as: <b>{= rhspin:userName() }</b></div>
7 - </div>
8 - </div>
9 -</ui:group>
...\ No newline at end of file ...\ No newline at end of file