TODO:defaultLink
electronicLocater and @type:Resource OK as default?
resourceType
embedded
true
i1
property
tokenMap
0
email
1
ftp
2
remoteLoginTelnet
3
dialUp
definedElsewhereToken
7
marcDefault
4
match
0
when
i2=0
resourceType
1
when
i2=1
resourceType
2
when
i2=2
resourceType
3
when
i2=8
addLink
resourceType
TODO?
if $x=digipic or $y=bild
addLink
{ "@id": "https://id.kb.se/vocab/depiction" }
if $z=Wikipedia|IMDB
$6
property
$3
$a
addProperty
$f
addProperty
$u
addProperty
$y
addProperty
$z
Exempel: -
MARC
{
  "856": {
    "ind1": "4",
    "ind2": "2",
    "subfields": [
      {
        "u": "http://example.org/review"
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "isPrimaryTopicOf": [
      {
        "@type": "Document",
        "uri": [
          "http://example.org/review"
        ]
      }
    ]
  }
}
Exempel: -
MARC
{
  "856": {
    "ind1": "7",
    "ind2": " ",
    "subfields": [
      {
        "u": "http://www-spires.slac.stanford.edu/spires/find/hep?cnum=C96-05-30"
      },
      {
        "2": "http"
      }
    ]
  }
}
Normalized MARC:
{
  "856": {
    "ind1": "4",
    "ind2": " ",
    "subfields": [
      {
        "u": "http://www-spires.slac.stanford.edu/spires/find/hep?cnum=C96-05-30"
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "electronicLocator": [
      {
        "@type": "Document",
        "uri": [
          "http://www-spires.slac.stanford.edu/spires/find/hep?cnum=C96-05-30"
        ]
      }
    ]
  }
}
Exempel: -
MARC
{
  "856": {
    "ind1": "4",
    "ind2": "0",
    "subfields": [
      {
        "u": "http://example.com/doc.pdf"
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "associatedMedia": [
      {
        "@type": "MediaObject",
        "uri": [
          "http://example.com/doc.pdf"
        ]
      }
    ]
  }
}
Exempel: -
MARC
[
  {
    "856": {
      "ind1": "4",
      "ind2": "0",
      "subfields": [
        {
          "u": "http://example.com/doc.pdf"
        }
      ]
    }
  },
  {
    "856": {
      "ind1": "4",
      "ind2": "2",
      "subfields": [
        {
          "u": "http://example.org/page"
        }
      ]
    }
  }
]
JSON-LD
{
  "mainEntity": {
    "associatedMedia": [
      {
        "@type": "MediaObject",
        "uri": [
          "http://example.com/doc.pdf"
        ]
      }
    ],
    "isPrimaryTopicOf": [
      {
        "@type": "Document",
        "uri": [
          "http://example.org/page"
        ]
      }
    ]
  }
}
Exempel: -
MARC
{
  "856": {
    "ind1": "4",
    "ind2": "0",
    "subfields": [
      {
        "u": "http://www.framtidsstudier.se/filebank/files/20051201$133251$fil$048Ti3PL2UIwRJQEBbDG.pdf"
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "associatedMedia": [
      {
        "@type": "MediaObject",
        "uri": [
          "http://www.framtidsstudier.se/filebank/files/20051201$133251$fil$048Ti3PL2UIwRJQEBbDG.pdf"
        ]
      }
    ]
  }
}
Exempel: -
MARC
{
  "856": {
    "ind1": "4",
    "ind2": "1",
    "subfields": [
      {
        "u": "http://www.vr.se/tvarsnitt"
      },
      {
        "z": "Tidskriftens webbplats"
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "marc:versionOfResource": [
      {
        "@type": "Electronic",
        "marc:publicNote": [
          "Tidskriftens webbplats"
        ],
        "uri": [
          "http://www.vr.se/tvarsnitt"
        ]
      }
    ]
  }
}
Exempel: -
MARC
{
  "856": {
    "ind1": " ",
    "ind2": " ",
    "subfields": [
      {
        "u": "http://example.com/doc.pdf"
      }
    ]
  }
}
Normalized MARC:
{
  "856": {
    "ind1": "4",
    "ind2": " ",
    "subfields": [
      {
        "u": "http://example.com/doc.pdf"
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "electronicLocator": [
      {
        "@type": "Document",
        "uri": [
          "http://example.com/doc.pdf"
        ]
      }
    ]
  }
}
Exempel: -
MARC
{
  "856": {
    "ind1": "4",
    "ind2": "8",
    "subfields": [
      {
        "u": "http://example.com/doc.pdf"
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "relatedTo": [
      {
        "@type": "Document",
        "uri": [
          "http://example.com/doc.pdf"
        ]
      }
    ]
  }
}
Exempel: URI + encodingFormat
MARC
{
  "856": {
    "ind1": "4",
    "ind2": "0",
    "subfields": [
      {
        "u": "http://www.cdc.gov/ncidod/EID/eid.htm"
      },
      {
        "q": "text/html"
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "associatedMedia": [
      {
        "@type": "MediaObject",
        "uri": [
          "http://www.cdc.gov/ncidod/EID/eid.htm"
        ],
        "encodingFormat": {
          "@type": "EncodingFormat",
          "label": "text/html"
        }
      }
    ]
  }
}
Exempel: ftp + contentSize
MARC
{
  "856": {
    "ind1": "1",
    "ind2": " ",
    "subfields": [
      {
        "u": "ftp://example.com"
      },
      {
        "s": "16874 bytes"
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "electronicLocator": [
      {
        "@type": "Document",
        "uri": [
          "ftp://example.com"
        ],
        "marc:electronicLocatorType": "ftp",
        "contentSize": [
          "16874 bytes"
        ]
      }
    ]
  }
}