text/koot_nightwatch/40 matches the site
C#
public static LinguisticObject Publishing_Activity()
{
var text = new LinguisticObject()
.WithContext()
.WithId("https://linked.art/example/text/koot_nightwatch/40")
.WithLabel("Content of Koot's Night Watch");
text.UsedFor = [
new Activity()
.WithLabel("MI's Publishing")
.WithClassifiedAs(Aat.PublicationActivity)
.WithCarriedOutBy(
new Group()
.WithId("https://linked.art/example/group/meulenhoff")
.WithLabel("Meulenhoff International"))
];
return text;
}
var linguisticObject = new LinguisticObject
{
Context = ["https://linked.art/ns/v1/linked-art.json"],
Id = "https://linked.art/example/text/koot_nightwatch/40",
Label = "Content of Koot's Night Watch",
UsedFor =
[
new Activity
{
Label = "MI's Publishing",
ClassifiedAs = [Aat.PublicationActivity],
CarriedOutBy =
[
new Group
{
Id = "https://linked.art/example/group/meulenhoff",
Label = "Meulenhoff International",
},
],
},
],
};
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/koot_nightwatch/40",
"type": "LinguisticObject",
"_label": "Content of Koot's Night Watch",
"used_for": [
{
"type": "Activity",
"_label": "MI's Publishing",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300054686",
"type": "Type",
"_label": "Publishing"
}
],
"carried_out_by": [
{
"id": "https://linked.art/example/group/meulenhoff",
"type": "Group",
"_label": "Meulenhoff International"
}
]
}
]
} JSON on linked.art
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "https://linked.art/example/text/koot_nightwatch/40",
"type": "LinguisticObject",
"_label": "Content of Koot's Night Watch",
"used_for": [
{
"type": "Activity",
"_label": "MI's Publishing",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300054686",
"type": "Type",
"_label": "Publishing"
}
],
"carried_out_by": [
{
"id": "https://linked.art/example/group/meulenhoff",
"type": "Group",
"_label": "Meulenhoff International"
}
]
}
]
} Comparison
The two documents are equivalent (property order ignored, array order significant).