8000 store.RemoveNode should accept an IRI instead of opaque node · Issue #607 · cayleygraph/cayley · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
store.RemoveNode should accept an IRI instead of opaque node #607
Closed
@oren

Description

@oren

store.RemoveNode(node) removes all quads which have the given node as subject, predicate, object, or label. Currently it accepts an opaque node.

For example:

idIRI := quad.IRI(id)
node := store.ValueOf(id)
err := store.RemoveNode(node)

(store.ValueOf returns an opaque node)

We had a discussion about it on discourse and agreed that there is no need to expose the opaque node to the user and store.RemoveNode can accept IRI.
The new API will look like this:

idIRI := quad.IRI(id)
err := store.RemoveNode(idIRI)

This will help new users since they don't need to be aware of the lower level concept of opaque node.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0