DOREMUS-ANR / marc2rdf

Converter from UNIMARC/INTERMARC to RDF using the DOREMUS model
Apache License 2.0
6 stars 0 forks source link

Undesired vocabulary matching #38

Closed pasqLisena closed 7 years ago

pasqLisena commented 7 years ago

There are cases in which the system of string2uri produces undesired matching. In this example a key is mapped to a mop.

<http://data.doremus.org/expression/d9476c2e-86e0-34d6-9e48-f79e355e61e5> a efrbroo:F22_Self-Contained_Expression ;
    mus:U11_has_key <http://data.doremus.org/vocabulary/diabolo/mop/do> ;
    mus:U12_has_genre [ a mus:M5_Genre ;
            ecrm:P1_is_identified_by "musique contemporaine"@fr ] ;
    ecrm:P102_has_title "En do",
        "In C" ;

A workaround already exists in the code for avoiding the wrong matching in notes, titles and catalogs.

We should instead restrict the matching to the correct property: after the parsing (as it works now) or during it.