de.fuberlin.wiwiss.ng4j.trig
Class NamedGraphSetPopulator
java.lang.Object
de.fuberlin.wiwiss.ng4j.trig.NamedGraphSetPopulator
- All Implemented Interfaces:
- TriGParserEventHandler
public class NamedGraphSetPopulator
- extends Object
- implements TriGParserEventHandler
A Handler for TriG parsing events which populates a NamedGraphSet. Based
on Jena's N3toRDF class.
- Version:
- $Id: NamedGraphSetPopulator.java,v 1.8 2005/03/22 22:12:28 cyganiak Exp $
- Author:
- Andy Seaborne, Richard Cyganiak (richard@cyganiak.de)
Field Summary |
protected static org.apache.commons.logging.Log |
logger
|
static boolean |
VERBOSE
|
Method Summary |
void |
deprecated(Exception ex,
String message)
|
void |
deprecated(String message)
|
void |
directive(int line,
antlr.collections.AST directive,
antlr.collections.AST[] args)
|
void |
endDocument()
|
void |
endGraph(int line,
antlr.collections.AST graphName)
|
void |
error(Exception ex,
String message)
|
void |
error(String message)
|
void |
quad(int line,
antlr.collections.AST subj,
antlr.collections.AST prop,
antlr.collections.AST obj,
antlr.collections.AST graphName)
|
void |
startDocument()
|
void |
startGraph(int line,
antlr.collections.AST graphName)
|
void |
warning(Exception ex,
String message)
|
void |
warning(String message)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static org.apache.commons.logging.Log logger
VERBOSE
public static boolean VERBOSE
NamedGraphSetPopulator
public NamedGraphSetPopulator(NamedGraphSet ngs,
String _base,
String defaultGraphName)
startDocument
public void startDocument()
- Specified by:
startDocument
in interface TriGParserEventHandler
endDocument
public void endDocument()
- Specified by:
endDocument
in interface TriGParserEventHandler
error
public void error(Exception ex,
String message)
- Specified by:
error
in interface TriGParserEventHandler
error
public void error(String message)
warning
public void warning(Exception ex,
String message)
warning
public void warning(String message)
deprecated
public void deprecated(Exception ex,
String message)
deprecated
public void deprecated(String message)
startGraph
public void startGraph(int line,
antlr.collections.AST graphName)
- Specified by:
startGraph
in interface TriGParserEventHandler
endGraph
public void endGraph(int line,
antlr.collections.AST graphName)
- Specified by:
endGraph
in interface TriGParserEventHandler
directive
public void directive(int line,
antlr.collections.AST directive,
antlr.collections.AST[] args)
- Specified by:
directive
in interface TriGParserEventHandler
quad
public void quad(int line,
antlr.collections.AST subj,
antlr.collections.AST prop,
antlr.collections.AST obj,
antlr.collections.AST graphName)
- Specified by:
quad
in interface TriGParserEventHandler