Giter VIP home page Giter VIP logo

basil's Introduction

BASIL

Build JDK 1.8 Build Java 11 Build Java 17

BASIL is designed as middleware system that mediates between SPARQL endpoints and applications.

With BASIL you can build Web APIs on top of SPARQL endpoints.

BASIL stores SPARQL queries and builds APIs with standard and customizable formats.

Run

Latest runnable jar can be downloaded from the releases section.

TDB2 backend (default)

An example configuration file can be found in the project root folder (basil-tdb2.ini). An example log4j configuration file is at server/src/test/resources/log4j.xml.

Execute:

$ java -jar -Dbasil.configurationFile=./basil-tdb2.ini -Dlog4j.configurationFile=./log4j2.xml basil-server-VERSION.jar -p 8080
#1: welcome to the world's helthiest food
#2: basil is starting on port 8080
#3: done
#4: enjoy

MySQL backend (legacy)

You need to:

  • Have a MySQL server.
  • Prepare a database running the db.sql queries (at the root of the codebase).
  • Prepare the configuration file (the connection parameters), see this file as an example.
  • Prepare a log4j2 configuration file (if you want logging). See this file as an example.

When ready, execute:

$ java -jar -Dbasil.configurationFile=../basil.ini -Dlog4j.configurationFile=src/test/resources/log4j2.xml basil-server-0.3.0.jar -p 8080
#1: welcome to the world's helthiest food
#2: basil is starting on port 8080
#3: done
#4: enjoy

Usage

BASIL is a system based on a Web API for creating and managing a stack of Web APIs on top SPARQL endpoints. On its own, BASIL does not come with a graphic user interface. Instead, it can be fully controlled via its API. See the cURL tutorial for details.

Build

The basil project is managed and built with Maven.

mvn clean install

Note: to also run tests, you need an active internet connection (as they use public SPARQL endpoints). If you want to skip tests, you can:

mvn install -DskipTests

Releasing

The following command will pack a release, sign the artefacts, and push them to maven central.

mvn deploy -DperformRelease=true

basil's People

Contributors

dependabot[bot] avatar enridaga avatar gitter-badger avatar izzyblues avatar justin2004 avatar

Watchers

 avatar

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.