Skip to content

Challenge: Languagemap for multi-value reference #18

Description

From github issue: RMLio/rmlmapper-java#65

Description

In RML, if there is an object map that has a reference which creates multiple terms creates and that object map also has a language map, the mapper does not know (and cannot know?) which value of the reference to combine with which value of the language map.

It would be interesting to investigate a way to say in RML that the objectmap should go over the <rdaw:P10086> tags, and then extract from each a value and a language. (Whereas now, RML can only say to create multiple values from the <rdaw:P10086> tags, and also, independently, to create multiple language tags from the <rdaw:P10086> tags.)

Input data (xml)

<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
   xmlns:rdaw="http://rdaregistry.info/Elements/w/"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>
  <rdf:Description rdf:about="https://trellis.sinopia.io/repository/washington/d0d9f78e-05f1-4594-bdcb-b396ce68f618">
    <rdaw:P10086 xml:lang="pt">Lórax (Beber)</rdaw:P10086>
    <rdaw:P10086 xml:lang="af">Loraks</rdaw:P10086>
    <rdaw:P10086 xml:lang="ru">Driad</rdaw:P10086>
    <rdaw:P10086 xml:lang="es">Lórax</rdaw:P10086>
  </rdf:Description>
<rdf:RDF>

Desired output

@prefix bf: <http://id.loc.gov/ontologies/bibframe/>.

<https://trellis.sinopia.io/repository/washington/d0d9f78e-05f1-4594-bdcb-b396ce68f618>
  bf:title _:0 .

_:0 a bf:VariantTitle;
  bf:mainTitle "Driad"@pt, "Loraks"@af, "Lórax"@ru, "Lórax (Beber)"@es .

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions