Linked Art in C#

provenance/yuag_ycba_wiley/1 matches the site

The Yale University Art Gallery and the Yale Center for British Art jointly purchased a painting by Kehinde Wiley in 2021 from an undisclosed seller.

On linked.art: Object Acquisition and Loan › Multiple Owners · site JSON · type Activity · ProvenanceAcquisition.Joint_Purchase

C#

public static Activity Joint_Purchase()
{
    var purchase = new Activity()
        .WithContext()
        .WithId("https://linked.art/example/provenance/yuag_ycba_wiley/1")
        .WithLabel("Purchase of Painting")
        .WithClassifiedAs(Aat.ProvenanceActivity);

    purchase.TimeSpan = LinkedArtTimeSpan.FromYear(2021);

    purchase.Part = [
        new Acquisition
        {
            TransferredTitleOf = [
                new HumanMadeObject()
                    .WithId("https://linked.art/example/object/yiadom-boakye")
                    .WithLabel("Portrait of Lynette Yiadom-Boakye")
            ],
            TransferredTitleTo = [
                new Group()
                    .WithId("https://linked.art/example/group/yuag")
                    .WithLabel("Yale University Art Gallery"),
                new Group()
                    .WithId("https://linked.art/example/group/ycba")
                    .WithLabel("Yale Center for British Art")
            ]
        }
    ];

    return purchase;
}

JSON from the C#

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/provenance/yuag_ycba_wiley/1",
  "type": "Activity",
  "_label": "Purchase of Painting",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300055863",
      "type": "Type",
      "_label": "Provenance Activity"
    }
  ],
  "timespan": {
    "type": "TimeSpan",
    "begin_of_the_begin": "2021-01-01T00:00:00Z",
    "end_of_the_end": "2021-12-31T23:59:59Z"
  },
  "part": [
    {
      "type": "Acquisition",
      "transferred_title_of": [
        {
          "id": "https://linked.art/example/object/yiadom-boakye",
          "type": "HumanMadeObject",
          "_label": "Portrait of Lynette Yiadom-Boakye"
        }
      ],
      "transferred_title_to": [
        {
          "id": "https://linked.art/example/group/yuag",
          "type": "Group",
          "_label": "Yale University Art Gallery"
        },
        {
          "id": "https://linked.art/example/group/ycba",
          "type": "Group",
          "_label": "Yale Center for British Art"
        }
      ]
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/provenance/yuag_ycba_wiley/1",
  "type": "Activity",
  "_label": "Purchase of Painting",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300055863",
      "type": "Type",
      "_label": "Provenance Activity"
    }
  ],
  "timespan": {
    "type": "TimeSpan",
    "begin_of_the_begin": "2021-01-01T00:00:00Z",
    "end_of_the_end": "2021-12-31T23:59:59Z"
  },
  "part": [
    {
      "type": "Acquisition",
      "transferred_title_of": [
        {
          "id": "https://linked.art/example/object/yiadom-boakye",
          "type": "HumanMadeObject",
          "_label": "Portrait of Lynette Yiadom-Boakye"
        }
      ],
      "transferred_title_to": [
        {
          "id": "https://linked.art/example/group/yuag",
          "type": "Group",
          "_label": "Yale University Art Gallery"
        },
        {
          "id": "https://linked.art/example/group/ycba",
          "type": "Group",
          "_label": "Yale Center for British Art"
        }
      ]
    }
  ]
}

Comparison

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

Properties used

begin_of_the_begin classified_as end_of_the_end part timespan transferred_title_of transferred_title_to

Vocabulary terms

Provenance Activity