Skip to content

Allow to specify field of language code and string #449

@nichtich

Description

@nichtich

It looks like the following JSON format cannot be mapped to RDF with JSON-LD:

{
  "id": "http://example.org/istanbul"
  "names": [
    { "string": "İstanbul", "lang": "tr" },
    { "string": "Istanbul", "lang": "en" }
  ]
}

JSON-LD should be expanded to allow context like this

{
  "id": "@id",
  "names": { 
    "@id": "http://purl.org/dc/terms/title",
    "string": "@literal",
    "lang": "@language"
  }
}

to transform the example above to

<http://example.org/istanbul> <http://purl.org/dc/terms/title> "İstanbul"@tr .
<http://example.org/istanbul> <http://purl.org/dc/terms/title> "Istanbul"@en .

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