object/chess/1 matches the site
"Vessel with miniature chess set" by Michael Mode consists of 36 parts (the 32 pieces, the board, a lid, and two other parts)
C#
public static HumanMadeObject Miniature_Chess_Parts()
{
var chess = new HumanMadeObject()
.WithContext()
.WithId("https://linked.art/example/object/chess/1")
.WithLabel("Miniature Chess")
.WithComponentCount(36);
chess.IdentifiedBy = [
new Name("Vessel with miniature chess set").AsPrimaryName()
];
return chess;
}
- Role shortcuts AsPrimaryName, AsAccessionNumber and AsSystemAssignedNumber each add a single classification, with the AAT terms Primary Name, Accession Number and System Number.
- Dimensions and physical description Each helper builds a Dimension with its AAT type, value and unit, or a classification with its metatype: height, width, colour, shape, page count, component count, file size, duration in days.
var humanMadeObject = new HumanMadeObject
{
Context = ["https://linked.art/ns/v1/linked-art.json"],
Id = "https://linked.art/example/object/chess/1",
Label = "Miniature Chess",
Dimension =
[
new Dimension
{
Value = 36,
Unit = Aat.Components,
ClassifiedAs = [Aat.Count],
},
],
IdentifiedBy =
[
new Name("Vessel with miniature chess set")
{
ClassifiedAs = [Aat.PrimaryName],
},
],
};
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/chess/1",
"type": "HumanMadeObject",
"_label": "Miniature Chess",
"dimension": [
{
"type": "Dimension",
"value": 36,
"unit": {
"id": "http://vocab.getty.edu/aat/300241583",
"type": "MeasurementUnit",
"_label": "Components"
},
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300404433",
"type": "Type",
"_label": "Count"
}
]
}
],
"identified_by": [
{
"type": "Name",
"content": "Vessel with miniature chess set",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300404670",
"type": "Type",
"_label": "Primary Name"
}
]
}
]
} JSON on linked.art
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "https://linked.art/example/object/chess/1",
"type": "HumanMadeObject",
"_label": "Miniature Chess",
"identified_by": [
{
"type": "Name",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300404670",
"type": "Type",
"_label": "Primary Name"
}
],
"content": "Vessel with miniature chess set"
}
],
"dimension": [
{
"type": "Dimension",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300404433",
"type": "Type",
"_label": "Count"
}
],
"value": 36,
"unit": {
"id": "http://vocab.getty.edu/aat/300241583",
"type": "MeasurementUnit",
"_label": "Components"
}
}
]
} Comparison
The two documents are equivalent (property order ignored, array order significant).