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;