TREEcg / extract-cbd-shape

Get all RDF triples/quads related to an entity based on CBD and a SHACL shape
https://treecg.github.io/extract-cbd-shape/
MIT License
9 stars 2 forks source link

[Spec] maxCardinality 0? #32

Open pietercolpaert opened 4 months ago

pietercolpaert commented 4 months ago

What if we want to cleanly exclude a property that could be present in an entity description?

I.e., if this happens on a page:

<Collection> tree:member <A>, <B> .
### member 1
<A> a dcat:Dataset ;
        dct:title "A" .

### Member 2
<B> a dcat:Distribution ;
        dct:title "B" .
<A> dcat:distribution <B> .

Then we want to make sure that in a Dataset, you don’t want the dcat:distribution link to be included.

Proposed solution is to support maxCardinility 0, and thus add a property in a shape topology that indicates the notToBeIncludedPaths.

Problems: