Skip to content

Wrong use of @vocab in context #1167

Description

@VladimirAlexiev

https://spdx.github.io/spdx-spec/v3.0.1/rdf/spdx-context.jsonld has many examples like this:

    "ai_autonomyType": {
      "@context": {
        "@vocab": "https://spdx.org/rdf/3.0.1/terms/Core/PresenceType/"
      },
      "@id": "https://spdx.org/rdf/3.0.1/terms/AI/autonomyType",
      "@type": "@vocab"
    },
    "ai_energyConsumption": {
      "@id": "https://spdx.org/rdf/3.0.1/terms/AI/energyConsumption",
      "@type": "@vocab"
    },
  • The first use (@vocab:... @type:@vocab) is acceptable.
  • The second use (@type: @vocab) is not acceptable since it doesn't specify the @vocab.
    • Nor can it specify any @vocab because this is an intermediate node (holding quantity and unit) not an enumerated value
    • What you mean here is "@type": "@id"

Metadata

Metadata

Assignees

No one assigned

    Labels

    RDF/OWL/SHACLRDF graph, schema, ontology, constraintserializationSomething about the representation of data in bytes

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions