object/nightwatch/8 matches the site
The Night Watch once more, described with human readable labels on each dimension.
C#
public static HumanMadeObject Nightwatch_8_Display_Titles()
{
var nightWatch = new HumanMadeObject()
.WithContext()
.WithId("https://linked.art/example/object/nightwatch/8")
.WithLabel("Night Watch by Rembrandt")
.WithClassifiedAs(Aat.Painting, Aat.TypeOfWork)
.WithWidthDimension(453.5, MeasurementUnit.Centimeters, "453.5 cm wide")
.WithHeightDimension(379.5, MeasurementUnit.Centimeters, "379.5 cm high");
return nightWatch;
}
- 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.
- 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/nightwatch/8",
Label = "Night Watch by Rembrandt",
Dimension =
[
new Dimension
{
Value = 453.5,
Unit = Aat.Centimeters,
ClassifiedAs = [Aat.Width],
IdentifiedBy =
[
new Name("453.5 cm wide")
{
ClassifiedAs = [Aat.DisplayName],
},
],
},
new Dimension
{
Value = 379.5,
Unit = Aat.Centimeters,
ClassifiedAs = [Aat.Height],
IdentifiedBy =
[
new Name("379.5 cm high")
{
ClassifiedAs = [Aat.DisplayName],
},
],
},
],
ClassifiedAs =
[
new Type("http://vocab.getty.edu/aat/300033618", "Painting")
{
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/nightwatch/8",
"type": "HumanMadeObject",
"_label": "Night Watch by Rembrandt",
"dimension": [
{
"type": "Dimension",
"value": 453.5,
"unit": {
"id": "http://vocab.getty.edu/aat/300379098",
"type": "MeasurementUnit",
"_label": "centimeters"
},
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300055647",
"type": "Type",
"_label": "Width"
}
],
"identified_by": [
{
"type": "Name",
"content": "453.5 cm wide",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300404669",
"type": "Type",
"_label": "Display Title"
}
]
}
]
},
{
"type": "Dimension",
"value": 379.5,
"unit": {
"id": "http://vocab.getty.edu/aat/300379098",
"type": "MeasurementUnit",
"_label": "centimeters"
},
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300055644",
"type": "Type",
"_label": "Height"
}
],
"identified_by": [
{
"type": "Name",
"content": "379.5 cm high",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300404669",
"type": "Type",
"_label": "Display Title"
}
]
}
]
}
],
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300033618",
"type": "Type",
"_label": "Painting",
"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/nightwatch/8",
"type": "HumanMadeObject",
"_label": "Night Watch by Rembrandt",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300033618",
"type": "Type",
"_label": "Painting",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300435443",
"type": "Type",
"_label": "Type of Work"
}
]
}
],
"dimension": [
{
"type": "Dimension",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300055647",
"type": "Type",
"_label": "Width"
}
],
"value": 453.5,
"unit": {
"id": "http://vocab.getty.edu/aat/300379098",
"type": "MeasurementUnit",
"_label": "centimeters"
},
"identified_by": [
{
"type": "Name",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300404669",
"type": "Type",
"_label": "Display Title"
}
],
"content": "453.5 cm wide"
}
]
},
{
"type": "Dimension",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300055644",
"type": "Type",
"_label": "Height"
}
],
"value": 379.5,
"unit": {
"id": "http://vocab.getty.edu/aat/300379098",
"type": "MeasurementUnit",
"_label": "centimeters"
},
"identified_by": [
{
"type": "Name",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300404669",
"type": "Type",
"_label": "Display Title"
}
],
"content": "379.5 cm high"
}
]
}
]
} Comparison
The two documents are equivalent (property order ignored, array order significant).