David Price

Continued cleanup for NPD RD delivery

...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
3 # imports: http://www.reportinghub.no/ep/schema/1.0/core 3 # imports: http://www.reportinghub.no/ep/schema/1.0/core
4 # imports: http://www.reportinghub.no/ep/schema/1.0/equipment 4 # imports: http://www.reportinghub.no/ep/schema/1.0/equipment
5 # imports: http://www.reportinghub.no/ep/schema/1.0/well 5 # imports: http://www.reportinghub.no/ep/schema/1.0/well
6 -# imports: http://www.w3.org/2004/02/skos/core
7 6
8 @prefix ep-actpurp: <http://www.reportinghub.no/ep/schema/activity-purpose#> . 7 @prefix ep-actpurp: <http://www.reportinghub.no/ep/schema/activity-purpose#> .
9 @prefix ep-core: <http://www.reportinghub.no/ep/schema/core#> . 8 @prefix ep-core: <http://www.reportinghub.no/ep/schema/core#> .
...@@ -17,7 +16,7 @@ ...@@ -17,7 +16,7 @@
17 16
18 <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> 17 <http://www.reportinghub.no/ep/schema/1.0/activity-purpose>
19 rdf:type owl:Ontology ; 18 rdf:type owl:Ontology ;
20 - owl:imports <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.w3.org/2004/02/skos/core> ; 19 + owl:imports <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/well> ;
21 owl:versionInfo "0.1.0"^^xsd:string . 20 owl:versionInfo "0.1.0"^^xsd:string .
22 21
23 ep-actpurp:Completion--bopwellheadequipment 22 ep-actpurp:Completion--bopwellheadequipment
......
1 # baseURI: http://www.reportinghub.no/ep/schema/1.0/activity 1 # baseURI: http://www.reportinghub.no/ep/schema/1.0/activity
2 -# imports: http://www.linkedmodel.org/1.1/schema/ordered
3 # imports: http://www.reportinghub.no/ep/schema/1.0/core 2 # imports: http://www.reportinghub.no/ep/schema/1.0/core
4 # imports: http://www.reportinghub.no/ep/schema/1.0/equipment 3 # imports: http://www.reportinghub.no/ep/schema/1.0/equipment
5 # imports: http://www.reportinghub.no/ep/schema/1.0/facility 4 # imports: http://www.reportinghub.no/ep/schema/1.0/facility
...@@ -18,7 +17,7 @@ ...@@ -18,7 +17,7 @@
18 17
19 <http://www.reportinghub.no/ep/schema/1.0/activity> 18 <http://www.reportinghub.no/ep/schema/1.0/activity>
20 rdf:type owl:Ontology ; 19 rdf:type owl:Ontology ;
21 - owl:imports <http://www.linkedmodel.org/1.1/schema/ordered> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/material> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/schema/1.0/well> ; 20 + owl:imports <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/material> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/schema/1.0/well> ;
22 owl:versionInfo "0.1.0"^^xsd:string . 21 owl:versionInfo "0.1.0"^^xsd:string .
23 22
24 ep-activity:Activity 23 ep-activity:Activity
...@@ -35,26 +34,6 @@ ep-activity:Activity ...@@ -35,26 +34,6 @@ ep-activity:Activity
35 [ rdf:type owl:Restriction ; 34 [ rdf:type owl:Restriction ;
36 owl:maxCardinality "1"^^xsd:nonNegativeInteger ; 35 owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
37 owl:onProperty ep-activity:startedAt 36 owl:onProperty ep-activity:startedAt
38 - ] ;
39 - rdfs:subClassOf
40 - [ rdf:type owl:Restriction ;
41 - owl:allValuesFrom ep-activity:Activity ;
42 - owl:onProperty <http://www.linkedmodel.org/schema/ordered#after>
43 - ] ;
44 - rdfs:subClassOf
45 - [ rdf:type owl:Restriction ;
46 - owl:allValuesFrom ep-activity:Activity ;
47 - owl:onProperty <http://www.linkedmodel.org/schema/ordered#before>
48 - ] ;
49 - rdfs:subClassOf
50 - [ rdf:type owl:Restriction ;
51 - owl:allValuesFrom ep-activity:Activity ;
52 - owl:onProperty <http://www.linkedmodel.org/schema/ordered#during>
53 - ] ;
54 - rdfs:subClassOf
55 - [ rdf:type owl:Restriction ;
56 - owl:allValuesFrom ep-activity:Activity ;
57 - owl:onProperty <http://www.linkedmodel.org/schema/ordered#overlaps>
58 ] . 37 ] .
59 38
60 ep-activity:ActivitySuccessType 39 ep-activity:ActivitySuccessType
...@@ -77,21 +56,6 @@ ep-activity:DailyDrillingActivity ...@@ -77,21 +56,6 @@ ep-activity:DailyDrillingActivity
77 [ rdf:type owl:Restriction ; 56 [ rdf:type owl:Restriction ;
78 owl:allValuesFrom ep-activity:Activity ; 57 owl:allValuesFrom ep-activity:Activity ;
79 owl:onProperty ep-core:hasPart 58 owl:onProperty ep-core:hasPart
80 - ] ;
81 - rdfs:subClassOf
82 - [ rdf:type owl:Restriction ;
83 - owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
84 - owl:onProperty <http://www.linkedmodel.org/schema/ordered#first>
85 - ] ;
86 - rdfs:subClassOf
87 - [ rdf:type owl:Restriction ;
88 - owl:allValuesFrom ep-activity:DrillingActivity ;
89 - owl:onProperty <http://www.linkedmodel.org/schema/ordered#first>
90 - ] ;
91 - rdfs:subClassOf
92 - [ rdf:type owl:Restriction ;
93 - owl:allValuesFrom ep-activity:DrillingActivity ;
94 - owl:onProperty <http://www.linkedmodel.org/schema/ordered#last>
95 ] . 59 ] .
96 60
97 ep-activity:DailyDrillingActivityToStatus 61 ep-activity:DailyDrillingActivityToStatus
...@@ -108,21 +72,6 @@ ep-activity:DailyDrillingActivityToStatus ...@@ -108,21 +72,6 @@ ep-activity:DailyDrillingActivityToStatus
108 [ rdf:type owl:Restriction ; 72 [ rdf:type owl:Restriction ;
109 owl:allValuesFrom ep-activity:Activity ; 73 owl:allValuesFrom ep-activity:Activity ;
110 owl:onProperty ep-core:hasPart 74 owl:onProperty ep-core:hasPart
111 - ] ;
112 - rdfs:subClassOf
113 - [ rdf:type owl:Restriction ;
114 - owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
115 - owl:onProperty <http://www.linkedmodel.org/schema/ordered#first>
116 - ] ;
117 - rdfs:subClassOf
118 - [ rdf:type owl:Restriction ;
119 - owl:allValuesFrom ep-activity:DrillingActivity ;
120 - owl:onProperty <http://www.linkedmodel.org/schema/ordered#first>
121 - ] ;
122 - rdfs:subClassOf
123 - [ rdf:type owl:Restriction ;
124 - owl:allValuesFrom ep-activity:DrillingActivity ;
125 - owl:onProperty <http://www.linkedmodel.org/schema/ordered#last>
126 ] . 75 ] .
127 76
128 ep-activity:DailyProductionActivity 77 ep-activity:DailyProductionActivity
......
...@@ -380,8 +380,7 @@ npd:companyShortName ...@@ -380,8 +380,7 @@ npd:companyShortName
380 rdfs:comment "the NPD company short name"^^xsd:string ; 380 rdfs:comment "the NPD company short name"^^xsd:string ;
381 rdfs:domain <http://www.reportinghub.no/ep/schema/organization#Company> ; 381 rdfs:domain <http://www.reportinghub.no/ep/schema/organization#Company> ;
382 rdfs:label "company short name"@en ; 382 rdfs:label "company short name"@en ;
383 - rdfs:range xsd:string ; 383 + rdfs:range xsd:string .
384 - rdfs:subPropertyOf rdfs:label .
385 384
386 npd:currentActivityStatus 385 npd:currentActivityStatus
387 rdf:type owl:DatatypeProperty ; 386 rdf:type owl:DatatypeProperty ;
...@@ -570,8 +569,7 @@ npd:name ...@@ -570,8 +569,7 @@ npd:name
570 rdfs:comment "the NPD name"^^xsd:string ; 569 rdfs:comment "the NPD name"^^xsd:string ;
571 rdfs:domain npd:Individual ; 570 rdfs:domain npd:Individual ;
572 rdfs:label "NPD name"@en ; 571 rdfs:label "NPD name"@en ;
573 - rdfs:range xsd:string ; 572 + rdfs:range xsd:string .
574 - rdfs:subPropertyOf rdfs:label .
575 573
576 npd:organisationNumber 574 npd:organisationNumber
577 rdf:type owl:DatatypeProperty ; 575 rdf:type owl:DatatypeProperty ;
......
...@@ -29,18 +29,18 @@ pca-rdl:ERH00002 ...@@ -29,18 +29,18 @@ pca-rdl:ERH00002
29 rdf:type p2:Thing , owl:Class ; 29 rdf:type p2:Thing , owl:Class ;
30 rdfs:subClassOf owl:Thing ; 30 rdfs:subClassOf owl:Thing ;
31 pca-rdl:hasDesignation 31 pca-rdl:hasDesignation
32 - "EPIM REPORTINGHUB NPD FACT REFERENCE DATA THING"^^xsd:string ; 32 + "EPIM REPORTINGHUB NPD REFERENCE DATA THING"^^xsd:string ;
33 pca-rdl:hasIdPCA "ERH00002"^^xsd:string . 33 pca-rdl:hasIdPCA "ERH00002"^^xsd:string .
34 34
35 pca-rdl:ERH00003 35 pca-rdl:ERH00003
36 rdf:type p2:ClassOfClass , owl:Class ; 36 rdf:type p2:ClassOfClass , owl:Class ;
37 rdfs:subClassOf owl:Thing ; 37 rdfs:subClassOf owl:Thing ;
38 pca-rdl:hasDesignation 38 pca-rdl:hasDesignation
39 - "EPIM REPORTINGHUB NPD FACT REFERENCE DATA CLASS"^^xsd:string ; 39 + "EPIM REPORTINGHUB NPD REFERENCE DATA CLASS"^^xsd:string ;
40 pca-rdl:hasIdPCA "ERH00003"^^xsd:string . 40 pca-rdl:hasIdPCA "ERH00003"^^xsd:string .
41 41
42 pca-rdl:ERH00004 42 pca-rdl:ERH00004
43 - rdf:type p2:ClassOfClass , owl:Class ; 43 + rdf:type p2:Thing , owl:Class ;
44 rdfs:subClassOf owl:Thing ; 44 rdfs:subClassOf owl:Thing ;
45 pca-rdl:hasDesignation 45 pca-rdl:hasDesignation
46 "EPIM REPORTINGHUB DRILLING REFERENCE DATA THING"^^xsd:string ; 46 "EPIM REPORTINGHUB DRILLING REFERENCE DATA THING"^^xsd:string ;
...@@ -53,6 +53,20 @@ pca-rdl:ERH00005 ...@@ -53,6 +53,20 @@ pca-rdl:ERH00005
53 "EPIM REPORTINGHUB DRILLING REFERENCE DATA CLASS"^^xsd:string ; 53 "EPIM REPORTINGHUB DRILLING REFERENCE DATA CLASS"^^xsd:string ;
54 pca-rdl:hasIdPCA "ERH00005"^^xsd:string . 54 pca-rdl:hasIdPCA "ERH00005"^^xsd:string .
55 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 +
56 <http://www.reportinghub.no/refdata/RDL_ERHFoundationRD> 70 <http://www.reportinghub.no/refdata/RDL_ERHFoundationRD>
57 rdf:type owl:Ontology ; 71 rdf:type owl:Ontology ;
58 owl:imports <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003> , <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations> ; 72 owl:imports <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003> , <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations> ;
......
...@@ -3,12 +3,15 @@ ...@@ -3,12 +3,15 @@
3 # imports: http://spinrdf.org/spin 3 # imports: http://spinrdf.org/spin
4 # imports: http://www.reportinghub.no/np/schema/1.0/npd 4 # imports: http://www.reportinghub.no/np/schema/1.0/npd
5 # imports: http://www.reportinghub.no/refdata/RDL_ERHFoundationRD 5 # imports: http://www.reportinghub.no/refdata/RDL_ERHFoundationRD
6 -# imports: http://www.reportinghub.no/refdata/transform/class2rd
7 6
8 @prefix RDL_ERHFoundationRD: <http://www.reportinghub.no/refdata/RDL_ERHFoundationRD#> . 7 @prefix RDL_ERHFoundationRD: <http://www.reportinghub.no/refdata/RDL_ERHFoundationRD#> .
9 @prefix class2rd: <http://www.reportinghub.no/refdata/transform/class2rd#> . 8 @prefix class2rd: <http://www.reportinghub.no/refdata/transform/class2rd#> .
9 +@prefix datprop2rd: <http://www.reportinghub.no/refdata/transform/datprop2rd#> .
10 @prefix npdfacts: <http://www.reportinghub.no/refdata/npdfacts#> . 10 @prefix npdfacts: <http://www.reportinghub.no/refdata/npdfacts#> .
11 +@prefix objprop2rd: <http://www.reportinghub.no/refdata/transform/objprop2rd#> .
11 @prefix owl: <http://www.w3.org/2002/07/owl#> . 12 @prefix owl: <http://www.w3.org/2002/07/owl#> .
13 +@prefix p2: <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#> .
14 +@prefix pca-rdl: <http://posccaesar.org/rdl/> .
12 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 15 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
13 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . 16 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
14 @prefix sp: <http://spinrdf.org/sp#> . 17 @prefix sp: <http://spinrdf.org/sp#> .
...@@ -18,5 +21,4 @@ ...@@ -18,5 +21,4 @@
18 21
19 <http://www.reportinghub.no/refdata/npdfacts> 22 <http://www.reportinghub.no/refdata/npdfacts>
20 rdf:type owl:Ontology ; 23 rdf:type owl:Ontology ;
21 - 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> , <http://www.reportinghub.no/refdata/transform/class2rd> ; 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> .
22 - owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
1 SELECT DISTINCT ?RDLDesignation ?RDLDefinition ?EntityType ?CoPossessor ?ERHLocalname ?ERHOntology 1 SELECT DISTINCT ?RDLDesignation ?RDLDefinition ?EntityType ?CoPossessor ?ERHLocalname ?ERHOntology
2 WHERE { 2 WHERE {
3 ?s pca-rdl:hasDesignation ?RDLDesignation . 3 ?s pca-rdl:hasDesignation ?RDLDesignation .
4 - ?s ISO-15926-2_2003:hasClassOfPossessor ?CoPossessor . 4 + ?s p2:hasClassOfPossessor ?CoPossessor .
5 ?s pca-rdl:hasDefinition ?RDLDefinition . 5 ?s pca-rdl:hasDefinition ?RDLDefinition .
6 ?s rdf:type ?p2 . 6 ?s rdf:type ?p2 .
7 BIND (afn:localname(?p2) AS ?EntityType ) 7 BIND (afn:localname(?p2) AS ?EntityType )
8 OPTIONAL { 8 OPTIONAL {
9 - ?spec ISO-15926-2_2003:hasSubclass ?s . 9 + ?spec p2:hasSubclass ?s .
10 - ?spec ISO-15926-2_2003:hasSuperclass ?sup . 10 + ?spec p2:hasSuperclass ?sup .
11 ?sup pca-rdl:hasDesignation ?RDLSuperclass . 11 ?sup pca-rdl:hasDesignation ?RDLSuperclass .
12 ?sup pca-rdl:hasIdPCA ?RDLSuperclassId . 12 ?sup pca-rdl:hasIdPCA ?RDLSuperclassId .
13 } 13 }
......
...@@ -411,14 +411,6 @@ owl:Class ...@@ -411,14 +411,6 @@ owl:Class
411 ] ; 411 ] ;
412 sp:predicate <http://www.reportinghub.no/ep/schema/core#seeReferenceData> ; 412 sp:predicate <http://www.reportinghub.no/ep/schema/core#seeReferenceData> ;
413 sp:subject spin:_this 413 sp:subject spin:_this
414 - ] [ rdf:type sp:Filter ;
415 - sp:expression
416 - [ rdf:type sp:eq ;
417 - sp:arg1 [ rdf:type afn:namespace ;
418 - sp:arg1 spin:_this
419 - ] ;
420 - sp:arg2 "http://www.reportinghub.no/np/schema/npd#"
421 - ]
422 ] [ rdf:type sp:Bind ; 414 ] [ rdf:type sp:Bind ;
423 sp:expression 415 sp:expression
424 [ rdf:type smf:buildURI ; 416 [ rdf:type smf:buildURI ;
...@@ -518,6 +510,9 @@ owl:Class ...@@ -518,6 +510,9 @@ owl:Class
518 ] ; 510 ] ;
519 sp:predicate owl:sameAs ; 511 sp:predicate owl:sameAs ;
520 sp:subject spin:_this 512 sp:subject spin:_this
513 + ] [ sp:object <http://posccaesar.org/rdl/ERH00000> ;
514 + sp:predicate rdf:type ;
515 + sp:subject spin:_this
521 ] [ rdf:type sp:Optional ; 516 ] [ rdf:type sp:Optional ;
522 sp:elements ([ rdf:type sp:TriplePath ; 517 sp:elements ([ rdf:type sp:TriplePath ;
523 sp:object <http://www.reportinghub.no/ep/schema/activity#Activity> ; 518 sp:object <http://www.reportinghub.no/ep/schema/activity#Activity> ;
......