Linked Art in C#

person/rembrandt/44 matches the site

On linked.art: Required Vocabulary Terms › Nationality · site JSON · type Person · RequiredTerms.Rembrandt_Professional_Activities

C#

public static Person Rembrandt_Professional_Activities()
{
    var rembrandt = new Person()
        .WithContext()
        .WithId("https://linked.art/example/person/rembrandt/44")
        .WithLabel("Rembrandt");

    rembrandt.CarriedOut = [
        new Activity().WithClassifiedAs(Aat.ProfessionalActivity)
    ];

    return rembrandt;
}

JSON from the C#

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/person/rembrandt/44",
  "type": "Person",
  "_label": "Rembrandt",
  "carried_out": [
    {
      "type": "Activity",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300393177",
          "type": "Type",
          "_label": "Professional Activities"
        }
      ]
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/person/rembrandt/44",
  "type": "Person",
  "_label": "Rembrandt",
  "carried_out": [
    {
      "type": "Activity",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300393177",
          "type": "Type",
          "_label": "Professional Activities"
        }
      ]
    }
  ]
}

Comparison

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

Properties used

carried_out classified_as

Vocabulary terms

Professional Activities