Coder Social home page Coder Social logo

shmarql's Introduction

SPARQL-SHMARQL

Running example can be viewed here: https://epoz.org/shmarql

A SPARQL endpoint explorer, that allows you to "bounce" the subject, predicate or object around for a public SPARQL endpoint so that you can explore the shape of the data. useful if you encounter a new dataset that you do not know and would like to quickly get a feel of what the data looks like.

Running

You can test/run a local copy, if you have Docker installed by doing:

docker run --rm -p 8000:8000 -it ghcr.io/epoz/shmarql:latest

This will pull the latest version from the Github package registry, delete the container again after running, and export it on port 8000. You can then view it in your browser at: http://localhost:8000/

Using the built-in triplestore

SHMARQL also has a built-in triplestore which you can use to share your RDF data over a SPARQL interface. To use it, you need to specify the path from which to load the datafiles at startup, using an environment variable: DATA_LOAD_PATHS. This also means that the path in which the data is stored is is "visible" to the docker container via for example a mounted volume.

Here is an example, where you have some .ttl files stored in a directory named ./databases

docker run --rm -p 8000:8000 -it -v $(pwd)/databases:/data -e DATA_LOAD_PATHS=/data  ghcr.io/epoz/shmarql:latest

This will load all .ttl files found in the specified directory, and make it available under a /sparql endpoint, eg. http://localhost:8000/sparql

Development instructions

If you would like to run and modify the code in this repo, there is a Dockerfile which includes the necessary versions of the required libraries.

First, build the Docker image like so:

docker build -t shmarql .

Now you can run a local copy with:

docker run -it --rm -p 8000:8000 shmarql

shmarql's People

Contributors

epoz avatar metacontext 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.