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.
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;
}
var activity = new Activity
{
Context = ["https://linked.art/ns/v1/linked-art.json"],
Id = "https://linked.art/example/provenance/yuag_ycba_wiley/1",
Label = "Purchase of Painting",
ClassifiedAs = [Aat.ProvenanceActivity],
TimeSpan = new LinkedArtTimeSpan
{
BeginOfTheBegin = new LinkedArtDate(2021, 1, 1),
EndOfTheEnd = new LinkedArtDate(2021, 12, 31, 23, 59, 59),
},
Part =
[
new Acquisition
{
TransferredTitleOf =
[
new HumanMadeObject
{
Id = "https://linked.art/example/object/yiadom-boakye",
Label = "Portrait of Lynette Yiadom-Boakye",
},
],
TransferredTitleTo =
[
new Group
{
Id = "https://linked.art/example/group/yuag",
Label = "Yale University Art Gallery",
},
new Group
{
Id = "https://linked.art/example/group/ycba",
Label = "Yale Center for British Art",
},
],
},
],
};
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/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).