person/rembrandt/13 matches the site
Rembrandt was born on 1606-07-15 and died on 1669-10-04 in Amsterdam.
C#
public static Person Rembrandt_Life()
{
var rembrandt = new Person()
.WithContext()
.WithId("https://linked.art/example/person/rembrandt/13")
.WithLabel("Rembrandt");
rembrandt.Born = new Birth()
{
TimeSpan = LinkedArtTimeSpan.FromDay(1606, 7, 15)
};
rembrandt.Died = new Death()
{
TimeSpan = LinkedArtTimeSpan.FromDay(1669, 10, 4),
TookPlaceAt = [
Tgn.Place("7006952", "Amsterdam")
]
};
return rembrandt;
}
- Terms outside the registry The vocabulary registry holds only the terms linked.art itself publishes, so a dataset's own concepts, places and people are written with Aat.Term, Tgn.Place and Ulan.Person, giving the id and the label.
var person = new Person
{
Context = ["https://linked.art/ns/v1/linked-art.json"],
Id = "https://linked.art/example/person/rembrandt/13",
Label = "Rembrandt",
Born = new Birth
{
TimeSpan = new LinkedArtTimeSpan
{
BeginOfTheBegin = new LinkedArtDate(1606, 7, 15),
EndOfTheEnd = new LinkedArtDate(1606, 7, 15, 23, 59, 59),
},
},
Died = new Death
{
TimeSpan = new LinkedArtTimeSpan
{
BeginOfTheBegin = new LinkedArtDate(1669, 10, 4),
EndOfTheEnd = new LinkedArtDate(1669, 10, 4, 23, 59, 59),
},
TookPlaceAt = [Tgn.Place("7006952", "Amsterdam")],
},
};
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/person/rembrandt/13",
"type": "Person",
"_label": "Rembrandt",
"born": {
"type": "Birth",
"timespan": {
"type": "TimeSpan",
"begin_of_the_begin": "1606-07-15T00:00:00Z",
"end_of_the_end": "1606-07-15T23:59:59Z"
}
},
"died": {
"type": "Death",
"timespan": {
"type": "TimeSpan",
"begin_of_the_begin": "1669-10-04T00:00:00Z",
"end_of_the_end": "1669-10-04T23:59:59Z"
},
"took_place_at": [
{
"id": "http://vocab.getty.edu/tgn/7006952",
"type": "Place",
"_label": "Amsterdam"
}
]
}
} JSON on linked.art
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "https://linked.art/example/person/rembrandt/13",
"type": "Person",
"_label": "Rembrandt",
"born": {
"type": "Birth",
"timespan": {
"type": "TimeSpan",
"begin_of_the_begin": "1606-07-15T00:00:00Z",
"end_of_the_end": "1606-07-15T23:59:59Z"
}
},
"died": {
"type": "Death",
"timespan": {
"type": "TimeSpan",
"begin_of_the_begin": "1669-10-04T00:00:00Z",
"end_of_the_end": "1669-10-04T23:59:59Z"
},
"took_place_at": [
{
"id": "http://vocab.getty.edu/tgn/7006952",
"type": "Place",
"_label": "Amsterdam"
}
]
}
} Comparison
The two documents are equivalent (property order ignored, array order significant).