Holger Knublauch

Added DPR overview support

......@@ -103,6 +103,61 @@ reportspin:DDRsOverview
])
] .
reportspin:DPRsOverview
rdf:type spin:SelectTemplate ;
rdfs:label "DPRs overview"^^xsd:string ;
rdfs:subClassOf spin:SelectTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:orderBy ([ sp:varName "ownerName"^^xsd:string
] [ sp:varName "date"^^xsd:string
] [ sp:varName "created"^^xsd:string
]) ;
sp:resultVariables ([ sp:varName "ownerName"^^xsd:string
] [ sp:varName "date"^^xsd:string
] [ sp:varName "created"^^xsd:string
] [ sp:varName "id"^^xsd:string
]) ;
sp:where ([ sp:object
[ sp:varName "id"^^xsd:string
] ;
sp:predicate <http://rdfs.org/sioc/ns#id> ;
sp:subject
[ sp:varName "dpr"^^xsd:string
]
] [ sp:object
[ sp:varName "created"^^xsd:string
] ;
sp:predicate <http://purl.org/dc/terms/created> ;
sp:subject
[ sp:varName "dpr"^^xsd:string
]
] [ sp:object
[ sp:varName "date"^^xsd:string
] ;
sp:predicate <http://purl.org/dc/terms/date> ;
sp:subject
[ sp:varName "dpr"^^xsd:string
]
] [ sp:object
[ sp:varName "owner"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/system/schema/reporting#owner> ;
sp:subject
[ sp:varName "dpr"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type rhspin:npdName ;
sp:arg1 [ sp:varName "owner"^^xsd:string
]
] ;
sp:variable
[ sp:varName "ownerName"^^xsd:string
]
])
] .
reportspin:graphByDDRId
rdf:type spin:Function ;
rdfs:comment "Gets the URI of the named graph containing the triples submitted by a report:DDR (metadata) with a given id."^^xsd:string ;
......@@ -211,16 +266,16 @@ reportspin:idOfDDRByDateAndWellBoreId
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The date of the DDR (not the submission date, but the start date of the report)."^^xsd:string ;
spl:predicate <http://spinrdf.org/arg#date> ;
spl:valueType xsd:date
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The id of the well bore."^^xsd:string ;
spl:predicate <http://spinrdf.org/arg#wellBoreId> ;
spl:valueType xsd:string
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The date of the DDR (not the submission date, but the start date of the report)."^^xsd:string ;
spl:predicate <http://spinrdf.org/arg#date> ;
spl:valueType xsd:date
] ;
spin:returnType xsd:string .
reportspin:idOfDPRByDateAndOwner
......@@ -269,14 +324,14 @@ reportspin:idOfDPRByDateAndOwner
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The Licence or BAA."^^xsd:string ;
spl:predicate <http://spinrdf.org/arg#owner> ;
spl:valueType <http://www.reportinghub.no/np/schema/npd#Owner>
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The date of the DDR (not the submission date, but the start date of the report)."^^xsd:string ;
spl:predicate <http://spinrdf.org/arg#date> ;
spl:valueType xsd:date
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The Licence or BAA."^^xsd:string ;
spl:predicate <http://spinrdf.org/arg#owner> ;
spl:valueType <http://www.reportinghub.no/np/schema/npd#Owner>
] ;
spin:returnType xsd:string .
......