resourceType
match
0
NOTE
For now, always map to instance when $a contains '/', no matter how the media extension code is
when
$a =~ ^.*/.*$ & $2 =~ ^kssb/.+$
$2
resourceType
property
uriTemplateDefaults
inScheme.code
kssb
splitValuePattern
(\w+)(?:/(5|6|7|8))?
splitValueProperties
0
code
1
version
rejoin
/
1
when
$2 =~ ^kssb/.+$
$2
resourceType
property
uriTemplateDefaults
inScheme.code
kssb
splitValuePattern
(\w+)(?:/(5|6|7|8))?
splitValueProperties
0
code
1
version
rejoin
/
NOTE:$2:codeList
http://www.loc.gov/standards/sourcelist/classification.html
$a
property
required
true
$2
resourceType
property
$b
ignored
true
$q
link
resourceType
property
$6
property
Exempel: -
MARC
{
  "084": {
    "ind1": " ",
    "ind2": " ",
    "subfields": [
      {
        "a": "Fut.021(x)"
      },
      {
        "2": "kssb/5"
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "instanceOf": {
      "@type": "Text",
      "classification": [
        {
          "@type": "Classification",
          "code": "Fut.021(x)",
          "inScheme": {
            "@id": "https://id.kb.se/term/kssb%2F5/",
            "@type": "ConceptScheme",
            "code": "kssb",
            "version": "5"
          }
        }
      ]
    }
  }
}
Exempel: kssb classification with media extension should convert to Instance
MARC
{
  "084": {
    "ind1": " ",
    "ind2": " ",
    "subfields": [
      {
        "a": "Koafh-a.54/VK"
      },
      {
        "2": "kssb/7"
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "classification": [
      {
        "@type": "Classification",
        "code": "Koafh-a.54/VK",
        "inScheme": {
          "@id": "https://id.kb.se/term/kssb%2F7/",
          "@type": "ConceptScheme",
          "code": "kssb",
          "version": "7"
        }
      }
    ]
  }
}
Exempel: kssb classification with media extension should convert to Instance
MARC
{
  "084": {
    "ind1": " ",
    "ind2": " ",
    "subfields": [
      {
        "a": "Fvea(x)/O,u"
      },
      {
        "2": "kssb/8"
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "classification": [
      {
        "@type": "Classification",
        "code": "Fvea(x)/O,u",
        "inScheme": {
          "@id": "https://id.kb.se/term/kssb%2F8/",
          "@type": "ConceptScheme",
          "code": "kssb",
          "version": "8"
        }
      }
    ]
  }
}