rdfs:comment"Tests whether the currently logged in user is working for a company that has a valid licence for a well bore with a given id. This function is used by the download service to validate access privileges."^^xsd:string;
rdfs:label"current user has access to well bore with id"^^xsd:string;
rdfs:subClassOfspin:Functions;
spin:body
[rdf:typesp:Ask;
sp:where([rdf:typesp:Bind;
sp:expression
[rdf:typerhspin:companyName
];
sp:variable_:b15
][rdf:typesp:Bind;
sp:expression
[rdf:typerhspin:companyWithName;
arg:name_:b15
];
sp:variable_:b16
][rdf:typesp:Bind;
sp:expression
[rdf:typerhspin:wellBoreById;
arg:id[sp:varName"id"^^xsd:string
]
];
sp:variable_:b17
][rdf:typesp:Filter;
sp:expression
[rdf:typesp:and;
sp:arg1[rdf:typesp:bound;
sp:arg1_:b17
];
sp:arg2[rdf:typesp:bound;
sp:arg1_:b16
]
]
][sp:object_:b17;
sp:predicaterhspin:companyHasLicenceForWellBore;
sp:subject_:b16
])
];
spin:constraint
[rdf:typespl:Argument;
rdfs:comment"The id of the well bore."^^xsd:string;
spl:predicatearg:id;
spl:valueTypexsd:string
];
spin:returnTypexsd:boolean.
rhspin:ddrActivityStartDate
rdf:typespin:Function;
rdfs:comment"Gets the declared start time of the activity in a DDR, as an xsd:date literal."^^xsd:string;
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;
owl:imports<http://purl.org/dc/terms/>;
owl:versionInfo"0.1.0"^^xsd:string.
report:DDR
rdf:typerdfs:Class;
rdfs:comment"The metadata about a Daily Drilling Report."^^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: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/ddr/";
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 DDR 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:label"id of DDR by date and well bore id"^^xsd:string;