provenance/transfer/1 matches the site
A painting is transferred between two people, however it is not clear whether it was permanent or merely a loan.
C#
public static Activity Transfer_Of_Unknown_Kind()
{
var activity = new Activity()
.WithContext()
.WithId("https://linked.art/example/provenance/transfer/1")
.WithLabel("Transfer of Painting")
.WithClassifiedAs(Aat.ProvenanceActivity);
activity.Part = [
new Transfer
{
Transferred = [
new HumanMadeObject()
.WithId("https://linked.art/example/object/example")
.WithLabel("Example Painting")
],
TransferredFrom = [
new Person()
.WithId("https://linked.art/example/person/person1")
.WithLabel("Person 1")
],
TransferredTo = [
new Person()
.WithId("https://linked.art/example/person/person2")
.WithLabel("Person 2")
]
}
];
return activity;
}
var activity = new Activity
{
Context = ["https://linked.art/ns/v1/linked-art.json"],
Id = "https://linked.art/example/provenance/transfer/1",
Label = "Transfer of Painting",
ClassifiedAs = [Aat.ProvenanceActivity],
Part =
[
new Transfer
{
Transferred =
[
new HumanMadeObject
{
Id = "https://linked.art/example/object/example",
Label = "Example Painting",
},
],
TransferredFrom =
[
new Person
{
Id = "https://linked.art/example/person/person1",
Label = "Person 1",
},
],
TransferredTo =
[
new Person
{
Id = "https://linked.art/example/person/person2",
Label = "Person 2",
},
],
},
],
};
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/transfer/1",
"type": "Activity",
"_label": "Transfer of Painting",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300055863",
"type": "Type",
"_label": "Provenance Activity"
}
],
"part": [
{
"type": "Transfer",
"transferred": [
{
"id": "https://linked.art/example/object/example",
"type": "HumanMadeObject",
"_label": "Example Painting"
}
],
"transferred_from": [
{
"id": "https://linked.art/example/person/person1",
"type": "Person",
"_label": "Person 1"
}
],
"transferred_to": [
{
"id": "https://linked.art/example/person/person2",
"type": "Person",
"_label": "Person 2"
}
]
}
]
} JSON on linked.art
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "https://linked.art/example/provenance/transfer/1",
"type": "Activity",
"_label": "Transfer of Painting",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300055863",
"type": "Type",
"_label": "Provenance Activity"
}
],
"part": [
{
"type": "Transfer",
"transferred": [
{
"id": "https://linked.art/example/object/example",
"type": "HumanMadeObject",
"_label": "Example Painting"
}
],
"transferred_from": [
{
"id": "https://linked.art/example/person/person1",
"type": "Person",
"_label": "Person 1"
}
],
"transferred_to": [
{
"id": "https://linked.art/example/person/person2",
"type": "Person",
"_label": "Person 2"
}
]
}
]
} Comparison
The two documents are equivalent (property order ignored, array order significant).