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-12-15 13:42:15 +1000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
666ad2b86a6cb81364e416f0764020e2b30a2942
666ad2b8
1 parent
32963f57
Added BAA operator import
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
108 additions
and
1 deletions
www.reportinghub.no/np/schema/1.0/SCHEMA_NPD-v1.0.ttl
www.reportinghub.no/np/transform/TRANSFORM_SPREADSHEETS-to-NPD.ttl
www.reportinghub.no/np/transform/baaoperator.ttl
www.reportinghub.no/np/schema/1.0/SCHEMA_NPD-v1.0.ttl
View file @
666ad2b
...
...
@@ -314,6 +314,13 @@ npd:WellBorePurpose
rdfs:
label
"Well bore purpose"
^^
xsd:
string
;
rdfs:
subClassOf
npd:
Enumeration
.
npd:
baaOperator
rdf:
type
owl:
ObjectProperty
;
rdfs:
comment
"The current operator of a BAA."
^^
xsd:
string
;
rdfs:
domain
npd:
BusinessArrangementArea
;
rdfs:
label
"BAA operator"
^^
xsd:
string
;
rdfs:
range
<http://www.reportinghub.no/ep/schema/organization#Company>
.
npd:
baaShared
rdf:
type
owl:
ObjectProperty
;
rdfs:
domain
npd:
ShareOfBAA
;
...
...
www.reportinghub.no/np/transform/TRANSFORM_SPREADSHEETS-to-NPD.ttl
View file @
666ad2b
# baseURI: http://www.reportinghub.no/transform/spreadsheets2npd
# imports: file:///www.reportinghub.no/transform/npd/baa
# imports: file:///www.reportinghub.no/transform/npd/baalicensee
# imports: file:///www.reportinghub.no/transform/npd/baaoperator
# imports: file:///www.reportinghub.no/transform/npd/company
# imports: file:///www.reportinghub.no/transform/npd/discovery
# imports: file:///www.reportinghub.no/transform/npd/facilityfixed
...
...
@@ -174,6 +175,27 @@
<http://www.reportinghub.no/np/schema/npd#percentageOfShare>
]
.
<file:///www.reportinghub.no/transform/npd/baaoperator#BAAOperator>
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-0-1
;
spinmap:
context
:
BAAOperator-BusinessArrangementArea
;
spinmap:
expression
<http://www.reportinghub.no/np/schema/npd#BusinessArrangementArea>
;
spinmap:
targetPredicate1
rdf:
type
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
BAAOperator-BusinessArrangementArea
;
spinmap:
expression
[
rdf:
type
rhspin:
companyById
;
arg:
id
spin:
_arg1
]
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/baaoperator#cmpNpdidCompany>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/np/schema/npd#baaOperator>
]
.
<file:///www.reportinghub.no/transform/npd/company#Company>
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
...
...
@@ -1410,7 +1432,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/baa>
,
<file:///www.reportinghub.no/transform/npd/baalicensee>
,
<file:///www.reportinghub.no/transform/npd/company>
,
<file:///www.reportinghub.no/transform/npd/discovery>
,
<file:///www.reportinghub.no/transform/npd/facilityfixed>
,
<file:///www.reportinghub.no/transform/npd/facilitymoveable>
,
<file:///www.reportinghub.no/transform/npd/field>
,
<file:///www.reportinghub.no/transform/npd/licence>
,
<file:///www.reportinghub.no/transform/npd/licenceop>
,
<file:///www.reportinghub.no/transform/npd/licensee>
,
<file:///www.reportinghub.no/transform/npd/tufoperator>
,
<file:///www.reportinghub.no/transform/npd/wbdev>
,
<file:///www.reportinghub.no/transform/npd/wbexp>
,
<file:///www.reportinghub.no/transform/npd/wbid>
,
<file:///www.reportinghub.no/transform/npd/wbsha>
,
<http://spinrdf.org/spin>
,
<http://topbraid.org/spin/spinmapl>
,
<http://www.reportinghub.no/ep/schema/1.0/core>
,
<http://www.reportinghub.no/ep/schema/1.0/facility>
,
<http://www.reportinghub.no/ep/schema/1.0/organization>
,
<http://www.reportinghub.no/ep/schema/1.0/well>
,
<http://www.reportinghub.no/np/schema/1.0/npd>
,
<http://www.reportinghub.no/spin/rh>
;
owl:
imports
<file:///www.reportinghub.no/transform/npd/baa>
,
<file:///www.reportinghub.no/transform/npd/baalicensee>
,
<file:///www.reportinghub.no/transform/npd/
baaoperator>
,
<file:///www.reportinghub.no/transform/npd/
company>
,
<file:///www.reportinghub.no/transform/npd/discovery>
,
<file:///www.reportinghub.no/transform/npd/facilityfixed>
,
<file:///www.reportinghub.no/transform/npd/facilitymoveable>
,
<file:///www.reportinghub.no/transform/npd/field>
,
<file:///www.reportinghub.no/transform/npd/licence>
,
<file:///www.reportinghub.no/transform/npd/licenceop>
,
<file:///www.reportinghub.no/transform/npd/licensee>
,
<file:///www.reportinghub.no/transform/npd/tufoperator>
,
<file:///www.reportinghub.no/transform/npd/wbdev>
,
<file:///www.reportinghub.no/transform/npd/wbexp>
,
<file:///www.reportinghub.no/transform/npd/wbid>
,
<file:///www.reportinghub.no/transform/npd/wbsha>
,
<http://spinrdf.org/spin>
,
<http://topbraid.org/spin/spinmapl>
,
<http://www.reportinghub.no/ep/schema/1.0/core>
,
<http://www.reportinghub.no/ep/schema/1.0/facility>
,
<http://www.reportinghub.no/ep/schema/1.0/organization>
,
<http://www.reportinghub.no/ep/schema/1.0/well>
,
<http://www.reportinghub.no/np/schema/1.0/npd>
,
<http://www.reportinghub.no/spin/rh>
;
owl:
versionInfo
"0.1.0"
^^
xsd:
string
.
:
BAA-BusinessArrangementArea
...
...
@@ -1433,6 +1455,15 @@ arg:wellName
]
;
spinmap:
targetClass
<http://www.reportinghub.no/np/schema/npd#ShareOfBAA>
.
:
BAAOperator-BusinessArrangementArea
rdf:
type
spinmap:
Context
;
spinmap:
sourceClass
<file:///www.reportinghub.no/transform/npd/baaoperator#BAAOperator>
;
spinmap:
target
[
rdf:
type
:
buildBAAOperatorURI
;
spinmap:
source
spinmap:
_source
]
;
spinmap:
targetClass
<http://www.reportinghub.no/np/schema/npd#BusinessArrangementArea>
.
:
Company-Company
rdf:
type
spinmap:
Context
;
spinmap:
sourceClass
<file:///www.reportinghub.no/transform/npd/company#Company>
;
...
...
@@ -1605,6 +1636,22 @@ arg:wellName
rdf:
type
rdf:
Property
;
rdfs:
label
"baa kind"
^^
xsd:
string
.
:
buildBAAOperatorURI
rdf:
type
spinmap:
TargetFunction
;
rdfs:
label
"build BAA operator URI"
^^
xsd:
string
;
rdfs:
subClassOf
spinmap:
TargetFunctions
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
([
rdf:
type
rhspin:
baaById
;
arg:
id
[
rdf:
type
spl:
object
;
sp:
arg1
[
sp:
varName
"source"
^^
xsd:
string
]
;
sp:
arg2
<file:///www.reportinghub.no/transform/npd/baaoperator#baaNpdidBsnsArrArea>
]
])
;
sp:
where
()
]
.
:
buildBAAURI
rdf:
type
spinmap:
TargetFunction
;
rdfs:
label
"build BAA URI"
^^
xsd:
string
;
...
...
www.reportinghub.no/np/transform/baaoperator.ttl
0 → 100644
View file @
666ad2b
# baseURI: file:///www.reportinghub.no/transform/npd/baaoperator
# imports: http://topbraid.org/tables
@prefix
baaoperator:
<file:///www.reportinghub.no/transform/npd/baaoperator#>
.
@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/baaoperator>
rdf:
type
owl:
Ontology
;
owl:
imports
<http://topbraid.org/tables>
.
baaoperator:
BAAOperator
rdf:
type
owl:
Class
;
rdfs:
label
"baaoperator"
;
tables:
sheetIndex
"0"
^^
xsd:
int
.
baaoperator:
baaName
rdf:
type
owl:
DatatypeProperty
;
rdfs:
domain
baaoperator:
BAAOperator
;
rdfs:
label
"baaName"
^^
xsd:
string
;
rdfs:
range
xsd:
string
;
tables:
columnIndex
"0"
^^
xsd:
int
.
baaoperator:
baaNpdidBsnsArrArea
rdf:
type
owl:
DatatypeProperty
;
rdfs:
domain
baaoperator:
BAAOperator
;
rdfs:
label
"baaNpdidBsnsArrArea"
;
rdfs:
range
xsd:
string
;
tables:
columnIndex
"2"
^^
xsd:
int
.
baaoperator:
cmpLongName
rdf:
type
owl:
DatatypeProperty
;
rdfs:
domain
baaoperator:
BAAOperator
;
rdfs:
label
"cmpLongName"
;
rdfs:
range
xsd:
string
;
tables:
columnIndex
"1"
^^
xsd:
int
.
baaoperator:
cmpNpdidCompany
rdf:
type
owl:
DatatypeProperty
;
rdfs:
domain
baaoperator:
BAAOperator
;
rdfs:
label
"cmpNpdidCompany"
;
rdfs:
range
xsd:
string
;
tables:
columnIndex
"3"
^^
xsd:
int
.
baaoperator:
datesyncNPD
rdf:
type
owl:
DatatypeProperty
;
rdfs:
domain
baaoperator:
BAAOperator
;
rdfs:
label
"datesyncNPD"
;
rdfs:
range
xsd:
string
;
tables:
columnIndex
"4"
^^
xsd:
int
.
Please
register
or
login
to post a comment