Skip to content

STAC concepts

Because SharingHub relies on the STAC specification, with a project being transformed to a STAC Item, metadata are tightly tied to it. You can find some resources related to STAC in Resources / STAC.

Info

A STAC Item is a valid GeoJSON Feature. ➡️ Item spec.

Properties

In STAC, the properties of a STAC Item are the closest thing to the concept of metadata. Its mostly a mapping of key-value pair.

STAC Item
{
    ...
    "properties": {
        "<key>": "<value>"
    }
    ...
}

The "links" in a STAC object is a list of URLs, with for each a "relationship" (rel) to the item, and a type, which is the media type of the resources pointed by the URL (href).

STAC Item
{
    ...
    "links": [
        ...
        {
            "rel": "<value>",
            "href": "<url>",
            "type": "<media type>",
        },
        ...
    ]
    ...
}

Assets

The assets of a STAC Item are essentially links to the resources. Unlike links, it is a mapping, with unique keys.

STAC Item
{
    ...
    "assets": {
        ...
        "<key>": {
            "href": "<url>",
            "title": "<string>",
            "roles": ["<string>", ...],
            "type": "<media type>",
        },
        ...
    }
    ...
}