Toggle navigation
Toggle navigation
This project
Loading...
Sign in
data.posccaesar.org
/
npd
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
1
Merge Requests
0
Wiki
Network
Create a new issue
Commits
Issue Boards
Authored by
Holger Knublauch
2011-08-01 11:38:07 +1000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7e48a85be2493cc92d6f84548a543e53422537b8
7e48a85b
1 parent
b3729ff3
NPD Import of Discoveries
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
315 additions
and
3 deletions
www.reportinghub.no/examples/transform/npd/discovery-2011-07-30.csv
www.reportinghub.no/examples/transform/npd/discovery-2011-07-30.ttl
www.reportinghub.no/schema/SCHEMA_NPD-v1.1.ttl
www.reportinghub.no/spin/SPIN-RH-v1.0.spin.ttl
www.reportinghub.no/transform/TRANSFORM_SPREADSHEETS-to-NPD.ttl
www.reportinghub.no/transform/npd/discovery.ttl
www.reportinghub.no/examples/transform/npd/discovery-2011-07-30.csv
0 → 100644
View file @
7e48a85
This diff could not be displayed because it is too large.
www.reportinghub.no/examples/transform/npd/discovery-2011-07-30.ttl
0 → 100644
View file @
7e48a85
This diff could not be displayed because it is too large.
www.reportinghub.no/schema/SCHEMA_NPD-v1.1.ttl
View file @
7e48a85
...
...
@@ -190,7 +190,7 @@ npd:discoveryField
rdf:
type
owl:
ObjectProperty
;
rdfs:
comment
"Corresponds to Field NPDID field in NPD Discovery table (overview)"
^^
xsd:
string
;
rdfs:
domain
npd:
Discovery
;
rdfs:
range
npd:
WellBore
.
rdfs:
range
npd:
Field
.
npd:
discoveryHCType
rdf:
type
owl:
DatatypeProperty
;
...
...
@@ -223,7 +223,7 @@ npd:discoveryWellBore
npd:
discoveryYear
rdf:
type
owl:
DatatypeProperty
;
rdfs:
domain
npd:
Discovery
;
rdfs:
range
xsd:
date
.
rdfs:
range
xsd:
integer
.
npd:
drilledInProductionLicence
rdf:
type
owl:
ObjectProperty
;
...
...
www.reportinghub.no/spin/SPIN-RH-v1.0.spin.ttl
View file @
7e48a85
...
...
@@ -114,6 +114,28 @@ rhspin:companyById
spl:
valueType
xsd:
string
]
.
rhspin:
discoveryById
rdf:
type
spin:
Function
;
rdfs:
label
"discovery by id"
^^
xsd:
string
;
rdfs:
subClassOf
spl:
URIFunctions
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
([
rdf:
type
sp:
iri
;
sp:
arg1
[
rdf:
type
fn:
concat
;
sp:
arg1
"https://www.reportinghub.no/data/npd/Discovery-"
;
sp:
arg2
[
sp:
varName
"id"
^^
xsd:
string
]
]
])
;
sp:
where
()
]
;
spin:
constraint
[
rdf:
type
spl:
Argument
;
rdfs:
comment
"The NPD id of the Discovery."
^^
xsd:
string
;
spl:
predicate
<http://spinrdf.org/arg#id>
;
spl:
valueType
xsd:
string
]
.
rhspin:
facilityById
rdf:
type
spin:
Function
;
rdfs:
label
"facility by id"
^^
xsd:
string
;
...
...
www.reportinghub.no/transform/TRANSFORM_SPREADSHEETS-to-NPD.ttl
View file @
7e48a85
# baseURI: http://www.reportinghub.no/transform/spreadsheets2npd
# imports: file:///www.reportinghub.no/transform/npd/discovery-2011-07-30
# imports: http://topbraid.org/spin/spinmapl
# imports: file:///www.reportinghub.no/transform/npd/company
# imports: http://www.reportinghub.no/examples/transform/npd/company-2011-07-30
...
...
@@ -13,6 +14,7 @@
# imports: file:///www.reportinghub.no/transform/npd/license-2011-07-30
# imports: file:///www.reportinghub.no/transform/npd/facilityfixed
# imports: file:///www.reportinghub.no/transform/npd/baa
# imports: file:///www.reportinghub.no/transform/npd/discovery
# imports: file:///www.reportinghub.no/transform/npd/licence
# imports: file:///www.reportinghub.no/transform/npd/facilityfixed-2011-07-30
# imports: http://spinrdf.org/spin
...
...
@@ -21,6 +23,7 @@
@prefix
arg:
<http://spinrdf.org/arg#>
.
@prefix
baa-2011-07-30:
<file:///www.reportinghub.no/transform/npd/baa-2011-07-30#>
.
@prefix
company-2011-07-30:
<http://www.reportinghub.no/examples/transform/npd/company-2011-07-30#>
.
@prefix
discovery-2011-07-30:
<file:///www.reportinghub.no/transform/npd/discovery-2011-07-30#>
.
@prefix
facilityfixed-2011-07-30:
<file:///www.reportinghub.no/transform/npd/facilityfixed-2011-07-30#>
.
@prefix
facilitymoveable-2011-07-30:
<file:///www.reportinghub.no/transform/npd/facilitymoveable-2011-07-30#>
.
@prefix
field-2011-07-30:
<http://www.reportinghub.no/transform/npd/field-2011-07-30#>
.
...
...
@@ -206,6 +209,124 @@
<http://www.reportinghub.no/schema/npd#id>
]
.
<file:///www.reportinghub.no/transform/npd/discovery#Discovery>
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
Discovery-Discovery
;
spinmap:
expression
[
rdf:
type
rhspin:
wellBoreByName
;
arg:
wellBoreName
spin:
_arg1
]
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/discovery#wlbName>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#discoveryWellBore>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
Discovery-Discovery
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/discovery#dscNpdidDiscovery>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#id>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
Discovery-Discovery
;
spinmap:
expression
[
rdf:
type
spinmapl:
resourceWithValue
;
sp:
arg1
spin:
_arg1
;
spinmapl:
predicate
<http://www.reportinghub.no/schema/npd#name>
;
spinmapl:
type
<http://www.reportinghub.no/schema/npd#Company>
]
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/discovery#cmpLongName2>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#discoveryOperator>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
Discovery-Discovery
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/discovery#dscCurrentActivityStatus>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#discoveryCurrentActivityStatus>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-0-1
;
spinmap:
context
:
Discovery-Discovery
;
spinmap:
expression
<http://www.reportinghub.no/schema/npd#Discovery>
;
spinmap:
targetPredicate1
rdf:
type
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
Discovery-Discovery
;
spinmap:
expression
[
rdf:
type
xsd:
integer
;
sp:
arg1
spin:
_arg1
]
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/discovery#dscDiscoveryYear>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#discoveryYear>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
Discovery-Discovery
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/discovery#dscHcType>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#discoveryHCType>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
Discovery-Discovery
;
spinmap:
expression
[
rdf:
type
rhspin:
fieldById
;
arg:
id
spin:
_arg1
]
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/discovery#fldNpdidField>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#discoveryField>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
Discovery-Discovery
;
spinmap:
expression
[
rdf:
type
spinmapl:
resourceWithValue
;
sp:
arg1
spin:
_arg1
;
spinmapl:
predicate
<http://www.reportinghub.no/schema/npd#name>
;
spinmapl:
type
<http://www.reportinghub.no/schema/npd#Owner>
]
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/discovery#dscOwnerName>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#discoveryOwner>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
Discovery-Discovery
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/discovery#dscName>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#name>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
Discovery-Discovery
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/discovery#nmaName>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#discoveryMainNcsArea>
]
.
<file:///www.reportinghub.no/transform/npd/facilityfixed#FacilityFixed>
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
...
...
@@ -514,7 +635,7 @@ arg:wellName
<http://www.reportinghub.no/transform/spreadsheets2npd>
rdf:
type
owl:
Ontology
;
rdfs:
comment
"Takes spreadsheets imported from the NPD fact pages and maps them into the NPD ontology."
^^
xsd:
string
;
owl:
imports
<file:///www.reportinghub.no/transform/npd/facilitymoveable-2011-07-30>
,
<http://www.reportinghub.no/transform/npd/field-2011-07-30>
,
<
http://www.reportinghub.no/1.1/schema/npd>
,
<file:///www.reportinghub.no/transform/npd/field
>
,
<http://topbraid.org/spin/spinmapl>
,
<file:///www.reportinghub.no/transform/npd/facilityfixed-2011-07-30>
,
<file:///www.reportinghub.no/transform/npd/licence>
,
<file:///www.reportinghub.no/transform/npd/facilityfixed>
,
<http://www.reportinghub.no/spin/rh>
,
<file:///www.reportinghub.no/transform/npd/baa>
,
<http://www.reportinghub.no/examples/transform/npd/company-2011-07-30>
,
<file:///www.reportinghub.no/transform/npd/facilitymoveable>
,
<file:///www.reportinghub.no/transform/npd/license-2011-07-30>
,
<file:///www.reportinghub.no/transform/wellbore-npdid-overview>
,
<file:///www.reportinghub.no/transform/npd/company>
,
<http://spinrdf.org/spin>
,
<file:///www.reportinghub.no/transform/npd/baa-2011-07-30>
;
owl:
imports
<file:///www.reportinghub.no/transform/npd/facilitymoveable-2011-07-30>
,
<http://www.reportinghub.no/transform/npd/field-2011-07-30>
,
<
file:///www.reportinghub.no/transform/npd/discovery>
,
<http://www.reportinghub.no/1.1/schema/npd>
,
<file:///www.reportinghub.no/transform/npd/field>
,
<file:///www.reportinghub.no/transform/npd/discovery-2011-07-30
>
,
<http://topbraid.org/spin/spinmapl>
,
<file:///www.reportinghub.no/transform/npd/facilityfixed-2011-07-30>
,
<file:///www.reportinghub.no/transform/npd/licence>
,
<file:///www.reportinghub.no/transform/npd/facilityfixed>
,
<http://www.reportinghub.no/spin/rh>
,
<file:///www.reportinghub.no/transform/npd/baa>
,
<http://www.reportinghub.no/examples/transform/npd/company-2011-07-30>
,
<file:///www.reportinghub.no/transform/npd/facilitymoveable>
,
<file:///www.reportinghub.no/transform/npd/license-2011-07-30>
,
<file:///www.reportinghub.no/transform/wellbore-npdid-overview>
,
<file:///www.reportinghub.no/transform/npd/company>
,
<http://spinrdf.org/spin>
,
<file:///www.reportinghub.no/transform/npd/baa-2011-07-30>
;
owl:
versionInfo
"0.1.0"
^^
xsd:
string
.
:
BAA-BusinessArrangementArea
...
...
@@ -535,6 +656,15 @@ arg:wellName
]
;
spinmap:
targetClass
<http://www.reportinghub.no/schema/npd#Company>
.
:
Discovery-Discovery
rdf:
type
spinmap:
Context
;
spinmap:
sourceClass
<file:///www.reportinghub.no/transform/npd/discovery#Discovery>
;
spinmap:
target
[
rdf:
type
:
buildDiscoveryURI
;
spinmap:
source
spinmap:
_source
]
;
spinmap:
targetClass
<http://www.reportinghub.no/schema/npd#Discovery>
.
:
FacilityFixed-FixedFacility
rdf:
type
spinmap:
Context
;
spinmap:
sourceClass
<file:///www.reportinghub.no/transform/npd/facilityfixed#FacilityFixed>
;
...
...
@@ -627,6 +757,22 @@ arg:wellName
sp:
where
()
]
.
:
buildDiscoveryURI
rdf:
type
spinmap:
TargetFunction
;
rdfs:
label
"build Discovery URI"
^^
xsd:
string
;
rdfs:
subClassOf
spinmap:
TargetFunctions
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
([
rdf:
type
rhspin:
discoveryById
;
arg:
id
[
rdf:
type
spl:
object
;
sp:
arg1
[
sp:
varName
"source"
^^
xsd:
string
]
;
sp:
arg2
<file:///www.reportinghub.no/transform/npd/discovery#dscNpdidDiscovery>
]
])
;
sp:
where
()
]
.
:
buildFacilityURI
rdf:
type
spinmap:
TargetFunction
;
rdfs:
label
"build facility URI"
^^
xsd:
string
;
...
...
www.reportinghub.no/transform/npd/discovery.ttl
0 → 100644
View file @
7e48a85
# baseURI: file:///www.reportinghub.no/transform/npd/discovery
# imports: http://topbraid.org/tables
@prefix
discovery:
<file:///www.reportinghub.no/transform/npd/discovery#>
.
@prefix
owl:
<http://www.w3.org/2002/07/owl#>
.
@prefix
rdf:
<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
.
@prefix
rdfs:
<http://www.w3.org/2000/01/rdf-schema#>
.
@prefix
tables:
<http://topbraid.org/tables#>
.
@prefix
xsd:
<http://www.w3.org/2001/XMLSchema#>
.
<file:///www.reportinghub.no/transform/npd/discovery>
rdf:
type
owl:
Ontology
;
owl:
imports
<http://topbraid.org/tables>
.
discovery:
Discovery
rdf:
type
owl:
Class
;
rdfs:
label
"discovery"
^^
xsd:
string
;
tables:
sheetIndex
"0"
^^
xsd:
int
.
discovery:
cmpLongName2
rdf:
type
owl:
DatatypeProperty
;
rdfs:
domain
discovery:
Discovery
;
rdfs:
label
"cmpLongName2"
;
rdfs:
range
xsd:
string
;
tables:
columnIndex
"1"
^^
xsd:
int
.
discovery:
datesyncNPD
rdf:
type
owl:
DatatypeProperty
;
rdfs:
domain
discovery:
Discovery
;
rdfs:
label
"DatesyncNPD"
;
rdfs:
range
xsd:
string
;
tables:
columnIndex
"17"
^^
xsd:
int
.
discovery:
dscCurrentActivityStatus
rdf:
type
owl:
DatatypeProperty
;
rdfs:
domain
discovery:
Discovery
;
rdfs:
label
"dscCurrentActivityStatus"
;
rdfs:
range
xsd:
string
;
tables:
columnIndex
"2"
^^
xsd:
int
.
discovery:
dscDateFromInclInField
rdf:
type
owl:
DatatypeProperty
;
rdfs:
domain
discovery:
Discovery
;
rdfs:
label
"dscDateFromInclInField"
;
rdfs:
range
xsd:
string
;
tables:
columnIndex
"7"
^^
xsd:
int
.
discovery:
dscDiscoveryYear
rdf:
type
owl:
DatatypeProperty
;
rdfs:
domain
discovery:
Discovery
;
rdfs:
label
"dscDiscoveryYear"
;
rdfs:
range
xsd:
string
;
tables:
columnIndex
"8"
^^
xsd:
int
.
discovery:
dscFactMapUrl
rdf:
type
owl:
DatatypeProperty
;
rdfs:
domain
discovery:
Discovery
;
rdfs:
label
"dscFactMapUrl"
;
rdfs:
range
xsd:
string
;
tables:
columnIndex
"16"
^^
xsd:
int
.
discovery:
dscFactPageUrl
rdf:
type
owl:
DatatypeProperty
;
rdfs:
domain
discovery:
Discovery
;
rdfs:
label
"dscFactPageUrl"
;
rdfs:
range
xsd:
string
;
tables:
columnIndex
"15"
^^
xsd:
int
.
discovery:
dscHcType
rdf:
type
owl:
DatatypeProperty
;
rdfs:
domain
discovery:
Discovery
;
rdfs:
label
"dscHcType"
;
rdfs:
range
xsd:
string
;
tables:
columnIndex
"3"
^^
xsd:
int
.
discovery:
dscName
rdf:
type
owl:
DatatypeProperty
;
rdfs:
domain
discovery:
Discovery
;
rdfs:
label
"dscName"
^^
xsd:
string
;
rdfs:
range
xsd:
string
;
tables:
columnIndex
"0"
^^
xsd:
int
.
discovery:
dscNpdidDiscovery
rdf:
type
owl:
DatatypeProperty
;
rdfs:
domain
discovery:
Discovery
;
rdfs:
label
"dscNpdidDiscovery"
;
rdfs:
range
xsd:
string
;
tables:
columnIndex
"12"
^^
xsd:
int
.
discovery:
dscOwnerKind
rdf:
type
owl:
DatatypeProperty
;
rdfs:
domain
discovery:
Discovery
;
rdfs:
label
"dscOwnerKind"
;
rdfs:
range
xsd:
string
;
tables:
columnIndex
"10"
^^
xsd:
int
.
discovery:
dscOwnerName
rdf:
type
owl:
DatatypeProperty
;
rdfs:
domain
discovery:
Discovery
;
rdfs:
label
"dscOwnerName"
;
rdfs:
range
xsd:
string
;
tables:
columnIndex
"11"
^^
xsd:
int
.
discovery:
dscResInclInDiscoveryName
rdf:
type
owl:
DatatypeProperty
;
rdfs:
domain
discovery:
Discovery
;
rdfs:
label
"dscResInclInDiscoveryName"
;
rdfs:
range
xsd:
string
;
tables:
columnIndex
"9"
^^
xsd:
int
.
discovery:
fldName
rdf:
type
owl:
DatatypeProperty
;
rdfs:
domain
discovery:
Discovery
;
rdfs:
label
"fldName"
;
rdfs:
range
xsd:
string
;
tables:
columnIndex
"6"
^^
xsd:
int
.
discovery:
fldNpdidField
rdf:
type
owl:
DatatypeProperty
;
rdfs:
domain
discovery:
Discovery
;
rdfs:
label
"fldNpdidField"
;
rdfs:
range
xsd:
string
;
tables:
columnIndex
"13"
^^
xsd:
int
.
discovery:
nmaName
rdf:
type
owl:
DatatypeProperty
;
rdfs:
domain
discovery:
Discovery
;
rdfs:
label
"nmaName"
;
rdfs:
range
xsd:
string
;
tables:
columnIndex
"5"
^^
xsd:
int
.
discovery:
wlbName
rdf:
type
owl:
DatatypeProperty
;
rdfs:
domain
discovery:
Discovery
;
rdfs:
label
"wlbName"
;
rdfs:
range
xsd:
string
;
tables:
columnIndex
"4"
^^
xsd:
int
.
discovery:
wlbNpdidWellbore
rdf:
type
owl:
DatatypeProperty
;
rdfs:
domain
discovery:
Discovery
;
rdfs:
label
"wlbNpdidWellbore"
;
rdfs:
range
xsd:
string
;
tables:
columnIndex
"14"
^^
xsd:
int
.
Please
register
or
login
to post a comment