Git Product home page Git Product logo

rdf-sparql-lab's Introduction

SPARQL Lab

This is a collection of experiments with SPARQL. Herein you can find examples of:

  • Data validation of an input source against vocabulary data.
  • Data expansion, using RDFS/OWL rules implemented with SPARQL CONSTRUCT (instead of reasoner algorithms).
  • Data curation, combining vocabulary data with common patterns and idioms.

Most of these queries are designed to run against a dataset containing:

  • the default graph, providing background knowledge (mostly vocabulary data);
  • one named graph, representing the focal data to work with.

Usage

A bunch of scripts in the tools directory can be used to run these queries locally, against either local or remote data sources.

  • The construct.py Python script requires a recent version of RDFLib, plus the currently external package for RDFLib SPARQL 1.1 support. Usage:

      $ tools/construct.py QUERY_FILE DEFAULT_SOURCE NAMED_SOURCE
    
  • The construct.groovy script requires Groovy (it will download dependencies on e.g. Sesame automatically using the Grab feature). Usage:

      $ groovy tools/construct.groovy QUERY_FILE DEFAULT_SOURCE NAMED_SOURCE
    
  • Of course, you can also use e.g. Jena ARQ to run queries directly. Usage:

      $ arq --query QUERY_FILE --graph DEFAULT_SOURCE --namedGraph NAMED_SOURCE
    
  • In principle, roqet, part of Redland's Rasqal library is also an excellent SPARQL tool. But I cannot currently guarantee that it works properly with these queries.

rdf-sparql-lab's People

Contributors

niklasl avatar

Stargazers

 avatar  avatar  avatar

Watchers

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