$a
resourceType
property
$b
matchUriToken
^\w{2,3}$
property
$d
resourceType
property
$e
NOTE:marc-repeatable
false
property
$6
property
$9
addProperty
NOTE
Local Libris field
Exempel: ensure multiple fields matching a top entity convert and revert OK
MARC
[
  {
    "035": {
      "ind1": " ",
      "ind2": " ",
      "subfields": [
        {
          "9": "9927672551"
        }
      ]
    }
  },
  {
    "040": {
      "ind1": " ",
      "ind2": " ",
      "subfields": [
        {
          "a": "Js"
        }
      ]
    }
  }
]
JSON-LD
{
  "identifiedBy": [
    {
      "@type": "LibrisIIINumber",
      "value": "9927672551"
    }
  ],
  "descriptionCreator": {
    "@id": "https://libris.kb.se/library/Js",
    "@type": "Agent",
    "sigel": "Js"
  },
  "mainEntity": {
    "instanceOf": {
      "@type": "Text"
    }
  }
}
Exempel: External code, and repeated descriptionUpgrader. TODO: code for imported records which is not sigel?
MARC
{
  "040": {
    "ind1": " ",
    "ind2": " ",
    "subfields": [
      {
        "a": "DLC"
      },
      {
        "d": "Kama"
      },
      {
        "d": "S"
      }
    ]
  }
}
JSON-LD
{
  "descriptionCreator": {
    "@id": "https://libris.kb.se/library/DLC",
    "@type": "Agent",
    "sigel": "DLC"
  },
  "descriptionUpgrader": [
    {
      "@type": "Library",
      "sigel": "Kama"
    },
    {
      "@type": "Library",
      "sigel": "S"
    }
  ],
  "mainEntity": {
    "instanceOf": {
      "@type": "Text"
    }
  }
}
Exempel: Reconversion of descriptionConventions where both leader/18 (Punctuation policy) and 040$e is present.
Normalized MARC:
{
  "leader": "     cam a        i 4500",
  "fields": [
    {
      "001": "0000000"
    },
    {
      "040": {
        "ind1": " ",
        "ind2": " ",
        "subfields": [
          {
            "e": "rda"
          }
        ]
      }
    }
  ]
}
JSON-LD
{
  "descriptionConventions": [
    {
      "@id": "https://id.kb.se/marc/CatFormType-i"
    },
    {
      "@type": "DescriptionConventions",
      "code": "rda"
    }
  ],
  "mainEntity": {
    "instanceOf": {
      "@type": "Text"
    }
  }
}
Exempel: Reconvert Bibliography type as descriptionCreator.
Normalized MARC:
[
  {
    "040": {
      "ind1": " ",
      "ind2": " ",
      "subfields": [
        {
          "a": "NB"
        }
      ]
    }
  }
]
JSON-LD
{
  "descriptionCreator": {
    "@id": "https://libris.kb.se/library/NB",
    "@type": "Bibliography",
    "sigel": "NB"
  },
  "mainEntity": {
    "instanceOf": {
      "@type": "Text"
    }
  }
}
Exempel: Reconvert Library type as descriptionCreator.
Normalized MARC:
[
  {
    "040": {
      "ind1": " ",
      "ind2": " ",
      "subfields": [
        {
          "a": "S"
        }
      ]
    }
  }
]
JSON-LD
{
  "descriptionCreator": {
    "@id": "https://libris.kb.se/library/S",
    "@type": "Library",
    "sigel": "S"
  },
  "mainEntity": {
    "instanceOf": {
      "@type": "Text"
    }
  }
}
Exempel: 040-9
Normalized MARC:
[
  {
    "040": {
      "ind1": " ",
      "ind2": " ",
      "subfields": [
        {
          "9": "x"
        }
      ]
    }
  }
]
JSON-LD
{
  "marc:agreementName": [
    "x"
  ],
  "mainEntity": {
    "instanceOf": {
      "@type": "Text"
    }
  }
}