Skip to content

allow "@type": "@triple" or something similar? #28

@pchampin

Description

@pchampin

The rationale is the following (adapted from this message):

{
    "@context": [
      "https://schema.org/",
      {
        "ex": "http://example.com/",
        "ex:captain": { "@type": "@id" }
      }
    ],
    "@type": "Event",
    "ex:realizationOf": { "@id": {
        "@id": "ex:bowls_club",
        "ex:captain": "ex:bob"
    }},
    "startDate": "01-01-2019",
    "endDate": "31-12-2019"
}

Since ex:realizationOf is always expecting a triple, we might want to be able to spare the intermediate "@id".

Of course, declaring ex:realizationOf as "@type": "@id" does not work, because this only affect values of the property that are strings. "@type": "@triple" seems like a natural way to do this, but it has the disadvantage or introducing a new keyword...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions