-
Notifications
You must be signed in to change notification settings - Fork 13
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
[Feature request] Extracting shapes from triples #48
Comments
I think there are two different ways to approach this: a) A separate method for the b) Add a I would prefer option b. @martinmaillard you know the library the best. What's your opinion on that topic? |
From the perspective of SHACL I think the key step is determining the Focus Nodes which conform shapes. Once you know that it is simple to extract the subgraph by walking the Property Shapes. For starters, I would propose adding only the first step to the library. In my mind that would be a type FocusNode = Term
type Shape = Term
interface ValidationResult {
// for every conforming FocusNode return the matched Shapes
conformingFocusNodes: TermMap<FocusNode, Shape[]>
} |
I like the ideas. Some thoughts:
|
This seems like a very useful feature: I actually implemented something somewhat similar in a project. But I wonder if it really belongs in this library. |
I'm re-reading the comments. Is it actually something different from what I proposed above? |
Don’t think so! I’m just a bit puzzled about who should do what now! |
I’m looking for a library that can help me to extract triples adhering to a SHACL shapes from an array of triples.
Could look like this:
Use case issue: TREEcg/event-stream-client#2
The text was updated successfully, but these errors were encountered: