set/24477_16_objects/2 matches the site
Lot 16 had an estimated price of $25,000,000:
C#
public static Set Lot_Estimated_Price()
{
var lot = new Set()
.WithContext()
.WithId("https://linked.art/example/set/24477_16_objects/2")
.WithLabel("Set of Objects for Lot 16")
.WithClassifiedAs(Aat.Term("300411307", "Auction Lot"));
lot.Dimension = [
new MonetaryAmount
{
Value = 25000000,
Currency = Aat.UsDollars.WithNotation("USD")
}.WithClassifiedAs(Aat.Term("300417244", "Estimated Price"))
];
return lot;
}
- 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/2",
Label = "Set of Objects for Lot 16",
Dimension =
[
new MonetaryAmount
{
Value = 25000000,
Currency = new Currency("http://vocab.getty.edu/aat/300411994", "US Dollars")
{
Notation = "USD",
},
ClassifiedAs = [Aat.Term("300417244", "Estimated Price")],
},
],
ClassifiedAs = [Aat.Term("300411307", "Auction Lot")],
};
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/2",
"type": "Set",
"_label": "Set of Objects for Lot 16",
"dimension": [
{
"type": "MonetaryAmount",
"value": 25000000,
"currency": {
"id": "http://vocab.getty.edu/aat/300411994",
"type": "Currency",
"_label": "US Dollars",
"notation": "USD"
},
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300417244",
"type": "Type",
"_label": "Estimated Price"
}
]
}
],
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300411307",
"type": "Type",
"_label": "Auction Lot"
}
]
} JSON on linked.art
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "https://linked.art/example/set/24477_16_objects/2",
"type": "Set",
"_label": "Set of Objects for Lot 16",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300411307",
"type": "Type",
"_label": "Auction Lot"
}
],
"dimension": [
{
"type": "MonetaryAmount",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300417244",
"type": "Type",
"_label": "Estimated Price"
}
],
"value": 25000000,
"currency": {
"id": "http://vocab.getty.edu/aat/300411994",
"type": "Currency",
"_label": "US Dollars",
"notation": "USD"
}
}
]
} Comparison
The two documents are equivalent (property order ignored, array order significant).