Skip to content

Support @language in term definitions #85

@niklasl

Description

@niklasl

If someone defines a term in the context and uses @language, should this lock (or clear) the @language for this term, effectively overriding any global @language defined in the context?

For example, given:

{
  "@context": {
    "@language": "en",
    "title": {"@id": "http://example.org/def#title"},
    "title_sv": {"@id": "http://example.org/def#title", "@language": "sv"},
    "name": {"@id": "http://example.org/def#name", "@language": null}
  },
  "@id": "http://example.org/somebody#self",
  "title": "Mister",
  "title_sv": "Herr",
  "name": "Some Body"
}

This could produce:

@prefix : <http://example.org/def#> .

<http://example.org/somebody#self>
  :title "Mister"@en, "Herr"@sv;
  :name "Some Body" .

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions