event/exhab/1 matches the site
C#
public static Activity Multiple_Locations()
{
var activity = new Activity()
.WithContext()
.WithId("https://linked.art/example/event/exhab/1")
.WithLabel("Manet and Modern Beauty")
.WithClassifiedAs(Aat.ExhibitingInMultipleLocations);
activity.IdentifiedBy = [new Name("Manet and Modern Beauty").AsPrimaryName()];
activity.TimeSpan = new LinkedArtTimeSpan()
{
BeginOfTheBegin = new LinkedArtDate(2019, 5, 26),
EndOfTheEnd = new LinkedArtDate(2020, 1, 12).EndOfDay()
};
activity.InfluencedBy = [
new PropositionalObject()
.WithId("https://linked.art/example/concept/exhidea")
.WithLabel("Idea for Manet and Modern Beauty")
];
return activity;
}
- Role shortcuts AsPrimaryName, AsAccessionNumber and AsSystemAssignedNumber each add a single classification, with the AAT terms Primary Name, Accession Number and System Number.
var activity = new Activity
{
Context = ["https://linked.art/ns/v1/linked-art.json"],
Id = "https://linked.art/example/event/exhab/1",
Label = "Manet and Modern Beauty",
ClassifiedAs = [Aat.ExhibitingInMultipleLocations],
IdentifiedBy =
[
new Name("Manet and Modern Beauty")
{
ClassifiedAs = [Aat.PrimaryName],
},
],
TimeSpan = new LinkedArtTimeSpan
{
BeginOfTheBegin = new LinkedArtDate(2019, 5, 26),
EndOfTheEnd = new LinkedArtDate(2020, 1, 12, 23, 59, 59),
},
InfluencedBy =
[
new PropositionalObject
{
Id = "https://linked.art/example/concept/exhidea",
Label = "Idea for Manet and Modern Beauty",
},
],
};
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/event/exhab/1",
"type": "Activity",
"_label": "Manet and Modern Beauty",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300054773",
"type": "Type",
"_label": "Exhibiting in multiple locations"
}
],
"identified_by": [
{
"type": "Name",
"content": "Manet and Modern Beauty",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300404670",
"type": "Type",
"_label": "Primary Name"
}
]
}
],
"timespan": {
"type": "TimeSpan",
"begin_of_the_begin": "2019-05-26T00:00:00Z",
"end_of_the_end": "2020-01-12T23:59:59Z"
},
"influenced_by": [
{
"id": "https://linked.art/example/concept/exhidea",
"type": "PropositionalObject",
"_label": "Idea for Manet and Modern Beauty"
}
]
} JSON on linked.art
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "https://linked.art/example/event/exhab/1",
"type": "Activity",
"_label": "Manet and Modern Beauty",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300054773",
"type": "Type",
"_label": "Exhibiting in multiple locations"
}
],
"identified_by": [
{
"type": "Name",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300404670",
"type": "Type",
"_label": "Primary Name"
}
],
"content": "Manet and Modern Beauty"
}
],
"timespan": {
"type": "TimeSpan",
"begin_of_the_begin": "2019-05-26T00:00:00Z",
"end_of_the_end": "2020-01-12T23:59:59Z"
},
"influenced_by": [
{
"id": "https://linked.art/example/concept/exhidea",
"type": "PropositionalObject",
"_label": "Idea for Manet and Modern Beauty"
}
]
} Comparison
The two documents are equivalent (property order ignored, array order significant).