-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
- JSON-LD examples should use context #468 asks to optimize JSON-LD examples by using an appropriate context
Are there plans to revise https://github.com/w3c/data-shapes/blob/gh-pages/shacl-jsonld-context/shacl.context.ld.json ?
- Trying to compact that example with the above context (https://tinyurl.com/2s3vyvxz on playground) causes:
jsonld.SyntaxError: Absolute IRI "sh:NodeShape" confused with prefix "sh".
- The context uses
"@vocab"
and then defines terms without thesh:
prefix. But:@vocab
has been criticized as too broad/dangerous by no less than Manu Sporny himself- My experience with using
@vocab
in GS1 EPCIS is that it is an over-optimization, i.e. makes it harder to mix-in other vocabularies - All JSON-LD examples I have seen use the
sh:
prefix
- The context should be deployed at a well-known location and served with appropriate MIME type (
application/json
)
Metadata
Metadata
Assignees
Labels
No labels