object/spring/support matches the site
The canvas support is part of the overall painting of Spring.
C#
public static HumanMadeObject Spring_Parts_Support()
{
var spring = new HumanMadeObject()
.WithContext()
.WithId("https://linked.art/example/object/spring/support")
.WithLabel("Support of Spring")
.WithClassifiedAs(
Aat.Support,
Aat.PartType);
var materials = new LinguisticObject()
.WithClassifiedAs(
Aat.MaterialsStatement,
Aat.Statement)
.WithContent("Canvas");
spring.ReferredToBy = [materials];
spring.PartOf = [
new HumanMadeObject()
.WithId("https://linked.art/example/object/spring")
.WithLabel("Jeanne (Spring) by Manet")
];
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/support",
Label = "Support of Spring",
ClassifiedAs =
[
new Type("http://vocab.getty.edu/aat/300014844", "Support")
{
ClassifiedAs = [Aat.PartType],
},
],
ReferredToBy =
[
new LinguisticObject
{
Content = "Canvas",
ClassifiedAs =
[
new Type("http://vocab.getty.edu/aat/300435429", "Material Statement")
{
ClassifiedAs = [Aat.Statement],
},
],
},
],
PartOf =
[
new HumanMadeObject
{
Id = "https://linked.art/example/object/spring",
Label = "Jeanne (Spring) by Manet",
},
],
};
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/support",
"type": "HumanMadeObject",
"_label": "Support of Spring",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300014844",
"type": "Type",
"_label": "Support",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300241583",
"type": "Type",
"_label": "Part Type"
}
]
}
],
"referred_to_by": [
{
"type": "LinguisticObject",
"content": "Canvas",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300435429",
"type": "Type",
"_label": "Material Statement",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300418049",
"type": "Type",
"_label": "Brief Text"
}
]
}
]
}
],
"part_of": [
{
"id": "https://linked.art/example/object/spring",
"type": "HumanMadeObject",
"_label": "Jeanne (Spring) by Manet"
}
]
} JSON on linked.art
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "https://linked.art/example/object/spring/support",
"type": "HumanMadeObject",
"_label": "Support of Spring",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300014844",
"type": "Type",
"_label": "Support",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300241583",
"type": "Type",
"_label": "Part Type"
}
]
}
],
"referred_to_by": [
{
"type": "LinguisticObject",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300435429",
"type": "Type",
"_label": "Material Statement",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300418049",
"type": "Type",
"_label": "Brief Text"
}
]
}
],
"content": "Canvas"
}
],
"part_of": [
{
"id": "https://linked.art/example/object/spring",
"type": "HumanMadeObject",
"_label": "Jeanne (Spring) by Manet"
}
]
} Comparison
The two documents are equivalent (property order ignored, array order significant).