Skip to content

revise SHACL JSON-LD context #469

@VladimirAlexiev

Description

@VladimirAlexiev

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 the sh: 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions