Skip to content

Expose the prefixes found in the top level @context, including remote @context. #193

@afs

Description

@afs

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.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions