nz.ac.waikato.mcennis.rat.parser
Class ISMIRBibtexParser

java.lang.Object
  extended by nz.ac.waikato.mcennis.rat.parser.AbstractParser
      extended by nz.ac.waikato.mcennis.rat.parser.ISMIRBibtexParser
All Implemented Interfaces:
Parser

public class ISMIRBibtexParser
extends AbstractParser

This class parses bibtex files generated by a custom group of perl scripts that take as input the comma seperated files from www.ismir.net, then reads the xml version of the papers (pdftohtml) to determine which ismir papers reference which other papers. These documents have a strict format which makes for easy parsing. In particular, unlike traditional bibtex, these files have a specific order of fields as well as the non-standard fields of references and file. IDs are assumed to be integers (not standard), all fields are encased in double quotes that extend for a single line, and references are a set of integers seperated by commas. This script loads this format into RAT and establishes two modes (types) of actors: Author and Paper. There are two relations (kinds) of link: References (Paper to Paper) and AuthorOf (Author to Paper).


Constructor Summary
ISMIRBibtexParser()
           
 
Method Summary
 Parser duplicate()
          Create an exact copy of this object
 ParsedObject get()
          Get the object created by this parser
 void parse(java.io.InputStream data, Crawler crawler, Properties site)
          Identical to parse - no spidering is done
 void parse(java.io.InputStream data, Properties site)
          Parse the modified bibtex file.
 void set(ParsedObject o)
          Set the parsed object to be loaded
 
Methods inherited from class nz.ac.waikato.mcennis.rat.parser.AbstractParser
check, check, getName, getParameter, getParameter, init, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ISMIRBibtexParser

public ISMIRBibtexParser()
Method Detail

parse

public void parse(java.io.InputStream data,
                  Properties site)
           throws java.lang.Exception
Parse the modified bibtex file. The file is modified in that an ordering of the fields is assumed, all listed fields are assumed to be present (numeric id as identifier, followed by

Specified by:
parse in interface Parser
Specified by:
parse in class AbstractParser
Parameters:
data -
Throws:
java.lang.Exception

parse

public void parse(java.io.InputStream data,
                  Crawler crawler,
                  Properties site)
           throws java.lang.Exception
Identical to parse - no spidering is done

Specified by:
parse in interface Parser
Specified by:
parse in class AbstractParser
Parameters:
data - data to be parsed
crawler - ignored
Throws:
java.lang.Exception

duplicate

public Parser duplicate()
Description copied from interface: Parser
Create an exact copy of this object

Specified by:
duplicate in interface Parser
Specified by:
duplicate in class AbstractParser
Returns:
new Parser object

get

public ParsedObject get()
Description copied from interface: Parser
Get the object created by this parser

Specified by:
get in interface Parser
Specified by:
get in class AbstractParser
Returns:
parsed object

set

public void set(ParsedObject o)
Description copied from interface: Parser
Set the parsed object to be loaded

Specified by:
set in interface Parser
Specified by:
set in class AbstractParser
Parameters:
o - object to be loaded

Get Relational Analysis Toolkit at SourceForge.net. Fast, secure and Free Open Source software downloads