|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnz.ac.waikato.mcennis.rat.parser.AbstractParser
nz.ac.waikato.mcennis.rat.parser.ISMIRBibtexParser
public class ISMIRBibtexParser
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 |
---|
public ISMIRBibtexParser()
Method Detail |
---|
public void parse(java.io.InputStream data, Properties site) throws java.lang.Exception
parse
in interface Parser
parse
in class AbstractParser
data
-
java.lang.Exception
public void parse(java.io.InputStream data, Crawler crawler, Properties site) throws java.lang.Exception
parse
in interface Parser
parse
in class AbstractParser
data
- data to be parsedcrawler
- ignored
java.lang.Exception
public Parser duplicate()
Parser
duplicate
in interface Parser
duplicate
in class AbstractParser
public ParsedObject get()
Parser
get
in interface Parser
get
in class AbstractParser
public void set(ParsedObject o)
Parser
set
in interface Parser
set
in class AbstractParser
o
- object to be loaded
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |