|
eRqlEngine API documentation - http://www.wleklinski.de/rdf/ | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteworks.RQL.engine.RqlEngine
RqlEngine
is the rudimentary implementation of a RQL-processor.
RQL is a SQL-like query language for RDF, see
http://139.91.183.30:9090/RDF/RQL/ for further details on RQL and
http://www.w3.org/RDF/ for
details on RDF.
RqlEngine RQL = new RqlEngine(); eworks.RDF.model.Tuples result = null; try { RQL.setDataSource(new java.io.File("C:\input.rdf")); result=RQL.query("SELECT s,@p,o FROM {s}@p{o}"); } catch(Exception e) { System.out.println(e); }
Constructor Summary | |
RqlEngine()
Constructs a RqlEngine instance that suppresses all error- and debug- messages. |
|
RqlEngine(OutputStream output)
Constructs a RqlEngine instance and sets the output-stream for printing error- and debug-messages to the given stream. |
Method Summary | |
Tuples |
query(String queryString)
Evaluates a given RQL query and returns the query's result. |
void |
setDataSource(File rdfFile)
Sets a certain RDF file as data source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RqlEngine(OutputStream output)
output
- Output-stream for printing error- and debug-messages.public RqlEngine()
Method Detail |
public void setDataSource(File rdfFile)
rdfFile
- The data source to be used for queries.public Tuples query(String queryString) throws NoDataSourceDefinedException, ParsingException, VariableAlreadyBoundException, VariableNotBoundException
queryString
- A valid RQL query.
NoDataSourceDefinedException
ParsingException
VariableAlreadyBoundException
VariableNotBoundException
|
eRqlEngine API documentation - http://www.wleklinski.de/rdf/ | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |