Skip to content

Literals with language tag support in DOSDP templates #494

Description

@OliverHex

Hi, is there a way to generate literals with language tags by using DOSDP ?

This is what I need in the resulting OWL file :

  • language-tagged literals such as "[LABEL]"@en
  • or datatyped language-tagged literals such as "[LABEL]"@en^^rdf:langString
    where [LABEL] is replaced by an actual label.

The first option is a syntactic sugar for the second, the second being the correct syntax according to the RDF standard, see "3.3 Literals" here : https://www.w3.org/TR/rdf11-concepts/#section-Graph-Literal

I have been doing a few tests with DOSDP templates.
The best I could obtain (but still wrong) is with the following template snippet :

name:
text: '"%s"@my_language_tag'
vars:
- myNameVar

Which generates the following literal for the rdfs:label annotation :

AnnotationAssertion(rdfs:label <http://www.test.org/my/TEST_0000001> "\"Some Random Name\"@my_language_tag"^^xsd:string)

Which is wrong since it integrates the language tag as part of the literal string.

Any solution for this, please ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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