Linked Art in C#

set/rijks_paintings/1 matches the site

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

C#

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

    set.IdentifiedBy = [new Name("Paintings of the Rijksmuseum").AsPrimaryName()];
    set.MemberOf = [
        new Set()
            .WithId("https://linked.art/example/set/rijks_objects")
            .WithLabel("Collection of the Rijksmuseum")
    ];
    set.UsedFor = [
        new Activity()
        {
            ClassifiedAs = [Aat.Curating],
            CarriedOutBy = [
                new Group()
                    .WithId("https://linked.art/example/group/rijks_paintings_dept")
                    .WithLabel("Paintings Department")
            ]
        }
    ];

    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_paintings/1",
  "type": "Set",
  "_label": "Paintings of the Rijksmuseum",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300025976",
      "type": "Type",
      "_label": "Collection"
    }
  ],
  "identified_by": [
    {
      "type": "Name",
      "content": "Paintings of the Rijksmuseum",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300404670",
          "type": "Type",
          "_label": "Primary Name"
        }
      ]
    }
  ],
  "member_of": [
    {
      "id": "https://linked.art/example/set/rijks_objects",
      "type": "Set",
      "_label": "Collection of the Rijksmuseum"
    }
  ],
  "used_for": [
    {
      "type": "Activity",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300054277",
          "type": "Type",
          "_label": "Curating"
        }
      ],
      "carried_out_by": [
        {
          "id": "https://linked.art/example/group/rijks_paintings_dept",
          "type": "Group",
          "_label": "Paintings Department"
        }
      ]
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/set/rijks_paintings/1",
  "type": "Set",
  "_label": "Paintings 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": "Paintings of the Rijksmuseum"
    }
  ],
  "member_of": [
    {
      "id": "https://linked.art/example/set/rijks_objects",
      "type": "Set",
      "_label": "Collection of the Rijksmuseum"
    }
  ],
  "used_for": [
    {
      "type": "Activity",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300054277",
          "type": "Type",
          "_label": "Curating"
        }
      ],
      "carried_out_by": [
        {
          "id": "https://linked.art/example/group/rijks_paintings_dept",
          "type": "Group",
          "_label": "Paintings Department"
        }
      ]
    }
  ]
}

Comparison

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

Properties used

carried_out_by classified_as content identified_by member_of used_for

Vocabulary terms

Collection Curating Primary Name