SmartDataAnalytics/Sparqlify

Already prefixed URIs are enclosed in <>

KonradHoeffner opened this issue · 1 comments

I have a column that contains URIs that are already prefixed, such as owl:Class or foaf:Person. Using uri(?column), I then get <owl:Class> instead of just owl:Class.

Hm, this is not really a bug but rather a new type of term contruction: a function that for a given input IRI and a prefix mapping returns a set of candidate lookups.

E.g
The expression

FILTER(?s = <http://example.org/foo>)
WITH ?s = NSIRI(?someColumn)

w.r.t. the prefix mapping

eg: <http://example.org>
ex: <http://example.org>

would translate / expand to the SQL condition
"someColumn" IN ('eg:foo/', 'ex:foo/')