feat(channel): graph-rooted Channel model (named graphs)#595
Draft
HexaField wants to merge 1 commit into
Draft
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
❌ Deploy Preview for fluxsocial-dev failed. Why did it fail? →
|
fbbfbf2 to
91b3e11
Compare
91b3e11 to
05e826d
Compare
Mark the Channel model with `@Model({ name: 'Channel', graph: true })`
so each channel instance's triples are stored in an isolated named graph
within the perspective's Oxigraph store.
This depends on the named graphs feature in @coasys/ad4m (the
feat/subject-class-named-graphs branch).
05e826d to
1c38694
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Marks the
Channelmodel with@Model({ name: "Channel", graph: true })so each channel instance's triples are stored in an isolated named graph within the perspective's Oxigraph store.What This Enables
Change
In
packages/api/src/channel/index.ts.Graph IRI Convention
Each channel instance gets a named graph at:
All triples for that channel (name, description, views, members, etc.) are stored within this graph rather than the perspective's default graph.
Dependencies
Testing
tsc --noEmit)