|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgr.forth.ics.rdfsuite.trig.DefaultParserHandler
public class DefaultParserHandler
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
log
|
| Constructor Summary | |
|---|---|
DefaultParserHandler(IRDF_Model model,
boolean strict)
Creates a new instance of DefaultParserHandler. |
|
DefaultParserHandler(IRDF_Model model,
java.lang.String baseUri,
boolean strict)
Creates a new instance of DefaultParserHandler. |
|
| Method Summary | |
|---|---|
void |
endGraph()
After the call of this method, triples will no longer be added in the graphspace specified in the last call of startGraph. |
void |
handleBaseUri(java.lang.String baseUri)
Compares the given base uri with the one given in the constractor if any. |
void |
handleGraphspacePrefix(java.lang.String prefix,
java.lang.String graphspace)
Associates the prefix with the given graphspace. |
void |
handleNamespacePrefix(java.lang.String prefix,
java.lang.String namespace)
Associates the prefix with the given namespace. |
void |
handleTriple(java.lang.String subject,
java.lang.String predicate,
java.lang.String object)
Creates an new triple with the given subject, predicate and object and adds it in the model. |
void |
startGraph(java.lang.String graphUri)
A new graphspace with the given graphspace uri is added in the model. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger log
| Constructor Detail |
|---|
public DefaultParserHandler(IRDF_Model model,
java.lang.String baseUri,
boolean strict)
model - the model in which all information will be storedbaseUri - the base uri of the file to be loadedstrict - if true all the necessary checks will be performed while if
it is false we will perform a good will building
public DefaultParserHandler(IRDF_Model model,
boolean strict)
model - the model in which all information will be storedstrict - if true all the necessary checks will be performed while if
it is false we will perform a good will building| Method Detail |
|---|
public void handleNamespacePrefix(java.lang.String prefix,
java.lang.String namespace)
handleNamespacePrefix in interface gr.forth.ics.rdfsuite.trig.parser.ParserHandlerprefix - the prefix of the namespacenamespace - the string representation of the namespace
public void handleGraphspacePrefix(java.lang.String prefix,
java.lang.String graphspace)
handleGraphspacePrefix in interface gr.forth.ics.rdfsuite.trig.parser.ParserHandlerprefix - the prefix of the graphspacenamespace - the string representation of the graphspacepublic void handleBaseUri(java.lang.String baseUri)
handleBaseUri in interface gr.forth.ics.rdfsuite.trig.parser.ParserHandlerpublic void startGraph(java.lang.String graphUri)
startGraph in interface gr.forth.ics.rdfsuite.trig.parser.ParserHandlergraphUri - the uri of the graphspacepublic void endGraph()
endGraph in interface gr.forth.ics.rdfsuite.trig.parser.ParserHandler
public void handleTriple(java.lang.String subject,
java.lang.String predicate,
java.lang.String object)
handleTriple in interface gr.forth.ics.rdfsuite.trig.parser.ParserHandlersubject - the subject of the triplepredicate - the predicate of the tripleobject - the object of the triple
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||