Introduction
As with any hypermedia API, and especially those based on linked open data, the Linked Art API makes frequent use of references between resources. These references are designed to be recognizable as such, but still contain a minimum of information needed to understand what the reference is to.
It is very likely that more information about the referenced resource will be needed by the user interface, however it is impossible to know a priori what that information is. Clients should be pro-active about aggressively following references and pre-caching the descriptions to enable a responsive user interface.
Property Definitions
References can only have the three properties below, in order to make it clear that it is a reference to an external resource rather than one that is being embedded within the current JSON document. The URI in id
and the class in type
MUST be the same as the referenced resource, once the URI has been dereferenced. The label, however, MAY be different.
Types are a special case of a reference to an external entry in a vocabulary system. As noted in the type documentation, they may also have meta-classifications to ensure that they can be processed, as dereferencing the type's URI might not result in a Linked Art formatted description.
Properties of References
Property Name | Datatype | Requirement | Description |
---|---|---|---|
id |
string | Required | The value MUST be a dereferenceable URI identifying the referenced resource |
type |
string | Required | The value MUST be the same as the type of the referenced resource |
_label |
string | Recommended | A human readable label for the referenced resource, intended for developers |
There are too many incoming properties to try to list them all, as it amounts to the list of all properties for all classes.
Example
A Painting, which has several references to other entities:
- It is
classified_as
a reference to a type, which is in turnclassified_as
a meta-type - It is
referred_to_by
the textual content of a referenced article - It is a
member_of
a referenced museum collection set - It
shows
a particular referenced visual work - It has a
current_owner
of a particular referenced person - It has a
current_location
of a referenced gallery
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "https://linked.art/example/object/8",
"type": "HumanMadeObject",
"_label": "Example 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"
}
]
}
],
"referred_to_by": [
{
"type": "LinguisticObject",
"_label": "Article about Painting"
}
],
"member_of": [
{
"type": "Set",
"_label": "Museum Collection"
}
],
"shows": [
{
"type": "VisualItem",
"_label": "Visual Work of Example Painting"
}
],
"current_owner": [
{
"type": "Person",
"_label": "Owner"
}
],
"current_location": {
"type": "Place",
"_label": "Gallery"
}
}