provenance/mona_lisa_theft/1 matches the site
The Mona Lisa was stolen from the Louvre in 1911 by Vincenzo Peruggia.
C#
public static Activity Theft_Of_Mona_Lisa()
{
var theft = new Activity()
.WithContext()
.WithId("https://linked.art/example/provenance/mona_lisa_theft/1")
.WithLabel("Theft of Mona Lisa")
.WithClassifiedAs(Aat.ProvenanceActivity);
theft.Part = [
new TransferOfCustody
{
TransferredCustodyOf = [
new HumanMadeObject()
.WithId("https://linked.art/example/object/monalisa")
.WithLabel("Mona Lisa")
],
TransferredCustodyFrom = [
new Group()
.WithId("https://linked.art/example/group/louvre")
.WithLabel("Louvre")
],
TransferredCustodyTo = [
new Person()
.WithId("https://linked.art/example/person/peruggia")
.WithLabel("Vincenzo Peruggia")
]
}.WithClassifiedAs(Aat.Term("300055292", "Theft"))
];
return theft;
}
- 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/provenance/mona_lisa_theft/1",
Label = "Theft of Mona Lisa",
ClassifiedAs = [Aat.ProvenanceActivity],
Part =
[
new TransferOfCustody
{
ClassifiedAs = [Aat.Term("300055292", "Theft")],
TransferredCustodyOf =
[
new HumanMadeObject
{
Id = "https://linked.art/example/object/monalisa",
Label = "Mona Lisa",
},
],
TransferredCustodyFrom =
[
new Group
{
Id = "https://linked.art/example/group/louvre",
Label = "Louvre",
},
],
TransferredCustodyTo =
[
new Person
{
Id = "https://linked.art/example/person/peruggia",
Label = "Vincenzo Peruggia",
},
],
},
],
};
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/provenance/mona_lisa_theft/1",
"type": "Activity",
"_label": "Theft of Mona Lisa",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300055863",
"type": "Type",
"_label": "Provenance Activity"
}
],
"part": [
{
"type": "TransferOfCustody",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300055292",
"type": "Type",
"_label": "Theft"
}
],
"transferred_custody_of": [
{
"id": "https://linked.art/example/object/monalisa",
"type": "HumanMadeObject",
"_label": "Mona Lisa"
}
],
"transferred_custody_from": [
{
"id": "https://linked.art/example/group/louvre",
"type": "Group",
"_label": "Louvre"
}
],
"transferred_custody_to": [
{
"id": "https://linked.art/example/person/peruggia",
"type": "Person",
"_label": "Vincenzo Peruggia"
}
]
}
]
} JSON on linked.art
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "https://linked.art/example/provenance/mona_lisa_theft/1",
"type": "Activity",
"_label": "Theft of Mona Lisa",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300055863",
"type": "Type",
"_label": "Provenance Activity"
}
],
"part": [
{
"type": "TransferOfCustody",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300055292",
"type": "Type",
"_label": "Theft"
}
],
"transferred_custody_of": [
{
"id": "https://linked.art/example/object/monalisa",
"type": "HumanMadeObject",
"_label": "Mona Lisa"
}
],
"transferred_custody_from": [
{
"id": "https://linked.art/example/group/louvre",
"type": "Group",
"_label": "Louvre"
}
],
"transferred_custody_to": [
{
"id": "https://linked.art/example/person/peruggia",
"type": "Person",
"_label": "Vincenzo Peruggia"
}
]
}
]
} Comparison
The two documents are equivalent (property order ignored, array order significant).