object/spring/5 matches the site
Spring by Manet has a description, explaining the object and its image.
C#
public static HumanMadeObject Spring_5_Description()
{
var spring = new HumanMadeObject()
.WithContext()
.WithId("https://linked.art/example/object/spring/5")
.WithLabel("Jeanne (Spring) by Manet");
spring.ReferredToBy = [
new LinguisticObject()
.WithClassifiedAs(Aat.Description, Aat.Statement)
.WithContent("A chic young woman in a day dress with floral accents holds a parasol against a background of exuberant foliage.")
];
spring.Shows = [
new VisualItem()
.WithId("https://linked.art/example/visual/spring")
.WithLabel("Visual Content of Spring")
];
return spring;
}
- 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/spring/5",
Label = "Jeanne (Spring) by Manet",
Shows =
[
new VisualItem
{
Id = "https://linked.art/example/visual/spring",
Label = "Visual Content of Spring",
},
],
ReferredToBy =
[
new LinguisticObject
{
Content = "A chic young woman in a day dress with floral accents holds a parasol against a background of exuberant foliage.",
ClassifiedAs =
[
new Type("http://vocab.getty.edu/aat/300435416", "Description")
{
ClassifiedAs = [Aat.Statement],
},
],
},
],
};
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/spring/5",
"type": "HumanMadeObject",
"_label": "Jeanne (Spring) by Manet",
"shows": [
{
"id": "https://linked.art/example/visual/spring",
"type": "VisualItem",
"_label": "Visual Content of Spring"
}
],
"referred_to_by": [
{
"type": "LinguisticObject",
"content": "A chic young woman in a day dress with floral accents holds a parasol against a background of exuberant foliage.",
"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"
}
]
}
]
}
]
} JSON on linked.art
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "https://linked.art/example/object/spring/5",
"type": "HumanMadeObject",
"_label": "Jeanne (Spring) by Manet",
"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": "A chic young woman in a day dress with floral accents holds a parasol against a background of exuberant foliage."
}
],
"shows": [
{
"id": "https://linked.art/example/visual/spring",
"type": "VisualItem",
"_label": "Visual Content of Spring"
}
]
} Comparison
The two documents are equivalent (property order ignored, array order significant).