w3c / wot-thing-description-toolchain-tmp

work area for WoT Thing Description toolchain
2 stars 1 forks source link

rdf:langstring or rdf:plainliteral support #19

Open mahdanoura opened 4 months ago

mahdanoura commented 4 months ago

Json-LD support rdf:langString, and the TD utilizes this in the attributes title, titles, description and descriptions. However, providing this type in LinkML using the following:

types:
  MultiLanguage:
    name: MultiLanguage
    description: Description with a language tag.
    from_schema: https://raw.githubusercontent.com/w3c/wot-thing-description/main
    exact_mappings:
    - rdf:langString
    base: rdf:PlainLiteral
    uri: rdf:PlainLiteral

results in pure string.

mahdanoura commented 4 months ago

Started a discussion on the LinkML forum mentioning this issue: https://github.com/orgs/linkml/discussions/2199