Skip to content

JSON-LD keywords integrated with LinkML schema #27

@mahdanoura

Description

@mahdanoura

json-ld compaction terms like @context, @type inlcuded in the LinkML causes an issue for shacl / rdf generation, as these terms are not required. This is also not recommended according to the LinkML community: https://linkml.io/linkml/howtos/using-jsonld.html

slots:
  "@type":
    description: >-
      JSON-LD keyword to label the object with semantic tags (or types).
    exactly_one_of:
      - range: string
      - range: string
        multivalued: true
    inlined: false
  Thing:
    tree_root: true
    description: >-
      An abstraction of a physical or a virtual entity whose metadata and interfaces are described by a WoT Thing
      Description, whereas a virtual entity is the composition of one or more Things.
    class_uri: td:Thing
    attributes:
      "@context":
        description: >- 
          JSON-LD keyword to define short-hand names called terms that are used throughout a TD document.
        required: true
        range: uriorcurie
        array:
    slots:
      - "@type"

Metadata

Metadata

Assignees

No one assigned

    Labels

    jsonldLinkML JSON-LD context generator bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions