Linked Art in C#

set/rijks_objects/1 matches the site

The full collection of the Rijksmuseum.

On linked.art: Collections and Sets › Collections of Objects · site JSON · type Set · CollectionsAndSets.Rijksmuseum_Collection

C#

public static Set Rijksmuseum_Collection()
{
    var set = new Set()
        .WithContext()
        .WithId("https://linked.art/example/set/rijks_objects/1")
        .WithLabel("Collection of the Rijksmuseum")
        .WithClassifiedAs(Aat.Collection);

    set.IdentifiedBy = [new Name("Collection of the Rijksmuseum").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/rijks_objects/1",
  "type": "Set",
  "_label": "Collection of the Rijksmuseum",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300025976",
      "type": "Type",
      "_label": "Collection"
    }
  ],
  "identified_by": [
    {
      "type": "Name",
      "content": "Collection of the Rijksmuseum",
      "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/rijks_objects/1",
  "type": "Set",
  "_label": "Collection of the Rijksmuseum",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300025976",
      "type": "Type",
      "_label": "Collection"
    }
  ],
  "identified_by": [
    {
      "type": "Name",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300404670",
          "type": "Type",
          "_label": "Primary Name"
        }
      ],
      "content": "Collection of the Rijksmuseum"
    }
  ]
}

Comparison

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

Properties used

classified_as content identified_by

Vocabulary terms

Collection Primary Name