provenance/2 matches the site
C#
public static Activity Acquisition_Establishes_Ownership_Right()
{
var activity = new Activity()
.WithContext()
.WithId("https://linked.art/example/provenance/2")
.WithClassifiedAs(Aat.ProvenanceActivity);
var painting = new HumanMadeObject().WithLabel("Painting");
var museum = new Group().WithLabel("Museum");
activity.Part = [
new Acquisition
{
TransferredTitleOf = [painting],
TransferredTitleTo = [museum]
},
new RightAcquisition
{
Establishes = [
new Right()
.WithLabel("Right of Ownership for Painting")
.WithClassifiedAs(OwnershipRight)
.WithPossessedBy(museum)
.WithAppliesTo(painting)
]
}
];
return activity;
}
var activity = new Activity
{
Context = ["https://linked.art/ns/v1/linked-art.json"],
Id = "https://linked.art/example/provenance/2",
ClassifiedAs = [Aat.ProvenanceActivity],
Part =
[
new Acquisition
{
TransferredTitleOf =
[
new HumanMadeObject
{
Label = "Painting",
},
],
TransferredTitleTo =
[
new Group
{
Label = "Museum",
},
],
},
new RightAcquisition
{
Establishes =
[
new Right
{
Label = "Right of Ownership for Painting",
ClassifiedAs = [Aat.Term("300055603", "Ownership Right")],
PossessedBy =
[
new Group
{
Label = "Museum",
},
],
AppliesTo =
[
new HumanMadeObject
{
Label = "Painting",
},
],
},
],
},
],
};
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/2",
"type": "Activity",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300055863",
"type": "Type",
"_label": "Provenance Activity"
}
],
"part": [
{
"type": "Acquisition",
"transferred_title_of": [
{
"type": "HumanMadeObject",
"_label": "Painting"
}
],
"transferred_title_to": [
{
"type": "Group",
"_label": "Museum"
}
]
},
{
"type": "RightAcquisition",
"establishes": [
{
"type": "Right",
"_label": "Right of Ownership for Painting",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300055603",
"type": "Type",
"_label": "Ownership Right"
}
],
"possessed_by": [
{
"type": "Group",
"_label": "Museum"
}
],
"applies_to": [
{
"type": "HumanMadeObject",
"_label": "Painting"
}
]
}
]
}
]
} JSON on linked.art
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "https://linked.art/example/provenance/2",
"type": "Activity",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300055863",
"type": "Type",
"_label": "Provenance Activity"
}
],
"part": [
{
"type": "Acquisition",
"transferred_title_of": [
{
"type": "HumanMadeObject",
"_label": "Painting"
}
],
"transferred_title_to": [
{
"type": "Group",
"_label": "Museum"
}
]
},
{
"type": "RightAcquisition",
"establishes": [
{
"type": "Right",
"_label": "Right of Ownership for Painting",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300055603",
"type": "Type",
"_label": "Ownership Right"
}
],
"possessed_by": [
{
"type": "Group",
"_label": "Museum"
}
],
"applies_to": [
{
"type": "HumanMadeObject",
"_label": "Painting"
}
]
}
]
}
]
} Comparison
The two documents are equivalent (property order ignored, array order significant).