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.
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;
}
var activity = new Activity
{
Context = ["https://linked.art/ns/v1/linked-art.json"],
Id = "https://linked.art/example/provenance/yuag_stora/1",
Label = "Exchange of Objects",
ClassifiedAs = [Aat.ProvenanceActivity],
Part =
[
new Acquisition
{
Label = "Acquisition of Personnages",
TransferredTitleOf =
[
new HumanMadeObject
{
Id = "https://linked.art/example/object/masson_personnages",
Label = "Personnages dans un parc",
},
new HumanMadeObject
{
Id = "https://linked.art/example/object/beckmann_nude",
Label = "Nude Woman by Beckmann",
},
],
TransferredTitleFrom =
[
new Group
{
Id = "https://linked.art/example/group/feigen",
Label = "Richard Feigen Gallery",
},
new Group
{
Id = "https://linked.art/example/group/yuag",
Label = "Yale University Art Gallery",
},
],
TransferredTitleTo =
[
new Group
{
Id = "https://linked.art/example/group/yuag",
Label = "Yale University Art Gallery",
},
new Group
{
Id = "https://linked.art/example/group/feigen",
Label = "Richard Feigen Gallery",
},
],
},
new Acquisition
{
Label = "Acquisition of Nude",
},
],
};
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_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).