digital/operation_nw/1 matches the site
The Rijksmuseum published a digital publication on the web about their conservation efforts for The Night Watch.
C#
public static DigitalObject Nightwatch_Digital_Publication()
{
var nightwatchPublication = new DigitalObject()
.WithContext()
.WithId("https://linked.art/example/digital/operation_nw/1")
.WithLabel("Operation Night Watch Publication")
.WithClassifiedAs(Aat.WebPage);
nightwatchPublication.IdentifiedBy = [new Name("Operation Night Watch")];
nightwatchPublication.WithFileSize(220, MeasurementUnit.Kilobytes, "220 kb");
nightwatchPublication.AccessPoint = [
new DigitalObject().WithId("https://www.rijksmuseum.nl/en/stories/operation-night-watch")
];
nightwatchPublication.Format = "text/html";
nightwatchPublication.ConformsTo = [
new InformationObject().WithId("http://w3.org/TR/html")
];
var creation = new Creation()
{
TimeSpan = new LinkedArtTimeSpan
{
BeginOfTheBegin = new LinkedArtDate(2019, 7, 19),
EndOfTheEnd = new LinkedArtDate(2019, 7, 21)
},
CarriedOutBy = [
new Group()
.WithId("https://linked.art/example/group/rijksmuseum")
.WithLabel("Rijksmuseum")
]
};
nightwatchPublication.CreatedBy = creation;
nightwatchPublication.DigitallyCarries = [
new LinguisticObject()
.WithId("https://linked.art/example/text/operation_nw_en")
.WithLabel("Operation Night Watch in English")
];
return nightwatchPublication;
}
- 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 digitalObject = new DigitalObject
{
Context = ["https://linked.art/ns/v1/linked-art.json"],
Id = "https://linked.art/example/digital/operation_nw/1",
Label = "Operation Night Watch Publication",
Dimension =
[
new Dimension
{
Label = "220 kb",
Value = 220,
Unit = Aat.Kilobytes,
ClassifiedAs = [Aat.FileSize],
},
],
ClassifiedAs = [Aat.WebPage],
IdentifiedBy = [new Name("Operation Night Watch")],
CreatedBy = new Creation
{
CarriedOutBy =
[
new Group
{
Id = "https://linked.art/example/group/rijksmuseum",
Label = "Rijksmuseum",
},
],
TimeSpan = new LinkedArtTimeSpan
{
BeginOfTheBegin = new LinkedArtDate(2019, 7, 19),
EndOfTheEnd = new LinkedArtDate(2019, 7, 21),
},
},
AccessPoint =
[
new DigitalObject
{
Id = "https://www.rijksmuseum.nl/en/stories/operation-night-watch",
},
],
ConformsTo =
[
new InformationObject
{
Id = "http://w3.org/TR/html",
},
],
Format = "text/html",
DigitallyCarries =
[
new LinguisticObject
{
Id = "https://linked.art/example/text/operation_nw_en",
Label = "Operation Night Watch in English",
},
],
};
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/digital/operation_nw/1",
"type": "DigitalObject",
"_label": "Operation Night Watch Publication",
"dimension": [
{
"type": "Dimension",
"_label": "220 kb",
"value": 220,
"unit": {
"id": "http://vocab.getty.edu/aat/300265870",
"type": "MeasurementUnit",
"_label": "kilobytes"
},
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300265863",
"type": "Type",
"_label": "File Size"
}
]
}
],
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300264578",
"type": "Type",
"_label": "Web Page"
}
],
"identified_by": [
{
"type": "Name",
"content": "Operation Night Watch"
}
],
"created_by": {
"type": "Creation",
"carried_out_by": [
{
"id": "https://linked.art/example/group/rijksmuseum",
"type": "Group",
"_label": "Rijksmuseum"
}
],
"timespan": {
"type": "TimeSpan",
"begin_of_the_begin": "2019-07-19T00:00:00Z",
"end_of_the_end": "2019-07-21T00:00:00Z"
}
},
"access_point": [
{
"id": "https://www.rijksmuseum.nl/en/stories/operation-night-watch",
"type": "DigitalObject"
}
],
"conforms_to": [
{
"id": "http://w3.org/TR/html",
"type": "InformationObject"
}
],
"format": "text/html",
"digitally_carries": [
{
"id": "https://linked.art/example/text/operation_nw_en",
"type": "LinguisticObject",
"_label": "Operation Night Watch in English"
}
]
} JSON on linked.art
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "https://linked.art/example/digital/operation_nw/1",
"type": "DigitalObject",
"_label": "Operation Night Watch Publication",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300264578",
"type": "Type",
"_label": "Web Page"
}
],
"identified_by": [
{
"type": "Name",
"content": "Operation Night Watch"
}
],
"dimension": [
{
"type": "Dimension",
"_label": "220 kb",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300265863",
"type": "Type",
"_label": "File Size"
}
],
"value": 220,
"unit": {
"id": "http://vocab.getty.edu/aat/300265870",
"type": "MeasurementUnit",
"_label": "kilobytes"
}
}
],
"access_point": [
{
"id": "https://www.rijksmuseum.nl/en/stories/operation-night-watch",
"type": "DigitalObject"
}
],
"format": "text/html",
"conforms_to": [
{
"id": "http://w3.org/TR/html",
"type": "InformationObject"
}
],
"created_by": {
"type": "Creation",
"timespan": {
"type": "TimeSpan",
"begin_of_the_begin": "2019-07-19T00:00:00Z",
"end_of_the_end": "2019-07-21T00:00:00Z"
},
"carried_out_by": [
{
"id": "https://linked.art/example/group/rijksmuseum",
"type": "Group",
"_label": "Rijksmuseum"
}
]
},
"digitally_carries": [
{
"id": "https://linked.art/example/text/operation_nw_en",
"type": "LinguisticObject",
"_label": "Operation Night Watch in English"
}
]
} Comparison
The two documents are equivalent (property order ignored, array order significant).