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

Reference-counted types to enable flexible links between objects #2111

Open
hoijnet opened this issue Mar 16, 2024 · 0 comments
Open

Reference-counted types to enable flexible links between objects #2111

hoijnet opened this issue Mar 16, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@hoijnet
Copy link

hoijnet commented Mar 16, 2024

Is your feature request related to a problem? Please describe.
Today one can either create a document type to constrain RDF triples into a shared lifecycle, or create a subdocument to add a "layer" of information to a type (JSON-LD).

An elegant solution for bi-directional links would be to have a reference-counted linked relationship between two objects. Imagine the concept of friendship, being between two persons, seeing it as directional gives a skewed view of reality, a bi-directional link as a reference-counted third object that connects the individiual would be quite handy.

Another similar instance is a configuration of items into an offering. It could of course be modelled as a type with a set of links, either as individual properties, or as a set of link with a Cardinality. However, if any of the parts of the offering is removed, the offering could be relevant to automatically delete as well (as a design choice).

Describe the solution you'd like
Having reference counted type properties (if one of the property linked is removed, the entire object should be removed too) would enable a significant opportunity to avoid having to write custom logic and instead have more operations possible to perform over the REST and GraphQL interface.

Describe alternatives you've considered
WOQL logic for it, but would be hard for the use case.

Additional context
N/A

@hoijnet hoijnet added the enhancement New feature or request label Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant