David Price

Continued cleanup for NPD RD delivery

......@@ -3,7 +3,6 @@
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.reportinghub.no/ep/schema/1.0/equipment
# imports: http://www.reportinghub.no/ep/schema/1.0/well
# imports: http://www.w3.org/2004/02/skos/core
@prefix ep-actpurp: <http://www.reportinghub.no/ep/schema/activity-purpose#> .
@prefix ep-core: <http://www.reportinghub.no/ep/schema/core#> .
......@@ -17,7 +16,7 @@
<http://www.reportinghub.no/ep/schema/1.0/activity-purpose>
rdf:type owl:Ontology ;
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> ;
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> ;
owl:versionInfo "0.1.0"^^xsd:string .
ep-actpurp:Completion--bopwellheadequipment
......
# baseURI: http://www.reportinghub.no/ep/schema/1.0/activity
# imports: http://www.linkedmodel.org/1.1/schema/ordered
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.reportinghub.no/ep/schema/1.0/equipment
# imports: http://www.reportinghub.no/ep/schema/1.0/facility
......@@ -18,7 +17,7 @@
<http://www.reportinghub.no/ep/schema/1.0/activity>
rdf:type owl:Ontology ;
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> ;
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> ;
owl:versionInfo "0.1.0"^^xsd:string .
ep-activity:Activity
......@@ -35,26 +34,6 @@ ep-activity:Activity
[ rdf:type owl:Restriction ;
owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-activity:startedAt
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:Activity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#after>
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:Activity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#before>
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:Activity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#during>
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:Activity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#overlaps>
] .
ep-activity:ActivitySuccessType
......@@ -77,21 +56,6 @@ ep-activity:DailyDrillingActivity
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:Activity ;
owl:onProperty ep-core:hasPart
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#first>
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:DrillingActivity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#first>
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:DrillingActivity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#last>
] .
ep-activity:DailyDrillingActivityToStatus
......@@ -108,21 +72,6 @@ ep-activity:DailyDrillingActivityToStatus
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:Activity ;
owl:onProperty ep-core:hasPart
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#first>
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:DrillingActivity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#first>
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:DrillingActivity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#last>
] .
ep-activity:DailyProductionActivity
......
......@@ -380,8 +380,7 @@ npd:companyShortName
rdfs:comment "the NPD company short name"^^xsd:string ;
rdfs:domain <http://www.reportinghub.no/ep/schema/organization#Company> ;
rdfs:label "company short name"@en ;
rdfs:range xsd:string ;
rdfs:subPropertyOf rdfs:label .
rdfs:range xsd:string .
npd:currentActivityStatus
rdf:type owl:DatatypeProperty ;
......@@ -570,8 +569,7 @@ npd:name
rdfs:comment "the NPD name"^^xsd:string ;
rdfs:domain npd:Individual ;
rdfs:label "NPD name"@en ;
rdfs:range xsd:string ;
rdfs:subPropertyOf rdfs:label .
rdfs:range xsd:string .
npd:organisationNumber
rdf:type owl:DatatypeProperty ;
......
......@@ -29,18 +29,18 @@ pca-rdl:ERH00002
rdf:type p2:Thing , owl:Class ;
rdfs:subClassOf owl:Thing ;
pca-rdl:hasDesignation
"EPIM REPORTINGHUB NPD FACT REFERENCE DATA THING"^^xsd:string ;
"EPIM REPORTINGHUB NPD REFERENCE DATA THING"^^xsd:string ;
pca-rdl:hasIdPCA "ERH00002"^^xsd:string .
pca-rdl:ERH00003
rdf:type p2:ClassOfClass , owl:Class ;
rdfs:subClassOf owl:Thing ;
pca-rdl:hasDesignation
"EPIM REPORTINGHUB NPD FACT REFERENCE DATA CLASS"^^xsd:string ;
"EPIM REPORTINGHUB NPD REFERENCE DATA CLASS"^^xsd:string ;
pca-rdl:hasIdPCA "ERH00003"^^xsd:string .
pca-rdl:ERH00004
rdf:type p2:ClassOfClass , owl:Class ;
rdf:type p2:Thing , owl:Class ;
rdfs:subClassOf owl:Thing ;
pca-rdl:hasDesignation
"EPIM REPORTINGHUB DRILLING REFERENCE DATA THING"^^xsd:string ;
......@@ -53,6 +53,20 @@ pca-rdl:ERH00005
"EPIM REPORTINGHUB DRILLING REFERENCE DATA CLASS"^^xsd:string ;
pca-rdl:hasIdPCA "ERH00005"^^xsd:string .
pca-rdl:ERH00006
rdf:type p2:Thing , owl:Class ;
rdfs:subClassOf owl:Thing ;
pca-rdl:hasDesignation
"EPIM REPORTINGHUB PRODUCTION REFERENCE DATA THING"^^xsd:string ;
pca-rdl:hasIdPCA "ERH00006"^^xsd:string .
pca-rdl:ERH00007
rdf:type p2:ClassOfClass , owl:Class ;
rdfs:subClassOf owl:Thing ;
pca-rdl:hasDesignation
"EPIM REPORTINGHUB PRODUCTION REFERENCE DATA CLASS"^^xsd:string ;
pca-rdl:hasIdPCA "ERH00007"^^xsd:string .
<http://www.reportinghub.no/refdata/RDL_ERHFoundationRD>
rdf:type owl:Ontology ;
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 @@
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/np/schema/1.0/npd
# imports: http://www.reportinghub.no/refdata/RDL_ERHFoundationRD
# imports: http://www.reportinghub.no/refdata/transform/class2rd
@prefix RDL_ERHFoundationRD: <http://www.reportinghub.no/refdata/RDL_ERHFoundationRD#> .
@prefix class2rd: <http://www.reportinghub.no/refdata/transform/class2rd#> .
@prefix datprop2rd: <http://www.reportinghub.no/refdata/transform/datprop2rd#> .
@prefix npdfacts: <http://www.reportinghub.no/refdata/npdfacts#> .
@prefix objprop2rd: <http://www.reportinghub.no/refdata/transform/objprop2rd#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix p2: <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#> .
@prefix pca-rdl: <http://posccaesar.org/rdl/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sp: <http://spinrdf.org/sp#> .
......@@ -18,5 +21,4 @@
<http://www.reportinghub.no/refdata/npdfacts>
rdf:type owl:Ontology ;
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> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
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> .
......
SELECT DISTINCT ?RDLDesignation ?RDLDefinition ?EntityType ?CoPossessor ?ERHLocalname ?ERHOntology
WHERE {
?s pca-rdl:hasDesignation ?RDLDesignation .
?s ISO-15926-2_2003:hasClassOfPossessor ?CoPossessor .
?s p2:hasClassOfPossessor ?CoPossessor .
?s pca-rdl:hasDefinition ?RDLDefinition .
?s rdf:type ?p2 .
BIND (afn:localname(?p2) AS ?EntityType )
OPTIONAL {
?spec ISO-15926-2_2003:hasSubclass ?s .
?spec ISO-15926-2_2003:hasSuperclass ?sup .
?spec p2:hasSubclass ?s .
?spec p2:hasSuperclass ?sup .
?sup pca-rdl:hasDesignation ?RDLSuperclass .
?sup pca-rdl:hasIdPCA ?RDLSuperclassId .
}
......
......@@ -411,14 +411,6 @@ owl:Class
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#seeReferenceData> ;
sp:subject spin:_this
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:eq ;
sp:arg1 [ rdf:type afn:namespace ;
sp:arg1 spin:_this
] ;
sp:arg2 "http://www.reportinghub.no/np/schema/npd#"
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:buildURI ;
......@@ -518,6 +510,9 @@ owl:Class
] ;
sp:predicate owl:sameAs ;
sp:subject spin:_this
] [ sp:object <http://posccaesar.org/rdl/ERH00000> ;
sp:predicate rdf:type ;
sp:subject spin:_this
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/activity#Activity> ;
......