de.fuberlin.wiwiss.marbles.dataproviders
Class SindiceProvider

java.lang.Object
  extended by de.fuberlin.wiwiss.marbles.dataproviders.SindiceProvider
All Implemented Interfaces:
DataProvider

public class SindiceProvider
extends java.lang.Object
implements DataProvider

Queries Sindice.com for URLs that contain data about a given resource

Author:
Christian Becker

Constructor Summary
SindiceProvider()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SindiceProvider

public SindiceProvider()
Method Detail

getQueryURL

public org.apache.commons.httpclient.URI getQueryURL(org.openrdf.model.Resource resource)
Description copied from interface: DataProvider
Retrieves the URL to query the remote data provider about a given resource

Specified by:
getQueryURL in interface DataProvider
Parameters:
resource - The resource for which information is requested
Returns:
The URL to query

getURLsFromData

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

Specified by:
getURLsFromData in interface DataProvider
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