Linked Art in C#

provenance/coffin_promise/1 matches the site

Thomas Jaffe has promised to give the 19th Century Indo-Pacific Coffin to Yale University Art Gallery.

On linked.art: Promised Activities › Promised Gift · site JSON · type Activity · ProvenancePromises.Promised_Gift

C#

public static Activity Promised_Gift()
{
    var promisedGift = new Activity()
        .WithContext()
        .WithId("https://linked.art/example/provenance/coffin_promise/1")
        .WithLabel("Promised Gift of Coffin")
        .WithClassifiedAs(Aat.ProvenanceActivity);

    promisedGift.Part = [
        new Activity()
            .WithLabel("Promise of Gift")
            .WithClassifiedAs(Aat.PromiseActivity)
            .WithStatement(Aat.Description, "Promised gift of Thomas Jaffe, B.A. 1971")
            .WithCarriedOutBy(
                new Person()
                    .WithId("https://linked.art/example/person/jaffe")
                    .WithLabel("Thomas Jaffe"))
            .WithUsedSpecificObject(
                new HumanMadeObject()
                    .WithId("https://linked.art/example/object/coffin")
                    .WithLabel("Coffin"))
            .WithParticipant(
                new Group()
                    .WithId("https://linked.art/example/group/yuag")
                    .WithLabel("Yale University Art Gallery"))
    ];

    return promisedGift;
}
  • Statement in one call WithStatement creates the LinguisticObject, classifies it as the given type and as Brief Text, and adds it under referred_to_by.

JSON from the C#

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/provenance/coffin_promise/1",
  "type": "Activity",
  "_label": "Promised Gift of Coffin",
  "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"
        }
      ],
      "carried_out_by": [
        {
          "id": "https://linked.art/example/person/jaffe",
          "type": "Person",
          "_label": "Thomas Jaffe"
        }
      ],
      "used_specific_object": [
        {
          "id": "https://linked.art/example/object/coffin",
          "type": "HumanMadeObject",
          "_label": "Coffin"
        }
      ],
      "referred_to_by": [
        {
          "type": "LinguisticObject",
          "content": "Promised gift of Thomas Jaffe, B.A. 1971",
          "classified_as": [
            {
              "id": "http://vocab.getty.edu/aat/300435416",
              "type": "Type",
              "_label": "Description",
              "classified_as": [
                {
                  "id": "http://vocab.getty.edu/aat/300418049",
                  "type": "Type",
                  "_label": "Brief Text"
                }
              ]
            }
          ]
        }
      ],
      "participant": [
        {
          "id": "https://linked.art/example/group/yuag",
          "type": "Group",
          "_label": "Yale University Art Gallery"
        }
      ]
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/provenance/coffin_promise/1",
  "type": "Activity",
  "_label": "Promised Gift of Coffin",
  "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"
        }
      ],
      "referred_to_by": [
        {
          "type": "LinguisticObject",
          "classified_as": [
            {
              "id": "http://vocab.getty.edu/aat/300435416",
              "type": "Type",
              "_label": "Description",
              "classified_as": [
                {
                  "id": "http://vocab.getty.edu/aat/300418049",
                  "type": "Type",
                  "_label": "Brief Text"
                }
              ]
            }
          ],
          "content": "Promised gift of Thomas Jaffe, B.A. 1971"
        }
      ],
      "carried_out_by": [
        {
          "id": "https://linked.art/example/person/jaffe",
          "type": "Person",
          "_label": "Thomas Jaffe"
        }
      ],
      "used_specific_object": [
        {
          "id": "https://linked.art/example/object/coffin",
          "type": "HumanMadeObject",
          "_label": "Coffin"
        }
      ],
      "participant": [
        {
          "id": "https://linked.art/example/group/yuag",
          "type": "Group",
          "_label": "Yale University Art Gallery"
        }
      ]
    }
  ]
}

Comparison

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

Properties used

carried_out_by classified_as content part participant referred_to_by used_specific_object

Vocabulary terms

Provenance Activity Brief Text Description Promise