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

Incorrect output #5

Open
chrdebru opened this issue Nov 21, 2024 · 0 comments
Open

Incorrect output #5

chrdebru opened this issue Nov 21, 2024 · 0 comments

Comments

@chrdebru
Copy link

Not sure whether this is an RMLMapper problem or a Matey problem, but I have noticed the following:

Input:

<tasks>
  <task>
    <task_id>1</task_id>
    <description lang="en">Design Mockups</description>
    <description lang="fr">Concevoir des maquettes</description>
  </task>
  <task>
    <task_id>2</task_id>
    <description lang="en">Develop Frontend</description>
    <description lang="fr">Développer le frontend</description>
  </task>
  <task>
    <task_id>3</task_id>
    <description lang="en">Develop Backend</description>
    <description lang="fr">Développer le backend</description>
  </task>
</tasks>

Mapping:

 ex: "http://example.com/"

mappings:
  person:
    sources:
      - ['source_1.xml~xpath', '/tasks/task']
    s: http://example.com/task/$(task_id)
    po:
      - [ex:description, $(description), $(description/@lang)~lang]

Output:

@prefix ex: <http://example.com/> .

<http://example.com/task/1> ex:description "Concevoir des maquettes"@en, "Design Mockups"@en .

<http://example.com/task/2> ex:description "Develop Frontend"@en, "Développer le frontend"@en .

<http://example.com/task/3> ex:description "Develop Backend"@en, "Développer le backend"@en .

The French labels do not have the correct language-tag.

If I change the first lang attribute to "it," both descriptions have the it language tag:

<http://example.com/task/1> ex:description "Concevoir des maquettes"@it, "Design Mockups"@it .

It thus keeps the lang attribute from the first description.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant