object/gradualpage/1 matches the site
The collection item is a page from a gradual (manuscript) by the Master of the Libro dei Notai. Source
C#
public static HumanMadeObject GradualPage_1_PartRemoval()
{
var gradualPage = new HumanMadeObject()
.WithContext()
.WithId("https://linked.art/example/object/gradualpage/1")
.WithLabel("Page from a Gradual")
.WithClassifiedAs(Aat.TextOfAPage, Aat.TypeOfWork);
gradualPage.RemovedBy = [
new PartRemoval()
{
Diminished = new HumanMadeObject()
.WithId("https://linked.art/example/object/gradual")
.WithLabel("Gradual")
}
];
return gradualPage;
}
- 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/gradualpage/1",
Label = "Page from a Gradual",
ClassifiedAs =
[
new Type("http://vocab.getty.edu/aat/300194222", "Page")
{
ClassifiedAs = [Aat.TypeOfWork],
},
],
RemovedBy =
[
new PartRemoval
{
Diminished = new HumanMadeObject
{
Id = "https://linked.art/example/object/gradual",
Label = "Gradual",
},
},
],
};
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/gradualpage/1",
"type": "HumanMadeObject",
"_label": "Page from a Gradual",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300194222",
"type": "Type",
"_label": "Page",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300435443",
"type": "Type",
"_label": "Type of Work"
}
]
}
],
"removed_by": [
{
"type": "PartRemoval",
"diminished": {
"id": "https://linked.art/example/object/gradual",
"type": "HumanMadeObject",
"_label": "Gradual"
}
}
]
} JSON on linked.art
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "https://linked.art/example/object/gradualpage/1",
"type": "HumanMadeObject",
"_label": "Page from a Gradual",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300194222",
"type": "Type",
"_label": "Page",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300435443",
"type": "Type",
"_label": "Type of Work"
}
]
}
],
"removed_by": [
{
"type": "PartRemoval",
"diminished": {
"id": "https://linked.art/example/object/gradual",
"type": "HumanMadeObject",
"_label": "Gradual"
}
}
]
} Comparison
The two documents are equivalent (property order ignored, array order significant).