object/letter/1 matches the site
A letter between Alfred Stieglitz and Bertha Obermeyer, dated 1920 is part of the "Stieglitz Family Letters" sub-series, which is part of "Series I: Alfred Stieglitz Correspondence" (which is part of the "Alfred Stieglitz / Georgia O'Keeffe Archive" at Yale University)
C#
public static HumanMadeObject Obermeyer_1920()
{
var obermeyer = new HumanMadeObject()
.WithContext()
.WithId("https://linked.art/example/object/letter/1")
.WithLabel("Obermeyer 1920")
.WithClassifiedAs(Aat.Term("300026879", "Letter"));
obermeyer.IdentifiedBy = [new Name("Obermeyer, Bertha (1920)").AsPrimaryName()];
obermeyer.MemberOf = [
new Set()
.WithId("https://linked.art/example/set/archive_sfl")
.WithLabel("Stieglitz Family Letters")
];
return obermeyer;
}
- Role shortcuts AsPrimaryName, AsAccessionNumber and AsSystemAssignedNumber each add a single classification, with the AAT terms Primary Name, Accession Number and System Number.
- 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 humanMadeObject = new HumanMadeObject
{
Context = ["https://linked.art/ns/v1/linked-art.json"],
Id = "https://linked.art/example/object/letter/1",
Label = "Obermeyer 1920",
ClassifiedAs = [Aat.Term("300026879", "Letter")],
IdentifiedBy =
[
new Name("Obermeyer, Bertha (1920)")
{
ClassifiedAs = [Aat.PrimaryName],
},
],
MemberOf =
[
new Set
{
Id = "https://linked.art/example/set/archive_sfl",
Label = "Stieglitz Family Letters",
},
],
};
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/letter/1",
"type": "HumanMadeObject",
"_label": "Obermeyer 1920",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300026879",
"type": "Type",
"_label": "Letter"
}
],
"identified_by": [
{
"type": "Name",
"content": "Obermeyer, Bertha (1920)",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300404670",
"type": "Type",
"_label": "Primary Name"
}
]
}
],
"member_of": [
{
"id": "https://linked.art/example/set/archive_sfl",
"type": "Set",
"_label": "Stieglitz Family Letters"
}
]
} JSON on linked.art
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "https://linked.art/example/object/letter/1",
"type": "HumanMadeObject",
"_label": "Obermeyer 1920",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300026879",
"type": "Type",
"_label": "Letter"
}
],
"identified_by": [
{
"type": "Name",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300404670",
"type": "Type",
"_label": "Primary Name"
}
],
"content": "Obermeyer, Bertha (1920)"
}
],
"member_of": [
{
"id": "https://linked.art/example/set/archive_sfl",
"type": "Set",
"_label": "Stieglitz Family Letters"
}
]
} Comparison
The two documents are equivalent (property order ignored, array order significant).