Sign inSign up

fairgateway/fairgateway

By fairgateway

•Updated 1 day ago

SHACL generated JSON:API endpoint for FAIR-compliant research catalogues

Image
API management
Databases & storage
0

89

fairgateway/fairgateway repository overview

⁠FairGateway

FairGateway connects to an RDF store such as Apache Jena Fuseki and generates a standards-compliant JSON:API interface from a SHACL-defined data model.


⁠Quick Start

Pull and run the production image:

docker run \
  --publish 8000:8000 \
  --env-file ./.env \
  --name fairgateway \
  fairgateway/fairgateway:prod

FairGateway will be available at http://localhost:8000.
API docs are available at http://localhost:8000/redoc (Swagger at http://localhost:8000/docs).


⁠Configuration

FairGateway is configured via environment variables or a .env file.

VariableDescription
LOG_LEVELLog level: DEBUG, INFO, WARNING, ERROR, or CRITICAL
PATH_PREFIXOptional prefix for all routes (e.g. /api)
CORS_ALLOWED_ORIGINSComma-separated list of origins (domains) that are allowed to make cross-origin requests.
DEFAULT_PAGE_SIZEDefault number of results per page (e.g. 25)
STORAGE_MODEStorage backend: FUSEKI or LOCAL
LOCAL_DATA_FILESComma-separated list of local data TTL files
LOCAL_ONT_FILESComma-separated list of local ontology TTL files
LOCAL_SHAPES_FILESComma-separated list of local SHACL shape TTL files
FUSEKI_HOSTFuseki server URL (e.g. http://localhost:3030/dataset)
FUSEKI_USERFuseki username
FUSEKI_PASSFuseki password
DATA_GRAPHNamed graph for data (default urn:fairgateway:data)
ONT_GRAPHNamed graph for ontology (default urn:fairgateway:ontology)
SHAPES_GRAPHNamed graph for SHACL shapes (default urn:fairgateway:shapes)
HISTORY_GRAPHNamed graph for history (default urn:fairgateway:history)
AUTH_MODEAuthentication mode: LOCAL or EXTERNAL
JWT_ISSUERJWT token issuer (used if AUTH_MODE=EXTERNAL)
JWT_AUDIENCEJWT audience (used if AUTH_MODE=EXTERNAL)
JWT_SECRETJWT secret key (used if AUTH_MODE=LOCAL)
PUBLIC_SPARQLSet true to allow unauthenticated SPARQL access

⁠Image Tags

TagDescription
prodProduction image — use this for deployments
devDevelopment image with hot reload
testTest runner image

⁠Source

Tag summary

Content type

Image

Digest

sha256:489e0e4ce…

Size

43.4 MB

Last updated

1 day ago

docker pull fairgateway/fairgateway