-
Notifications
You must be signed in to change notification settings - Fork 67
Description
Hello,
I'm using this library together with Rasqal as the SPARQL Query Engine. Problem is that Rasqal expects the triples to be in the correct datatype format (e.g. URI, double, boolean, etc) to do its magic while HDT provides only the raw strings.
Question is whether there is a way to retrieve the datatypes stored inside the HDT file and have them passed (perhaps separately) through the iterator returned by the HDT::Search method.
Been investigating this on my own and so far I only managed to find out that CSD_PFC is where the strings are stored, which also contain the datatypes I'm interested in, in textual format (e.g. "0"^^xsd:integer)
But when I retrieve the results from the iterator, even though it accesses the same (?!) methods, the portion after ^^ is gone and only "0" is returned.
Having this additional information returned would simplify the integration with Rasqal in my case. Right now I'm doing some basic string manipulation to determine which datatype might be correct, although I feel like it's error-prone and not reliable at 100% and having the real type provided directly by the library would be safer.