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-10 16:52:12 +1000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c410c921712c5c1405c2cf7d3e37efd3a565b13f
c410c921
1 parent
ccb612e2
Renamed to .spin. file
Updated download page to new NPD namespace
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
83 additions
and
72 deletions
www.reportinghub.no/download-ddr.swp
www.reportinghub.no/ep/spin/SPIN_EPIM-lib-v1.1.ttl → www.reportinghub.no/ep/spin/SPIN_EPIM-lib-v1.1.spin.ttl
www.reportinghub.no/ep/spin/SPIN_EPIM-lib-v1.1.ttl.tbc → www.reportinghub.no/ep/spin/SPIN_EPIM-lib-v1.1.spin.ttl.tbc
www.reportinghub.no/spin/SPIN-RH-v1.0.spin.ttl
www.reportinghub.no/download-ddr.swp
View file @
c410c92
<html
xmlns:npd=
"http://www.reportinghub.no/schema/npd#"
>
<html>
<head>
<title>
ReportingHub - Download DDR
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"lib/rh/rh.css"
/>
...
...
@@ -37,8 +37,8 @@
<ui:forEach
ui:resultSet=
"{#
SELECT ?well ?wellName
WHERE {
GRAPH
<https://www.reportinghub.no/data/npd>
{
?well a
npd
:Well .
GRAPH
npdata:npd
{
?well a
ep-well
:Well .
?well npd:name ?wellName .
}
} ORDER BY ?wellName
...
...
www.reportinghub.no/ep/spin/SPIN_EPIM-lib-v1.1.ttl
→
www.reportinghub.no/ep/spin/SPIN_EPIM-lib-v1.1.
spin.
ttl
View file @
c410c92
File moved
www.reportinghub.no/ep/spin/SPIN_EPIM-lib-v1.1.ttl.tbc
→
www.reportinghub.no/ep/spin/SPIN_EPIM-lib-v1.1.
spin.
ttl.tbc
View file @
c410c92
File moved
www.reportinghub.no/spin/SPIN-RH-v1.0.spin.ttl
View file @
c410c92
...
...
@@ -8,6 +8,7 @@
# imports: http://www.reportinghub.no/np/schema/1.0/npd
@prefix
fn:
<http://www.w3.org/2005/xpath-functions#>
.
@prefix
npdata:
<http://www.reportinghub.no/np/data/>
.
@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#>
.
...
...
@@ -48,6 +49,10 @@
rdfs:
label
"well name"
^^
xsd:
string
;
rdfs:
subPropertyOf
sp:
arg
.
npdata:
npd
rdf:
type
rdfs:
Resource
;
rdfs:
label
"NPDI"
^^
xsd:
string
.
<http://www.reportinghub.no/spin/rh>
rdf:
type
owl:
Ontology
;
rdfs:
comment
"A collection of SPIN functions and templates to support working with the ReportingHub schemas."
^^
xsd:
string
;
...
...
@@ -56,7 +61,7 @@
rhspin:
GetWellBoresOfWell
rdf:
type
spin:
SelectTemplate
;
rdfs:
comment
"Gets an ordered list of well bores that belong to a given Well. Result variables are ?wellBore and ?wellBoreName."
^^
xsd:
string
;
rdfs:
comment
"Gets an ordered list of well bores that belong to a given Well. Result variables are ?wellBore
Id
and ?wellBoreName."
^^
xsd:
string
;
rdfs:
label
"Get well bores of well"
^^
xsd:
string
;
rdfs:
subClassOf
spin:
SelectTemplates
;
spin:
body
...
...
@@ -68,12 +73,15 @@ rhspin:GetWellBoresOfWell
[
sp:
varName
"well"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#partOfWell>
;
sp:
subject
_:
b
2
sp:
subject
_:
b
3
]
[
sp:
object
_:
b1
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
_:
b2
sp:
subject
_:
b3
]
[
sp:
object
_:
b2
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#id>
;
sp:
subject
_:
b3
])
;
sp:
graphNameNode
<https://www.reportinghub.no/np/data/npd>
sp:
graphNameNode
npdata:
npd
])
]
;
spin:
constraint
...
...
@@ -135,7 +143,7 @@ rhspin:companyHasLicenceForWellBore
spin:
body
[
rdf:
type
sp:
Select
;
sp:
distinct
"true"
^^
xsd:
boolean
;
sp:
resultVariables
(
_:
b
3
)
;
sp:
resultVariables
(
_:
b
4
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
xsd:
date
;
...
...
@@ -148,37 +156,37 @@ rhspin:companyHasLicenceForWellBore
sp:
arg3
10
]
]
;
sp:
variable
_:
b
4
sp:
variable
_:
b
5
]
[
sp:
object
spin:
_arg1
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#shareHolder>
;
sp:
subject
_:
b
5
]
[
sp:
object
_:
b
6
;
sp:
subject
_:
b
6
]
[
sp:
object
_:
b
7
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#licenceShared>
;
sp:
subject
_:
b
5
sp:
subject
_:
b
6
]
[
sp:
object
<http://www.reportinghub.no/np/schema/npd#LS_Active>
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#licenceStatus>
;
sp:
subject
_:
b
6
]
[
sp:
object
_:
b
7
;
sp:
subject
_:
b
7
]
[
sp:
object
_:
b
8
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#startDate>
;
sp:
subject
_:
b
6
sp:
subject
_:
b
7
]
[
rdf:
type
sp:
Filter
;
sp:
expression
[
rdf:
type
sp:
le
;
sp:
arg1
_:
b
7
;
sp:
arg2
_:
b
4
sp:
arg1
_:
b
8
;
sp:
arg2
_:
b
5
]
]
[
sp:
object
_:
b
8
;
]
[
sp:
object
_:
b
9
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#endDate>
;
sp:
subject
_:
b
6
sp:
subject
_:
b
7
]
[
rdf:
type
sp:
Filter
;
sp:
expression
[
rdf:
type
sp:
gt
;
sp:
arg1
_:
b
8
;
sp:
arg2
_:
b
4
sp:
arg1
_:
b
9
;
sp:
arg2
_:
b
5
]
]
[
sp:
object
_:
b
6
;
]
[
sp:
object
_:
b
7
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#drilledInProductionLicence>
;
sp:
subject
_:
b
3
sp:
subject
_:
b
4
])
]
;
spin:
constraint
...
...
@@ -285,7 +293,7 @@ rhspin:normalizeString
rdfs:
subClassOf
spl:
StringFunctions
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
9
)
;
sp:
resultVariables
(
_:
b
10
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
...
...
@@ -293,67 +301,67 @@ rhspin:normalizeString
sp:
arg2
"\\((.*)\\)"
;
sp:
arg3
""
]
;
sp:
variable
_:
b1
0
sp:
variable
_:
b1
1
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
trim
;
sp:
arg1
_:
b1
0
sp:
arg1
_:
b1
1
]
;
sp:
variable
_:
b1
1
sp:
variable
_:
b1
2
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
encodeURL
;
sp:
arg1
_:
b1
1
sp:
arg1
_:
b1
2
]
;
sp:
variable
_:
b1
2
sp:
variable
_:
b1
3
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
sp:
arg1
_:
b1
2
;
sp:
arg1
_:
b1
3
;
sp:
arg2
"%2F"
;
sp:
arg3
"_"
]
;
sp:
variable
_:
b1
3
sp:
variable
_:
b1
4
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
sp:
arg1
_:
b1
3
;
sp:
arg1
_:
b1
4
;
sp:
arg2
"%[0-9A-F][0-9A-F]"
;
sp:
arg3
""
]
;
sp:
variable
_:
b1
4
sp:
variable
_:
b1
5
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
sp:
arg1
_:
b1
4
;
sp:
arg1
_:
b1
5
;
sp:
arg2
"\\+"
;
sp:
arg3
"_"
]
;
sp:
variable
_:
b1
5
sp:
variable
_:
b1
6
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
sp:
arg1
_:
b1
5
;
sp:
arg1
_:
b1
6
;
sp:
arg2
"_+"
;
sp:
arg3
"_"
]
;
sp:
variable
_:
b1
6
sp:
variable
_:
b1
7
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
sp:
arg1
_:
b1
6
;
sp:
arg1
_:
b1
7
;
sp:
arg2
"\\*"
;
sp:
arg3
""
]
;
sp:
variable
_:
b1
7
sp:
variable
_:
b1
8
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
xsd:
string
;
sp:
arg1
[
rdf:
type
spif:
upperCase
;
sp:
arg1
_:
b1
7
sp:
arg1
_:
b1
8
]
]
;
sp:
variable
_:
b
9
sp:
variable
_:
b
10
])
]
;
spin:
constraint
...
...
@@ -451,29 +459,29 @@ rhspin:wellBoreByName
rdfs:
subClassOf
spl:
URIFunctions
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b1
8
)
;
sp:
resultVariables
(
_:
b1
9
)
;
sp:
where
([
rdf:
type
sp:
NamedGraph
;
sp:
elements
([
rdf:
type
sp:
Union
;
sp:
elements
(([
sp:
object
_:
b
19
;
sp:
elements
(([
sp:
object
_:
b
20
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
_:
b1
8
sp:
subject
_:
b1
9
])
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
replaceAll
;
sp:
arg1
_:
b
19
;
sp:
arg1
_:
b
20
;
sp:
arg2
"/0"
;
sp:
arg3
"/"
]
;
sp:
variable
_:
b2
0
]
[
sp:
object
_:
b2
0
;
sp:
variable
_:
b2
1
]
[
sp:
object
_:
b2
1
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
_:
b1
8
sp:
subject
_:
b1
9
]))
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/well#WellBore>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
8
sp:
subject
_:
b1
9
])
;
sp:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
sp:
graphNameNode
npdata:
npd
])
]
;
spin:
constraint
...
...
@@ -510,53 +518,56 @@ rhspin:wellByName
]
;
spin:
returnType
<http://www.reportinghub.no/ep/schema/well#Well>
.
_:
b20
_:
b2
sp:
varName
"wellBoreId"
^^
xsd:
string
.
_:
b1
sp:
varName
"wellBoreName"
^^
xsd:
string
.
_:
b3
sp:
varName
"wellBore"
^^
xsd:
string
.
_:
b21
sp:
varName
"str"
^^
xsd:
string
.
_:
b
19
_:
b
20
sp:
varName
"wellBoreName"
^^
xsd:
string
.
_:
b1
8
_:
b1
9
sp:
varName
"wellBore"
^^
xsd:
string
.
_:
b1
7
_:
b1
8
sp:
varName
"t4"
^^
xsd:
string
.
_:
b1
6
_:
b1
7
sp:
varName
"t3"
^^
xsd:
string
.
_:
b1
5
_:
b1
6
sp:
varName
"t2"
^^
xsd:
string
.
_:
b1
4
_:
b1
5
sp:
varName
"t1"
^^
xsd:
string
.
_:
b1
3
_:
b1
4
sp:
varName
"t0b"
^^
xsd:
string
.
_:
b1
2
_:
b1
3
sp:
varName
"t0a"
^^
xsd:
string
.
_:
b1
1
_:
b1
2
sp:
varName
"s2"
^^
xsd:
string
.
_:
b1
0
_:
b1
1
sp:
varName
"s1"
^^
xsd:
string
.
_:
b9
sp:
varName
"normalizedStr"
^^
xsd:
string
.
_:
b8
sp:
varName
"endDate"
^^
xsd:
string
.
_:
b7
sp:
varName
"startDate"
^^
xsd:
string
.
_:
b10
sp:
varName
"normalizedStr"
^^
xsd:
string
.
_:
b
6
sp:
varName
"licenc
e"
^^
xsd:
string
.
_:
b
9
sp:
varName
"endDat
e"
^^
xsd:
string
.
_:
b
5
sp:
varName
"shar
e"
^^
xsd:
string
.
_:
b
8
sp:
varName
"startDat
e"
^^
xsd:
string
.
_:
b
4
sp:
varName
"nowDat
e"
^^
xsd:
string
.
_:
b
7
sp:
varName
"licenc
e"
^^
xsd:
string
.
_:
b
3
sp:
varName
"wellBo
re"
^^
xsd:
string
.
_:
b
6
sp:
varName
"sha
re"
^^
xsd:
string
.
_:
b
2
sp:
varName
"wellBor
e"
^^
xsd:
string
.
_:
b
5
sp:
varName
"nowDat
e"
^^
xsd:
string
.
_:
b
1
sp:
varName
"wellBoreNam
e"
^^
xsd:
string
.
_:
b
4
sp:
varName
"wellBor
e"
^^
xsd:
string
.
...
...
Please
register
or
login
to post a comment