Linked Art in C#

set/exhset/2 matches the site

The objects exhibited were typically (but not exclusively) paintings by Manet.

On linked.art: Collections and Sets › Prototypical Members · site JSON · type Set · CollectionsAndSets.Prototypical_Members

C#

public static Set Prototypical_Members()
{
    var set = new Set()
        .WithContext()
        .WithId("https://linked.art/example/set/exhset/2")
        .WithLabel("Exhibition objects");

    var paintingByManet = new HumanMadeObject()
        .WithClassifiedAs(Aat.Painting, Aat.TypeOfWork);
    paintingByManet.ProducedBy = new Production()
    {
        CarriedOutBy = [
            Ulan.Person("500010363", "Manet")
        ]
    };
    set.MembersExemplifiedBy = [paintingByManet];

    return set;
}
  • Metatype classification The second argument classifies the first, not the object: WithClassifiedAs(Aat.Description, Aat.Statement) says this is a Description, and Description is a kind of Statement. The Plain C# form shows the nesting.
  • Terms outside the registry The vocabulary registry holds only the terms linked.art itself publishes, so a dataset's own concepts, places and people are written with Aat.Term, Tgn.Place and Ulan.Person, giving the id and the label.

JSON from the C#

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/set/exhset/2",
  "type": "Set",
  "_label": "Exhibition objects",
  "members_exemplified_by": [
    {
      "type": "HumanMadeObject",
      "produced_by": {
        "type": "Production",
        "carried_out_by": [
          {
            "id": "http://vocab.getty.edu/ulan/500010363",
            "type": "Person",
            "_label": "Manet"
          }
        ]
      },
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300033618",
          "type": "Type",
          "_label": "Painting",
          "classified_as": [
            {
              "id": "http://vocab.getty.edu/aat/300435443",
              "type": "Type",
              "_label": "Type of Work"
            }
          ]
        }
      ]
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/set/exhset/2",
  "type": "Set",
  "_label": "Exhibition objects",
  "members_exemplified_by": [
    {
      "type": "HumanMadeObject",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300033618",
          "type": "Type",
          "_label": "Painting",
          "classified_as": [
            {
              "id": "http://vocab.getty.edu/aat/300435443",
              "type": "Type",
              "_label": "Type of Work"
            }
          ]
        }
      ],
      "produced_by": {
        "type": "Production",
        "carried_out_by": [
          {
            "id": "http://vocab.getty.edu/ulan/500010363",
            "type": "Person",
            "_label": "Manet"
          }
        ]
      }
    }
  ]
}

Comparison

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

Properties used

carried_out_by classified_as members_exemplified_by produced_by

Vocabulary terms

Manet Painting Type of Work