object/ccp/1 matches the site
A print at the Yale Center for British Art, Chaucer's Canterbury Pilgrims, made from a specific copper plate held at the Yale University Art Gallery.
C#
public static HumanMadeObject Canterbury_1()
{
var ccp = new HumanMadeObject()
.WithContext()
.WithId("https://linked.art/example/object/ccp/1")
.WithLabel("Chaucer's Canterbury Pilgrims")
.WithClassifiedAs(Aat.Print, Aat.TypeOfWork);
ccp.ProducedBy = new Production().WithLabel("Printing from Plate");
ccp.ProducedBy.UsedSpecificObject = [
new HumanMadeObject()
.WithId("https://linked.art/example/object/ccp-plate")
.WithLabel("Plate for CCP")
];
return ccp;
}
- Metatype classification The second argument classifies the first, not the object: WithClassifiedAs(Aat.Description, Aat.Statement) says this is a Description, and Description is a kind of Statement. The Plain C# form shows the nesting.
var humanMadeObject = new HumanMadeObject
{
Context = ["https://linked.art/ns/v1/linked-art.json"],
Id = "https://linked.art/example/object/ccp/1",
Label = "Chaucer's Canterbury Pilgrims",
ProducedBy = new Production
{
Label = "Printing from Plate",
UsedSpecificObject =
[
new HumanMadeObject
{
Id = "https://linked.art/example/object/ccp-plate",
Label = "Plate for CCP",
},
],
},
ClassifiedAs =
[
new Type("http://vocab.getty.edu/aat/300041273", "Print")
{
ClassifiedAs = [Aat.TypeOfWork],
},
],
};
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/object/ccp/1",
"type": "HumanMadeObject",
"_label": "Chaucer's Canterbury Pilgrims",
"produced_by": {
"type": "Production",
"_label": "Printing from Plate",
"used_specific_object": [
{
"id": "https://linked.art/example/object/ccp-plate",
"type": "HumanMadeObject",
"_label": "Plate for CCP"
}
]
},
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300041273",
"type": "Type",
"_label": "Print",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300435443",
"type": "Type",
"_label": "Type of Work"
}
]
}
]
} JSON on linked.art
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "https://linked.art/example/object/ccp/1",
"type": "HumanMadeObject",
"_label": "Chaucer's Canterbury Pilgrims",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300041273",
"type": "Type",
"_label": "Print",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300435443",
"type": "Type",
"_label": "Type of Work"
}
]
}
],
"produced_by": {
"type": "Production",
"_label": "Printing from Plate",
"used_specific_object": [
{
"id": "https://linked.art/example/object/ccp-plate",
"type": "HumanMadeObject",
"_label": "Plate for CCP"
}
]
}
} Comparison
The two documents are equivalent (property order ignored, array order significant).