|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnz.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 |
java.lang.String |
getName()
|
void |
parse(java.io.InputStream data)
Parse the modified bibtex file. |
void |
parse(java.io.InputStream data,
Crawler crawler)
Identical to parse - no spidering is done |
void |
set(ParsedObject o)
Set the parsed object to be loaded |
void |
setName(java.lang.String name)
Give this parser an id that should be globally unique |
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) throws java.lang.Exception
parse
in interface Parser
data
-
java.lang.Exception
public void parse(java.io.InputStream data, Crawler crawler) throws java.lang.Exception
parse
in interface Parser
data
- data to be parsedcrawler
- ignored
java.lang.Exception
public Parser duplicate()
Parser
duplicate
in interface Parser
public ParsedObject get()
Parser
get
in interface Parser
public void set(ParsedObject o)
Parser
set
in interface Parser
o
- object to be loadedpublic void setName(java.lang.String name)
Parser
setName
in interface Parser
name
- id for this parserpublic java.lang.String getName()
getName
in interface Parser
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |