person/rembrandt/15 matches the site
Rembrandt is depicted in a digital image hosted at wikimedia.
C#
public static Person Rembrandt_Representation()
{
var rembrandt = new Person()
.WithContext()
.WithId("https://linked.art/example/person/rembrandt/15")
.WithLabel("Rembrandt");
var visual = new VisualItem();
var digitalImage = new DigitalObject()
.WithLabel("Image of Rembrandt")
.WithClassifiedAs(Aat.DigitalImage);
digitalImage.Format = "image/jpeg";
digitalImage.AccessPoint = [
new DigitalObject().WithId("https://upload.wikimedia.org/wikipedia/commons/b/bd/Rembrandt_van_Rijn_-_Self-Portrait_-_Google_Art_Project.jpg")
];
visual.DigitallyShownBy = [digitalImage];
rembrandt.Representation = [visual];
return rembrandt;
}
var person = new Person
{
Context = ["https://linked.art/ns/v1/linked-art.json"],
Id = "https://linked.art/example/person/rembrandt/15",
Label = "Rembrandt",
Representation =
[
new VisualItem
{
DigitallyShownBy =
[
new DigitalObject
{
Label = "Image of Rembrandt",
ClassifiedAs = [Aat.DigitalImage],
AccessPoint =
[
new DigitalObject
{
Id = "https://upload.wikimedia.org/wikipedia/commons/b/bd/Rembrandt_van_Rijn_-_Self-Portrait_-_Google_Art_Project.jpg",
},
],
Format = "image/jpeg",
},
],
},
],
};
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/15",
"type": "Person",
"_label": "Rembrandt",
"representation": [
{
"type": "VisualItem",
"digitally_shown_by": [
{
"type": "DigitalObject",
"_label": "Image of Rembrandt",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300215302",
"type": "Type",
"_label": "Digital Image"
}
],
"access_point": [
{
"id": "https://upload.wikimedia.org/wikipedia/commons/b/bd/Rembrandt_van_Rijn_-_Self-Portrait_-_Google_Art_Project.jpg",
"type": "DigitalObject"
}
],
"format": "image/jpeg"
}
]
}
]
} JSON on linked.art
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "https://linked.art/example/person/rembrandt/15",
"type": "Person",
"_label": "Rembrandt",
"representation": [
{
"type": "VisualItem",
"digitally_shown_by": [
{
"type": "DigitalObject",
"_label": "Image of Rembrandt",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300215302",
"type": "Type",
"_label": "Digital Image"
}
],
"format": "image/jpeg",
"access_point": [
{
"id": "https://upload.wikimedia.org/wikipedia/commons/b/bd/Rembrandt_van_Rijn_-_Self-Portrait_-_Google_Art_Project.jpg",
"type": "DigitalObject"
}
]
}
]
}
]
} Comparison
The two documents are equivalent (property order ignored, array order significant).