Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add direct support RDF4j models #113

Open
RickMoynihan opened this issue Oct 26, 2017 · 0 comments
Open

Add direct support RDF4j models #113

RickMoynihan opened this issue Oct 26, 2017 · 0 comments

Comments

@RickMoynihan
Copy link
Member

RickMoynihan commented Oct 26, 2017

http://docs.rdf4j.org/javadoc/latest/?org/eclipse/rdf4j/model/package-summary.html

We should extend core grafter protocols to RDF4j models to support to-statements add etc.

Additionally we should define some new protocols to support

  • match which should essentially be the models .filter
  • models can have a prefix map associated with them, so we should have a protocol to get prefixes. This could be extended to queries, potentially repositories etc. We should add better prefix support also Compact URI Expansion grafter-vocabularies#1.
  • Add support for converting construct results directly into a model.
  • Support loading rdf files directly into a model, perhaps we should add a parallel to ->statements for ->model as a protocol?

Considerations:

  • Immutability. The model API isn't immutable, so we may want to provide a grafter deftype for ImmutableModel, it should be set like etc. Our current position is not to convert query results etc into immutable grafter types by default though, so probably best to leave this as an optional extra. Though the grafter functions for models could perhaps emphasise/assume read-only/immutability?
  • Also see this utility class for useful functions: http://docs.rdf4j.org/javadoc/latest/org/eclipse/rdf4j/model/util/Models.html

NOTE also: use of models is similar to the local readstore pattern, though without the ordered collections of identifiers.

@RickMoynihan RickMoynihan added this to the Improved use of RDF4j milestone Oct 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant