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
2012-02-22 12:06:29 +1000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
10d26563adce96f9b12dc24a1d18d6a63aa6a9ee
10d26563
1 parent
a724741a
Added rhspin:GetFields template to support schematron upload page
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
2 deletions
www.reportinghub.no/spin/SPIN-RH-v1.0.spin.ttl
www.reportinghub.no/spin/SPIN-RH-v1.0.spin.ttl
View file @
10d2656
...
...
@@ -177,6 +177,44 @@ rhspin:DPRTableTemplates
spl:
valueType
<http://www.reportinghub.no/ep/schema/production-report#DailyProductionReport>
]
.
rhspin:
GetFields
rdf:
type
spin:
SelectTemplate
;
rdfs:
comment
"Gets the name and id of all Fields known to the system."
^^
xsd:
string
;
rdfs:
label
"Get fields"
^^
xsd:
string
;
rdfs:
subClassOf
spin:
SelectTemplates
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
distinct
"true"
^^
xsd:
boolean
;
sp:
orderBy
([
sp:
varName
"fieldName"
^^
xsd:
string
])
;
sp:
resultVariables
([
sp:
varName
"fieldName"
^^
xsd:
string
]
[
sp:
varName
"fieldId"
^^
xsd:
string
])
;
sp:
where
([
rdf:
type
sp:
NamedGraph
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/ep/schema/facility#Field>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"field"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"fieldName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"field"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"fieldId"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#id>
;
sp:
subject
[
sp:
varName
"field"
^^
xsd:
string
]
])
;
sp:
graphNameNode
npdata:
npd
])
]
.
rhspin:
GetFieldsOfCompanyName
rdf:
type
spin:
SelectTemplate
;
rdfs:
comment
"Gets the fields that a company with a given name has access to. Result variables are ?fieldId and ?fieldName."
^^
xsd:
string
;
...
...
@@ -2645,11 +2683,11 @@ _:b13
_:
b6
sp:
varName
"well"
^^
xsd:
string
.
_:
b4
sp:
varName
"wellBore"
^^
xsd:
string
.
_:
b12
sp:
varName
"wellBore"
^^
xsd:
string
.
_:
b4
sp:
varName
"wellBore"
^^
xsd:
string
.
_:
b8
sp:
varName
"wellBore"
^^
xsd:
string
.
_:
b3
sp:
varName
"wellBoreId"
^^
xsd:
string
.
...
...
Please
register
or
login
to post a comment