net.rootdev.javardfa
Class QueryCollector

java.lang.Object
  extended by net.rootdev.javardfa.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.
 com.hp.hpl.jena.query.Query createQuery(List<Triple> triples)
           
 void end()
          Complete parsing
 Map<String,com.hp.hpl.jena.query.Query> getQueries()
           
 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,com.hp.hpl.jena.query.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 com.hp.hpl.jena.query.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


Copyright © 2009-2010. All Rights Reserved.