rdfs:comment"The id of the DDR metadata."^^xsd:string;
spl:predicatearg:id;
spl:valueTypexsd:string
];
spin:returnTyperdfs:Resource;
rdfs:comment"Gets the URI of the named graph containing the triples submitted by a report with a given id."^^xsd:string;
rdfs:label"graph by report id"^^xsd:string;
rdfs:subClassOfspin:Functions;
.
spin:returnTyperdfs:Resource.
reportspin:idOfDDRByDateAndWellBoreId
rdf:typespin:Function;
spin:body[
rdf:typesp:Select;
sp:orderBy(
[
rdf:typesp:Desc;
sp:expression[
sp:varName"created"^^xsd:string;
];
]
);
sp:resultVariables(
[
sp:varName"id"^^xsd:string;
]
);
sp:where(
[
sp:object[
sp:varName"wellBoreId"^^xsd:string;
rdfs:comment"Gets the id of a DDR defined by date and well bore id. If preliminary reports have been created, this will return the most recent one only."^^xsd:string;
rdfs:label"id of DDR by date and well bore id"^^xsd:string;
rdfs:comment"The date of the DDR (not the submission date, but the start date of the report)."^^xsd:string;
];
spin:constraint[
rdf:typespl:Argument;
spl:predicatearg:wellBoreId;
spl:valueTypexsd:string;
spin:constraint
[rdf:typespl:Argument;
rdfs:comment"The id of the well bore."^^xsd:string;
spl:predicatearg:wellBoreId;
spl:valueTypexsd:string
];
spin:returnTypexsd:string;
rdfs:comment"Gets the id of a DDR defined by date and well bore id. If preliminary reports have been created, this will return the most recent one only."^^xsd:string;
rdfs:label"id of DDR by date and well bore id"^^xsd:string;
rdfs:subClassOfspin:Functions;
.
spin:constraint
[rdf:typespl:Argument;
rdfs:comment"The date of the DDR (not the submission date, but the start date of the report)."^^xsd:string;
spl:predicatearg:date;
spl:valueTypexsd:date
];
spin:returnTypexsd:string.
reportspin:idOfDPR2ByDateAndFieldName
rdf:typespin:Function;
spin:body[
rdf:typesp:Select;
rdfs:label"id of DPR2By date and field name"^^xsd:string;
rdfs:comment"The xsd:date of the DPR2 to get."^^xsd:string;
])
];
spin:constraint[
rdf:typespl:Argument;
spl:predicatearg:fieldName;
spl:valueTypexsd:string;
spin:constraint
[rdf:typespl:Argument;
rdfs:comment"The registered name of the Field."^^xsd:string;
spl:predicatearg:fieldName;
spl:valueTypexsd:string
];
spin:returnTypexsd:string;
rdfs:label"id of DPR2By date and field name"^^xsd:string;
rdfs:subClassOfspin:Functions;
.
spin:constraint
[rdf:typespl:Argument;
rdfs:comment"The xsd:date of the DPR2 to get."^^xsd:string;
spl:predicatearg:date;
spl:valueTypexsd:date
];
spin:returnTypexsd:string.
reportspin:idOfDPRByDateAndOwner
rdf:typespin:Function;
spin:body[
rdf:typesp:Select;
sp:orderBy(
[
rdf:typesp:Desc;
sp:expression[
sp:varName"created"^^xsd:string;
];
]
);
sp:resultVariables(
[
sp:varName"id"^^xsd:string;
]
);
sp:where(
[
sp:object[
sp:varName"owner"^^xsd:string;
rdfs:comment"Gets the id of a DPR defined by date and licence or BAA. If preliminary reports have been created, this will return the most recent one only."^^xsd:string;
rdfs:label"id of DPR by date and owner"^^xsd:string;
rdfs:comment"Gets the id of a DPR defined by date and licence or BAA. If preliminary reports have been created, this will return the most recent one only."^^xsd:string;
rdfs:label"id of DPR by date and owner"^^xsd:string;
rdfs:subClassOfspin:Functions;
.
spin:constraint
[rdf:typespl:Argument;
rdfs:comment"The date of the DDR (not the submission date, but the start date of the report)."^^xsd:string;
spl:predicatearg:date;
spl:valueTypexsd:date
];
spin:returnTypexsd:string.
reportspin:idOfMPRGByFieldMonthAndParts
rdf:typespin:Function;
spin:body[
rdf:typesp:Select;
sp:orderBy(
[
rdf:typesp:Desc;
sp:expression[
sp:varName"created"^^xsd:string;
];
]
);
sp:resultVariables(
[
sp:varName"id"^^xsd:string;
]
);
sp:where(
[
sp:object[
sp:varName"fieldName"^^xsd:string;
rdfs:label"id of MPRG by field, month and parts"^^xsd:string;