Linked Art in C#

person/rembrandt/41 matches the site

On linked.art: Required Vocabulary Terms › Sort Name · site JSON · type Person · RequiredTerms.Rembrandt_Sorting_Name

C#

public static Person Rembrandt_Sorting_Name()
{
    var rembrandt = new Person()
        .WithContext()
        .WithId("https://linked.art/example/person/rembrandt/41")
        .WithLabel("Rembrandt");

    rembrandt.IdentifiedBy = [
        new Name("Rembrandt van Rijn").AsPrimaryName(),
        new Name("van Rijn, Rembrandt Harmenszoon").WithClassifiedAs(Aat.SortName)
    ];

    return rembrandt;
}
  • Role shortcuts AsPrimaryName, AsAccessionNumber and AsSystemAssignedNumber each add a single classification, with the AAT terms Primary Name, Accession Number and System Number.

JSON from the C#

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/person/rembrandt/41",
  "type": "Person",
  "_label": "Rembrandt",
  "identified_by": [
    {
      "type": "Name",
      "content": "Rembrandt van Rijn",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300404670",
          "type": "Type",
          "_label": "Primary Name"
        }
      ]
    },
    {
      "type": "Name",
      "content": "van Rijn, Rembrandt Harmenszoon",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300451544",
          "type": "Type",
          "_label": "Sorting Name"
        }
      ]
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/person/rembrandt/41",
  "type": "Person",
  "_label": "Rembrandt",
  "identified_by": [
    {
      "type": "Name",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300404670",
          "type": "Type",
          "_label": "Primary Name"
        }
      ],
      "content": "Rembrandt van Rijn"
    },
    {
      "type": "Name",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300451544",
          "type": "Type",
          "_label": "Sorting Name"
        }
      ],
      "content": "van Rijn, Rembrandt Harmenszoon"
    }
  ]
}

Comparison

The two documents are equivalent (property order ignored, array order significant).

Properties used

classified_as content identified_by

Vocabulary terms

Primary Name Sorting Name