object/torosaurus/1 matches the site
The fossil Torosaurus (VP.04072) was encountered in 1891 by John Bell Hatcher.
C#
public static HumanMadeObject Torosaurus_Gladius()
{
var torosaurus = new HumanMadeObject()
.WithContext()
.WithId("https://linked.art/example/object/torosaurus/1")
.WithLabel("Torosaurus Gladius");
torosaurus.EncounteredBy = [
new Encounter()
{
TimeSpan = LinkedArtTimeSpan.FromYear(1891),
CarriedOutBy = [
new Person()
.WithId("https://linked.art/example/person/hatcher")
.WithLabel("John Bell Hatcher")
]
}
];
// The docs example doesn't have a label "1891" on the timespan:
return torosaurus;
}
var humanMadeObject = new HumanMadeObject
{
Context = ["https://linked.art/ns/v1/linked-art.json"],
Id = "https://linked.art/example/object/torosaurus/1",
Label = "Torosaurus Gladius",
EncounteredBy =
[
new Encounter
{
CarriedOutBy =
[
new Person
{
Id = "https://linked.art/example/person/hatcher",
Label = "John Bell Hatcher",
},
],
TimeSpan = new LinkedArtTimeSpan
{
BeginOfTheBegin = new LinkedArtDate(1891, 1, 1),
EndOfTheEnd = new LinkedArtDate(1891, 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/torosaurus/1",
"type": "HumanMadeObject",
"_label": "Torosaurus Gladius",
"encountered_by": [
{
"type": "Encounter",
"carried_out_by": [
{
"id": "https://linked.art/example/person/hatcher",
"type": "Person",
"_label": "John Bell Hatcher"
}
],
"timespan": {
"type": "TimeSpan",
"begin_of_the_begin": "1891-01-01T00:00:00Z",
"end_of_the_end": "1891-12-31T23:59:59Z"
}
}
]
} JSON on linked.art
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "https://linked.art/example/object/torosaurus/1",
"type": "HumanMadeObject",
"_label": "Torosaurus Gladius",
"encountered_by": [
{
"type": "Encounter",
"timespan": {
"type": "TimeSpan",
"begin_of_the_begin": "1891-01-01T00:00:00Z",
"end_of_the_end": "1891-12-31T23:59:59Z"
},
"carried_out_by": [
{
"id": "https://linked.art/example/person/hatcher",
"type": "Person",
"_label": "John Bell Hatcher"
}
]
}
]
} Comparison
The two documents are equivalent (property order ignored, array order significant).