-
-
Notifications
You must be signed in to change notification settings - Fork 37
Description
Prefixes have no standing in the RDF data model but they are convenient for display of URIs.
Describe the solution you'd like
Expose the compact URI prefix mapping from the top-level @context, maybe a method RdfDataset.prefixes() that returns a
Map<String, String>. This would be limited to the prefixes from the top level @context, the active context in-scope at the end of parsing the top level JSON after any nested local context have dropped out-of-scope.
Describe alternatives you've considered
Secondary parsing at the JSON level of the JSON Document (this is what Jena v4.2.0 does). This does not included remote @context as it would require re-downloading the URL or interacting with any context cache.
Jena also requires the prefix URI to end in "/", "#" or ":" and Jena includes @vocab as prefix "". There are pragmatic Jena decisions that could be applied to the Map returned by Titanium.
Additional context
This came up as part of JENA-2187.