PubliSci

Build Status

Full description goes here

Note: this software is under active development!

Installation

gem install publisci

Usage

require 'publisci'
include PubliSci::DSL

# Specify input data
data do
  # use local or remote paths
  source 'https://github.com/wstrinz/publisci/raw/master/spec/csv/bacon.csv' 

  # specify datacube properties
  dimension 'producer', 'pricerange'                                         
  measure 'chunkiness'

  # set parser specific options
  option 'label_column', 'producer'                                          
end

# Describe dataset
 do                                                                  
  dataset 'bacon'
  title 'Bacon dataset'
  creator 'Will Strinz'
  description 'some data about bacon'
  date '1-10-2010'
end

# Send output to an RDF::Repository
#  can also use 'generate_n3' to output a turtle string
repo = to_repository

# run SPARQL queries on the dataset
PubliSci::QueryHelper.execute('select * where {?s ?p ?o} limit 5', repo)

# export in other formats
PubliSci::Writers::ARFF.new.from_store(repo)                                     

The API doc is online. For more code examples see the test files in the source tree.

Project home page

Information on the source tree, documentation, examples, issues and how to contribute, see

http://github.com/wstrinz/publisci

The BioRuby community is on IRC server: irc.freenode.org, channel: #bioruby.

Cite

If you use this software, please cite

and one of

Biogems.info

This Biogem is published at (http://biogems.info/index.html#publisci)

Copyright (c) 2013 wstrinz. See LICENSE.txt for further details.