provenance/manet_proust/1 matches the site
Édouard Manet sold his painting, Jeanne, to Antonin Proust in 1883 for 3,000 francs.
C#
public static Activity Spring_Sold_To_Proust()
{
var activity = new Activity()
.WithContext()
.WithId("https://linked.art/example/provenance/manet_proust/1")
.WithLabel("Purchase of Spring by Proust")
.WithClassifiedAs(Aat.ProvenanceActivity);
activity.IdentifiedBy = [new Name("Purchase of Spring by Proust from Manet").AsPrimaryName()];
activity.TimeSpan = new LinkedArtTimeSpan()
{
BeginOfTheBegin = new LinkedArtDate(1881, 1, 1),
EndOfTheEnd = new LinkedArtDate(1883, 12, 31).LastSecondOfDay()
};
var acquisition = new Acquisition()
{
Label = "Ownership of Spring to Proust",
TransferredTitleOf = [
new HumanMadeObject()
.WithId("https://linked.art/example/object/spring")
.WithLabel("Spring")
],
TransferredTitleFrom = [
new Person()
.WithId("https://linked.art/example/person/manet")
.WithLabel("Manet")
],
TransferredTitleTo = [
new Person()
.WithId("https://linked.art/example/person/proust")
.WithLabel("Proust")
]
};
var payment = new Payment()
{
Label = "3000 Francs to Manet",
PaidAmount = new MonetaryAmount
{
Value = 3000,
Currency = Aat.Currency("300412016", "French Francs")
},
PaidFrom = [
new Person()
.WithId("https://linked.art/example/person/proust")
.WithLabel("Proust")
],
PaidTo = [
new Person()
.WithId("https://linked.art/example/person/manet")
.WithLabel("Manet")
]
};
activity.Part = [
acquisition,
payment
];
return activity;
}
- 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/provenance/manet_proust/1",
Label = "Purchase of Spring by Proust",
ClassifiedAs = [Aat.ProvenanceActivity],
IdentifiedBy =
[
new Name("Purchase of Spring by Proust from Manet")
{
ClassifiedAs = [Aat.PrimaryName],
},
],
TimeSpan = new LinkedArtTimeSpan
{
BeginOfTheBegin = new LinkedArtDate(1881, 1, 1),
EndOfTheEnd = new LinkedArtDate(1883, 12, 31, 23, 59, 59),
},
Part =
[
new Acquisition
{
Label = "Ownership of Spring to Proust",
TransferredTitleOf =
[
new HumanMadeObject
{
Id = "https://linked.art/example/object/spring",
Label = "Spring",
},
],
TransferredTitleFrom =
[
new Person
{
Id = "https://linked.art/example/person/manet",
Label = "Manet",
},
],
TransferredTitleTo =
[
new Person
{
Id = "https://linked.art/example/person/proust",
Label = "Proust",
},
],
},
new Payment
{
Label = "3000 Francs to Manet",
PaidAmount = new MonetaryAmount
{
Value = 3000,
Currency = Aat.Currency("300412016", "French Francs"),
},
PaidFrom =
[
new Person
{
Id = "https://linked.art/example/person/proust",
Label = "Proust",
},
],
PaidTo =
[
new Person
{
Id = "https://linked.art/example/person/manet",
Label = "Manet",
},
],
},
],
};
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/manet_proust/1",
"type": "Activity",
"_label": "Purchase of Spring by Proust",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300055863",
"type": "Type",
"_label": "Provenance Activity"
}
],
"identified_by": [
{
"type": "Name",
"content": "Purchase of Spring by Proust from Manet",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300404670",
"type": "Type",
"_label": "Primary Name"
}
]
}
],
"timespan": {
"type": "TimeSpan",
"begin_of_the_begin": "1881-01-01T00:00:00Z",
"end_of_the_end": "1883-12-31T23:59:59Z"
},
"part": [
{
"type": "Acquisition",
"_label": "Ownership of Spring to Proust",
"transferred_title_of": [
{
"id": "https://linked.art/example/object/spring",
"type": "HumanMadeObject",
"_label": "Spring"
}
],
"transferred_title_from": [
{
"id": "https://linked.art/example/person/manet",
"type": "Person",
"_label": "Manet"
}
],
"transferred_title_to": [
{
"id": "https://linked.art/example/person/proust",
"type": "Person",
"_label": "Proust"
}
]
},
{
"type": "Payment",
"_label": "3000 Francs to Manet",
"paid_amount": {
"type": "MonetaryAmount",
"value": 3000,
"currency": {
"id": "http://vocab.getty.edu/aat/300412016",
"type": "Currency",
"_label": "French Francs"
}
},
"paid_from": [
{
"id": "https://linked.art/example/person/proust",
"type": "Person",
"_label": "Proust"
}
],
"paid_to": [
{
"id": "https://linked.art/example/person/manet",
"type": "Person",
"_label": "Manet"
}
]
}
]
} JSON on linked.art
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "https://linked.art/example/provenance/manet_proust/1",
"type": "Activity",
"_label": "Purchase of Spring by Proust",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300055863",
"type": "Type",
"_label": "Provenance Activity"
}
],
"identified_by": [
{
"type": "Name",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300404670",
"type": "Type",
"_label": "Primary Name"
}
],
"content": "Purchase of Spring by Proust from Manet"
}
],
"timespan": {
"type": "TimeSpan",
"begin_of_the_begin": "1881-01-01T00:00:00Z",
"end_of_the_end": "1883-12-31T23:59:59Z"
},
"part": [
{
"type": "Acquisition",
"_label": "Ownership of Spring to Proust",
"transferred_title_of": [
{
"id": "https://linked.art/example/object/spring",
"type": "HumanMadeObject",
"_label": "Spring"
}
],
"transferred_title_from": [
{
"id": "https://linked.art/example/person/manet",
"type": "Person",
"_label": "Manet"
}
],
"transferred_title_to": [
{
"id": "https://linked.art/example/person/proust",
"type": "Person",
"_label": "Proust"
}
]
},
{
"type": "Payment",
"_label": "3000 Francs to Manet",
"paid_amount": {
"type": "MonetaryAmount",
"value": 3000,
"currency": {
"id": "http://vocab.getty.edu/aat/300412016",
"type": "Currency",
"_label": "French Francs"
}
},
"paid_from": [
{
"id": "https://linked.art/example/person/proust",
"type": "Person",
"_label": "Proust"
}
],
"paid_to": [
{
"id": "https://linked.art/example/person/manet",
"type": "Person",
"_label": "Manet"
}
]
}
]
} Comparison
The two documents are equivalent (property order ignored, array order significant).