Linked Art in C#

provenance/wiley_move/1 matches the site

The Kehinde Wiley painting "Portrait of Lynette Yiadom-Boakye" routinely moves between the Yale Center for British Art and the Yale University Art Gallery

On linked.art: Object Location and Movement › Moving an Object · site JSON · type Activity · ProvenanceMovement.Movement_Of_Wiley_Painting

C#

public static Activity Movement_Of_Wiley_Painting()
{
    var movement = new Activity()
        .WithContext()
        .WithId("https://linked.art/example/provenance/wiley_move/1")
        .WithLabel("Movement of Wiley Painting")
        .WithClassifiedAs(Aat.ProvenanceActivity);

    movement.Part = [
        new Move
        {
            Moved = [
                new HumanMadeObject()
                    .WithId("https://linked.art/example/object/yiadom-boakye")
                    .WithLabel("Portrait of Lynette Yiadom-Boakye")
            ],
            MovedFrom = new Place()
                .WithId("https://linked.art/example/place/ycba_gallery")
                .WithLabel("YCBA Gallery"),
            MovedTo = new Place()
                .WithId("https://linked.art/example/place/yuag_gallery")
                .WithLabel("YUAG Gallery")
        }
    ];

    return movement;
}

JSON from the C#

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/provenance/wiley_move/1",
  "type": "Activity",
  "_label": "Movement of Wiley Painting",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300055863",
      "type": "Type",
      "_label": "Provenance Activity"
    }
  ],
  "part": [
    {
      "type": "Move",
      "moved": [
        {
          "id": "https://linked.art/example/object/yiadom-boakye",
          "type": "HumanMadeObject",
          "_label": "Portrait of Lynette Yiadom-Boakye"
        }
      ],
      "moved_from": {
        "id": "https://linked.art/example/place/ycba_gallery",
        "type": "Place",
        "_label": "YCBA Gallery"
      },
      "moved_to": {
        "id": "https://linked.art/example/place/yuag_gallery",
        "type": "Place",
        "_label": "YUAG Gallery"
      }
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/provenance/wiley_move/1",
  "type": "Activity",
  "_label": "Movement of Wiley Painting",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300055863",
      "type": "Type",
      "_label": "Provenance Activity"
    }
  ],
  "part": [
    {
      "type": "Move",
      "moved": [
        {
          "id": "https://linked.art/example/object/yiadom-boakye",
          "type": "HumanMadeObject",
          "_label": "Portrait of Lynette Yiadom-Boakye"
        }
      ],
      "moved_from": {
        "id": "https://linked.art/example/place/ycba_gallery",
        "type": "Place",
        "_label": "YCBA Gallery"
      },
      "moved_to": {
        "id": "https://linked.art/example/place/yuag_gallery",
        "type": "Place",
        "_label": "YUAG Gallery"
      }
    }
  ]
}

Comparison

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

Properties used

classified_as moved moved_from moved_to part

Vocabulary terms

Provenance Activity