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
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;
}
var activity = new Activity
{
Context = ["https://linked.art/ns/v1/linked-art.json"],
Id = "https://linked.art/example/provenance/wiley_move/1",
Label = "Movement of Wiley Painting",
ClassifiedAs = [Aat.ProvenanceActivity],
Part =
[
new Move
{
Moved =
[
new HumanMadeObject
{
Id = "https://linked.art/example/object/yiadom-boakye",
Label = "Portrait of Lynette Yiadom-Boakye",
},
],
MovedFrom = new Place
{
Id = "https://linked.art/example/place/ycba_gallery",
Label = "YCBA Gallery",
},
MovedTo = new Place
{
Id = "https://linked.art/example/place/yuag_gallery",
Label = "YUAG Gallery",
},
},
],
};
Generated from the object the example builds: every property that is set, as object initialisers, with the vocabulary constants where a term is in the registry. The fluent helpers are a convenience, not a requirement; this form and the one as written produce the same JSON.
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).