Linked Art in C#

set/archive_sfl/2 matches the site

The Stieglitz Family Letters set has its members in Box 55.

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

C#

public static Set Physical_Hierarchy()
{
    var set = new Set()
        .WithContext()
        .WithId("https://linked.art/example/set/archive_sfl/2")
        .WithLabel("Stieglitz Family Letters")
        .WithClassifiedAs (Aat.ArchivalSubGrouping);

    set.IdentifiedBy = [ new Name("Stieglitz Family Letters").AsPrimaryName() ];

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

    return set;
}
  • 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/set/archive_sfl/2",
  "type": "Set",
  "_label": "Stieglitz Family Letters",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300404023",
      "type": "Type",
      "_label": "Archival SubGrouping"
    }
  ],
  "identified_by": [
    {
      "type": "Name",
      "content": "Stieglitz Family Letters",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300404670",
          "type": "Type",
          "_label": "Primary Name"
        }
      ]
    }
  ],
  "members_contained_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/set/archive_sfl/2",
  "type": "Set",
  "_label": "Stieglitz Family Letters",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300404023",
      "type": "Type",
      "_label": "Archival SubGrouping"
    }
  ],
  "identified_by": [
    {
      "type": "Name",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300404670",
          "type": "Type",
          "_label": "Primary Name"
        }
      ],
      "content": "Stieglitz Family Letters"
    }
  ],
  "members_contained_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 identified_by members_contained_by

Vocabulary terms

Archival SubGrouping Primary Name