To answer your first question: see http://www.w3.org/TR/sparql11-query/#func-isIRI for a Boolean function that tells whether the parameter passed to it is an IRI (or URI).

I know of nothing in SPARQL (or any extension in ARQ) to identify whether a URI dereferences. I think that the idea of "correct" dereferencing would depend on application requirements, e.g. returning a 302 that points to something else that returns a 200 might be considered appropriate in some situations but not in others. That logic wouldn't be very difficult to implement in a modern scripting language.

Bob DuCharme
learningsparql.com


On 6/16/2014 12:28 PM, Olivier Rossel wrote:
Hi all.

In SPARQL, I would like to test wheter a bound variable is a URI
and whether this URI dereferences correctly
(basically, that URI/URL sent in a HTTP GET
shall return a 200 OK).

Is such a function available in Jena/ARQ?


Reply via email to