Skip to content

KRRVU/sparql-playground-minimal

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a trimmed down version of the original Playground (see below). This trimmed down version was used for a course.

run using ./startBADS

The goal is to:

  • Have this as simple as possible
  • Not allow changing of data, since this is used by multiple users, while there is only 1 graph :-(
  • Not have example queries (they are on the course slides)
  • Have both the data and query on one page (also includes a static image of the structure)

Sparql Playground

Build Status

SPARQL playground is a standalone multi-platform web application used to learn SPARQL (implemented in Java Spring Boot and AngularJS).

It uses Sesame 2.8.6 as SPARQL Engine.

It is beeing developed at the SIB Swiss Institute of Bioinformatics.

See the poster to have a quick overview of the tool.

Or see a live demo directly here: http://sparql-playground.isb-sib.ch/

You can also see a live version of nextprot samples here: http://sparql-playground.nextprot.org/

Installation

  • Download the latest release
  • Unzip the folder and run the start script (start.bat for windows users or start.sh for unix users) (it requires java 1.7 or higher)
  • Once the application started you should open your browser on: http://localhost:8888

  • Select the examples and click on the GO button

Predefined RDF scenarios / datasets

There are some scenarios predefined:

  • Default scenario comes with less than 100 triplets and does not require any domain knowledge (persons and their pets), run the start.sh (Linux, Mac) or start.bat (Windows) script

  • neXtProt helps you understand the neXtProt rdf model, run the start-nextprot.sh (Linux, Mac) or start-nextprot.bat (Windows) script

  • UniProt helps you understand the UniProt rdf model, run the start-uniprot.sh (Linux, Mac) or start-uniprot.bat (Windows) script

Slides of the SPARQL course at SIB Lausanne, 8th of November 2016

Other presentations

Create your own RDF scenario (no programming skills are required)

  • You can create your own scenario by giving a directory as argument: java -jar sparql-playgroud.war your-directory-name

Your directory should follow this convention:

  • ttl-data: a folder containing turtle file(s)
  • queries: a folder containing the example queries showed in the first page
  • prefixes.ttl: a file containing the default prefixes to be added to queries
  • pages: pages with markdown files for the Documentation tab

Notes:

  • If your dataset is reasonably large that can't be fit in memory (> 50'000 triples) you may want to add the property -Drepository.type=native. This will create a native repository (instead of a in memory datastore). The database will be persisted in a sesame-db folder. The first time it will take some time to create the structure, but once the application is restarted it will be instantaneous.

  • For development purposes you may want to set the java property -Dspring.profiles.active=nocache so the cache is not enabled (example queries, page, images, faqs ...)

Technology in use

  • The SPARQL engine is Sesame 2.8.6
  • The backend uses Spring Boot 1.2.3
  • The frontend is build with angularJS 1.3 and bootstrap 3
  • Requires Java 1.7 or higher

License

The project is opensource and free under the GNU GPL v2 License. The sources are available on GitHub.

This project was forked from the neXtProt snorql interface.

Contact

For any related questions do not hesitate to contact us.

About

A standalone multi-platform web application to learn SPARQL

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 44.5%
  • JavaScript 32.2%
  • HTML 13.0%
  • CSS 6.8%
  • Python 2.0%
  • Shell 1.3%
  • Batchfile 0.2%