uio-library / roald-converters

Konverteringspakke for emnevokabularer, konverterer fra Roald 2, Bibsys, MESH-XML til Marc21XML og RDF/SKOS
0 stars 0 forks source link

Add acronyms to data model #5

Open danmichaelo opened 8 years ago

danmichaelo commented 8 years ago

Requirements:

Example from Roald 2:

te= Hypertext markup language
bf= Dynamisk html
bf= Dhtml
bf= Xhtml
en= Hypertext markup language
ak= HTML

Roald 3 suggestion:

{
    "13819": {
        "prefLabel": {
            "en": {
                "acronymFor": "HyperText Markup Language",
                "value": "HTML"
            },
            "nb": {
                "acronymFor": "HyperText Markup Language",
                "value": "HTML"
            }
        },
        "altLabel": {
            "nb": [
                {
                    "value": "DHTML",
                    "acronymFor": "Dynamisk HTML",
                },{
                    "value": "XHTML"
                }
            ],
            "en": [
                {
                    "value": "DHTML",
                    "acronymFor": "Dynamic HyperText Markup Language",
                },{
                    "value": "XHTML",
                    "acronymFor": "Extensible HyperText Markup Language"
                }
            ]
        }
    }
}

If the acronym is not the presentation term, we could use hasAcronym instead of acronymFor.

Some manual work will be involved in matching terms to their acronyms, but there's < 500 acronyms so that's ok.

danmichaelo commented 8 years ago

Example using acronymFor:

    {
        "nb": {
          "value": "LVSEM",
          "acronymFor": "Low-voltage scanning electron microscopy"
        }, 
        "en": {
          "value": "LVSEM", 
          "acronymFor": "Low-voltage scanning electron microscopy"
        }