event/stowe/1 matches the site
The Christie's auction of the Stowe House took place over 40 days in August and September, 1848 (Source).
C#
public static Activity Stowe_Auction_1()
{
var stowe = new Activity()
.WithContext()
.WithId("https://linked.art/example/event/stowe/1")
.WithLabel("Auction of Stowe House")
.WithClassifiedAs(Aat.AuctionEvent);
var timespan = new LinkedArtTimeSpan().WithDaysDimension(3);
timespan.BeginOfTheBegin = new LinkedArtDate(1848, 8, 1);
timespan.EndOfTheBegin = new LinkedArtDate(1848, 8, 20).LastSecondOfDay();
timespan.BeginOfTheEnd = new LinkedArtDate(1848, 9, 9);
timespan.EndOfTheEnd = new LinkedArtDate(1848, 9, 30).LastSecondOfDay();
timespan.IdentifiedBy = [
new Name("40 days in August and September, 1848")
];
stowe.TimeSpan = timespan;
return stowe;
}
- Dimensions and physical description Each helper builds a Dimension with its AAT type, value and unit, or a classification with its metatype: height, width, colour, shape, page count, component count, file size, duration in days.
var activity = new Activity
{
Context = ["https://linked.art/ns/v1/linked-art.json"],
Id = "https://linked.art/example/event/stowe/1",
Label = "Auction of Stowe House",
ClassifiedAs = [Aat.AuctionEvent],
TimeSpan = new LinkedArtTimeSpan
{
IdentifiedBy = [new Name("40 days in August and September, 1848")],
BeginOfTheBegin = new LinkedArtDate(1848, 8, 1),
EndOfTheBegin = new LinkedArtDate(1848, 8, 20, 23, 59, 59),
BeginOfTheEnd = new LinkedArtDate(1848, 9, 9),
EndOfTheEnd = new LinkedArtDate(1848, 9, 30, 23, 59, 59),
Duration = new Dimension
{
Value = 3,
Unit = Aat.Days,
},
},
};
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/event/stowe/1",
"type": "Activity",
"_label": "Auction of Stowe House",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300054751",
"type": "Type",
"_label": "Auction Event"
}
],
"timespan": {
"type": "TimeSpan",
"identified_by": [
{
"type": "Name",
"content": "40 days in August and September, 1848"
}
],
"begin_of_the_begin": "1848-08-01T00:00:00Z",
"end_of_the_begin": "1848-08-20T23:59:59Z",
"begin_of_the_end": "1848-09-09T00:00:00Z",
"end_of_the_end": "1848-09-30T23:59:59Z",
"duration": {
"type": "Dimension",
"value": 3,
"unit": {
"id": "http://vocab.getty.edu/aat/300379242",
"type": "MeasurementUnit",
"_label": "days"
}
}
}
} JSON on linked.art
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "https://linked.art/example/event/stowe/1",
"type": "Activity",
"_label": "Auction of Stowe House",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300054751",
"type": "Type",
"_label": "Auction Event"
}
],
"timespan": {
"type": "TimeSpan",
"identified_by": [
{
"type": "Name",
"content": "40 days in August and September, 1848"
}
],
"begin_of_the_begin": "1848-08-01T00:00:00Z",
"end_of_the_begin": "1848-08-20T23:59:59Z",
"begin_of_the_end": "1848-09-09T00:00:00Z",
"end_of_the_end": "1848-09-30T23:59:59Z",
"duration": {
"type": "Dimension",
"value": 3,
"unit": {
"id": "http://vocab.getty.edu/aat/300379242",
"type": "MeasurementUnit",
"_label": "days"
}
}
}
} Comparison
The two documents are equivalent (property order ignored, array order significant).