Linked Art in C#

provenance/coffin_promise/40 matches the site

On linked.art: Required Vocabulary Terms › Promise Activity · site JSON · type Activity · RequiredTerms.Promise_Activity

C#

public static Activity Promise_Activity()
{
    var activity = new Activity()
        .WithContext()
        .WithId("https://linked.art/example/provenance/coffin_promise/40")
        .WithLabel("Promised Gift of Painting")
        .WithClassifiedAs(Aat.ProvenanceActivity);

    activity.Part = [
        new Activity()
            .WithLabel("Promise of Gift")
            .WithClassifiedAs(Aat.PromiseActivity)
    ];

    return activity;
}

JSON from the C#

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/provenance/coffin_promise/40",
  "type": "Activity",
  "_label": "Promised Gift of Painting",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300055863",
      "type": "Type",
      "_label": "Provenance Activity"
    }
  ],
  "part": [
    {
      "type": "Activity",
      "_label": "Promise of Gift",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300435599",
          "type": "Type",
          "_label": "Promise"
        }
      ]
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/provenance/coffin_promise/40",
  "type": "Activity",
  "_label": "Promised Gift of Painting",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300055863",
      "type": "Type",
      "_label": "Provenance Activity"
    }
  ],
  "part": [
    {
      "type": "Activity",
      "_label": "Promise of Gift",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300435599",
          "type": "Type",
          "_label": "Promise"
        }
      ]
    }
  ]
}

Comparison

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

Properties used

classified_as part

Vocabulary terms

Provenance Activity Promise