text/harpers/1 matches the site
C#
public static LinguisticObject Harpers_Textual_Content()
{
var harpersText = new LinguisticObject()
.WithContext()
.WithId("https://linked.art/example/text/harpers/1")
.WithLabel("Textual component of Harpers")
.WithContent("Harper's. January contains Roden's corner. A Novel by Henry Seton Merriman [...]");
harpersText.PartOf = [
new VisualItem()
.WithId("https://linked.art/example/visual/harpers")
.WithLabel("Visual Content of Harpers")
];
return harpersText;
}
var linguisticObject = new LinguisticObject
{
Context = ["https://linked.art/ns/v1/linked-art.json"],
Id = "https://linked.art/example/text/harpers/1",
Content = "Harper's. January contains Roden's corner. A Novel by Henry Seton Merriman [...]",
Label = "Textual component of Harpers",
PartOf =
[
new VisualItem
{
Id = "https://linked.art/example/visual/harpers",
Label = "Visual Content of Harpers",
},
],
};
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/text/harpers/1",
"type": "LinguisticObject",
"content": "Harper's. January contains Roden's corner. A Novel by Henry Seton Merriman [...]",
"_label": "Textual component of Harpers",
"part_of": [
{
"id": "https://linked.art/example/visual/harpers",
"type": "VisualItem",
"_label": "Visual Content of Harpers"
}
]
} JSON on linked.art
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "https://linked.art/example/text/harpers/1",
"type": "LinguisticObject",
"_label": "Textual component of Harpers",
"content": "Harper's. January contains Roden's corner. A Novel by Henry Seton Merriman [...]",
"part_of": [
{
"id": "https://linked.art/example/visual/harpers",
"type": "VisualItem",
"_label": "Visual Content of Harpers"
}
]
} Comparison
The two documents are equivalent (property order ignored, array order significant).