Skip to content

Shorthand for relType via keys within sdfRelation map? #3

Description

@JKRhb

In the current draft revision, thee are a couple of examples where the keys within the sdfRelation objects are very similar to the relType value, see the example below for example:

"sdfRelation": {
  "sameAs": {
    "relType": "exont:same-as",
    "target": "saref:TemperatureSensor"
  }
}

Since this creates a certain redundancy and potentially also bloat (when many sdfRelations are being used, I was wondering whether we could define a short definition where the key (or "given name") can also encode the relationship (see the (updated) example below):

"sdfRelation": {
  "exont:same-as": {
    "target": "saref:TemperatureSensor"
  }
}

With this approach, the structure may become more compact, while it should also have a somewhat positive performance impact.

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