Linked Art in C#

provenance/yuag_stora/1 matches the site

In 1962, the Yale University Art Gallery exchanged "Nude Woman" by Beckmann for "Personnages dans un parc" by Masson.

On linked.art: Object Acquisition and Loan › Exchange of Objects · site JSON · type Activity · ProvenanceAcquisition.Exchange_Of_Objects

C#

public static Activity Exchange_Of_Objects()
{
    var exchange = new Activity()
        .WithContext()
        .WithId("https://linked.art/example/provenance/yuag_stora/1")
        .WithLabel("Exchange of Objects")
        .WithClassifiedAs(Aat.ProvenanceActivity);

    var feigen = new Group()
        .WithId("https://linked.art/example/group/feigen")
        .WithLabel("Richard Feigen Gallery");
    var yuag = new Group()
        .WithId("https://linked.art/example/group/yuag")
        .WithLabel("Yale University Art Gallery");

    exchange.Part = [
        new Acquisition
        {
            Label = "Acquisition of Personnages",
            TransferredTitleOf = [
                new HumanMadeObject()
                    .WithId("https://linked.art/example/object/masson_personnages")
                    .WithLabel("Personnages dans un parc"),
                new HumanMadeObject()
                    .WithId("https://linked.art/example/object/beckmann_nude")
                    .WithLabel("Nude Woman by Beckmann")
            ],
            TransferredTitleFrom = [feigen, yuag],
            TransferredTitleTo = [yuag, feigen]
        },
        new Acquisition
        {
            Label = "Acquisition of Nude"
        }
    ];

    return exchange;
}

JSON from the C#

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/provenance/yuag_stora/1",
  "type": "Activity",
  "_label": "Exchange of Objects",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300055863",
      "type": "Type",
      "_label": "Provenance Activity"
    }
  ],
  "part": [
    {
      "type": "Acquisition",
      "_label": "Acquisition of Personnages",
      "transferred_title_of": [
        {
          "id": "https://linked.art/example/object/masson_personnages",
          "type": "HumanMadeObject",
          "_label": "Personnages dans un parc"
        },
        {
          "id": "https://linked.art/example/object/beckmann_nude",
          "type": "HumanMadeObject",
          "_label": "Nude Woman by Beckmann"
        }
      ],
      "transferred_title_from": [
        {
          "id": "https://linked.art/example/group/feigen",
          "type": "Group",
          "_label": "Richard Feigen Gallery"
        },
        {
          "id": "https://linked.art/example/group/yuag",
          "type": "Group",
          "_label": "Yale University Art Gallery"
        }
      ],
      "transferred_title_to": [
        {
          "id": "https://linked.art/example/group/yuag",
          "type": "Group",
          "_label": "Yale University Art Gallery"
        },
        {
          "id": "https://linked.art/example/group/feigen",
          "type": "Group",
          "_label": "Richard Feigen Gallery"
        }
      ]
    },
    {
      "type": "Acquisition",
      "_label": "Acquisition of Nude"
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/provenance/yuag_stora/1",
  "type": "Activity",
  "_label": "Exchange of Objects",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300055863",
      "type": "Type",
      "_label": "Provenance Activity"
    }
  ],
  "part": [
    {
      "type": "Acquisition",
      "_label": "Acquisition of Personnages",
      "transferred_title_of": [
        {
          "id": "https://linked.art/example/object/masson_personnages",
          "type": "HumanMadeObject",
          "_label": "Personnages dans un parc"
        },
        {
          "id": "https://linked.art/example/object/beckmann_nude",
          "type": "HumanMadeObject",
          "_label": "Nude Woman by Beckmann"
        }
      ],
      "transferred_title_from": [
        {
          "id": "https://linked.art/example/group/feigen",
          "type": "Group",
          "_label": "Richard Feigen Gallery"
        },
        {
          "id": "https://linked.art/example/group/yuag",
          "type": "Group",
          "_label": "Yale University Art Gallery"
        }
      ],
      "transferred_title_to": [
        {
          "id": "https://linked.art/example/group/yuag",
          "type": "Group",
          "_label": "Yale University Art Gallery"
        },
        {
          "id": "https://linked.art/example/group/feigen",
          "type": "Group",
          "_label": "Richard Feigen Gallery"
        }
      ]
    },
    {
      "type": "Acquisition",
      "_label": "Acquisition of Nude"
    }
  ]
}

Comparison

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

Properties used

classified_as part transferred_title_from transferred_title_of transferred_title_to

Vocabulary terms

Provenance Activity