Linked Art in C#

object/letter/2 matches the site

The Obermeyer letter described in the archives use case should sort as "000001" within the Stieglitz Family Letters set.

On linked.art: Collections and Sets › Order of Members · site JSON · type HumanMadeObject · CollectionsAndSets.Order_of_Members

C#

public static HumanMadeObject Order_of_Members()
{
    // This has been copied from the Archives doc examples
    var parent = new Set()
        .WithId("https://linked.art/example/set/archive_sfl")
        .WithLabel("Stieglitz Family Letters");

    var obermeyer = new HumanMadeObject()
        .WithContext()
        .WithId("https://linked.art/example/object/letter/2")
        .WithLabel("Obermeyer 1920");

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

    obermeyer.MemberOf = [parent];

    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/2",
  "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"
        }
      ]
    },
    {
      "type": "Identifier",
      "content": "000001",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300456575",
          "type": "Type",
          "_label": "Sort Value"
        }
      ],
      "assigned_by": [
        {
          "type": "AttributeAssignment",
          "influenced_by": [
            {
              "id": "https://linked.art/example/set/archive_sfl",
              "type": "Set",
              "_label": "Stieglitz Family Letters"
            }
          ]
        }
      ]
    }
  ],
  "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/2",
  "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)"
    },
    {
      "type": "Identifier",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300456575",
          "type": "Type",
          "_label": "Sort Value"
        }
      ],
      "content": "000001",
      "assigned_by": [
        {
          "type": "AttributeAssignment",
          "influenced_by": [
            {
              "id": "https://linked.art/example/set/archive_sfl",
              "type": "Set",
              "_label": "Stieglitz Family Letters"
            }
          ]
        }
      ]
    }
  ],
  "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

assigned_by classified_as content identified_by influenced_by member_of

Vocabulary terms

Primary Name Sort Value