org.openjena.riot.lang
Class LangNTuple<X>

java.lang.Object
  extended by org.openjena.riot.lang.LangEngine
      extended by org.openjena.riot.lang.LangBase<X>
          extended by org.openjena.riot.lang.LangNTuple<X>
All Implemented Interfaces:
Iterator<X>, LangRIOT
Direct Known Subclasses:
LangNQuads, LangNTriples

public abstract class LangNTuple<X>
extends LangBase<X>
implements Iterator<X>

N-Quads, N-triples parser framework, with both push and pull interfaces.

Normally, bad terms causes the parser to stop (i.e. treat them as errors). In addition, the NTuples subsystem allows triples/quads with "bad" terms to be skipped. Checking can be switched off completely. If the data is known to be correct, no checking can be a large performance gain. Caveat emptor.


Field Summary
static boolean STRICT
           
 
Method Summary
 boolean getSkipOnBadTerm()
          SkipOnBadTerm - do not output tuples with bad RDF terms
 boolean hasNext()
           
 X next()
           
 void remove()
           
 void setSkipOnBadTerm(boolean skipOnBadTerm)
          SkipOnBadTerm - do not output tuples with bad RDF terms
 
Methods inherited from class org.openjena.riot.lang.LangBase
getProfile, parse, setProfile
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openjena.riot.lang.LangRIOT
getLang
 

Field Detail

STRICT

public static final boolean STRICT
See Also:
Constant Field Values
Method Detail

hasNext

public final boolean hasNext()
Specified by:
hasNext in interface Iterator<X>

next

public final X next()
Specified by:
next in interface Iterator<X>

remove

public final void remove()
Specified by:
remove in interface Iterator<X>

getSkipOnBadTerm

public boolean getSkipOnBadTerm()
SkipOnBadTerm - do not output tuples with bad RDF terms


setSkipOnBadTerm

public void setSkipOnBadTerm(boolean skipOnBadTerm)
SkipOnBadTerm - do not output tuples with bad RDF terms



Licenced under the Apache License, Version 2.0