- From: JervenBolleman via GitHub <sysbot+gh@w3.org>
- Date: Sat, 28 Jan 2023 02:22:02 +0000
- To: public-shex-dev@w3.org
JervenBolleman has just created a new issue for https://github.com/shexSpec/spec:
== JSON-LD as constraind by grammar is limiting ==
There are many ways to write JSON-LD documents that could express Shape Expressions. However, many of these reasonable serializations are not valid ShexJ files. e.g.
```json
{ "@context":
{ "@vocab" : "http://www.w3.org/ns/shex.jsonld",
"foaf" : "http://xmlns.com/foaf/0.1/" ,
"predicate" : {"@type":"@id"}},
"type": "Schema",
"shapes": [
{ "@id": "http://my.example/#UserShape",
"type": "Shape",
"expression": {
"type": "TripleConstraint",
"predicate": "foaf:name",
"valueExpr": {
"type": "NodeConstraint",
"datatype": "http://www.w3.org/2001/XMLSchema#string" } } }
]
}
```
Is a small adaptation of one of the primer examples but is not a valid ShexJ file.
Please view or discuss this issue at https://github.com/shexSpec/spec/issues/55 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Saturday, 28 January 2023 02:22:04 UTC