text/catalog_24477/1 matches the site
C#
public static LinguisticObject Auction_Catalog()
{
var catalog = new LinguisticObject()
.WithContext()
.WithId("https://linked.art/example/text/catalog_24477/1")
.WithLabel("Auction Catalog")
.WithClassifiedAs(Aat.AuctionCatalog, Aat.TypeOfWork);
catalog.IdentifiedBy = [new Name("Impressionist & Modern Evening Sale Catalog").AsPrimaryName()];
catalog.About = [
new Activity()
.WithId("https://linked.art/example/event/christies_24477")
.WithLabel("Impressionist Sale")
];
return catalog;
}
- 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.
- Role shortcuts AsPrimaryName, AsAccessionNumber and AsSystemAssignedNumber each add a single classification, with the AAT terms Primary Name, Accession Number and System Number.
var linguisticObject = new LinguisticObject
{
Context = ["https://linked.art/ns/v1/linked-art.json"],
Id = "https://linked.art/example/text/catalog_24477/1",
Label = "Auction Catalog",
ClassifiedAs =
[
new Type("http://vocab.getty.edu/aat/300026068", "Auction Catalog")
{
ClassifiedAs = [Aat.TypeOfWork],
},
],
IdentifiedBy =
[
new Name("Impressionist & Modern Evening Sale Catalog")
{
ClassifiedAs = [Aat.PrimaryName],
},
],
About =
[
new Activity
{
Id = "https://linked.art/example/event/christies_24477",
Label = "Impressionist Sale",
},
],
};
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/text/catalog_24477/1",
"type": "LinguisticObject",
"_label": "Auction Catalog",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300026068",
"type": "Type",
"_label": "Auction Catalog",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300435443",
"type": "Type",
"_label": "Type of Work"
}
]
}
],
"identified_by": [
{
"type": "Name",
"content": "Impressionist & Modern Evening Sale Catalog",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300404670",
"type": "Type",
"_label": "Primary Name"
}
]
}
],
"about": [
{
"id": "https://linked.art/example/event/christies_24477",
"type": "Activity",
"_label": "Impressionist Sale"
}
]
} JSON on linked.art
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "https://linked.art/example/text/catalog_24477/1",
"type": "LinguisticObject",
"_label": "Auction Catalog",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300026068",
"type": "Type",
"_label": "Auction Catalog",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300435443",
"type": "Type",
"_label": "Type of Work"
}
]
}
],
"identified_by": [
{
"type": "Name",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300404670",
"type": "Type",
"_label": "Primary Name"
}
],
"content": "Impressionist & Modern Evening Sale Catalog"
}
],
"about": [
{
"id": "https://linked.art/example/event/christies_24477",
"type": "Activity",
"_label": "Impressionist Sale"
}
]
} Comparison
The two documents are equivalent (property order ignored, array order significant).