org.openrdf.elmo.scutter
Class SimpleRetriever
java.lang.Object
org.openrdf.elmo.scutter.SimpleRetriever
- All Implemented Interfaces:
- Runnable, Retriever
- Direct Known Subclasses:
- FoafRetriever
public class SimpleRetriever
- extends Object
- implements Retriever
A SimpleRetriever is instantiated by the Scutter class for every URL to be
visited. The Retriver fetches that document and adds the allowed statements
to an in-memory repository. Statements can be optionally filtered by specying
a StatementFilter. The seeAlso statements found in the document are added to
the scutter queue.
- Version:
- $Revision: 1.8 $
- Author:
- Peter Mika (original version for Jena by Matt Biddulph.)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_url
protected URL _url
_scutter
protected Scutter _scutter
_repository
protected Repository _repository
_ok
protected boolean _ok
_logger
protected static final Logger _logger
_parser
protected RDFParser _parser
_filter
protected StatementFilter _filter
_handler
protected DocumentHandler _handler
SimpleRetriever
public SimpleRetriever(URL url,
Repository repository,
Scutter scutter)
setRepository
public void setRepository(Repository r)
- Specified by:
setRepository in interface Retriever
setScutter
public void setScutter(Scutter s)
- Specified by:
setScutter in interface Retriever
setUrl
public void setUrl(URL u)
- Specified by:
setUrl in interface Retriever
setFilter
public void setFilter(StatementFilter f)
- Specified by:
setFilter in interface Retriever
run
public void run()
- Specified by:
run in interface Runnable
aggregate
protected void aggregate(Repository incoming,
String url)
throws RepositoryException
- Throws:
RepositoryException
addSeeAlsos
public void addSeeAlsos(Repository incoming)
throws RepositoryException
- Add all rdfs:seeAlso statements to the queue from the specified
repository.
- Parameters:
incoming -
- Throws:
RepositoryException
Copyright © 2004-2008 Aduna. All Rights Reserved.