Git Product home page Git Product logo

bib2sqlite's Introduction

**************************************
 A Rudimentary Bibtex Query Processor
**************************************

	Author: Emaad Ahmed Manzoor (2008A7PS068G)


 Quick Start
=============

	$ make compiler
	$ ./compiler EMOO.bib
	$ make query
	$ ./query "select * from bibtab;"

 Generated Files
=================

	Intermediate File: out.sql
	Generated Database: bibtex.db
	Table Of Bibtex Entries: bibtab
	
 Supported Queries
===================

	The query processor is sqlite3, so 
	all sqlite3 queries are supported.
	
 Limitations
=============

	- TeX macros of the form \<macro> are 
	retained, but all internal single 
	quotes are stripped out, including 
	the ones of the form \'.
	
	- All braces are stripped out.
	
	- Valgrind reports:
	
	*definitely lost: 582,790 bytes*
	
	This is when run on EMOO.bib, all 
	from "compiler.l", at the line:
	
	318: yylval.str = strdup(yytext);
	
	I'm not happy with this, I did spend 
	hours cleaning up my pointers, but 
	I hope it's enough for now, to get 
	by in a relative grading scenario.
		
 Credits
==========

	Query processer taken from the sqlite3 
	amalgamated source tarball.
	
	sqlite3 C wrapper from sqlite3.org.


 "bibtab" Columns
==================

	bibtype      TEXT,	label        TEXT,	author       TEXT,
	editor       TEXT,	booktitle    TEXT,	title        TEXT,
	crossref     TEXT,	chapter      TEXT,	journal      TEXT,
	volume       TEXT,	type         TEXT,	number       TEXT,
	institution  TEXT,	organization TEXT,	publisher    TEXT,
	school       TEXT,	address      TEXT,	edition      TEXT,
	pages        TEXT,	day          TEXT,	month        TEXT,
	year         TEXT,	CODEN        TEXT,	DOI          TEXT,
	ISBN         TEXT,	ISBN13       TEXT,	ISSN         TEXT,
	LCCN         TEXT,	MRclass      TEXT,	MRnumber     TEXT,
	MRreviewer   TEXT,	bibdate      TEXT,	bibsource    TEXT,
	note         TEXT,	series       TEXT,	URL          TEXT,
	abstract     TEXT,	keywords     TEXT,	remark       TEXT,
	subject      TEXT,	TOC          TEXT,	ZMnumber     TEXT
	
	
  Flowchart
=============

                      +-------------------+
 $ make compiler  --> | compiler (binary) |
                      +-------------------+

                            +---------+
 $ ./compiler EMOO.bib  --> | out.sql |
                            +---------+
                            
                        +------------------+     +-----------+
      $ make query  --> | sqlite3 (binary) | --> | bibtex.db |
                        +------------------+     +-----------+
       |                  ^
  +----+                  |
  |                       |
  |  +------------+     ....................
  |  |  query.c   |     :   cat out.sql    :
  |  +------------+     :..................:
  |    |
  |    |
  |    v
  |  +------------+     +------------------+
  +> | sqlite3.o  | --> |  query (binary)  |
     +------------+     +------------------+
     
                                       +----------------+     +---------------+
 $ ./query "select * from bibtab"  --> | query (binary) | --> | Query Results |
                                       +----------------+     +---------------+
                                         ^
                                         |
                                         |
                                       +----------------+
                                       |   bibtex.db    |
                                       +----------------+

bib2sqlite's People

Contributors

emaadmanzoor avatar

Watchers

 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.