GithubHelp home page GithubHelp logo

fairdatateam / fairdatapoint Goto Github PK

View Code? Open in Web Editor NEW
59.0 13.0 36.0 12.52 MB

Home Page: https://www.fairdatapoint.org

License: MIT License

Java 99.91% Dockerfile 0.09%
metadata fair-data data-repository

fairdatapoint's Introduction

FAIR Data Point

GitHub release (latest SemVer) Documentation Status License Docker Pulls Libraries.io

FAIR Data Point (FDP) is a REST API for creating, storing, and serving FAIR metadata. This FDP implementation also presents a Web-based graphical user interface (GUI). The metadata contents are generated semi-automatically according to the FAIR Data Point software specification document.

Usage

More information about FDP, how to deploy it and use it can be found in the FDP Deployment and REST API usage Documentation.

Related GitHub Projects

API Documentation

FAIR Data Point API comes with an embedded OpenAPI documentation using Swagger. The details of API calls can be found there. It also allows trying out API calls directly. To access the FDP swagger document please visit the following url via web browser localhost:8080/swagger-ui.html (for local deployment) or https://your.domain.tld/swagger-ui.html for your deployment ( e.g. app.fairdatapoint.org/swagger-ui.html). More detailed descriptions and examples of these API calls is available in the Deployment and Usage instructions

Development

Technology Stack

  • Java (JDK 21)
  • PostgreSQL (15.0 or higher)
  • Maven (3.2.5 or higher)
  • Docker (19.03.0-ce or higher) - for building Docker image only

Build & Run

To run the application, a PostgreSQL DB instance is required to be running. To configure the database with standard connection (postgresql://localhost:54321/fdp, credentials fdp:fdp), simply instruct Spring Boot to use the development profile. Then run:

$ mvn spring-boot:run -Dspring-boot.run.profiles=development

Alternatively, create an application.yml file in the project root and configure the database or use environment variables (FDP_POSTGRES_HOST, FDP_POSTGRES_PORT, FDP_POSTGRES_DB, FDP_POSTGRES_USERNAME, and FDP_POSTGRES_PASSWORD; and then run:

$ mvn spring-boot:run

Run tests

Run from the root of the project:

$ mvn test

Package the application

Run from the root of the project:

$ mvn package

Create a Docker image

Run from the root of the project (requires building jar file using mvn package as shown above):

$ docker build -t fairdatapoint:local .

Build using Docker

If you do not have Java and Maven locally, you can build the Docker image using Docker (instead of using locally built jar file):

$ docker build -f Dockerfile.build -t fairdatapoint:local .

Security

Most of the GET requests are publicly accessible. In contrast, POST, PUT, DELETE, and PATCH requests are mainly secured. We use JWT Tokens and Bearer Token Authentication. The token can be retrieved using /tokens endpoint where you send username and password. For details, visit the OpenAPI documentation.

Default users

Contributing

We maintain a CHANGELOG, you should also take a look at our Contributing guidelines and Code of Conduct.

Citation

The following paper can be cite as a reference paper for the FAIR Data Point:

@article{10.1162/dint_a_00160,
author = {Bonino da Silva Santos, Luiz Olavo and Burger, Kees and Kaliyaperumal, Rajaram and Wilkinson, Mark D.},
title = "{FAIR Data Point: A FAIR-oriented approach for metadata publication}",
journal = {Data Intelligence},
pages = {1-21},
year = {2022},
month = {08},
issn = {2641-435X},
doi = {10.1162/dint_a_00160},
url = {https://doi.org/10.1162/dint\_a\_00160},
eprint = {https://direct.mit.edu/dint/article-pdf/doi/10.1162/dint\_a\_00160/2038268/dint\_a\_00160.pdf}}

License

This project is licensed under the MIT License - see the LICENSE file for more details.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.