| java.lang.Object org.mandarax.util.AbstractClauseIterator org.mandarax.rdf.RDFClauseIterator
RDFClauseIterator | class RDFClauseIterator extends AbstractClauseIterator implements RDFLogger,RDFConstants(Code) | | Clause set iterator implementation.
Each iterator instance has its own jena model which is NOT re-used.
This simply means that the RDF documents is read / parsed whenever the application
requests an iterator - caching could be implemented here, but this is curremntly not implemented.
author: Adrian Paschke Jens Dietrich version: 1.1 <01 August 2004> since: 0.1 |
RDFClauseIterator | public RDFClauseIterator(URL url, String lang, RDFPredicate predicate) throws ClauseSetException(Code) | | Constructor.
Parameters: url - the url of the RDF source Parameters: lang - the language used to encode RDF (one of the constnst defined in RDFClauseSet) Parameters: predicate - the rdf predicate (all facts returned from the iterator have the same predicate)the predicate is important to restrict the iterator to clauses with this predicate, if null,clauses for all predicates are returned. exception: a - ClauseSetException is thrown if the RDF source cannot be loaded |
getUrl | public URL getUrl()(Code) | | Get the URL.
Returns the url. |
hasMoreClauses | public boolean hasMoreClauses() throws ClauseSetException(Code) | | Indicates whether there is a next clause.
a boolean |
|
|