A simple Python script to generate rich metadata descriptions of datasets in JSON-LD using Schema.org vocabulary
A simple command line Python script to generate rich machine-readable metadata descriptions of datasets in JSON-LD using Schema.org vocabulary.
The script fairmetadatagenerator.py
asks users to answer a set of pre-determined questions about their dataset. The answers are used to generate a metadata description of their dataset in JSON-LD format which is then meant to be published in metadata registries such as https://fairsharing.org/ or to be embedded into any website or webpage describing the dataset. This is so that search engines can:
Google, for example, is gradually developing support for dataset search tools to help researchers find and reuse relevant data. Generating structured metadata about your datasets before you publish them to the Web (using tools such as FAIR metadata generator), therefore prepares your data to be more effectively found and reused in such search tools.
requirements.txt
in this repositoryTo install the required libraries in requirements.txt
run: pip install -r requirements.txt
in your command line environment (after installing Python).
Run python fairmetadatagenerator.py
in your command line environment after installing Python and the required libraries
Want a human-readable version of your JSON-LD metadata? Use this script to automatically generate a static HTML page describing the information inside your JSON-LD file.
The FAIR metadata generator is copyrighted by Kody Moodley and released under the GNU Affero License
Contributions and bug reports are helpful and welcome.