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