Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rdf:PlainLiteral and rdfs:Literal relation #407

Open
valexande opened this issue May 31, 2023 · 4 comments
Open

rdf:PlainLiteral and rdfs:Literal relation #407

valexande opened this issue May 31, 2023 · 4 comments
Assignees
Labels
type: feature request something requested to be implemented in a future release type: implementation question something needs clarified, refined or decided before the implementation can continue

Comments

@valexande
Copy link
Collaborator

valexande commented May 31, 2023

2
1

@valexande valexande added this to the 2023-05 milestone May 31, 2023
@valexande
Copy link
Collaborator Author

valexande commented May 31, 2023

Natalies Answer: The reply is do not change the mappings that are correct for v3.1.0 to which we are mapping. Future mappings to future versions of the ontology will be discussed when such mappings are necessary.

@valexande valexande added type: feature request something requested to be implemented in a future release type: implementation question something needs clarified, refined or decided before the implementation can continue labels May 31, 2023
@csnyulas csnyulas modified the milestones: 2023-05, 2023-planning Jun 1, 2023
@VladimirAlexiev
Copy link

This comes from OP-TED/ePO#447.

@muricna: I don't think that "mappings are correct for v3.1.0": rdfs:Literal is too unspecific and doesn't mean "string".

@muricna
Copy link

muricna commented Jun 7, 2023

@VladimirAlexiev: If my understanding is correct rdf:langString is a subclass of rdfs:Literal.

For the current mappings of the standard forms which can be in different languages we are mapping to v3.1.0 of the ontology.

Therefore if v3.1.0 of the ontology indicates a data type of rdfs:Literal, we can use rdfs:langString in our use case mentioned in the line above.

Do you agree with my understanding?

It is foreseen to implement rdf:PlainLiteral in v.4.0.0

@VladimirAlexiev
Copy link

VladimirAlexiev commented Apr 2, 2024

Ok, there are 3 issues that ask for the same:

@muricna The hierarchy is like this: rdfs:Literal > rdf:PlainLiteral > (xsd:string, rdf:langString).
What a text field needs to be mapped to depends on its nature:

  • xsd:string is appropriate for codes that are never translated to multiple langs
  • rdf:langString is appropriate for texts that are always translated to multiple langs (if not now, then in the future): so a lang tag is required
  • rdf:PlainLiteral is appropriate for texts that may but don't have to be translated, i.e. lang tag is not required.

https://github.com/OP-TED/ted-model2owl-docs/blob/main/modules/ROOT/pages/uml/conv-datatypes.adoc#technical-conventions-on-umldatatype-elements mentions this order of preference rdf:PlainLiteral, rdfs:Literal, xsd:string, rdf:langString but doesn't explain why.

@andreea-pasare, OP-TED/ePO#405 is not fixed, see comment there.

cc @valexande

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature request something requested to be implemented in a future release type: implementation question something needs clarified, refined or decided before the implementation can continue
Projects
None yet
Development

No branches or pull requests

4 participants