person/rembrandt/4 matches the site
Rembrandt's name is Rembrandt / Harmenzoon / van Rijn
C#
public static Person Rembrandt_Name_Parts()
{
var rembrandt = new Person()
.WithContext()
.WithId("https://linked.art/example/person/rembrandt/4")
.WithLabel("Rembrandt");
var name = new Name("Rembrandt Harmenzoon van Rijn").AsPrimaryName();
name.Part = [
new Name("Rembrandt").WithClassifiedAs(Aat.GivenName),
new Name()
.WithId("https://linked.art/example/Name/Harmenzoon")
.WithClassifiedAs(Aat.MiddleName),
new Name("van Rijn").WithClassifiedAs(Aat.FamilyName)
];
rembrandt.IdentifiedBy = [name];
return rembrandt;
}
- Role shortcuts AsPrimaryName, AsAccessionNumber and AsSystemAssignedNumber each add a single classification, with the AAT terms Primary Name, Accession Number and System Number.
var person = new Person
{
Context = ["https://linked.art/ns/v1/linked-art.json"],
Id = "https://linked.art/example/person/rembrandt/4",
Label = "Rembrandt",
IdentifiedBy =
[
new Name("Rembrandt Harmenzoon van Rijn")
{
ClassifiedAs = [Aat.PrimaryName],
Part =
[
new Name("Rembrandt")
{
ClassifiedAs = [Aat.GivenName],
},
new Name
{
Id = "https://linked.art/example/Name/Harmenzoon",
ClassifiedAs = [Aat.MiddleName],
},
new Name("van Rijn")
{
ClassifiedAs = [Aat.FamilyName],
},
],
},
],
};
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/4",
"type": "Person",
"_label": "Rembrandt",
"identified_by": [
{
"type": "Name",
"content": "Rembrandt Harmenzoon van Rijn",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300404670",
"type": "Type",
"_label": "Primary Name"
}
],
"part": [
{
"type": "Name",
"content": "Rembrandt",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300404651",
"type": "Type",
"_label": "Given Name"
}
]
},
{
"id": "https://linked.art/example/Name/Harmenzoon",
"type": "Name",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300404654",
"type": "Type",
"_label": "Middle Name"
}
]
},
{
"type": "Name",
"content": "van Rijn",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300404652",
"type": "Type",
"_label": "Family Name"
}
]
}
]
}
]
} JSON on linked.art
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "https://linked.art/example/person/rembrandt/4",
"type": "Person",
"_label": "Rembrandt",
"identified_by": [
{
"type": "Name",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300404670",
"type": "Type",
"_label": "Primary Name"
}
],
"content": "Rembrandt Harmenzoon van Rijn",
"part": [
{
"type": "Name",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300404651",
"type": "Type",
"_label": "Given Name"
}
],
"content": "Rembrandt"
},
{
"id": "https://linked.art/example/Name/Harmenzoon",
"type": "Name",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300404654",
"type": "Type",
"_label": "Middle Name"
}
]
},
{
"type": "Name",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300404652",
"type": "Type",
"_label": "Family Name"
}
],
"content": "van Rijn"
}
]
}
]
} Comparison
The two documents are equivalent (property order ignored, array order significant).