de.fuberlin.wiwiss.marbles.loading
Class SemanticWebClient

java.lang.Object
  extended by de.fuberlin.wiwiss.marbles.loading.SemanticWebClient

public class SemanticWebClient
extends java.lang.Object

Provides functionalities to load URLs and to discover related data by means of data providers.

Author:
Christian Becker

Constructor Summary
SemanticWebClient(CacheController cacheController, SpongerProvider spongerProvider, java.util.Collection<DataProvider> dataProviders)
          Constructs a new SemanticWebClient
 
Method Summary
 java.util.List<org.apache.commons.httpclient.URI> discoverResource(org.openrdf.model.Resource resource, boolean wait)
          Initiates a DereferencerBatch to retrieve data for a given resource
 void loadURL(org.apache.commons.httpclient.URI url, boolean wait)
          Loads a given URL into the cache using a DereferencerBatch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SemanticWebClient

public SemanticWebClient(CacheController cacheController,
                         SpongerProvider spongerProvider,
                         java.util.Collection<DataProvider> dataProviders)
Constructs a new SemanticWebClient

Parameters:
cacheController -
spongerProvider -
dataProviders -
Method Detail

discoverResource

public java.util.List<org.apache.commons.httpclient.URI> discoverResource(org.openrdf.model.Resource resource,
                                                                          boolean wait)
Initiates a DereferencerBatch to retrieve data for a given resource

Parameters:
resource -
Returns:
List of URLs queries in the process; these may be looked up in the metadata store for details

loadURL

public void loadURL(org.apache.commons.httpclient.URI url,
                    boolean wait)
Loads a given URL into the cache using a DereferencerBatch

Parameters:
url - The URL to be loaded
wait - If true, the method returns after the request has been processed