SPARQL feature request: xpath function for XMLLiteral

It is a nuisance to use the SPARQL string functions to fish primitive
values out of an XMLLiteral RDF term.

Why not specify an xpath() function for SPARQL, analagous to regex(),
that takes an XMLLiteral term and an xpath expression, and returns a
singleton primitive value?

The behavior could be undefined if the xpath expression returned a
sequence of values. Static checking could enforce certain restrictions
on the xpath expression (such as variables or unknown namespace
prefixes).

Regards,
--Paul

Received on Wednesday, 21 August 2013 01:25:42 UTC