object/nightwatch/43 matches the site
C#
public static HumanMadeObject NightWatch_TimeSpan_Display_Title()
{
var nightwatch = new HumanMadeObject()
.WithContext()
.WithId("https://linked.art/example/object/nightwatch/43")
.WithLabel("Night Watch by Rembrandt");
nightwatch.ProducedBy = new Production
{
TimeSpan = new LinkedArtTimeSpan
{
IdentifiedBy = [
new Name()
.WithId("https://linked.art/example/Name/1642")
.WithClassifiedAs(Aat.DisplayName)
],
BeginOfTheBegin = new LinkedArtDate(1642, 1, 1),
EndOfTheEnd = new LinkedArtDate(1842, 12, 31).EndOfDay()
}
};
return nightwatch;
}
var humanMadeObject = new HumanMadeObject
{
Context = ["https://linked.art/ns/v1/linked-art.json"],
Id = "https://linked.art/example/object/nightwatch/43",
Label = "Night Watch by Rembrandt",
ProducedBy = new Production
{
TimeSpan = new LinkedArtTimeSpan
{
IdentifiedBy =
[
new Name
{
Id = "https://linked.art/example/Name/1642",
ClassifiedAs = [Aat.DisplayName],
},
],
BeginOfTheBegin = new LinkedArtDate(1642, 1, 1),
EndOfTheEnd = new LinkedArtDate(1842, 12, 31, 23, 59, 59),
},
},
};
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/object/nightwatch/43",
"type": "HumanMadeObject",
"_label": "Night Watch by Rembrandt",
"produced_by": {
"type": "Production",
"timespan": {
"type": "TimeSpan",
"identified_by": [
{
"id": "https://linked.art/example/Name/1642",
"type": "Name",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300404669",
"type": "Type",
"_label": "Display Title"
}
]
}
],
"begin_of_the_begin": "1642-01-01T00:00:00Z",
"end_of_the_end": "1842-12-31T23:59:59Z"
}
}
} JSON on linked.art
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "https://linked.art/example/object/nightwatch/43",
"type": "HumanMadeObject",
"_label": "Night Watch by Rembrandt",
"produced_by": {
"type": "Production",
"timespan": {
"type": "TimeSpan",
"identified_by": [
{
"id": "https://linked.art/example/Name/1642",
"type": "Name",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300404669",
"type": "Type",
"_label": "Display Title"
}
]
}
],
"begin_of_the_begin": "1642-01-01T00:00:00Z",
"end_of_the_end": "1842-12-31T23:59:59Z"
}
}
} Comparison
The two documents are equivalent (property order ignored, array order significant).