provenance/spring_aic/1 matches the site
Spring is lent by the Getty to the Art Institute of Chicago.
C#
public static Activity Loan_Of_Spring_To_AIC()
{
var loan = new Activity()
.WithContext()
.WithId("https://linked.art/example/provenance/spring_aic/1")
.WithLabel("Loan of Spring to AIC")
.WithClassifiedAs(Aat.ProvenanceActivity);
loan.Part = [
new TransferOfCustody
{
TransferredCustodyOf = [
new HumanMadeObject()
.WithId("https://linked.art/example/object/spring")
.WithLabel("Spring")
],
TransferredCustodyFrom = [
new Group()
.WithId("https://linked.art/example/group/getty")
.WithLabel("Getty Museum")
],
TransferredCustodyTo = [
new Group()
.WithId("https://linked.art/example/group/aic")
.WithLabel("Art Institute of Chicago")
]
}.WithClassifiedAs(Aat.Term("300417645", "Loan"))
];
return loan;
}
- 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/spring_aic/1",
Label = "Loan of Spring to AIC",
ClassifiedAs = [Aat.ProvenanceActivity],
Part =
[
new TransferOfCustody
{
ClassifiedAs = [Aat.Term("300417645", "Loan")],
TransferredCustodyOf =
[
new HumanMadeObject
{
Id = "https://linked.art/example/object/spring",
Label = "Spring",
},
],
TransferredCustodyFrom =
[
new Group
{
Id = "https://linked.art/example/group/getty",
Label = "Getty Museum",
},
],
TransferredCustodyTo =
[
new Group
{
Id = "https://linked.art/example/group/aic",
Label = "Art Institute of Chicago",
},
],
},
],
};
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/spring_aic/1",
"type": "Activity",
"_label": "Loan of Spring to AIC",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300055863",
"type": "Type",
"_label": "Provenance Activity"
}
],
"part": [
{
"type": "TransferOfCustody",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300417645",
"type": "Type",
"_label": "Loan"
}
],
"transferred_custody_of": [
{
"id": "https://linked.art/example/object/spring",
"type": "HumanMadeObject",
"_label": "Spring"
}
],
"transferred_custody_from": [
{
"id": "https://linked.art/example/group/getty",
"type": "Group",
"_label": "Getty Museum"
}
],
"transferred_custody_to": [
{
"id": "https://linked.art/example/group/aic",
"type": "Group",
"_label": "Art Institute of Chicago"
}
]
}
]
} JSON on linked.art
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "https://linked.art/example/provenance/spring_aic/1",
"type": "Activity",
"_label": "Loan of Spring to AIC",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300055863",
"type": "Type",
"_label": "Provenance Activity"
}
],
"part": [
{
"type": "TransferOfCustody",
"classified_as": [
{
"id": "http://vocab.getty.edu/aat/300417645",
"type": "Type",
"_label": "Loan"
}
],
"transferred_custody_of": [
{
"id": "https://linked.art/example/object/spring",
"type": "HumanMadeObject",
"_label": "Spring"
}
],
"transferred_custody_from": [
{
"id": "https://linked.art/example/group/getty",
"type": "Group",
"_label": "Getty Museum"
}
],
"transferred_custody_to": [
{
"id": "https://linked.art/example/group/aic",
"type": "Group",
"_label": "Art Institute of Chicago"
}
]
}
]
} Comparison
The two documents are equivalent (property order ignored, array order significant).