group/14thc_italian/1 matches the site
The prototypical member of the "14th Century Italians" group was a person born between 1300 and 1400 in Italy.
C#
public static Group Unidentified_14th_Century_Italian()
{
var group = new Group()
.WithContext()
.WithId("https://linked.art/example/group/14thc_italian/1")
.WithLabel("14th c italians");
group.IdentifiedBy = [new Name("Unidentified 14th Century Italian").AsPrimaryName()];
group.MembersExemplifiedBy = [
new Person
{
Born = new Birth
{
TimeSpan = new LinkedArtTimeSpan
{
BeginOfTheBegin = new LinkedArtDate(1300, 1, 1),
EndOfTheEnd = new LinkedArtDate(1399, 12, 31)
},
TookPlaceAt = [
new Place()
.WithId("https://vocab.getty.edu/tgn/1000080")
.WithLabel("Italy")
]
}
}
];
return group;
}
- Role shortcuts AsPrimaryName, AsAccessionNumber and AsSystemAssignedNumber each add a single classification, with the AAT terms Primary Name, Accession Number and System Number.
var group = new Group
{
Context = ["https://linked.art/ns/v1/linked-art.json"],
Id = "https://linked.art/example/group/14thc_italian/1",
Label = "14th c italians",
IdentifiedBy =
[
new Name("Unidentified 14th Century Italian")
{
ClassifiedAs = [Aat.PrimaryName],
},
],
MembersExemplifiedBy =
[
new Person
{
Born = new Birth
{
TimeSpan = new LinkedArtTimeSpan
{
BeginOfTheBegin = new LinkedArtDate(1300, 1, 1),
EndOfTheEnd = new LinkedArtDate(1399, 12, 31),
},
TookPlaceAt =
[
new Place
{
Id = "https://vocab.getty.edu/tgn/1000080",
Label = "Italy",
},
],
},
},
],
};
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/14thc_italian/1",
"type": "Group",
"_label": "14th c italians",
"identified_by": [
{
"type": "Name",
"content": "Unidentified 14th Century Italian",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300404670",
"type": "Type",
"_label": "Primary Name"
}
]
}
],
"members_exemplified_by": [
{
"type": "Person",
"born": {
"type": "Birth",
"timespan": {
"type": "TimeSpan",
"begin_of_the_begin": "1300-01-01T00:00:00Z",
"end_of_the_end": "1399-12-31T00:00:00Z"
},
"took_place_at": [
{
"id": "https://vocab.getty.edu/tgn/1000080",
"type": "Place",
"_label": "Italy"
}
]
}
}
]
} JSON on linked.art
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "https://linked.art/example/group/14thc_italian/1",
"type": "Group",
"_label": "14th c italians",
"identified_by": [
{
"type": "Name",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300404670",
"type": "Type",
"_label": "Primary Name"
}
],
"content": "Unidentified 14th Century Italian"
}
],
"members_exemplified_by": [
{
"type": "Person",
"born": {
"type": "Birth",
"timespan": {
"type": "TimeSpan",
"begin_of_the_begin": "1300-01-01T00:00:00Z",
"end_of_the_end": "1399-12-31T00:00:00Z"
},
"took_place_at": [
{
"id": "https://vocab.getty.edu/tgn/1000080",
"type": "Place",
"_label": "Italy"
}
]
}
}
]
} Comparison
The two documents are equivalent (property order ignored, array order significant).