Holger Knublauch

Added new function for CK

......@@ -424,6 +424,79 @@ reportspin:idOfDDRByDateAndWellBoreId
rdfs:label "id of DDR by date and well bore id"^^xsd:string ;
rdfs:subClassOf spin:Functions ;
.
reportspin:idOfDPR2ByDateAndFieldName
rdf:type spin:Function ;
spin:body [
rdf:type sp:Select ;
sp:limit "1"^^xsd:long ;
sp:orderBy (
[
rdf:type sp:Desc ;
sp:expression [
sp:varName "created"^^xsd:string ;
] ;
]
) ;
sp:resultVariables (
[
sp:varName "id"^^xsd:string ;
]
) ;
sp:where (
[
sp:object [
sp:varName "fieldName"^^xsd:string ;
] ;
sp:predicate <http://www.reportinghub.no/system/schema/reporting#fieldName> ;
sp:subject [
sp:varName "report"^^xsd:string ;
] ;
]
[
sp:object [
sp:varName "date"^^xsd:string ;
] ;
sp:predicate <http://purl.org/dc/terms/date> ;
sp:subject [
sp:varName "report"^^xsd:string ;
] ;
]
[
sp:object [
sp:varName "created"^^xsd:string ;
] ;
sp:predicate <http://purl.org/dc/terms/created> ;
sp:subject [
sp:varName "report"^^xsd:string ;
] ;
]
[
sp:object [
sp:varName "id"^^xsd:string ;
] ;
sp:predicate <http://rdfs.org/sioc/ns#id> ;
sp:subject [
sp:varName "report"^^xsd:string ;
] ;
]
) ;
] ;
spin:constraint [
rdf:type spl:Argument ;
spl:predicate arg:date ;
spl:valueType xsd:date ;
rdfs:comment "The xsd:date of the DPR2 to get."^^xsd:string ;
] ;
spin:constraint [
rdf:type spl:Argument ;
spl:predicate arg:fieldName ;
spl:valueType xsd:string ;
rdfs:comment "The registered name of the Field."^^xsd:string ;
] ;
spin:returnType xsd:string ;
rdfs:label "id of DPR2By date and field name"^^xsd:string ;
rdfs:subClassOf spin:Functions ;
.
reportspin:idOfDPRByDateAndOwner
rdf:type spin:Function ;
spin:body [
......