text/koot_nightwatch/2 matches the site
The authorship and publication of the text.
C#
public static LinguisticObject Authorship_And_Publication()
{
var koot = new LinguisticObject()
.WithContext()
.WithId("https://linked.art/example/text/koot_nightwatch/2")
.WithLabel("Content of Koot's Night Watch")
.WithClassifiedAs(Aat.Monograph, Aat.TypeOfWork);
koot.CreatedBy = new Creation()
{
Label = "Koot's writing of the work",
CarriedOutBy = [
new Person()
.WithId("https://linked.art/example/person/koot")
.WithLabel("Ton Koot")
]
};
koot.UsedFor = [
new Activity()
{
Label = "MI's Publishing",
ClassifiedAs = [ Aat.PublicationActivity ],
TimeSpan = LinkedArtTimeSpan.FromYear(1969),
CarriedOutBy = [
new Group()
.WithId("https://linked.art/example/group/meulenhoff")
.WithLabel("Meulenhoff International")
]
}
];
return koot;
}
- Metatype classification The second argument classifies the first, not the object: WithClassifiedAs(Aat.Description, Aat.Statement) says this is a Description, and Description is a kind of Statement. The Plain C# form shows the nesting.
var linguisticObject = new LinguisticObject
{
Context = ["https://linked.art/ns/v1/linked-art.json"],
Id = "https://linked.art/example/text/koot_nightwatch/2",
Label = "Content of Koot's Night Watch",
ClassifiedAs =
[
new Type("http://vocab.getty.edu/aat/300060417", "Monograph")
{
ClassifiedAs = [Aat.TypeOfWork],
},
],
CreatedBy = new Creation
{
Label = "Koot's writing of the work",
CarriedOutBy =
[
new Person
{
Id = "https://linked.art/example/person/koot",
Label = "Ton Koot",
},
],
},
UsedFor =
[
new Activity
{
Label = "MI's Publishing",
ClassifiedAs = [Aat.PublicationActivity],
CarriedOutBy =
[
new Group
{
Id = "https://linked.art/example/group/meulenhoff",
Label = "Meulenhoff International",
},
],
TimeSpan = new LinkedArtTimeSpan
{
BeginOfTheBegin = new LinkedArtDate(1969, 1, 1),
EndOfTheEnd = new LinkedArtDate(1969, 12, 31, 23, 59, 59),
},
},
],
};
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/2",
"type": "LinguisticObject",
"_label": "Content of Koot's Night Watch",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300060417",
"type": "Type",
"_label": "Monograph",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300435443",
"type": "Type",
"_label": "Type of Work"
}
]
}
],
"created_by": {
"type": "Creation",
"_label": "Koot's writing of the work",
"carried_out_by": [
{
"id": "https://linked.art/example/person/koot",
"type": "Person",
"_label": "Ton Koot"
}
]
},
"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"
}
],
"timespan": {
"type": "TimeSpan",
"begin_of_the_begin": "1969-01-01T00:00:00Z",
"end_of_the_end": "1969-12-31T23:59:59Z"
}
}
]
} JSON on linked.art
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "https://linked.art/example/text/koot_nightwatch/2",
"type": "LinguisticObject",
"_label": "Content of Koot's Night Watch",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300060417",
"type": "Type",
"_label": "Monograph",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300435443",
"type": "Type",
"_label": "Type of Work"
}
]
}
],
"created_by": {
"type": "Creation",
"_label": "Koot's writing of the work",
"carried_out_by": [
{
"id": "https://linked.art/example/person/koot",
"type": "Person",
"_label": "Ton Koot"
}
]
},
"used_for": [
{
"type": "Activity",
"_label": "MI's Publishing",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300054686",
"type": "Type",
"_label": "Publishing"
}
],
"timespan": {
"type": "TimeSpan",
"begin_of_the_begin": "1969-01-01T00:00:00Z",
"end_of_the_end": "1969-12-31T23:59:59Z"
},
"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).