provenance/durand_payne/1 matches the site
Oliver Payne acquired Spring from the Durand-Ruel Gallery in New York in 1909
C#
public static Activity Purchase_Of_Spring_By_Payne()
{
var purchase = new Activity()
.WithContext()
.WithId("https://linked.art/example/provenance/durand_payne/1")
.WithLabel("Purchase of Spring by Payne")
.WithClassifiedAs(Aat.ProvenanceActivity);
purchase.IdentifiedBy = [new Name("Purchase of Spring by Payne from Durand-Ruel").AsPrimaryName()];
purchase.TimeSpan = LinkedArtTimeSpan.FromYear(1909);
purchase.Part = [
new Acquisition
{
Label = "Ownership of Spring to Payne",
TransferredTitleOf = [
new HumanMadeObject()
.WithId("https://linked.art/example/object/spring")
.WithLabel("Spring")
],
TransferredTitleFrom = [
new Person()
.WithId("https://linked.art/example/person/durand")
.WithLabel("Durand-Ruel Gallery")
],
TransferredTitleTo = [
new Person()
.WithId("https://linked.art/example/person/payne")
.WithLabel("Oliver Payne")
]
}
];
return purchase;
}
- 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/provenance/durand_payne/1",
Label = "Purchase of Spring by Payne",
ClassifiedAs = [Aat.ProvenanceActivity],
IdentifiedBy =
[
new Name("Purchase of Spring by Payne from Durand-Ruel")
{
ClassifiedAs = [Aat.PrimaryName],
},
],
TimeSpan = new LinkedArtTimeSpan
{
BeginOfTheBegin = new LinkedArtDate(1909, 1, 1),
EndOfTheEnd = new LinkedArtDate(1909, 12, 31, 23, 59, 59),
},
Part =
[
new Acquisition
{
Label = "Ownership of Spring to Payne",
TransferredTitleOf =
[
new HumanMadeObject
{
Id = "https://linked.art/example/object/spring",
Label = "Spring",
},
],
TransferredTitleFrom =
[
new Person
{
Id = "https://linked.art/example/person/durand",
Label = "Durand-Ruel Gallery",
},
],
TransferredTitleTo =
[
new Person
{
Id = "https://linked.art/example/person/payne",
Label = "Oliver Payne",
},
],
},
],
};
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/durand_payne/1",
"type": "Activity",
"_label": "Purchase of Spring by Payne",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300055863",
"type": "Type",
"_label": "Provenance Activity"
}
],
"identified_by": [
{
"type": "Name",
"content": "Purchase of Spring by Payne from Durand-Ruel",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300404670",
"type": "Type",
"_label": "Primary Name"
}
]
}
],
"timespan": {
"type": "TimeSpan",
"begin_of_the_begin": "1909-01-01T00:00:00Z",
"end_of_the_end": "1909-12-31T23:59:59Z"
},
"part": [
{
"type": "Acquisition",
"_label": "Ownership of Spring to Payne",
"transferred_title_of": [
{
"id": "https://linked.art/example/object/spring",
"type": "HumanMadeObject",
"_label": "Spring"
}
],
"transferred_title_from": [
{
"id": "https://linked.art/example/person/durand",
"type": "Person",
"_label": "Durand-Ruel Gallery"
}
],
"transferred_title_to": [
{
"id": "https://linked.art/example/person/payne",
"type": "Person",
"_label": "Oliver Payne"
}
]
}
]
} JSON on linked.art
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "https://linked.art/example/provenance/durand_payne/1",
"type": "Activity",
"_label": "Purchase of Spring by Payne",
"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 Payne from Durand-Ruel"
}
],
"timespan": {
"type": "TimeSpan",
"begin_of_the_begin": "1909-01-01T00:00:00Z",
"end_of_the_end": "1909-12-31T23:59:59Z"
},
"part": [
{
"type": "Acquisition",
"_label": "Ownership of Spring to Payne",
"transferred_title_of": [
{
"id": "https://linked.art/example/object/spring",
"type": "HumanMadeObject",
"_label": "Spring"
}
],
"transferred_title_from": [
{
"id": "https://linked.art/example/person/durand",
"type": "Person",
"_label": "Durand-Ruel Gallery"
}
],
"transferred_title_to": [
{
"id": "https://linked.art/example/person/payne",
"type": "Person",
"_label": "Oliver Payne"
}
]
}
]
} Comparison
The two documents are equivalent (property order ignored, array order significant).