person/wiley/1 matches the site
Kehinde Wiley is African-American.
C#
public static Person Wiley_Is_African_American()
{
var wiley = new Person()
.WithContext()
.WithId("https://linked.art/example/person/wiley/1")
.WithLabel("Kehinde Wiley")
.WithClassifiedAs("http://www.wikidata.org/entity/Q3007177", "African-American", Aat.Ethnicity);
return wiley;
}
- 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 person = new Person
{
Context = ["https://linked.art/ns/v1/linked-art.json"],
Id = "https://linked.art/example/person/wiley/1",
Label = "Kehinde Wiley",
ClassifiedAs =
[
new Type("http://www.wikidata.org/entity/Q3007177", "African-American")
{
ClassifiedAs = [Aat.Ethnicity],
},
],
};
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/person/wiley/1",
"type": "Person",
"_label": "Kehinde Wiley",
"classified_as": [
{
"id": "http://www.wikidata.org/entity/Q3007177",
"type": "Type",
"_label": "African-American",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300250435",
"type": "Type",
"_label": "Ethnicity"
}
]
}
]
} JSON on linked.art
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "https://linked.art/example/person/wiley/1",
"type": "Person",
"_label": "Kehinde Wiley",
"classified_as": [
{
"id": "http://www.wikidata.org/entity/Q3007177",
"type": "Type",
"_label": "African-American",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300250435",
"type": "Type",
"_label": "Ethnicity"
}
]
}
]
} Comparison
The two documents are equivalent (property order ignored, array order significant).