activity/exha/1 matches the site
Manet and Modern Beauty at the Getty, October 2019 to January 2020, was carried out by the Getty Museum in Los Angeles, and influenced by the idea behind the exhibition.
C#
public static Activity Manet_and_Modern_Beauty()
{
var activity = new Activity()
.WithContext()
.WithId("https://linked.art/example/activity/exha/1")
.WithLabel("Manet and Modern Beauty (Getty)")
.WithClassifiedAs(Aat.Term("300054766", "Exhibiting"));
activity.IdentifiedBy = [ new Name("Manet and Modern Beauty").AsPrimaryName() ];
activity.ReferredToBy = [
new LinguisticObject()
.WithClassifiedAs(Aat.Description, Aat.Statement)
.WithContent("The great painter of modern Paris Edouard Manet famously shocked contemporary audiences with his provocative pictures. The first exhibition ever to explore the last years of his short life, Manet and Modern Beauty highlights a less familiar and more intimate side of this celebrated artist's work.")
];
activity.TimeSpan = new LinkedArtTimeSpan()
{
BeginOfTheBegin = new LinkedArtDate(2019, 10, 8),
EndOfTheEnd = new LinkedArtDate(2020, 1, 12).EndOfDay()
};
activity.TookPlaceAt = [
Tgn.Place("7023900", "Los Angeles")
.WithClassifiedAs(Aat.City)
];
activity.CarriedOutBy = [
Ulan.Group("500115988", "Getty Museum")
.WithClassifiedAs(Aat.Museum)
];
activity.UsedSpecificObject = [
new Set()
.WithId("https://linked.art/example/set/exhset")
.WithLabel("Exhibition objects")
];
activity.InfluencedBy = [
new PropositionalObject()
.WithId("https://linked.art/example/concept/exhidea")
.WithLabel("Idea for Manet and Modern Beauty")
];
return activity;
}
- 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.
- Role shortcuts AsPrimaryName, AsAccessionNumber and AsSystemAssignedNumber each add a single classification, with the AAT terms Primary Name, Accession Number and System Number.
- Terms outside the registry The vocabulary registry holds only the terms linked.art itself publishes, so a dataset's own concepts, places and people are written with Aat.Term, Tgn.Place and Ulan.Person, giving the id and the label.
var activity = new Activity
{
Context = ["https://linked.art/ns/v1/linked-art.json"],
Id = "https://linked.art/example/activity/exha/1",
Label = "Manet and Modern Beauty (Getty)",
ClassifiedAs = [Aat.Term("300054766", "Exhibiting")],
CarriedOutBy =
[
new Group
{
Id = "http://vocab.getty.edu/ulan/500115988",
Label = "Getty Museum",
ClassifiedAs = [Aat.Museum],
},
],
IdentifiedBy =
[
new Name("Manet and Modern Beauty")
{
ClassifiedAs = [Aat.PrimaryName],
},
],
TimeSpan = new LinkedArtTimeSpan
{
BeginOfTheBegin = new LinkedArtDate(2019, 10, 8),
EndOfTheEnd = new LinkedArtDate(2020, 1, 12, 23, 59, 59),
},
TookPlaceAt =
[
new Place
{
Id = "http://vocab.getty.edu/tgn/7023900",
Label = "Los Angeles",
ClassifiedAs = [Aat.City],
},
],
UsedSpecificObject =
[
new Set
{
Id = "https://linked.art/example/set/exhset",
Label = "Exhibition objects",
},
],
ReferredToBy =
[
new LinguisticObject
{
Content = "The great painter of modern Paris Edouard Manet famously shocked contemporary audiences with his provocative pictures. The first exhibition ever to explore the last years of his short life, Manet and Modern Beauty highlights a less familiar and more intimate side of this celebrated artist's work.",
ClassifiedAs =
[
new Type("http://vocab.getty.edu/aat/300435416", "Description")
{
ClassifiedAs = [Aat.Statement],
},
],
},
],
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/activity/exha/1",
"type": "Activity",
"_label": "Manet and Modern Beauty (Getty)",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300054766",
"type": "Type",
"_label": "Exhibiting"
}
],
"carried_out_by": [
{
"id": "http://vocab.getty.edu/ulan/500115988",
"type": "Group",
"_label": "Getty Museum",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300312281",
"type": "Type",
"_label": "Museum"
}
]
}
],
"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-10-08T00:00:00Z",
"end_of_the_end": "2020-01-12T23:59:59Z"
},
"took_place_at": [
{
"id": "http://vocab.getty.edu/tgn/7023900",
"type": "Place",
"_label": "Los Angeles",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300008389",
"type": "Type",
"_label": "City"
}
]
}
],
"used_specific_object": [
{
"id": "https://linked.art/example/set/exhset",
"type": "Set",
"_label": "Exhibition objects"
}
],
"referred_to_by": [
{
"type": "LinguisticObject",
"content": "The great painter of modern Paris Edouard Manet famously shocked contemporary audiences with his provocative pictures. The first exhibition ever to explore the last years of his short life, Manet and Modern Beauty highlights a less familiar and more intimate side of this celebrated artist's work.",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300435416",
"type": "Type",
"_label": "Description",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300418049",
"type": "Type",
"_label": "Brief Text"
}
]
}
]
}
],
"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/activity/exha/1",
"type": "Activity",
"_label": "Manet and Modern Beauty (Getty)",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300054766",
"type": "Type",
"_label": "Exhibiting"
}
],
"identified_by": [
{
"type": "Name",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300404670",
"type": "Type",
"_label": "Primary Name"
}
],
"content": "Manet and Modern Beauty"
}
],
"referred_to_by": [
{
"type": "LinguisticObject",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300435416",
"type": "Type",
"_label": "Description",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300418049",
"type": "Type",
"_label": "Brief Text"
}
]
}
],
"content": "The great painter of modern Paris Edouard Manet famously shocked contemporary audiences with his provocative pictures. The first exhibition ever to explore the last years of his short life, Manet and Modern Beauty highlights a less familiar and more intimate side of this celebrated artist's work."
}
],
"timespan": {
"type": "TimeSpan",
"begin_of_the_begin": "2019-10-08T00:00:00Z",
"end_of_the_end": "2020-01-12T23:59:59Z"
},
"took_place_at": [
{
"id": "http://vocab.getty.edu/tgn/7023900",
"type": "Place",
"_label": "Los Angeles",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300008389",
"type": "Type",
"_label": "City"
}
]
}
],
"carried_out_by": [
{
"id": "http://vocab.getty.edu/ulan/500115988",
"type": "Group",
"_label": "Getty Museum",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300312281",
"type": "Type",
"_label": "Museum"
}
]
}
],
"used_specific_object": [
{
"id": "https://linked.art/example/set/exhset",
"type": "Set",
"_label": "Exhibition objects"
}
],
"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).