- From: tombaker via GitHub <sysbot+gh@w3.org>
- Date: Wed, 08 Feb 2023 18:22:56 +0000
- To: public-shex-dev@w3.org
tombaker has just created a new issue for https://github.com/shexSpec/spec:
== Unexplained need `.` when specifying cardinality in ShExC ==
[In the Primer](https://shexspec.github.io/primer/#negated-properties), negative triple constraints are illustrated with:
```
my:SolitaryIssueShape {
ex:state [ex:unassigned ex:assigned];
ex:component . {0} ;
^ex:component . {0}
}
```
Why the dot?
Omitting the dot throws an error, even though the ShExJ translation (nota bene, marked as "TODO" when ShExJ is selected in the Primer), as per [rdfshape.weso.es/shexConvert](https://rdfshape.weso.es/shexConvert?schema=PREFIX%20ex%3A%20%3Chttp%3A%2F%2Fexample.org%2F%3E%0A%0Aex%3ASolitaryIssueShape%20%7B%0A%20%20ex%3Acomponent%20.%20%7B0%7D%20%3B%0A%7D&schemaEngine=ShEx&schemaFormat=ShExC&schemaSource=byText&schemaTargetEngine=ShEx&schemaTargetFormat=ShExJ&triggerMode=ShapeMap):
```
PREFIX ex: <http://example.org/>
ex:SolitaryIssueShape {
ex:component . {0} ;
}
```
translates to:
```
{
"type" : "Schema",
"@context" : "http://www.w3.org/ns/shex.jsonld",
"shapes" : [
{
"type" : "Shape",
"id" : "http://example.org/SolitaryIssueShape",
"expression" : {
"type" : "TripleConstraint",
"predicate" : "http://example.org/component",
"min" : 0,
"max" : 0
}
}
]
}
```
with nothing obvious requiring `.` as a placeholder.
Please view or discuss this issue at https://github.com/shexSpec/spec/issues/57 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 8 February 2023 18:22:58 UTC