provenance/fixme/1 matches the site
A sculpture is purchased with $900 going to the seller, and $100 going to the auction house.
C#
public static Activity Purchase_With_Commission()
{
var purchase = new Activity()
.WithContext()
.WithId("https://linked.art/example/provenance/fixme/1")
.WithLabel("Purchase of Sculpture with Commission")
.WithClassifiedAs(Aat.ProvenanceActivity);
var buyer = new Person().WithLabel("Buyer");
purchase.Part = [
new Payment
{
PaidAmount = new MonetaryAmount
{
Value = 900,
Currency = Aat.UsDollars.WithNotation("USD")
},
PaidFrom = [buyer],
PaidTo = [new Person().WithLabel("Seller")]
},
new Payment
{
PaidAmount = new MonetaryAmount
{
Value = 100,
Currency = Aat.UsDollars
},
PaidFrom = [buyer],
PaidTo = [
new Group()
.WithLabel("Auction House")
.WithClassifiedAs(Aat.Term("300417515", "Auction House (organization)"))
]
}.WithClassifiedAs(Aat.Term("300393199", "Commission"))
];
return purchase;
}
- 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/fixme/1",
Label = "Purchase of Sculpture with Commission",
ClassifiedAs = [Aat.ProvenanceActivity],
Part =
[
new Payment
{
PaidAmount = new MonetaryAmount
{
Value = 900,
Currency = new Currency("http://vocab.getty.edu/aat/300411994", "US Dollars")
{
Notation = "USD",
},
},
PaidFrom =
[
new Person
{
Label = "Buyer",
},
],
PaidTo =
[
new Person
{
Label = "Seller",
},
],
},
new Payment
{
PaidAmount = new MonetaryAmount
{
Value = 100,
Currency = Aat.UsDollars,
},
PaidFrom =
[
new Person
{
Label = "Buyer",
},
],
PaidTo =
[
new Group
{
Label = "Auction House",
ClassifiedAs = [Aat.Term("300417515", "Auction House (organization)")],
},
],
ClassifiedAs = [Aat.Term("300393199", "Commission")],
},
],
};
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/fixme/1",
"type": "Activity",
"_label": "Purchase of Sculpture with Commission",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300055863",
"type": "Type",
"_label": "Provenance Activity"
}
],
"part": [
{
"type": "Payment",
"paid_amount": {
"type": "MonetaryAmount",
"value": 900,
"currency": {
"id": "http://vocab.getty.edu/aat/300411994",
"type": "Currency",
"_label": "US Dollars",
"notation": "USD"
}
},
"paid_from": [
{
"type": "Person",
"_label": "Buyer"
}
],
"paid_to": [
{
"type": "Person",
"_label": "Seller"
}
]
},
{
"type": "Payment",
"paid_amount": {
"type": "MonetaryAmount",
"value": 100,
"currency": {
"id": "http://vocab.getty.edu/aat/300411994",
"type": "Currency",
"_label": "US Dollars"
}
},
"paid_from": [
{
"type": "Person",
"_label": "Buyer"
}
],
"paid_to": [
{
"type": "Group",
"_label": "Auction House",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300417515",
"type": "Type",
"_label": "Auction House (organization)"
}
]
}
],
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300393199",
"type": "Type",
"_label": "Commission"
}
]
}
]
} JSON on linked.art
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "https://linked.art/example/provenance/fixme/1",
"type": "Activity",
"_label": "Purchase of Sculpture with Commission",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300055863",
"type": "Type",
"_label": "Provenance Activity"
}
],
"part": [
{
"type": "Payment",
"paid_amount": {
"type": "MonetaryAmount",
"value": 900,
"currency": {
"id": "http://vocab.getty.edu/aat/300411994",
"type": "Currency",
"_label": "US Dollars",
"notation": "USD"
}
},
"paid_from": [
{
"type": "Person",
"_label": "Buyer"
}
],
"paid_to": [
{
"type": "Person",
"_label": "Seller"
}
]
},
{
"type": "Payment",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300393199",
"type": "Type",
"_label": "Commission"
}
],
"paid_amount": {
"type": "MonetaryAmount",
"value": 100,
"currency": {
"id": "http://vocab.getty.edu/aat/300411994",
"type": "Currency",
"_label": "US Dollars"
}
},
"paid_from": [
{
"type": "Person",
"_label": "Buyer"
}
],
"paid_to": [
{
"type": "Group",
"_label": "Auction House",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300417515",
"type": "Type",
"_label": "Auction House (organization)"
}
]
}
]
}
]
} Comparison
The two documents are equivalent (property order ignored, array order significant).