group/rembrandthuis/2 matches the site
The formation of the Rembrandt House Museum on 1911-06-10.
C#
public static Group Rembrandt_Museum_Formed()
{
var museum = new Group()
.WithContext()
.WithId("https://linked.art/example/group/rembrandthuis/2")
.WithLabel("Rembrandt House Museum");
museum.FormedBy = new Formation()
{
TimeSpan = LinkedArtTimeSpan.FromDay(1911, 6, 10)
};
return museum;
}
var group = new Group
{
Context = ["https://linked.art/ns/v1/linked-art.json"],
Id = "https://linked.art/example/group/rembrandthuis/2",
Label = "Rembrandt House Museum",
FormedBy = new Formation
{
TimeSpan = new LinkedArtTimeSpan
{
BeginOfTheBegin = new LinkedArtDate(1911, 6, 10),
EndOfTheEnd = new LinkedArtDate(1911, 6, 10, 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/group/rembrandthuis/2",
"type": "Group",
"_label": "Rembrandt House Museum",
"formed_by": {
"type": "Formation",
"timespan": {
"type": "TimeSpan",
"begin_of_the_begin": "1911-06-10T00:00:00Z",
"end_of_the_end": "1911-06-10T23:59:59Z"
}
}
} JSON on linked.art
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "https://linked.art/example/group/rembrandthuis/2",
"type": "Group",
"_label": "Rembrandt House Museum",
"formed_by": {
"type": "Formation",
"timespan": {
"type": "TimeSpan",
"begin_of_the_begin": "1911-06-10T00:00:00Z",
"end_of_the_end": "1911-06-10T23:59:59Z"
}
}
} Comparison
The two documents are equivalent (property order ignored, array order significant).