INCATools / INCATools/dosdp-tools

Literals with language tag support in DOSDP templates

Open
#494 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Scala
Stars
33
Forks
5
PR merge metrics
No merged PRs in 30d

Description

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 "\"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 ?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing how DOSDP template `text` values and `vars` substitutions are parsed and serialized into the generated OWL output. Compare the result with the requested language-tagged and datatype-qualified literal examples; done means the language tag is represented as RDF literal metadata rather than part of the string.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.