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
David Leal
2011-11-11 20:21:09 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a5ba9b526ba6c2022b67c0522e1303a98b416d25
a5ba9b52
1 parent
d509599e
New function in DPR-lib.
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
207 additions
and
207 deletions
www.reportinghub.no/ep/spin/SPIN_EPIM-DPR-lib-v1.1.spin.ttl
www.reportinghub.no/ep/transform/TRANSFORM_dpr-dailyProductionActivity-v1.1.1.ttl
www.reportinghub.no/ep/spin/SPIN_EPIM-DPR-lib-v1.1.spin.ttl
View file @
a5ba9b5
This diff could not be displayed because it is too large.
www.reportinghub.no/ep/transform/TRANSFORM_dpr-dailyProductionActivity-v1.1.1.ttl
View file @
a5ba9b5
...
...
@@ -21,152 +21,112 @@
<http://www.reportinghub.no/ep/transform/1.0/dpr/dailyProductionActivity>
rdf:
type
owl:
Ontology
;
owl:
imports
<http://
www.reportinghub.no/ep/schema/1.0/production-well>
,
<http://www.reportinghub.no/ep/dpr/spin/1.1/lib>
,
<http://www.reportinghub.no/ep/schema/1.0/activity>
,
<http://www.reportinghub.no/ep/schema/1.0/production-core>
,
<http://www.witsml.org/schemas/131/addendum/combo>
,
<http://spinrdf.org/spin
>
;
owl:
imports
<http://
spinrdf.org/spin>
,
<http://www.witsml.org/schemas/131/addendum/combo>
,
<http://www.reportinghub.no/ep/schema/1.0/production-core>
,
<http://www.reportinghub.no/ep/schema/1.0/activity>
,
<http://www.reportinghub.no/ep/dpr/spin/1.1/lib>
,
<http://www.reportinghub.no/ep/schema/1.0/production-well
>
;
owl:
versionInfo
"Created with TopBraid Composer"
^^
xsd:
string
.
<http://www.witsml.org/schemas/131/addendum/combo#A_Global-WITSMLComposite>
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 1000
3 Set the overall daily activity installation and its operator
"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b1
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/production-activity#productionOperator>
;
rdfs:
comment
"STEP 1000
1 Create the DailyProductionReport
"
^^
xsd:
string
;
sp:
templates
([
sp:
object
<http://www.reportinghub.no/ep/schema/production-report#DailyProductionReport>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"dailyProduction
Activity
"
^^
xsd:
string
[
sp:
varName
"dailyProduction
Report
"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/organization#Company>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
]
[
sp:
object
<http://www.reportinghub.no/np/schema/npd#OperatingCompany>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
]
[
sp:
object
[
sp:
varName
"
operator
Name"
^^
xsd:
string
[
sp:
varName
"
doc
Name"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
sp:
subject
_:
b1
]
[
sp:
object
_:
b2
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility>
;
sp:
subject
[
sp:
varName
"dailyProduction
Activity
"
^^
xsd:
string
[
sp:
varName
"dailyProduction
Report
"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b2
]
[
sp:
object
[
sp:
varName
"
productionInstallation
"
^^
xsd:
string
[
sp:
varName
"
docDate
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
_:
b2
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/facility#ProductionFacility>
;
sp:
predicate
rdf:
type
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/production-report#dateCoveredByReport>
;
sp:
subject
[
sp:
varName
"
productionInstallation
"
^^
xsd:
string
[
sp:
varName
"
dailyProductionReport
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
productionInstallationTyp
e"
^^
xsd:
string
[
sp:
varName
"
fileCreationDat
e"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#createdAt>
;
sp:
subject
[
sp:
varName
"
productionInstallation
"
^^
xsd:
string
[
sp:
varName
"
dailyProductionReport
"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
spin:
_this
;
]
[
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
[
sp:
varName
"dailyProductionReport"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
[
sp:
varName
"documentInfoRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.witsml.org/schemas/131/addendum/combo#documentInfoRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"d
ailyProductionActivity
"
^^
xsd:
string
[
sp:
varName
"d
ocumentNameRef
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.
reportinghub.no/ep/schema/report#reportOn
>
;
sp:
predicate
<http://www.
witsml.org/schemas/131/addendum/combo#documentNameRef
>
;
sp:
subject
[
sp:
varName
"d
ailyProductionReport
"
^^
xsd:
string
[
sp:
varName
"d
ocumentInfoRef
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
productionOperationSetRef
"
^^
xsd:
string
[
sp:
varName
"
documentName
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.witsml.org/schemas/131/addendum/combo#productionOperationSetRef>
;
sp:
subject
spin:
_this
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
[
sp:
varName
"documentNameRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
productionOperationRef
"
^^
xsd:
string
[
sp:
varName
"
documentDate
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.witsml.org/schemas/131/addendum/combo#
productionOperationRef
>
;
sp:
predicate
<http://www.witsml.org/schemas/131/addendum/combo#
documentDate
>
;
sp:
subject
[
sp:
varName
"
productionOperationSet
Ref"
^^
xsd:
string
[
sp:
varName
"
documentInfo
Ref"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"installationRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.witsml.org/schemas/131/addendum/combo#installationRef>
;
sp:
subject
[
sp:
varName
"productionOperationRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"installationName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
[
sp:
varName
"installationRef"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"installationKind"
^^
xsd:
string
]
;
sp:
predicate
<http://www.witsml.org/schemas/131/addendum/combo#kindRef>
;
sp:
subject
[
sp:
varName
"installationRef"
^^
xsd:
string
]
])
])
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"operator"
^^
xsd:
string
[
sp:
varName
"fileCreationInformationRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.witsml.org/schemas/131/addendum/combo#
operator
Ref>
;
sp:
predicate
<http://www.witsml.org/schemas/131/addendum/combo#
fileCreationInformation
Ref>
;
sp:
subject
[
sp:
varName
"
productionOperationRef
"
^^
xsd:
string
[
sp:
varName
"
documentInfoRe
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
operatorNam
e"
^^
xsd:
string
[
sp:
varName
"
fileCreationDat
e"
^^
xsd:
string
]
;
sp:
predicate
<http://www.witsml.org/schemas/131/addendum/combo#
nam
e>
;
sp:
predicate
<http://www.witsml.org/schemas/131/addendum/combo#
fileCreationDat
e>
;
sp:
subject
[
sp:
varName
"
operator
"
^^
xsd:
string
[
sp:
varName
"
fileCreationInformationRef
"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
[
sp:
varName
"installationName"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"normalizedInstallationName"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-dpr-spin-lib:
buildProductionFacilityURI
;
sp:
arg1
[
sp:
varName
"normalizedInstallationName"
^^
xsd:
string
sp:
arg1
[
sp:
varName
"documentName"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"
productionInstallation
"
^^
xsd:
string
[
sp:
varName
"
normalizedDocumentName
"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-dpr-spin-lib:
selectProductionFacilityType
;
sp:
arg1
[
sp:
varName
"installationKind"
^^
xsd:
string
[
rdf:
type
ep-dpr-spin-lib:
buildDailyProductionReportURI
;
sp:
arg1
[
sp:
varName
"normalizedDocumentName"
^^
xsd:
string
]
;
sp:
arg2
[
sp:
varName
"documentDate"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"
productionInstallationType
"
^^
xsd:
string
[
sp:
varName
"
dailyProductionReport
"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 10002
b Create the DailyProductionActivity - start and end dat
es
rdfs:
comment
"""STEP 10002
a Create the DailyProductionActivity - start and end date-tim
es
The DPR transform will fall in a heap unless productionOperation/installationRef is supplied. The XML schema says it is optional."""
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"dailyProductionActivity"
^^
xsd:
string
...
...
@@ -181,14 +141,14 @@ The DPR transform will fall in a heap unless productionOperation/installationRef
[
sp:
varName
"dailyProductionActivity"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"startDate"
^^
xsd:
string
[
sp:
varName
"startDate
Time
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#startedAt>
;
sp:
subject
[
sp:
varName
"dailyProductionActivity"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"endDate"
^^
xsd:
string
[
sp:
varName
"endDate
Time
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#finishedAt>
;
sp:
subject
...
...
@@ -200,7 +160,7 @@ The DPR transform will fall in a heap unless productionOperation/installationRef
[
sp:
varName
"annualProductionActivityToDate"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"endDate"
^^
xsd:
string
[
sp:
varName
"endDate
Time
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#finishedAt>
;
sp:
subject
...
...
@@ -219,7 +179,7 @@ The DPR transform will fall in a heap unless productionOperation/installationRef
[
sp:
varName
"dailyProductionActivity"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"endDate"
^^
xsd:
string
[
sp:
varName
"endDate
Time
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#finishedAt>
;
sp:
subject
...
...
@@ -272,16 +232,16 @@ The DPR transform will fall in a heap unless productionOperation/installationRef
[
sp:
varName
"installationRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"startDate"
^^
xsd:
string
[
sp:
varName
"startDate
Time
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.witsml.org/schemas/131/addendum/combo#d
ate
Start>
;
sp:
predicate
<http://www.witsml.org/schemas/131/addendum/combo#d
Tim
Start>
;
sp:
subject
[
sp:
varName
"productionOperationRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"endDate"
^^
xsd:
string
[
sp:
varName
"endDate
Time
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.witsml.org/schemas/131/addendum/combo#d
ate
End>
;
sp:
predicate
<http://www.witsml.org/schemas/131/addendum/combo#d
Tim
End>
;
sp:
subject
[
sp:
varName
"productionOperationRef"
^^
xsd:
string
]
...
...
@@ -301,7 +261,7 @@ The DPR transform will fall in a heap unless productionOperation/installationRef
]
;
sp:
arg2
[
sp:
varName
"startDateTime"
^^
xsd:
string
]
;
sp:
arg3
[
sp:
varName
"endDate"
^^
xsd:
string
sp:
arg3
[
sp:
varName
"endDate
Time
"
^^
xsd:
string
]
]
;
sp:
variable
...
...
@@ -312,7 +272,7 @@ The DPR transform will fall in a heap unless productionOperation/installationRef
[
rdf:
type
ep-dpr-spin-lib:
buildAnnualProductionActivityToEndOfPeriodURI
;
sp:
arg1
[
sp:
varName
"normalizedInstallationName"
^^
xsd:
string
]
;
sp:
arg2
[
sp:
varName
"endDate"
^^
xsd:
string
sp:
arg2
[
sp:
varName
"endDate
Time
"
^^
xsd:
string
]
]
;
sp:
variable
...
...
@@ -323,7 +283,7 @@ The DPR transform will fall in a heap unless productionOperation/installationRef
[
rdf:
type
ep-dpr-spin-lib:
buildProductionActivityToDateURI
;
sp:
arg1
[
sp:
varName
"normalizedInstallationName"
^^
xsd:
string
]
;
sp:
arg2
[
sp:
varName
"endDate"
^^
xsd:
string
sp:
arg2
[
sp:
varName
"endDate
Time
"
^^
xsd:
string
]
]
;
sp:
variable
...
...
@@ -333,106 +293,7 @@ The DPR transform will fall in a heap unless productionOperation/installationRef
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 10001 Create the DailyProductionReport"
^^
xsd:
string
;
sp:
templates
([
sp:
object
<http://www.reportinghub.no/ep/schema/production-report#DailyProductionReport>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"dailyProductionReport"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"docName"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
sp:
subject
[
sp:
varName
"dailyProductionReport"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"docDate"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/production-report#dateCoveredByReport>
;
sp:
subject
[
sp:
varName
"dailyProductionReport"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"fileCreationDate"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#createdAt>
;
sp:
subject
[
sp:
varName
"dailyProductionReport"
^^
xsd:
string
]
]
[
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
[
sp:
varName
"dailyProductionReport"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
[
sp:
varName
"documentInfoRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.witsml.org/schemas/131/addendum/combo#documentInfoRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"documentNameRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.witsml.org/schemas/131/addendum/combo#documentNameRef>
;
sp:
subject
[
sp:
varName
"documentInfoRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"documentName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
[
sp:
varName
"documentNameRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"documentDate"
^^
xsd:
string
]
;
sp:
predicate
<http://www.witsml.org/schemas/131/addendum/combo#documentDate>
;
sp:
subject
[
sp:
varName
"documentInfoRef"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"fileCreationInformationRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.witsml.org/schemas/131/addendum/combo#fileCreationInformationRef>
;
sp:
subject
[
sp:
varName
"documentInfoRe"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"fileCreationDate"
^^
xsd:
string
]
;
sp:
predicate
<http://www.witsml.org/schemas/131/addendum/combo#fileCreationDate>
;
sp:
subject
[
sp:
varName
"fileCreationInformationRef"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
[
sp:
varName
"documentName"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"normalizedDocumentName"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildDailyProductionReportURI
;
sp:
arg1
[
sp:
varName
"normalizedDocumentName"
^^
xsd:
string
]
;
sp:
arg2
[
sp:
varName
"documentDate"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"dailyProductionReport"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 10002a Create the DailyProductionActivity - start and end date-times
rdfs:
comment
"""STEP 10002b Create the DailyProductionActivity - start and end dates
The DPR transform will fall in a heap unless productionOperation/installationRef is supplied. The XML schema says it is optional."""
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"dailyProductionActivity"
^^
xsd:
string
...
...
@@ -447,14 +308,14 @@ The DPR transform will fall in a heap unless productionOperation/installationRef
[
sp:
varName
"dailyProductionActivity"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"startDate
Time
"
^^
xsd:
string
[
sp:
varName
"startDate"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#startedAt>
;
sp:
subject
[
sp:
varName
"dailyProductionActivity"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"endDate
Time
"
^^
xsd:
string
[
sp:
varName
"endDate"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#finishedAt>
;
sp:
subject
...
...
@@ -466,7 +327,7 @@ The DPR transform will fall in a heap unless productionOperation/installationRef
[
sp:
varName
"annualProductionActivityToDate"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"endDate
Time
"
^^
xsd:
string
[
sp:
varName
"endDate"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#finishedAt>
;
sp:
subject
...
...
@@ -485,7 +346,7 @@ The DPR transform will fall in a heap unless productionOperation/installationRef
[
sp:
varName
"dailyProductionActivity"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"endDate
Time
"
^^
xsd:
string
[
sp:
varName
"endDate"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#finishedAt>
;
sp:
subject
...
...
@@ -538,16 +399,16 @@ The DPR transform will fall in a heap unless productionOperation/installationRef
[
sp:
varName
"installationRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"startDate
Time
"
^^
xsd:
string
[
sp:
varName
"startDate"
^^
xsd:
string
]
;
sp:
predicate
<http://www.witsml.org/schemas/131/addendum/combo#d
Tim
Start>
;
sp:
predicate
<http://www.witsml.org/schemas/131/addendum/combo#d
ate
Start>
;
sp:
subject
[
sp:
varName
"productionOperationRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"endDate
Time
"
^^
xsd:
string
[
sp:
varName
"endDate"
^^
xsd:
string
]
;
sp:
predicate
<http://www.witsml.org/schemas/131/addendum/combo#d
Tim
End>
;
sp:
predicate
<http://www.witsml.org/schemas/131/addendum/combo#d
ate
End>
;
sp:
subject
[
sp:
varName
"productionOperationRef"
^^
xsd:
string
]
...
...
@@ -567,7 +428,7 @@ The DPR transform will fall in a heap unless productionOperation/installationRef
]
;
sp:
arg2
[
sp:
varName
"startDateTime"
^^
xsd:
string
]
;
sp:
arg3
[
sp:
varName
"endDate
Time
"
^^
xsd:
string
sp:
arg3
[
sp:
varName
"endDate"
^^
xsd:
string
]
]
;
sp:
variable
...
...
@@ -578,7 +439,7 @@ The DPR transform will fall in a heap unless productionOperation/installationRef
[
rdf:
type
ep-dpr-spin-lib:
buildAnnualProductionActivityToEndOfPeriodURI
;
sp:
arg1
[
sp:
varName
"normalizedInstallationName"
^^
xsd:
string
]
;
sp:
arg2
[
sp:
varName
"endDate
Time
"
^^
xsd:
string
sp:
arg2
[
sp:
varName
"endDate"
^^
xsd:
string
]
]
;
sp:
variable
...
...
@@ -589,11 +450,150 @@ The DPR transform will fall in a heap unless productionOperation/installationRef
[
rdf:
type
ep-dpr-spin-lib:
buildProductionActivityToDateURI
;
sp:
arg1
[
sp:
varName
"normalizedInstallationName"
^^
xsd:
string
]
;
sp:
arg2
[
sp:
varName
"endDate
Time
"
^^
xsd:
string
sp:
arg2
[
sp:
varName
"endDate"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"productionActivityToDate"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 10003 Set the overall daily activity installation and its operator"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b1
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/production-activity#productionOperator>
;
sp:
subject
[
sp:
varName
"dailyProductionActivity"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/organization#Company>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
]
[
sp:
object
<http://www.reportinghub.no/np/schema/npd#OperatingCompany>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
]
[
sp:
object
[
sp:
varName
"operatorName"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
sp:
subject
_:
b1
]
[
sp:
object
_:
b2
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility>
;
sp:
subject
[
sp:
varName
"dailyProductionActivity"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b2
]
[
sp:
object
[
sp:
varName
"productionInstallation"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
_:
b2
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/facility#ProductionFacility>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productionInstallation"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"productionInstallationType"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productionInstallation"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
[
sp:
varName
"dailyProductionReport"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"dailyProductionActivity"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#reportOn>
;
sp:
subject
[
sp:
varName
"dailyProductionReport"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"productionOperationSetRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.witsml.org/schemas/131/addendum/combo#productionOperationSetRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"productionOperationRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.witsml.org/schemas/131/addendum/combo#productionOperationRef>
;
sp:
subject
[
sp:
varName
"productionOperationSetRef"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"installationRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.witsml.org/schemas/131/addendum/combo#installationRef>
;
sp:
subject
[
sp:
varName
"productionOperationRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"installationName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
[
sp:
varName
"installationRef"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"installationKind"
^^
xsd:
string
]
;
sp:
predicate
<http://www.witsml.org/schemas/131/addendum/combo#kindRef>
;
sp:
subject
[
sp:
varName
"installationRef"
^^
xsd:
string
]
])
])
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"operator"
^^
xsd:
string
]
;
sp:
predicate
<http://www.witsml.org/schemas/131/addendum/combo#operatorRef>
;
sp:
subject
[
sp:
varName
"productionOperationRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"operatorName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.witsml.org/schemas/131/addendum/combo#name>
;
sp:
subject
[
sp:
varName
"operator"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
[
sp:
varName
"installationName"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"normalizedInstallationName"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-dpr-spin-lib:
buildProductionFacilityURI
;
sp:
arg1
[
sp:
varName
"normalizedInstallationName"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"productionInstallation"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-dpr-spin-lib:
selectProductionFacilityType
;
sp:
arg1
[
sp:
varName
"installationKind"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"productionInstallationType"
^^
xsd:
string
]
])
]
.
...
...
Please
register
or
login
to post a comment