visual/spring/1 matches the site
The image of Manet's Spring represents (or depicts) Jeanne Demarsy, a French actress.
C#
public static VisualItem Spring_Visual_Content()
{
var springVis = new VisualItem()
.WithContext()
.WithId("https://linked.art/example/visual/spring/1")
.WithLabel("Visual Content of Spring");
springVis.Represents = [
new Person()
.WithId("https://linked.art/example/person/jeanne")
.WithLabel("Jeanne Demarsy")
];
return springVis;
}
var visualItem = new VisualItem
{
Context = ["https://linked.art/ns/v1/linked-art.json"],
Id = "https://linked.art/example/visual/spring/1",
Label = "Visual Content of Spring",
Represents =
[
new Person
{
Id = "https://linked.art/example/person/jeanne",
Label = "Jeanne Demarsy",
},
],
};
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/visual/spring/1",
"type": "VisualItem",
"_label": "Visual Content of Spring",
"represents": [
{
"id": "https://linked.art/example/person/jeanne",
"type": "Person",
"_label": "Jeanne Demarsy"
}
]
} JSON on linked.art
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "https://linked.art/example/visual/spring/1",
"type": "VisualItem",
"_label": "Visual Content of Spring",
"represents": [
{
"id": "https://linked.art/example/person/jeanne",
"type": "Person",
"_label": "Jeanne Demarsy"
}
]
} Comparison
The two documents are equivalent (property order ignored, array order significant).