object/spring/4 matches the site
"Spring" was produced in a Production activity carried out by Manet in 1881, somewhere in France.
C#
public static HumanMadeObject Spring_4_Production()
{
var spring = new HumanMadeObject()
.WithContext()
.WithId("https://linked.art/example/object/spring/4")
.WithLabel("Jeanne (Spring) by Manet");
spring.ProducedBy =
new Production()
{
// https://linked.art/example/object/spring/4.json has no Z timespan
TimeSpan = LinkedArtTimeSpan.FromYear(1881).WithLabel("1881"),
TookPlaceAt = [
new Place()
.WithId("https://linked.art/example/place/france")
.WithLabel("France")
],
CarriedOutBy = [
new Person()
.WithId("https://linked.art/example/person/manet")
.WithLabel("Manet")
],
During = [
new Period()
.WithId("https://linked.art/example/event/19c")
.WithLabel("19th Century")
]
};
return spring;
}
var humanMadeObject = new HumanMadeObject
{
Context = ["https://linked.art/ns/v1/linked-art.json"],
Id = "https://linked.art/example/object/spring/4",
Label = "Jeanne (Spring) by Manet",
ProducedBy = new Production
{
CarriedOutBy =
[
new Person
{
Id = "https://linked.art/example/person/manet",
Label = "Manet",
},
],
TimeSpan = new LinkedArtTimeSpan
{
Label = "1881",
BeginOfTheBegin = new LinkedArtDate(1881, 1, 1),
EndOfTheEnd = new LinkedArtDate(1881, 12, 31, 23, 59, 59),
},
TookPlaceAt =
[
new Place
{
Id = "https://linked.art/example/place/france",
Label = "France",
},
],
During =
[
new Period
{
Id = "https://linked.art/example/event/19c",
Label = "19th Century",
},
],
},
};
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/spring/4",
"type": "HumanMadeObject",
"_label": "Jeanne (Spring) by Manet",
"produced_by": {
"type": "Production",
"carried_out_by": [
{
"id": "https://linked.art/example/person/manet",
"type": "Person",
"_label": "Manet"
}
],
"timespan": {
"type": "TimeSpan",
"_label": "1881",
"begin_of_the_begin": "1881-01-01T00:00:00Z",
"end_of_the_end": "1881-12-31T23:59:59Z"
},
"took_place_at": [
{
"id": "https://linked.art/example/place/france",
"type": "Place",
"_label": "France"
}
],
"during": [
{
"id": "https://linked.art/example/event/19c",
"type": "Period",
"_label": "19th Century"
}
]
}
} JSON on linked.art
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "https://linked.art/example/object/spring/4",
"type": "HumanMadeObject",
"_label": "Jeanne (Spring) by Manet",
"produced_by": {
"type": "Production",
"timespan": {
"type": "TimeSpan",
"_label": "1881",
"begin_of_the_begin": "1881-01-01T00:00:00Z",
"end_of_the_end": "1881-12-31T23:59:59Z"
},
"took_place_at": [
{
"id": "https://linked.art/example/place/france",
"type": "Place",
"_label": "France"
}
],
"carried_out_by": [
{
"id": "https://linked.art/example/person/manet",
"type": "Person",
"_label": "Manet"
}
],
"during": [
{
"id": "https://linked.art/example/event/19c",
"type": "Period",
"_label": "19th Century"
}
]
}
} Comparison
The two documents are equivalent (property order ignored, array order significant).