Linked Art in C#

object/letter/3 matches the site

On linked.art: Archives › Alignment between Conceptual and Physical Hierarchies · site JSON · type HumanMadeObject · Archives.Letter_In_Box

C#

public static HumanMadeObject Letter_In_Box()
{
    var obermeyer = new HumanMadeObject()
        .WithContext()
        .WithId("https://linked.art/example/object/letter/3")
        .WithLabel("Obermeyer 1920");

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

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

    obermeyer.HeldOrSupportedBy = [
        new HumanMadeObject()
            .WithId("https://linked.art/example/object/box55")
            .WithLabel("Archival Box 55")
    ];

    return obermeyer;

}
  • 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/object/letter/3",
  "type": "HumanMadeObject",
  "_label": "Obermeyer 1920",
  "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"
    }
  ],
  "held_or_supported_by": [
    {
      "id": "https://linked.art/example/object/box55",
      "type": "HumanMadeObject",
      "_label": "Archival Box 55"
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/object/letter/3",
  "type": "HumanMadeObject",
  "_label": "Obermeyer 1920",
  "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"
    }
  ],
  "held_or_supported_by": [
    {
      "id": "https://linked.art/example/object/box55",
      "type": "HumanMadeObject",
      "_label": "Archival Box 55"
    }
  ]
}

Comparison

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

Properties used

classified_as content held_or_supported_by identified_by member_of

Vocabulary terms

Primary Name