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

"Conflict" detection #46

Open
jmatsushita opened this issue Jan 13, 2017 · 3 comments
Open

"Conflict" detection #46

jmatsushita opened this issue Jan 13, 2017 · 3 comments

Comments

@jmatsushita
Copy link
Collaborator

I'm working on a feature to identify existing triples that match a document that is being put and returns a list of conflicts to allow the client to choose whether to overwrite or leave be, maybe after doing access control checks.

@jmatsushita
Copy link
Collaborator Author

jmatsushita commented Jan 13, 2017

If we decide that by default data is not overwritten (i.e. preserve is true by default) then the API for this could be that:

  • put without conflicting triples just works.
  • putwith conflicting triples returns an error and a list of conflicts.
  • putwith an overwrite: true option overwrites existing triples without an error.

@mcollina Thoughts?

@jmatsushita
Copy link
Collaborator Author

@BigBlueHat Would this API change make sense to you?

@BigBlueHat
Copy link
Member

@jmatsushita I think so, generally.

The latest LevelGraph Playground (v2.0.1) uses levelgraph-jsonld v1.0.2 (see! it's just reversed! 😉). However...the overwrite option (which is used during db.jsonld.del() and db.jsonld.put() usage) doesn't seem to do what I'd expect...currently.

Give it a try and let me know if it's matching what you're thinking.

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

2 participants