match
0
when
$t & i1=0 & i2=2
1
when
$t & i1=1 & i2=2
2
when
$t & i1=3 & i2=2
3
when
$t & i2=2
4
when
$t & i1=0
5
when
$t & i1=1
6
when
$t & i1=3
7
when
$t
8
when
i1=0 & i2=2
inherit-match
$t & i1=0 & i2=2
NOTE
An agent is not a part; we add an untitled, intermediary hasPart
9
when
i1=1 & i2=2
inherit-match
$t & i1=1 & i2=2
NOTE
An agent is not a part; we add an untitled, intermediary hasPart
10
when
i1=3 & i2=2
inherit-match
$t & i1=3 & i2=2
NOTE
An agent is not a part; we add an untitled, intermediary hasPart
11
when
i2=2
inherit-match
$t & i2=2
NOTE
An agent is not a part; we add an untitled, intermediary hasPart
12
resourceType
aboutAlias
_:contribution
$6
about
_:contribution
property
$8
about
_:contribution
$0
about
_:agent
addProperty
Exempel: -
MARC
{
  "700": {
    "ind1": "1",
    "ind2": " ",
    "subfields": [
      {
        "8": "subfield 8"
      },
      {
        "6": "subfield 6"
      },
      {
        "a": "Lindman, Mervi,"
      },
      {
        "d": "1971-"
      },
      {
        "4": "ill"
      },
      {
        "4": "9pu"
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "instanceOf": {
      "@type": "Text",
      "contribution": [
        {
          "@type": "Contribution",
          "agent": {
            "@type": "Person",
            "familyName": "Lindman",
            "givenName": "Mervi",
            "lifeSpan": "1971-"
          },
          "marc:fieldref": "subfield 6",
          "marc:groupid": "subfield 8",
          "role": [
            {
              "@id": "https://id.kb.se/relator/ill",
              "@type": "Role",
              "code": "ill"
            },
            {
              "@id": "https://id.kb.se/relator/9pu",
              "@type": "Role",
              "code": "9pu"
            }
          ]
        }
      ]
    }
  }
}
Exempel: Example from bib 10068187
MARC
[
  {
    "700": {
      "ind1": "1",
      "ind2": " ",
      "subfields": [
        {
          "a": "Hayn, Joseph,"
        },
        {
          "d": "1732-1809."
        },
        {
          "t": "Trio,"
        },
        {
          "m": "piano"
        },
        {
          "m": "flöjt"
        },
        {
          "m": "violoncell,"
        },
        {
          "n": "Hob. XV:15,"
        },
        {
          "r": "G-dur"
        }
      ]
    }
  },
  {
    "700": {
      "ind1": "1",
      "ind2": " ",
      "subfields": [
        {
          "a": "Hayn, Joseph,"
        },
        {
          "d": "1732-1809."
        },
        {
          "t": "Trio,"
        },
        {
          "m": "piano"
        },
        {
          "m": "flöjt"
        },
        {
          "m": "violoncell,"
        },
        {
          "n": "Hob. XV:16,"
        },
        {
          "r": "D-dur"
        }
      ]
    }
  },
  {
    "700": {
      "ind1": "1",
      "ind2": " ",
      "subfields": [
        {
          "a": "Hayn, Joseph,"
        },
        {
          "d": "1732-1809."
        },
        {
          "t": "Trio,"
        },
        {
          "m": "piano"
        },
        {
          "m": "flöjt"
        },
        {
          "m": "violoncell,"
        },
        {
          "n": "Hob. XV:17,"
        },
        {
          "r": "F-dur"
        }
      ]
    }
  }
]
JSON-LD
{
  "mainEntity": {
    "instanceOf": {
      "@type": "Text",
      "relationship": [
        {
          "@type": "Relationship",
          "entity": {
            "@type": "Work",
            "contribution": [
              {
                "@type": "PrimaryContribution",
                "agent": {
                  "@type": "Person",
                  "familyName": "Hayn",
                  "givenName": "Joseph",
                  "lifeSpan": "1732-1809."
                }
              }
            ],
            "hasTitle": [
              {
                "@type": "Title",
                "mainTitle": "Trio",
                "partNumber": [
                  "Hob. XV:15"
                ]
              }
            ],
            "musicKey": "G-dur",
            "musicMedium": [
              {
                "@type": "MusicMedium",
                "label": "piano"
              },
              {
                "@type": "MusicMedium",
                "label": "flöjt"
              },
              {
                "@type": "MusicMedium",
                "label": "violoncell"
              }
            ]
          }
        },
        {
          "@type": "Relationship",
          "entity": {
            "@type": "Work",
            "contribution": [
              {
                "@type": "PrimaryContribution",
                "agent": {
                  "@type": "Person",
                  "familyName": "Hayn",
                  "givenName": "Joseph",
                  "lifeSpan": "1732-1809."
                }
              }
            ],
            "hasTitle": [
              {
                "@type": "Title",
                "mainTitle": "Trio",
                "partNumber": [
                  "Hob. XV:16"
                ]
              }
            ],
            "musicKey": "D-dur",
            "musicMedium": [
              {
                "@type": "MusicMedium",
                "label": "piano"
              },
              {
                "@type": "MusicMedium",
                "label": "flöjt"
              },
              {
                "@type": "MusicMedium",
                "label": "violoncell"
              }
            ]
          }
        },
        {
          "@type": "Relationship",
          "entity": {
            "@type": "Work",
            "contribution": [
              {
                "@type": "PrimaryContribution",
                "agent": {
                  "@type": "Person",
                  "familyName": "Hayn",
                  "givenName": "Joseph",
                  "lifeSpan": "1732-1809."
                }
              }
            ],
            "hasTitle": [
              {
                "@type": "Title",
                "mainTitle": "Trio",
                "partNumber": [
                  "Hob. XV:17"
                ]
              }
            ],
            "musicKey": "F-dur",
            "musicMedium": [
              {
                "@type": "MusicMedium",
                "label": "piano"
              },
              {
                "@type": "MusicMedium",
                "label": "flöjt"
              },
              {
                "@type": "MusicMedium",
                "label": "violoncell"
              }
            ]
          }
        }
      ]
    }
  }
}
Exempel: -
MARC
{
  "700": {
    "ind1": "1",
    "ind2": " ",
    "subfields": [
      {
        "8": "subfield 8"
      },
      {
        "6": "subfield 6"
      },
      {
        "i": "Parafraserar"
      },
      {
        "a": "Jansson, Tove"
      },
      {
        "t": "Anteckningar från en ö"
      },
      {
        "e": "Skapad av"
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "instanceOf": {
      "@type": "Text",
      "relationship": [
        {
          "@type": "Relationship",
          "relation": [
            {
              "@type": "Relation",
              "label": "Parafraserar"
            }
          ],
          "entity": {
            "@type": "Work",
            "hasTitle": [
              {
                "@type": "Title",
                "mainTitle": "Anteckningar från en ö"
              }
            ],
            "contribution": [
              {
                "@type": "PrimaryContribution",
                "role": [
                  {
                    "@type": "Role",
                    "label": "Skapad av"
                  }
                ],
                "marc:fieldref": "subfield 6",
                "marc:groupid": "subfield 8",
                "agent": {
                  "@type": "Person",
                  "familyName": "Jansson",
                  "givenName": "Tove"
                }
              }
            ]
          }
        }
      ]
    }
  }
}
Exempel: -
MARC
{
  "700": {
    "ind1": "1",
    "ind2": " ",
    "subfields": [
      {
        "a": "Jansson, Tove"
      },
      {
        "t": "Anteckningar från en ö"
      },
      {
        "4": "aut"
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "instanceOf": {
      "@type": "Text",
      "relationship": [
        {
          "@type": "Relationship",
          "entity": {
            "@type": "Work",
            "hasTitle": [
              {
                "@type": "Title",
                "mainTitle": "Anteckningar från en ö"
              }
            ],
            "contribution": [
              {
                "@type": "PrimaryContribution",
                "agent": {
                  "@type": "Person",
                  "familyName": "Jansson",
                  "givenName": "Tove"
                },
                "role": [
                  {
                    "@id": "https://id.kb.se/relator/aut",
                    "@type": "Role",
                    "code": "aut"
                  }
                ]
              }
            ]
          }
        }
      ]
    }
  }
}
Exempel: -
MARC
{
  "700": {
    "ind1": "1",
    "ind2": " ",
    "subfields": [
      {
        "a": "Munro, Alice,"
      },
      {
        "d": "1931-"
      },
      {
        "t": "Progress of love."
      },
      {
        "k": "Urval"
      },
      {
        "l": "Svenska."
      },
      {
        "4": "aut"
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "instanceOf": {
      "@type": "Text",
      "relationship": [
        {
          "@type": "Relationship",
          "entity": {
            "@type": "Work",
            "hasTitle": [
              {
                "@type": "Title",
                "mainTitle": "Progress of love.",
                "marc:formSubheading": [
                  "Urval"
                ]
              }
            ],
            "language": {
              "@type": "Language",
              "label": "Svenska."
            },
            "contribution": [
              {
                "@type": "PrimaryContribution",
                "agent": {
                  "@type": "Person",
                  "familyName": "Munro",
                  "givenName": "Alice",
                  "lifeSpan": "1931-"
                },
                "role": [
                  {
                    "@id": "https://id.kb.se/relator/aut",
                    "@type": "Role",
                    "code": "aut"
                  }
                ]
              }
            ]
          }
        }
      ]
    }
  }
}
Exempel: -
MARC
{
  "700": {
    "ind1": "0",
    "ind2": " ",
    "subfields": [
      {
        "8": "subfield 8"
      },
      {
        "6": "subfield 6"
      },
      {
        "a": "Cyprianus av Kartago,"
      },
      {
        "d": "1914-1987"
      },
      {
        "t": "De idolorum vanitate."
      },
      {
        "4": "ill"
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "instanceOf": {
      "@type": "Text",
      "relationship": [
        {
          "@type": "Relationship",
          "entity": {
            "@type": "Work",
            "hasTitle": [
              {
                "@type": "Title",
                "mainTitle": "De idolorum vanitate."
              }
            ],
            "contribution": [
              {
                "@type": "PrimaryContribution",
                "agent": {
                  "@type": "Person",
                  "name": "Cyprianus av Kartago",
                  "lifeSpan": "1914-1987"
                },
                "marc:fieldref": "subfield 6",
                "marc:groupid": "subfield 8",
                "role": [
                  {
                    "@id": "https://id.kb.se/relator/ill",
                    "@type": "Role",
                    "code": "ill"
                  }
                ]
              }
            ]
          }
        }
      ]
    }
  }
}
Exempel: -
MARC
{
  "700": {
    "ind1": "1",
    "ind2": "2",
    "subfields": [
      {
        "a": "Schubert, Franz,"
      },
      {
        "d": "1797-1828"
      },
      {
        "t": "Neue Ausgabe sämtlicher Werke"
      },
      {
        "x": "99-0014962-9"
      },
      {
        "4": "aut"
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "instanceOf": {
      "@type": "Text",
      "hasPart": [
        {
          "@type": "Work",
          "hasTitle": [
            {
              "@type": "Title",
              "mainTitle": "Neue Ausgabe sämtlicher Werke"
            }
          ],
          "identifiedBy": [
            {
              "@type": "ISSN",
              "value": "99-0014962-9"
            }
          ],
          "contribution": [
            {
              "@type": "PrimaryContribution",
              "agent": {
                "@type": "Person",
                "familyName": "Schubert",
                "givenName": "Franz",
                "lifeSpan": "1797-1828"
              },
              "role": [
                {
                  "@id": "https://id.kb.se/relator/aut",
                  "@type": "Role",
                  "code": "aut"
                }
              ]
            }
          ]
        }
      ]
    }
  }
}
Exempel: -
MARC
{
  "700": {
    "ind1": "1",
    "ind2": "2",
    "subfields": [
      {
        "a": "Jansson, Tove"
      },
      {
        "4": "aut"
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "instanceOf": {
      "@type": "Text",
      "hasPart": [
        {
          "@type": "Work",
          "contribution": [
            {
              "@type": "PrimaryContribution",
              "agent": {
                "@type": "Person",
                "familyName": "Jansson",
                "givenName": "Tove"
              },
              "role": [
                {
                  "@id": "https://id.kb.se/relator/aut",
                  "@type": "Role",
                  "code": "aut"
                }
              ]
            }
          ]
        }
      ]
    }
  }
}
Exempel: -
MARC
{
  "700": {
    "ind1": "1",
    "ind2": " ",
    "subfields": [
      {
        "i": "Parafraserar"
      },
      {
        "a": "Jansson, Tove"
      },
      {
        "t": "Anteckningar från en ö"
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "instanceOf": {
      "@type": "Text",
      "relationship": [
        {
          "@type": "Relationship",
          "relation": [
            {
              "@type": "Relation",
              "label": "Parafraserar"
            }
          ],
          "entity": {
            "@type": "Work",
            "hasTitle": [
              {
                "@type": "Title",
                "mainTitle": "Anteckningar från en ö"
              }
            ],
            "contribution": [
              {
                "@type": "PrimaryContribution",
                "agent": {
                  "@type": "Person",
                  "familyName": "Jansson",
                  "givenName": "Tove"
                }
              }
            ]
          }
        }
      ]
    }
  }
}
Exempel: -
MARC
{
  "700": {
    "ind1": "3",
    "ind2": "2",
    "subfields": [
      {
        "a": "Family X."
      },
      {
        "4": "ctb"
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "instanceOf": {
      "@type": "Text",
      "hasPart": [
        {
          "@type": "Work",
          "contribution": [
            {
              "@type": "PrimaryContribution",
              "agent": {
                "@type": "Family",
                "name": "Family X."
              },
              "role": [
                {
                  "@id": "https://id.kb.se/relator/ctb",
                  "@type": "Role",
                  "code": "ctb"
                }
              ]
            }
          ]
        }
      ]
    }
  }
}
Exempel: -
MARC
{
  "700": {
    "ind1": "0",
    "ind2": "2",
    "subfields": [
      {
        "a": "Tove Jansson"
      },
      {
        "4": "aut"
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "instanceOf": {
      "@type": "Text",
      "hasPart": [
        {
          "@type": "Work",
          "contribution": [
            {
              "@type": "PrimaryContribution",
              "agent": {
                "@type": "Person",
                "name": "Tove Jansson"
              },
              "role": [
                {
                  "@id": "https://id.kb.se/relator/aut",
                  "@type": "Role",
                  "code": "aut"
                }
              ]
            }
          ]
        }
      ]
    }
  }
}
Exempel: -
MARC
{
  "700": {
    "ind1": "1",
    "ind2": " ",
    "subfields": [
      {
        "a": "Shakespeare, William,"
      },
      {
        "d": "1564-1616"
      },
      {
        "t": "The new Cambridge Shakespeare"
      },
      {
        "x": "99-0463846-2"
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "instanceOf": {
      "@type": "Text",
      "relationship": [
        {
          "@type": "Relationship",
          "entity": {
            "@type": "Work",
            "hasTitle": [
              {
                "@type": "Title",
                "mainTitle": "The new Cambridge Shakespeare"
              }
            ],
            "identifiedBy": [
              {
                "@type": "ISSN",
                "value": "99-0463846-2"
              }
            ],
            "contribution": [
              {
                "@type": "PrimaryContribution",
                "agent": {
                  "@type": "Person",
                  "familyName": "Shakespeare",
                  "givenName": "William",
                  "lifeSpan": "1564-1616"
                }
              }
            ]
          }
        }
      ]
    }
  }
}
Exempel: -
MARC
[
  {
    "700": {
      "ind1": "1",
      "ind2": " ",
      "subfields": [
        {
          "a": "Hindemith, Paul,"
        },
        {
          "d": "1895-1963"
        },
        {
          "t": "Kvartett,"
        },
        {
          "m": "stråkar,"
        },
        {
          "n": "nr 4, op. 22"
        },
        {
          "4": "cmp"
        },
        {
          "0": "111111111111"
        }
      ]
    }
  }
]
JSON-LD
{
  "mainEntity": {
    "instanceOf": {
      "@type": "Text",
      "relationship": [
        {
          "@type": "Relationship",
          "entity": {
            "@type": "Work",
            "contribution": [
              {
                "@type": "PrimaryContribution",
                "agent": {
                  "@type": "Person",
                  "familyName": "Hindemith",
                  "givenName": "Paul",
                  "lifeSpan": "1895-1963"
                },
                "role": [
                  {
                    "@id": "https://id.kb.se/relator/cmp",
                    "@type": "Role",
                    "code": "cmp"
                  }
                ]
              }
            ],
            "hasTitle": [
              {
                "@type": "Title",
                "mainTitle": "Kvartett",
                "partNumber": [
                  "nr 4, op. 22"
                ]
              }
            ],
            "marc:uri": [
              "111111111111"
            ],
            "musicMedium": [
              {
                "@type": "MusicMedium",
                "label": "stråkar"
              }
            ]
          }
        }
      ]
    }
  }
}
Exempel: handle no given ind1
MARC
[
  {
    "700": {
      "ind1": " ",
      "ind2": " ",
      "subfields": [
        {
          "a": "Bartha, Imre"
        },
        {
          "4": "trl"
        }
      ]
    }
  }
]
Normalized MARC:
[
  {
    "700": {
      "ind1": "1",
      "ind2": " ",
      "subfields": [
        {
          "a": "Bartha, Imre"
        },
        {
          "4": "trl"
        }
      ]
    }
  }
]
JSON-LD
{
  "mainEntity": {
    "instanceOf": {
      "@type": "Text",
      "contribution": [
        {
          "@type": "Contribution",
          "agent": {
            "@type": "Person",
            "familyName": "Bartha",
            "givenName": "Imre"
          },
          "role": [
            {
              "@type": "Role",
              "@id": "https://id.kb.se/relator/trl",
              "code": "trl"
            }
          ]
        }
      ]
    }
  }
}
Exempel: language in hasPart Work
MARC
{
  "700": {
    "ind1": "1",
    "ind2": "2",
    "subfields": [
      {
        "a": "Celan, Paul,"
      },
      {
        "d": "1920-1970"
      },
      {
        "t": "Atemwende"
      },
      {
        "l": "Svenska"
      },
      {
        "4": "aut"
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "instanceOf": {
      "@type": "Text",
      "hasPart": [
        {
          "@type": "Work",
          "contribution": [
            {
              "@type": "PrimaryContribution",
              "agent": {
                "@type": "Person",
                "familyName": "Celan",
                "givenName": "Paul",
                "lifeSpan": "1920-1970"
              },
              "role": [
                {
                  "@id": "https://id.kb.se/relator/aut",
                  "@type": "Role",
                  "code": "aut"
                }
              ]
            }
          ],
          "hasTitle": [
            {
              "@type": "Title",
              "mainTitle": "Atemwende"
            }
          ],
          "language": {
            "@type": "Language",
            "label": "Svenska"
          }
        }
      ]
    }
  }
}