net.rootdev.javardfa.query
Class QueryCollector

java.lang.Object
  extended by net.rootdev.javardfa.query.QueryCollector
All Implemented Interfaces:
StatementSink

public class QueryCollector
extends Object
implements StatementSink


Constructor Summary
QueryCollector()
           
 
Method Summary
 void addLiteral(String arg0, String arg1, String arg2, String arg3, String arg4)
          Add statement with a literal object.
 void addObject(String arg0, String arg1, String arg2)
          Add statement with non-literal object.
 void addPrefix(String prefix, String uri)
          Add a prefix mapping.
 Query createQuery(List<Triple> triples)
           
 void end()
          Complete parsing
 Map<String,Query> getQueries()
           
 void setBase(String base)
           
 void start()
          Begin parsing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryCollector

public QueryCollector()
Method Detail

getQueries

public Map<String,Query> getQueries()

addLiteral

public void addLiteral(String arg0,
                       String arg1,
                       String arg2,
                       String arg3,
                       String arg4)
Description copied from interface: StatementSink
Add statement with a literal object. As above, blank nodes begin with _:, variables with ?, otherwise IRI

Specified by:
addLiteral in interface StatementSink
Parameters:
arg0 - Subject of triple
arg1 - Predicate
arg2 - Lexical form
arg3 - Language (may be null)
arg4 - Datatype IRI (may be null)

addObject

public void addObject(String arg0,
                      String arg1,
                      String arg2)
Description copied from interface: StatementSink
Add statement with non-literal object. Blank nodes begin with _:, variables with ?, otherwise IRI

Specified by:
addObject in interface StatementSink
Parameters:
arg0 - Subject of triple
arg1 - Predicate
arg2 - Object

end

public void end()
Description copied from interface: StatementSink
Complete parsing

Specified by:
end in interface StatementSink

start

public void start()
Description copied from interface: StatementSink
Begin parsing

Specified by:
start in interface StatementSink

createQuery

public Query createQuery(List<Triple> triples)

addPrefix

public void addPrefix(String prefix,
                      String uri)
Description copied from interface: StatementSink
Add a prefix mapping.

Specified by:
addPrefix in interface StatementSink

setBase

public void setBase(String base)
Specified by:
setBase in interface StatementSink


Copyright © 2009-2012. All Rights Reserved.