rdfs:comment"The schema of metadata kept by the ReportingHub system to keep track of submitted reports. The starting point is the class foaf:Document."^^xsd:string;
rdfs:comment"Gets the URI of the named graph containing the triples submitted by a report:DDR (metadata) with a given id."^^xsd:string;
rdfs:label"graph by DDRId"^^xsd:string;
rdfs:label"graph by DDR id"^^xsd:string;
rdfs:subClassOfspin:Functions;
spin:body
[rdf:typesp:Select;
...
...
@@ -64,6 +69,37 @@ reportspin:graphByDDRId
];
spin:returnTyperdfs:Resource.
reportspin:graphByDPRId
rdf:typespin:Function;
rdfs:comment"Gets the URI of the named graph containing the triples submitted by a report:DPR (metadata) with a given id."^^xsd:string;
rdfs:label"graph by DPR id"^^xsd:string;
rdfs:subClassOfspin:Functions;
spin:body
[rdf:typesp:Select;
sp:resultVariables([rdf:typesp:iri;
sp:arg1[sp:varName"uri"^^xsd:string
]
]);
sp:where([rdf:typesp:Bind;
sp:expression
[rdf:typefn:concat;
sp:arg1"http://www.reportinghub.no/system/dpr/";
sp:arg2[sp:varName"id"^^xsd:string
]
];
sp:variable
[sp:varName"uri"^^xsd:string
]
])
];
spin:constraint
[rdf:typespl:Argument;
rdfs:comment"The id of the DPR metadata."^^xsd:string;
spl:predicate<http://spinrdf.org/arg#id>;
spl:valueTypexsd:string
];
spin:returnTyperdfs:Resource.
reportspin:idOfDDRByDateAndWellBoreId
rdf:typespin:Function;
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:comment"The id of the well bore."^^xsd:string;
spl:predicate<http://spinrdf.org/arg#wellBoreId>;
spl:valueTypexsd:string
];
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:predicate<http://spinrdf.org/arg#date>;
spl:valueTypexsd:date
];
spin:returnTypexsd:string.
reportspin:idOfDPRByDateAndOwner
rdf:typespin:Function;
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;