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

Specifying that a document should validate against multiple shapes? #79

Open
josephguillaume opened this issue Aug 24, 2024 · 1 comment

Comments

@josephguillaume
Copy link

Apologies if this is answered somewhere I didn't find.

I'm trying to model the situation where a document includes multiple resources that should validate against different shapes.

My intuition is to use st:shape:

:UmaiResourceShape a st:ShapeTree;
st:expectsType st:Resource;
st:shape :RecipeShape, :HowToStepShape, :CrdtShapeMetadata, :CrdtShapeOperation.

NoelDeMartin/umai#22

But this seems to be inconsistent with the definition "An { ST st:shape SH } triple indicates that managed resource R has at most one node which conforms to shape SH"

It seems that using st:references might be intended, but it's not clear to me what the st:viaShapePath would be. The relationship being expressed is that the LDP resource is a subgraph that includes multiple nodes conforming, each conforming to different shapes.

@josephguillaume
Copy link
Author

It seems the older primer and test suite using validatedBy also expect a single shape and single conforming node too. Is that correct?

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

1 participant