Linked Art in C#

set/archive_asc/1 matches the site

On linked.art: Archives › Archival Hierarchy · site JSON · type Set · Archives.In_Series

C#

public static Set In_Series()
{
    var set = new Set()
        .WithContext()
        .WithId("https://linked.art/example/set/archive_asc/1")
        .WithLabel("Alfred Stiegliz Correspondence")
        .WithClassifiedAs(Aat.ArchivalGrouping);

    set.IdentifiedBy = [new Name("Alfred Stiegliz Correspondence").AsPrimaryName()];

    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_asc/1",
  "type": "Set",
  "_label": "Alfred Stiegliz Correspondence",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300404022",
      "type": "Type",
      "_label": "Archival Grouping"
    }
  ],
  "identified_by": [
    {
      "type": "Name",
      "content": "Alfred Stiegliz Correspondence",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300404670",
          "type": "Type",
          "_label": "Primary Name"
        }
      ]
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/set/archive_asc/1",
  "type": "Set",
  "_label": "Alfred Stiegliz Correspondence",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300404022",
      "type": "Type",
      "_label": "Archival Grouping"
    }
  ],
  "identified_by": [
    {
      "type": "Name",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300404670",
          "type": "Type",
          "_label": "Primary Name"
        }
      ],
      "content": "Alfred Stiegliz Correspondence"
    }
  ]
}

Comparison

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

Properties used

classified_as content identified_by

Vocabulary terms

Archival Grouping Primary Name