de.fuberlin.wiwiss.marbles.dataproviders
Interface DataProvider

All Known Implementing Classes:
FalconsProvider, RevyuProvider, SindiceProvider, SPARQLProviderBase

public interface DataProvider

Data providers supply data for a given URI from individual web sources.

Author:
Christian Becker

Method Summary
 org.apache.commons.httpclient.URI getQueryURL(org.openrdf.model.Resource resource)
          Retrieves the URL to query the remote data provider about a given resource
 java.util.List<org.apache.commons.httpclient.URI> getURLsFromData(CacheController cacheController, org.openrdf.repository.RepositoryConnection conn, org.openrdf.model.Resource resource)
          Processes an RDF result provided by search engine providers for further URLs that are to be loaded
 

Method Detail

getQueryURL

org.apache.commons.httpclient.URI getQueryURL(org.openrdf.model.Resource resource)
Retrieves the URL to query the remote data provider about a given resource

Parameters:
resource - The resource for which information is requested
Returns:
The URL to query

getURLsFromData

java.util.List<org.apache.commons.httpclient.URI> getURLsFromData(CacheController cacheController,
                                                                  org.openrdf.repository.RepositoryConnection conn,
                                                                  org.openrdf.model.Resource resource)
Processes an RDF result provided by search engine providers for further URLs that are to be loaded

Parameters:
cacheController - The CacheController used to resolve redirects
conn - A connection to a repository with the returned RDF result
resource - The resource for which information is requested
Returns:
A list of URLs or null if this functionality is not implemented