Linked Art in C#

provenance/transfer/1 matches the site

A painting is transferred between two people, however it is not clear whether it was permanent or merely a loan.

On linked.art: Unknown Transfers › Transfer · site JSON · type Activity · ProvenanceTransfer.Transfer_Of_Unknown_Kind

C#

public static Activity Transfer_Of_Unknown_Kind()
{
    var activity = new Activity()
        .WithContext()
        .WithId("https://linked.art/example/provenance/transfer/1")
        .WithLabel("Transfer of Painting")
        .WithClassifiedAs(Aat.ProvenanceActivity);

    activity.Part = [
        new Transfer
        {
            Transferred = [
                new HumanMadeObject()
                    .WithId("https://linked.art/example/object/example")
                    .WithLabel("Example Painting")
            ],
            TransferredFrom = [
                new Person()
                    .WithId("https://linked.art/example/person/person1")
                    .WithLabel("Person 1")
            ],
            TransferredTo = [
                new Person()
                    .WithId("https://linked.art/example/person/person2")
                    .WithLabel("Person 2")
            ]
        }
    ];

    return activity;
}

JSON from the C#

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/provenance/transfer/1",
  "type": "Activity",
  "_label": "Transfer of Painting",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300055863",
      "type": "Type",
      "_label": "Provenance Activity"
    }
  ],
  "part": [
    {
      "type": "Transfer",
      "transferred": [
        {
          "id": "https://linked.art/example/object/example",
          "type": "HumanMadeObject",
          "_label": "Example Painting"
        }
      ],
      "transferred_from": [
        {
          "id": "https://linked.art/example/person/person1",
          "type": "Person",
          "_label": "Person 1"
        }
      ],
      "transferred_to": [
        {
          "id": "https://linked.art/example/person/person2",
          "type": "Person",
          "_label": "Person 2"
        }
      ]
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/provenance/transfer/1",
  "type": "Activity",
  "_label": "Transfer of Painting",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300055863",
      "type": "Type",
      "_label": "Provenance Activity"
    }
  ],
  "part": [
    {
      "type": "Transfer",
      "transferred": [
        {
          "id": "https://linked.art/example/object/example",
          "type": "HumanMadeObject",
          "_label": "Example Painting"
        }
      ],
      "transferred_from": [
        {
          "id": "https://linked.art/example/person/person1",
          "type": "Person",
          "_label": "Person 1"
        }
      ],
      "transferred_to": [
        {
          "id": "https://linked.art/example/person/person2",
          "type": "Person",
          "_label": "Person 2"
        }
      ]
    }
  ]
}

Comparison

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

Properties used

classified_as part transferred transferred_from transferred_to

Vocabulary terms

Provenance Activity