provenance/coffin_promise/1 matches the site
Thomas Jaffe has promised to give the 19th Century Indo-Pacific Coffin to Yale University Art Gallery.
C#
public static Activity Promised_Gift()
{
var promisedGift = new Activity()
.WithContext()
.WithId("https://linked.art/example/provenance/coffin_promise/1")
.WithLabel("Promised Gift of Coffin")
.WithClassifiedAs(Aat.ProvenanceActivity);
promisedGift.Part = [
new Activity()
.WithLabel("Promise of Gift")
.WithClassifiedAs(Aat.PromiseActivity)
.WithStatement(Aat.Description, "Promised gift of Thomas Jaffe, B.A. 1971")
.WithCarriedOutBy(
new Person()
.WithId("https://linked.art/example/person/jaffe")
.WithLabel("Thomas Jaffe"))
.WithUsedSpecificObject(
new HumanMadeObject()
.WithId("https://linked.art/example/object/coffin")
.WithLabel("Coffin"))
.WithParticipant(
new Group()
.WithId("https://linked.art/example/group/yuag")
.WithLabel("Yale University Art Gallery"))
];
return promisedGift;
}
- Statement in one call WithStatement creates the LinguisticObject, classifies it as the given type and as Brief Text, and adds it under referred_to_by.
var activity = new Activity
{
Context = ["https://linked.art/ns/v1/linked-art.json"],
Id = "https://linked.art/example/provenance/coffin_promise/1",
Label = "Promised Gift of Coffin",
ClassifiedAs = [Aat.ProvenanceActivity],
Part =
[
new Activity
{
Label = "Promise of Gift",
ClassifiedAs = [Aat.PromiseActivity],
CarriedOutBy =
[
new Person
{
Id = "https://linked.art/example/person/jaffe",
Label = "Thomas Jaffe",
},
],
UsedSpecificObject =
[
new HumanMadeObject
{
Id = "https://linked.art/example/object/coffin",
Label = "Coffin",
},
],
ReferredToBy =
[
new LinguisticObject
{
Content = "Promised gift of Thomas Jaffe, B.A. 1971",
ClassifiedAs =
[
new Type("http://vocab.getty.edu/aat/300435416", "Description")
{
ClassifiedAs = [Aat.Statement],
},
],
},
],
Participant =
[
new Group
{
Id = "https://linked.art/example/group/yuag",
Label = "Yale University Art 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/coffin_promise/1",
"type": "Activity",
"_label": "Promised Gift of Coffin",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300055863",
"type": "Type",
"_label": "Provenance Activity"
}
],
"part": [
{
"type": "Activity",
"_label": "Promise of Gift",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300435599",
"type": "Type",
"_label": "Promise"
}
],
"carried_out_by": [
{
"id": "https://linked.art/example/person/jaffe",
"type": "Person",
"_label": "Thomas Jaffe"
}
],
"used_specific_object": [
{
"id": "https://linked.art/example/object/coffin",
"type": "HumanMadeObject",
"_label": "Coffin"
}
],
"referred_to_by": [
{
"type": "LinguisticObject",
"content": "Promised gift of Thomas Jaffe, B.A. 1971",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300435416",
"type": "Type",
"_label": "Description",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300418049",
"type": "Type",
"_label": "Brief Text"
}
]
}
]
}
],
"participant": [
{
"id": "https://linked.art/example/group/yuag",
"type": "Group",
"_label": "Yale University Art Gallery"
}
]
}
]
} JSON on linked.art
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "https://linked.art/example/provenance/coffin_promise/1",
"type": "Activity",
"_label": "Promised Gift of Coffin",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300055863",
"type": "Type",
"_label": "Provenance Activity"
}
],
"part": [
{
"type": "Activity",
"_label": "Promise of Gift",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300435599",
"type": "Type",
"_label": "Promise"
}
],
"referred_to_by": [
{
"type": "LinguisticObject",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300435416",
"type": "Type",
"_label": "Description",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300418049",
"type": "Type",
"_label": "Brief Text"
}
]
}
],
"content": "Promised gift of Thomas Jaffe, B.A. 1971"
}
],
"carried_out_by": [
{
"id": "https://linked.art/example/person/jaffe",
"type": "Person",
"_label": "Thomas Jaffe"
}
],
"used_specific_object": [
{
"id": "https://linked.art/example/object/coffin",
"type": "HumanMadeObject",
"_label": "Coffin"
}
],
"participant": [
{
"id": "https://linked.art/example/group/yuag",
"type": "Group",
"_label": "Yale University Art Gallery"
}
]
}
]
} Comparison
The two documents are equivalent (property order ignored, array order significant).