provenance/4 matches the site
C#
public static Activity Trading_Shares()
{
var trade = new Activity()
.WithContext()
.WithId("https://linked.art/example/provenance/4")
.WithLabel("Trading Shares of Painting between Two Dealers")
.WithClassifiedAs(Aat.ProvenanceActivity);
trade.Part = [
new RightAcquisition
{
Establishes = [Share("40% Ownership by Dealer 1", 40, "Dealer 1").WithAppliesTo(Painting)],
Invalidates = [new Right().WithLabel("30% Ownership by Dealer 1").WithClassifiedAs(OwnershipRight)]
},
new RightAcquisition
{
// The site's example gives Dealer 2's new 60% share a value of 70.
Establishes = [Share("60% Ownership by Dealer 2", 70, "Dealer 2")],
Invalidates = [new Right().WithLabel("70% Ownership by Dealer 2").WithClassifiedAs(OwnershipRight)]
}
];
return trade;
}
var activity = new Activity
{
Context = ["https://linked.art/ns/v1/linked-art.json"],
Id = "https://linked.art/example/provenance/4",
Label = "Trading Shares of Painting between Two Dealers",
ClassifiedAs = [Aat.ProvenanceActivity],
Part =
[
new RightAcquisition
{
Establishes =
[
new Right
{
Label = "40% Ownership by Dealer 1",
ClassifiedAs = [Aat.Term("300055603", "Ownership Right")],
PossessedBy =
[
new Group
{
Label = "Dealer 1",
},
],
AppliesTo =
[
new HumanMadeObject
{
Label = "Painting",
ClassifiedAs =
[
new Type("http://vocab.getty.edu/aat/300033618", "Painting")
{
ClassifiedAs = [Aat.TypeOfWork],
},
],
},
],
Dimension =
[
new Dimension
{
Value = 40,
Unit = new MeasurementUnit("http://qudt.org/3.0.0/vocab/unit/Percent", "Percent"),
},
],
},
],
Invalidates =
[
new Right
{
Label = "30% Ownership by Dealer 1",
ClassifiedAs = [Aat.Term("300055603", "Ownership Right")],
},
],
},
new RightAcquisition
{
Establishes =
[
new Right
{
Label = "60% Ownership by Dealer 2",
ClassifiedAs = [Aat.Term("300055603", "Ownership Right")],
PossessedBy =
[
new Group
{
Label = "Dealer 2",
},
],
Dimension =
[
new Dimension
{
Value = 70,
Unit = new MeasurementUnit("http://qudt.org/3.0.0/vocab/unit/Percent", "Percent"),
},
],
},
],
Invalidates =
[
new Right
{
Label = "70% Ownership by Dealer 2",
ClassifiedAs = [Aat.Term("300055603", "Ownership Right")],
},
],
},
],
};
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/4",
"type": "Activity",
"_label": "Trading Shares of Painting between Two Dealers",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300055863",
"type": "Type",
"_label": "Provenance Activity"
}
],
"part": [
{
"type": "RightAcquisition",
"establishes": [
{
"type": "Right",
"_label": "40% Ownership by Dealer 1",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300055603",
"type": "Type",
"_label": "Ownership Right"
}
],
"possessed_by": [
{
"type": "Group",
"_label": "Dealer 1"
}
],
"applies_to": [
{
"type": "HumanMadeObject",
"_label": "Painting",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300033618",
"type": "Type",
"_label": "Painting",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300435443",
"type": "Type",
"_label": "Type of Work"
}
]
}
]
}
],
"dimension": [
{
"type": "Dimension",
"value": 40,
"unit": {
"id": "http://qudt.org/3.0.0/vocab/unit/Percent",
"type": "MeasurementUnit",
"_label": "Percent"
}
}
]
}
],
"invalidates": [
{
"type": "Right",
"_label": "30% Ownership by Dealer 1",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300055603",
"type": "Type",
"_label": "Ownership Right"
}
]
}
]
},
{
"type": "RightAcquisition",
"establishes": [
{
"type": "Right",
"_label": "60% Ownership by Dealer 2",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300055603",
"type": "Type",
"_label": "Ownership Right"
}
],
"possessed_by": [
{
"type": "Group",
"_label": "Dealer 2"
}
],
"dimension": [
{
"type": "Dimension",
"value": 70,
"unit": {
"id": "http://qudt.org/3.0.0/vocab/unit/Percent",
"type": "MeasurementUnit",
"_label": "Percent"
}
}
]
}
],
"invalidates": [
{
"type": "Right",
"_label": "70% Ownership by Dealer 2",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300055603",
"type": "Type",
"_label": "Ownership Right"
}
]
}
]
}
]
} JSON on linked.art
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "https://linked.art/example/provenance/4",
"type": "Activity",
"_label": "Trading Shares of Painting between Two Dealers",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300055863",
"type": "Type",
"_label": "Provenance Activity"
}
],
"part": [
{
"type": "RightAcquisition",
"establishes": [
{
"type": "Right",
"_label": "40% Ownership by Dealer 1",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300055603",
"type": "Type",
"_label": "Ownership Right"
}
],
"dimension": [
{
"type": "Dimension",
"value": 40,
"unit": {
"id": "http://qudt.org/3.0.0/vocab/unit/Percent",
"type": "MeasurementUnit",
"_label": "Percent"
}
}
],
"possessed_by": [
{
"type": "Group",
"_label": "Dealer 1"
}
],
"applies_to": [
{
"type": "HumanMadeObject",
"_label": "Painting",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300033618",
"type": "Type",
"_label": "Painting",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300435443",
"type": "Type",
"_label": "Type of Work"
}
]
}
]
}
]
}
],
"invalidates": [
{
"type": "Right",
"_label": "30% Ownership by Dealer 1",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300055603",
"type": "Type",
"_label": "Ownership Right"
}
]
}
]
},
{
"type": "RightAcquisition",
"establishes": [
{
"type": "Right",
"_label": "60% Ownership by Dealer 2",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300055603",
"type": "Type",
"_label": "Ownership Right"
}
],
"dimension": [
{
"type": "Dimension",
"value": 70,
"unit": {
"id": "http://qudt.org/3.0.0/vocab/unit/Percent",
"type": "MeasurementUnit",
"_label": "Percent"
}
}
],
"possessed_by": [
{
"type": "Group",
"_label": "Dealer 2"
}
]
}
],
"invalidates": [
{
"type": "Right",
"_label": "70% Ownership by Dealer 2",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300055603",
"type": "Type",
"_label": "Ownership Right"
}
]
}
]
}
]
} Comparison
The two documents are equivalent (property order ignored, array order significant).