Closed megoth-capgemini closed 1 year ago
There should be support for recursive shapes. This might be a bug. I'll look into it.
Apologies, my initial example was flawed. I've experimented a bit more, and the following seems to work:
solid:ContainerShape EXTRA rdf:type {
rdf:type [ ldp:BasicContainer ldp:Container ] ;
( ldp:contains @solid:ContainerShape | ldp:contains @solid:ResourceShape )* ;
}
solid:ResourceShape EXTRA rdf:type {
rdf:type [ldp:Resource] ;
}
I'll close this issue, but feel free to reopen if I've misunderstood something.
While trying out LDO and ShEx shapes, I noticed that recursive shapes don't seem to be supported. E.g. the following shape will result in an TypeError:
The TypeError looks like the following:
Have I misunderstood something, or is there no support for recursive shapes yet? (For more on recursive shapes, check http://shex.io/shex-semantics/index.html#example-recursion.) Is there plans to support recursive shapes?