Linked Art in C#

object/letter/1 matches the site

A letter between Alfred Stieglitz and Bertha Obermeyer, dated 1920 is part of the "Stieglitz Family Letters" sub-series, which is part of "Series I: Alfred Stieglitz Correspondence" (which is part of the "Alfred Stieglitz / Georgia O'Keeffe Archive" at Yale University)

On linked.art: Archives › Archival Hierarchy · site JSON · type HumanMadeObject · Archives.Obermeyer_1920

C#

public static HumanMadeObject Obermeyer_1920()
{
    var obermeyer = new HumanMadeObject()
        .WithContext()
        .WithId("https://linked.art/example/object/letter/1")
        .WithLabel("Obermeyer 1920")
        .WithClassifiedAs(Aat.Term("300026879", "Letter"));

    obermeyer.IdentifiedBy = [new Name("Obermeyer, Bertha (1920)").AsPrimaryName()];

    obermeyer.MemberOf = [
        new Set()
            .WithId("https://linked.art/example/set/archive_sfl")
            .WithLabel("Stieglitz Family Letters")
    ];

    return obermeyer;

}
  • Role shortcuts AsPrimaryName, AsAccessionNumber and AsSystemAssignedNumber each add a single classification, with the AAT terms Primary Name, Accession Number and System Number.
  • Terms outside the registry The vocabulary registry holds only the terms linked.art itself publishes, so a dataset's own concepts, places and people are written with Aat.Term, Tgn.Place and Ulan.Person, giving the id and the label.

JSON from the C#

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/object/letter/1",
  "type": "HumanMadeObject",
  "_label": "Obermeyer 1920",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300026879",
      "type": "Type",
      "_label": "Letter"
    }
  ],
  "identified_by": [
    {
      "type": "Name",
      "content": "Obermeyer, Bertha (1920)",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300404670",
          "type": "Type",
          "_label": "Primary Name"
        }
      ]
    }
  ],
  "member_of": [
    {
      "id": "https://linked.art/example/set/archive_sfl",
      "type": "Set",
      "_label": "Stieglitz Family Letters"
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/object/letter/1",
  "type": "HumanMadeObject",
  "_label": "Obermeyer 1920",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300026879",
      "type": "Type",
      "_label": "Letter"
    }
  ],
  "identified_by": [
    {
      "type": "Name",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300404670",
          "type": "Type",
          "_label": "Primary Name"
        }
      ],
      "content": "Obermeyer, Bertha (1920)"
    }
  ],
  "member_of": [
    {
      "id": "https://linked.art/example/set/archive_sfl",
      "type": "Set",
      "_label": "Stieglitz Family Letters"
    }
  ]
}

Comparison

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

Properties used

classified_as content identified_by member_of

Vocabulary terms

Letter Primary Name