Skip to content

Incorrect output #5

@chrdebru

Description

@chrdebru

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions