Skip to content

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

@josephguillaume

Description

@josephguillaume

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.

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