-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
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
Labels
No labels