dh-trier / wlv

Wine Label Vocabulary
2 stars 1 forks source link

Separate element group for relations (especially between textual and visual) = MW #29

Closed christofs closed 2 years ago

christofs commented 2 years ago

Example:

<figure figureNum="1" figurePosition="center-center" figureType="realistic">
    <figureItem xml:id="f1" itemData="Hase (Fauna)" ref="wikidata:Q63941258"></figureItem>
</figure>

<!-- ... -->

<textual>
    <wineName wineNameType="vineyard / Einzellage">
    Brauneberger<w xml:id="w1">Hasenläufer</w>Kabinett</wineName>
</textual>

<!-- ... -->

<relations>
    <relation relType="illustration/" relFunc="textual visual">
        <relItem target="#w1">Hasenläufer</relItem>
        <relItem target="#f1">Hase</relItem>
    </relation>
</relations>
christofs commented 2 years ago

Alternative

<figure xml:id="vis_1" figurePosition="center-center" figureType="realistic">
    <figureItem xml:id="vis_1-1" itemData="Hase (Fauna)" ref="wikidata:Q63941258"/>
</figure>

<!-- ... -->

<textual>
    <wineName xml:id="t_1">
        <location xml:id="t_1-1" type="village">Brauneberger</location>
        <location xml:id="t_1-2" type="vineyard">Hasenläufer</location>
        <qualityLabel xml:id="t_1-3">Kabinett</qualityLabel>
    </wineName>
</textual>

<!-- ... -->

<relations>
    <relation xml:id="r_1" relType="illustration" relFunc="textual visual" targets="#t_1-2 #v_1-1" />
</relations>