David Price

Fixed some Org comments and continued work on RD

...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
16 16
17 ep-org:CateringCrew 17 ep-org:CateringCrew
18 rdf:type ep-org:CrewType , owl:Class ; 18 rdf:type ep-org:CrewType , owl:Class ;
19 - rdfs:comment "A count that is the number of persons from the catering contractor spending the night at the installation."^^xsd:string ; 19 + rdfs:comment "the persons from the catering contractor spending the night at the installation"^^xsd:string ;
20 rdfs:label "catering crew"^^xsd:string ; 20 rdfs:label "catering crew"^^xsd:string ;
21 rdfs:subClassOf ep-org:Crew . 21 rdfs:subClassOf ep-org:Crew .
22 22
...@@ -35,7 +35,6 @@ ep-org:Company ...@@ -35,7 +35,6 @@ ep-org:Company
35 35
36 ep-org:ContractorCrew 36 ep-org:ContractorCrew
37 rdf:type ep-org:CrewType , owl:Class ; 37 rdf:type ep-org:CrewType , owl:Class ;
38 - rdfs:comment "A count that is the number of persons from other than operator spending the night at the installation."^^xsd:string ;
39 rdfs:label "contractor crew"^^xsd:string ; 38 rdfs:label "contractor crew"^^xsd:string ;
40 rdfs:subClassOf ep-org:Crew ; 39 rdfs:subClassOf ep-org:Crew ;
41 ep-core:seeReferenceData 40 ep-core:seeReferenceData
...@@ -50,19 +49,18 @@ ep-org:Crew ...@@ -50,19 +49,18 @@ ep-org:Crew
50 49
51 ep-org:CrewType 50 ep-org:CrewType
52 rdf:type rdfs:Class ; 51 rdf:type rdfs:Class ;
53 - rdfs:comment "The type of personnel grouping."^^xsd:string ; 52 + rdfs:comment "the type of personnel grouping"^^xsd:string ;
54 rdfs:label "crew type"^^xsd:string ; 53 rdfs:label "crew type"^^xsd:string ;
55 rdfs:subClassOf owl:Class . 54 rdfs:subClassOf owl:Class .
56 55
57 ep-org:DayVisitorCrew 56 ep-org:DayVisitorCrew
58 rdf:type ep-org:CrewType , owl:Class ; 57 rdf:type ep-org:CrewType , owl:Class ;
59 - rdfs:comment "A count that is the number of persons visiting the installation but not spending the night at the installation."^^xsd:string ; 58 + rdfs:comment "the persons visiting the installation but not spending the night at the installation"^^xsd:string ;
60 rdfs:label "day visitor crew"^^xsd:string ; 59 rdfs:label "day visitor crew"^^xsd:string ;
61 rdfs:subClassOf ep-org:Crew . 60 rdfs:subClassOf ep-org:Crew .
62 61
63 ep-org:DrillingContractCrew 62 ep-org:DrillingContractCrew
64 rdf:type ep-org:CrewType , owl:Class ; 63 rdf:type ep-org:CrewType , owl:Class ;
65 - rdfs:comment "A count that is the number of persons from the drilling contractor spending the night at the installation."^^xsd:string ;
66 rdfs:label "drilling contract crew"^^xsd:string ; 64 rdfs:label "drilling contract crew"^^xsd:string ;
67 rdfs:subClassOf ep-org:Crew ; 65 rdfs:subClassOf ep-org:Crew ;
68 ep-core:seeReferenceData 66 ep-core:seeReferenceData
...@@ -70,25 +68,24 @@ ep-org:DrillingContractCrew ...@@ -70,25 +68,24 @@ ep-org:DrillingContractCrew
70 68
71 ep-org:NonOperatorOvernightVisitorCrew 69 ep-org:NonOperatorOvernightVisitorCrew
72 rdf:type ep-org:CrewType , owl:Class ; 70 rdf:type ep-org:CrewType , owl:Class ;
73 - rdfs:comment "A count that is the number of persons from an unknown source normally not working on the installation, but spending the night there."^^xsd:string ; 71 + rdfs:comment "the persons from an unknown source normally not working on the installation, but spending the night there"^^xsd:string ;
74 rdfs:label "non-operator overnight visitor crew"^^xsd:string ; 72 rdfs:label "non-operator overnight visitor crew"^^xsd:string ;
75 rdfs:subClassOf ep-org:Crew . 73 rdfs:subClassOf ep-org:Crew .
76 74
77 ep-org:OperatorNormalCrew 75 ep-org:OperatorNormalCrew
78 rdf:type ep-org:CrewType , owl:Class ; 76 rdf:type ep-org:CrewType , owl:Class ;
79 - rdfs:comment "A count that is the number of persons from the operator normally working on the installation and spending the night there."^^xsd:string ; 77 + rdfs:comment "the persons from the operator normally working on the installation and spending the night there"^^xsd:string ;
80 rdfs:label "operator normal crew"^^xsd:string ; 78 rdfs:label "operator normal crew"^^xsd:string ;
81 rdfs:subClassOf ep-org:Crew . 79 rdfs:subClassOf ep-org:Crew .
82 80
83 ep-org:OperatorOvernightVisitorCrew 81 ep-org:OperatorOvernightVisitorCrew
84 rdf:type ep-org:CrewType , owl:Class ; 82 rdf:type ep-org:CrewType , owl:Class ;
85 - rdfs:comment "A count that is the number of persons from the operator normally not working on the installation, but spending the night there."^^xsd:string ; 83 + rdfs:comment "the persons from the operator normally not working on the installation, but spending the night there"^^xsd:string ;
86 rdfs:label "operator overnight visitor crew"^^xsd:string ; 84 rdfs:label "operator overnight visitor crew"^^xsd:string ;
87 rdfs:subClassOf ep-org:Crew . 85 rdfs:subClassOf ep-org:Crew .
88 86
89 ep-org:Organization 87 ep-org:Organization
90 rdf:type owl:Class ; 88 rdf:type owl:Class ;
91 - rdfs:comment "physical object that is an organization"^^xsd:string ;
92 rdfs:label "organization"^^xsd:string ; 89 rdfs:label "organization"^^xsd:string ;
93 rdfs:subClassOf ep-core:PhysicalObject , ep-org:PersonOrOrganization ; 90 rdfs:subClassOf ep-core:PhysicalObject , ep-org:PersonOrOrganization ;
94 ep-core:seeReferenceData 91 ep-core:seeReferenceData
...@@ -128,7 +125,7 @@ ep-org:PersonRoleType ...@@ -128,7 +125,7 @@ ep-org:PersonRoleType
128 125
129 ep-org:TotalCrew 126 ep-org:TotalCrew
130 rdf:type ep-org:CrewType , owl:Class ; 127 rdf:type ep-org:CrewType , owl:Class ;
131 - rdfs:comment "A count of the total personnel on board."^^xsd:string ; 128 + rdfs:comment "all personnel on board"^^xsd:string ;
132 rdfs:label "total crew"^^xsd:string ; 129 rdfs:label "total crew"^^xsd:string ;
133 rdfs:subClassOf ep-org:Crew . 130 rdfs:subClassOf ep-org:Crew .
134 131
......
...@@ -26,46 +26,18 @@ pca-rdl:ERH00001 ...@@ -26,46 +26,18 @@ pca-rdl:ERH00001
26 pca-rdl:hasIdPCA "ERH00001"^^xsd:string . 26 pca-rdl:hasIdPCA "ERH00001"^^xsd:string .
27 27
28 pca-rdl:ERH00002 28 pca-rdl:ERH00002
29 - rdf:type p2:Thing , owl:Class ;
30 - rdfs:subClassOf owl:Thing ;
31 - pca-rdl:hasDesignation
32 - "EPIM REPORTINGHUB NPD REFERENCE DATA THING"^^xsd:string ;
33 - pca-rdl:hasIdPCA "ERH00002"^^xsd:string .
34 -
35 -pca-rdl:ERH00003
36 rdf:type p2:ClassOfClass , owl:Class ; 29 rdf:type p2:ClassOfClass , owl:Class ;
37 rdfs:subClassOf owl:Thing ; 30 rdfs:subClassOf owl:Thing ;
38 pca-rdl:hasDesignation 31 pca-rdl:hasDesignation
39 "EPIM REPORTINGHUB NPD REFERENCE DATA CLASS"^^xsd:string ; 32 "EPIM REPORTINGHUB NPD REFERENCE DATA CLASS"^^xsd:string ;
40 - pca-rdl:hasIdPCA "ERH00003"^^xsd:string . 33 + pca-rdl:hasIdPCA "ERH00002"^^xsd:string .
41 -
42 -pca-rdl:ERH00004
43 - rdf:type p2:Thing , owl:Class ;
44 - rdfs:subClassOf owl:Thing ;
45 - pca-rdl:hasDesignation
46 - "EPIM REPORTINGHUB DRILLING REFERENCE DATA THING"^^xsd:string ;
47 - pca-rdl:hasIdPCA "ERH00004"^^xsd:string .
48 34
49 -pca-rdl:ERH00005 35 +pca-rdl:ERH00003
50 rdf:type p2:ClassOfClass , owl:Class ; 36 rdf:type p2:ClassOfClass , owl:Class ;
51 rdfs:subClassOf owl:Thing ; 37 rdfs:subClassOf owl:Thing ;
52 pca-rdl:hasDesignation 38 pca-rdl:hasDesignation
53 "EPIM REPORTINGHUB DRILLING REFERENCE DATA CLASS"^^xsd:string ; 39 "EPIM REPORTINGHUB DRILLING REFERENCE DATA CLASS"^^xsd:string ;
54 - pca-rdl:hasIdPCA "ERH00005"^^xsd:string . 40 + pca-rdl:hasIdPCA "ERH00003"^^xsd:string .
55 -
56 -pca-rdl:ERH00006
57 - rdf:type p2:Thing , owl:Class ;
58 - rdfs:subClassOf owl:Thing ;
59 - pca-rdl:hasDesignation
60 - "EPIM REPORTINGHUB PRODUCTION REFERENCE DATA THING"^^xsd:string ;
61 - pca-rdl:hasIdPCA "ERH00006"^^xsd:string .
62 -
63 -pca-rdl:ERH00007
64 - rdf:type p2:ClassOfClass , owl:Class ;
65 - rdfs:subClassOf owl:Thing ;
66 - pca-rdl:hasDesignation
67 - "EPIM REPORTINGHUB PRODUCTION REFERENCE DATA CLASS"^^xsd:string ;
68 - pca-rdl:hasIdPCA "ERH00007"^^xsd:string .
69 41
70 <http://www.reportinghub.no/refdata/RDL_ERHFoundationRD> 42 <http://www.reportinghub.no/refdata/RDL_ERHFoundationRD>
71 rdf:type owl:Ontology ; 43 rdf:type owl:Ontology ;
......
1 # baseURI: http://www.reportinghub.no/refdata/npdfacts 1 # baseURI: http://www.reportinghub.no/refdata/npdfacts
2 -# imports: http://posccaesar.org/rdl
3 # imports: http://spinrdf.org/spin 2 # imports: http://spinrdf.org/spin
4 # imports: http://www.reportinghub.no/np/schema/1.0/npd 3 # imports: http://www.reportinghub.no/np/schema/1.0/npd
5 # imports: http://www.reportinghub.no/refdata/RDL_ERHFoundationRD 4 # imports: http://www.reportinghub.no/refdata/RDL_ERHFoundationRD
...@@ -21,4 +20,4 @@ ...@@ -21,4 +20,4 @@
21 20
22 <http://www.reportinghub.no/refdata/npdfacts> 21 <http://www.reportinghub.no/refdata/npdfacts>
23 rdf:type owl:Ontology ; 22 rdf:type owl:Ontology ;
24 - owl:imports <http://posccaesar.org/rdl> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/np/schema/1.0/npd> , <http://www.reportinghub.no/refdata/RDL_ERHFoundationRD> . 23 + owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/np/schema/1.0/npd> , <http://www.reportinghub.no/refdata/RDL_ERHFoundationRD> .
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
2 # imports: http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003 2 # imports: http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003
3 # imports: http://rds.posccaesar.org/2008/06/OWL/RDL-annotations 3 # imports: http://rds.posccaesar.org/2008/06/OWL/RDL-annotations
4 # imports: http://spinrdf.org/spin 4 # imports: http://spinrdf.org/spin
5 -# imports: http://www.reportinghub.no/ep/schema/1.0/drilling
6 # imports: http://www.reportinghub.no/refdata/RDL_ERHFoundationRD 5 # imports: http://www.reportinghub.no/refdata/RDL_ERHFoundationRD
7 6
8 @prefix : <http://www.reportinghub.no/refdata/transform/class2rd#> . 7 @prefix : <http://www.reportinghub.no/refdata/transform/class2rd#> .
...@@ -23,7 +22,7 @@ ...@@ -23,7 +22,7 @@
23 22
24 <http://www.reportinghub.no/refdata/transform/class2rd> 23 <http://www.reportinghub.no/refdata/transform/class2rd>
25 rdf:type owl:Ontology ; 24 rdf:type owl:Ontology ;
26 - 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/RDL_ERHFoundationRD> ; 25 + 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/refdata/RDL_ERHFoundationRD> ;
27 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 26 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
28 27
29 rdfs:Class 28 rdfs:Class
...@@ -282,27 +281,10 @@ owl:Class ...@@ -282,27 +281,10 @@ owl:Class
282 sp:subject 281 sp:subject
283 [ sp:varName "thisrduri"^^xsd:string 282 [ sp:varName "thisrduri"^^xsd:string
284 ] 283 ]
285 - ] [ sp:object <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#Classification> ;
286 - sp:predicate rdf:type ;
287 - sp:subject
288 - [ sp:varName "clsncuri"^^xsd:string
289 - ]
290 ] [ sp:object <http://posccaesar.org/rdl/ERH00001> ; 284 ] [ sp:object <http://posccaesar.org/rdl/ERH00001> ;
291 - sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassifier> ;
292 - sp:subject
293 - [ sp:varName "clsncuri"^^xsd:string
294 - ]
295 - ] [ sp:object
296 - [ sp:varName "thisrduri"^^xsd:string
297 - ] ;
298 - sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassified> ;
299 - sp:subject
300 - [ sp:varName "clsncuri"^^xsd:string
301 - ]
302 - ] [ sp:object <http://posccaesar.org/rdl/ERH00000> ;
303 sp:predicate rdf:type ; 285 sp:predicate rdf:type ;
304 sp:subject 286 sp:subject
305 - [ sp:varName "clsncuri"^^xsd:string 287 + [ sp:varName "thisrduri"^^xsd:string
306 ] 288 ]
307 ]) ; 289 ]) ;
308 sp:where ([ rdf:type sp:NotExists ; 290 sp:where ([ rdf:type sp:NotExists ;
...@@ -357,8 +339,10 @@ owl:Class ...@@ -357,8 +339,10 @@ owl:Class
357 ] [ rdf:type sp:Bind ; 339 ] [ rdf:type sp:Bind ;
358 sp:expression 340 sp:expression
359 [ rdf:type fn:upper-case ; 341 [ rdf:type fn:upper-case ;
342 + sp:arg1 [ rdf:type xsd:string ;
360 sp:arg1 [ sp:varName "label"^^xsd:string 343 sp:arg1 [ sp:varName "label"^^xsd:string
361 ] 344 ]
345 + ]
362 ] ; 346 ] ;
363 sp:variable 347 sp:variable
364 [ sp:varName "desigation"^^xsd:string 348 [ sp:varName "desigation"^^xsd:string
...@@ -512,7 +496,9 @@ owl:Class ...@@ -512,7 +496,9 @@ owl:Class
512 sp:subject spin:_this 496 sp:subject spin:_this
513 ] [ sp:object <http://posccaesar.org/rdl/ERH00000> ; 497 ] [ sp:object <http://posccaesar.org/rdl/ERH00000> ;
514 sp:predicate rdf:type ; 498 sp:predicate rdf:type ;
515 - sp:subject spin:_this 499 + sp:subject
500 + [ sp:varName "thisrduri"^^xsd:string
501 + ]
516 ] [ rdf:type sp:Optional ; 502 ] [ rdf:type sp:Optional ;
517 sp:elements ([ rdf:type sp:TriplePath ; 503 sp:elements ([ rdf:type sp:TriplePath ;
518 sp:object <http://www.reportinghub.no/ep/schema/activity#Activity> ; 504 sp:object <http://www.reportinghub.no/ep/schema/activity#Activity> ;
...@@ -709,4 +695,70 @@ owl:Class ...@@ -709,4 +695,70 @@ owl:Class
709 ] 695 ]
710 ]) 696 ])
711 ]) 697 ])
698 + ] ;
699 + spin:rule
700 + [ rdf:type sp:Construct ;
701 + rdfs:comment "0300 Handle classification of RD classes as NPD"^^xsd:string ;
702 + sp:templates ([ sp:object <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#Classification> ;
703 + sp:predicate rdf:type ;
704 + sp:subject
705 + [ sp:varName "clsnuri"^^xsd:string
706 + ]
707 + ] [ sp:object
708 + [ sp:varName "thisrduri"^^xsd:string
709 + ] ;
710 + sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassified> ;
711 + sp:subject
712 + [ sp:varName "clsnuri"^^xsd:string
713 + ]
714 + ] [ sp:object <http://posccaesar.org/rdl/ERH00002> ;
715 + sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassifier> ;
716 + sp:subject
717 + [ sp:varName "clsnuri"^^xsd:string
718 + ]
719 + ] [ sp:object <http://posccaesar.org/rdl/ERH00000> ;
720 + sp:predicate rdf:type ;
721 + sp:subject
722 + [ sp:varName "clsnuri"^^xsd:string
723 + ]
724 + ]) ;
725 + sp:where ([ sp:object
726 + [ sp:varName "thisrduri"^^xsd:string
727 + ] ;
728 + sp:predicate owl:sameAs ;
729 + sp:subject spin:_this
730 + ] [ rdf:type sp:Filter ;
731 + sp:expression
732 + [ rdf:type sp:eq ;
733 + sp:arg1 [ rdf:type afn:namespace ;
734 + sp:arg1 spin:_this
735 + ] ;
736 + sp:arg2 "http://www.reportinghub.no/np/schema/npd#"
737 + ]
738 + ] [ rdf:type sp:Bind ;
739 + sp:expression
740 + [ rdf:type spif:generateUUID
741 + ] ;
742 + sp:variable
743 + [ sp:varName "uuid"^^xsd:string
744 + ]
745 + ] [ rdf:type sp:Bind ;
746 + sp:expression
747 + [ rdf:type fn:concat ;
748 + sp:arg1 "ERH" ;
749 + sp:arg2 [ sp:varName "uuid"^^xsd:string
750 + ]
751 + ] ;
752 + sp:variable
753 + [ sp:varName "pcaid"^^xsd:string
754 + ]
755 + ] [ rdf:type sp:Bind ;
756 + sp:expression
757 + [ rdf:type spif:buildURI ;
758 + sp:arg1 "<http://posccaesar.org/rdl/{?pcaid}>"
759 + ] ;
760 + sp:variable
761 + [ sp:varName "clsnuri"^^xsd:string
762 + ]
763 + ])
712 ] . 764 ] .
......