Skip to content

The software presented within this repository has been put together to simplify, reformat and publish the data that can be pulled from the E-RIHS Vocabulary Server API as simple JSON documents to be used to create controlled list drop-downs

License

Notifications You must be signed in to change notification settings

E-RIHS/controlled-lists

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DOI

E-RIHS Controlled List Links

E-RIHS (European Research Infrastructure for Heritage Science), is an initiative that supports the research, conservation, and management of cultural heritage through advanced scientific resources and methodologies, fostering collaboration among European institutions and enhancing knowledge and preservation of heritage assets. E-RIHS will provide access to distributed research facilities, archives and data to advance heritage science. The E-RIHS Knowledgebase, based on the Cordra system, capturing the key metadata describing details of the services offered under E-RIHS and the research work carried out through and related to these services is being developed. A key component of this work is the use of shared terms and descriptions to describe tag and group the stored information. All of these shared terms are being gathered together within the E-RIHS Vocabulary Server, based on the OpenTheso System.

The software presented within this repository has been put together to simplify and reformat the data that can be pulled from the E-RIHS Vocabulary Server API so that it can be easily integrated into the various schema documents used to defined all of the entities modeled with the E-RIHS Knowledgebase, details of these schema can also be found within the E-RIHS Schema GitHub repository

Using the system

The current live version of this script can be found at: https://hdl.handle.net/21.11158/0003-a375-bce0-4571

The landing page lists all of the current groups defined within the E-RIHS Vocabulary Server and provides a series of preformatted links to access either cached or live versions of re-formatted data. Each of the groups can be viewed as default, simple and full formats.

The E-RIHS Vocabulary Server makes use of Handle PIDs, if the code is pointed at a different instance of OpenTheso System the native IDs will be used and displayed.

Tip

In order to speed up the use of the reformatted data it is possible to cache it in a local folder called local. If this folder is not generated with the correct permissions the script will default to providing refreshed live data each time it is used.

The default format

{
    "id": "g8",
    "label": "offered_to",
    "created": "2024-04-22 16:12:13",
    "handle": "https://hdl.handle.net/21.11158/0002-8d19-3829-ba66",
    "list": {
        "https://hdl.handle.net/21.11158/0001-nx5l1g24rqw413kpxbcmh8jpq": "eu",
        "https://hdl.handle.net/21.11158/0001-x9p9pfsp7bqw0ftmn261fnlj1": "global",
        "https://hdl.handle.net/21.11158/0001-c2jr97fx4r0mbfswt87dk57mm": "institutional",
        "https://hdl.handle.net/21.11158/0001-1s89h4108kv7jcr33b7v0pjsd": "national"
    }
}

The simple format

[
    "eu",
    "global",
    "institutional",
    "national"
]

The full format

{
    "id": "g8",
    "label": "offered_to",
    "created": "2024-04-22 16:16:27",
    "handle": "https://hdl.handle.net/21.11158/0002-8d19-3829-ba66?urlappend=%26full",
    "data": {
        "https://hdl.handle.net/21.11158/0001-nx5l1g24rqw413kpxbcmh8jpq": {
            "prefLabel": "eu",
            "definition": null,
            "altLabel": [],
            "narrower": [],
            "broader": {
                "https://hdl.handle.net/21.11158/0001-jl8k2l19dbmspq5fdpb0qcdfc": "offered to"
            },
            "term_json_url": "https://vocab.e-rihs.io/openapi/v1/concept/handle/21.11158/0001-nx5l1g24rqw413kpxbcmh8jpq"
        },
        "https://hdl.handle.net/21.11158/0001-x9p9pfsp7bqw0ftmn261fnlj1": {
            "prefLabel": "global",
            "definition": null,
            "altLabel": [],
            "narrower": [],
            "broader": {
                "https://hdl.handle.net/21.11158/0001-jl8k2l19dbmspq5fdpb0qcdfc": "offered to"
            },
            "term_json_url": "https://vocab.e-rihs.io/openapi/v1/concept/handle/21.11158/0001-x9p9pfsp7bqw0ftmn261fnlj1"
        },
        "https://hdl.handle.net/21.11158/0001-c2jr97fx4r0mbfswt87dk57mm": {
            "prefLabel": "institutional",
            "definition": null,
            "altLabel": [],
            "narrower": [],
            "broader": {
                "https://hdl.handle.net/21.11158/0001-jl8k2l19dbmspq5fdpb0qcdfc": "offered to"
            },
            "term_json_url": "https://vocab.e-rihs.io/openapi/v1/concept/handle/21.11158/0001-c2jr97fx4r0mbfswt87dk57mm"
        },
        "https://hdl.handle.net/21.11158/0001-1s89h4108kv7jcr33b7v0pjsd": {
            "prefLabel": "national",
            "definition": null,
            "altLabel": [],
            "narrower": [],
            "broader": {
                "https://hdl.handle.net/21.11158/0001-jl8k2l19dbmspq5fdpb0qcdfc": "offered to"
            },
            "term_json_url": "https://vocab.e-rihs.io/openapi/v1/concept/handle/21.11158/0001-1s89h4108kv7jcr33b7v0pjsd"
        }
    }
}

Acknowledgement

This project was developed and tested as part of the work of the following projects:

The H2020 IPERION-HS project

IPERION-HS

The Horizon Europe E-RIHS IP project

E-RIHS IP Logo

About

The software presented within this repository has been put together to simplify, reformat and publish the data that can be pulled from the E-RIHS Vocabulary Server API as simple JSON documents to be used to create controlled list drop-downs

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published