Sparqlify
Sparqlify copied to clipboard
Already prefixed URIs are enclosed in <>
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/')