GithubHelp home page GithubHelp logo

tomatophantastico / sparqlmap-legacy Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 2.0 9.35 MB

SparqlMap - A SPARQL to SQL rewriter based on R2RML

Groovy 1.02% Shell 1.34% Java 82.42% JavaScript 14.01% CSS 0.49% XSLT 0.72%

sparqlmap-legacy's Introduction

#SparqlMap

SparqlMap - A SPARQL to SQL rewriter based on R2RML specification.

It can be used in allows both extracting RDF from an relational database and rewrite SPARQL queries into SQL.

##Current Status

We have refactored SparqlMap in the last few months a lot. The current master branch is not yet ready for prime time, thus no binary release are out yet.

If you want to try out SparqlMap, best use a binary distribution from our [old website] (https://code.google.com/p/sparqlmap/downloads/list).

##Convert Relational Database into RDF

Most of the time, dump creation will take place on the command line. In the binary distributions these can be found in the bin folder. The two files of interest are:

./bin/dump.sh             (1)
./bin/generateMapping.sh  (2)

(1) dump will create an full RDF representation based on a mapping provided. (2) will generate that mapping for you, based on the Direct Mapping specification. You can use this mapping as a starting point. However, be aware that the full database will be mapped and that the mapping will apear clumsy.

Rewrite SPARQL queries into SQL

For rewriting SPARQL queries into SQL SparqlMap can expose a SPARQL endpoint by an embedded tomcat. The enpoint is started by

java -jar sparqlmap-X.X.X-with-dependencies.jar

This will expose an SPARQL endpoint with a little snorql interface.

R2RML conformance

SparqlMap conforms fully with the R2RML specification and was tested with PostgreSQL, MySQL and HSQL. The test results can be found in the repository.

Project Structure

This project has the following sub-folders:

  • sparqlmap-core The rewriting (and the dumping) mechanics can be found here.
  • sparqlmap-web The code for exposing webservices resides here.
  • sparqlmap-webinterface The yeoman client-side webinterface is here.
  • sparqlmap-shared Common resources, like exemplary mappings, local versions of vocabularies and default config files are here.
  • sparqlmap-cli The command line wrapper around thecore.
  • sparqlmap-r2rmltestcases The SparqlMap R2RML testrunner and the results of these test are here.

sparqlmap-legacy's People

Contributors

tomatophantastico avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

hongyangandroid

sparqlmap-legacy's Issues

Empty hsql db generates invalid SQL

A non-empty mapping together with an empty hsqldb table generates a SQL query without a from clause, which is valid for mysql and postgresql, but not for hsqldb.

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.