set/24477_16_objects/1 matches the site
Lot 16 consists of a single painting, Spring.
C#
public static Set Auction_Lot()
{
var lot = new Set()
.WithContext()
.WithId("https://linked.art/example/set/24477_16_objects/1")
.WithLabel("Set of Objects for Lot 16")
.WithClassifiedAs(Aat.Term("300411307", "Auction Lot"));
lot.IdentifiedBy = [
new Name("Lot 16: Le Printemps").AsPrimaryName(),
new Identifier("16").WithClassifiedAs(Aat.AuctionLotNumber)
];
return lot;
}
- Role shortcuts AsPrimaryName, AsAccessionNumber and AsSystemAssignedNumber each add a single classification, with the AAT terms Primary Name, Accession Number and System Number.
- Terms outside the registry The vocabulary registry holds only the terms linked.art itself publishes, so a dataset's own concepts, places and people are written with Aat.Term, Tgn.Place and Ulan.Person, giving the id and the label.
var set = new Set
{
Context = ["https://linked.art/ns/v1/linked-art.json"],
Id = "https://linked.art/example/set/24477_16_objects/1",
Label = "Set of Objects for Lot 16",
ClassifiedAs = [Aat.Term("300411307", "Auction Lot")],
IdentifiedBy =
[
new Name("Lot 16: Le Printemps")
{
ClassifiedAs = [Aat.PrimaryName],
},
new Identifier("16")
{
ClassifiedAs = [Aat.AuctionLotNumber],
},
],
};
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/set/24477_16_objects/1",
"type": "Set",
"_label": "Set of Objects for Lot 16",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300411307",
"type": "Type",
"_label": "Auction Lot"
}
],
"identified_by": [
{
"type": "Name",
"content": "Lot 16: Le Printemps",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300404670",
"type": "Type",
"_label": "Primary Name"
}
]
},
{
"type": "Identifier",
"content": "16",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300404628",
"type": "Type",
"_label": "Lot Number"
}
]
}
]
} JSON on linked.art
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "https://linked.art/example/set/24477_16_objects/1",
"type": "Set",
"_label": "Set of Objects for Lot 16",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300411307",
"type": "Type",
"_label": "Auction Lot"
}
],
"identified_by": [
{
"type": "Name",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300404670",
"type": "Type",
"_label": "Primary Name"
}
],
"content": "Lot 16: Le Printemps"
},
{
"type": "Identifier",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300404628",
"type": "Type",
"_label": "Lot Number"
}
],
"content": "16"
}
]
} Comparison
The two documents are equivalent (property order ignored, array order significant).