Class BindingInputStream

  • All Implemented Interfaces:
    java.util.Iterator<Binding>, org.apache.jena.atlas.lib.Closeable

    public class BindingInputStream
    extends LangEngine
    implements java.util.Iterator<Binding>, org.apache.jena.atlas.lib.Closeable
    Language for reading in a stream of bindings. See BindingIO

    Summary:

    • Directives:
      • VARS - list of variables.
      • PREFIX
    • Lines of RDF terms (Turtle, no triple-quoted strings)
    • Items on line align with last VARS declaration
    • * for "same as last row"
    • - for "undef"
    • Constructor Detail

      • BindingInputStream

        public BindingInputStream​(java.io.InputStream in)
      • BindingInputStream

        public BindingInputStream​(Tokenizer tokenizer)
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<Binding>
      • next

        public Binding next()
        Specified by:
        next in interface java.util.Iterator<Binding>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<Binding>
      • vars

        public java.util.List<Var> vars()
      • close

        public void close()
        Specified by:
        close in interface org.apache.jena.atlas.lib.Closeable