org.eaglei.search.provider.rdf
Class RepositoryHarvester
java.lang.Object
org.eaglei.search.provider.rdf.AbstractRDFProvider
org.eaglei.search.provider.rdf.RepositoryHarvester
- All Implemented Interfaces:
- org.eaglei.search.provider.SearchProvider
public final class RepositoryHarvester
- extends AbstractRDFProvider
Extension of AbstractRDFProvider that uses the Repository /harvest API (see /harvest REST API spec for details).
- The results from the harvest call (returned in SPARQL tabular format) are parsed into a set of SPARQL
QuerySolutions.
- The QuerySolutions are used to create a set of SearchResults (one search result for each unique subject URI).
- The SearchResults are gathered together into a SearchResultSet.
- Author:
- frost
|
Constructor Summary |
RepositoryHarvester(org.eaglei.model.EIOntModel eagleiOntModel,
org.eaglei.model.EIEntity institution,
org.eaglei.services.repository.RepositoryHttpClient repoClient)
Creates a new RepositoryHarvester. |
|
Method Summary |
org.eaglei.search.provider.SearchCounts |
count(org.eaglei.search.provider.SearchCountRequest request)
|
protected com.hp.hpl.jena.query.QueryExecution |
getQueryExecution(com.hp.hpl.jena.query.Query query)
Gets an ARQ QueryExecution for the Query. |
void |
init()
|
org.eaglei.search.provider.SearchResultSet |
query(org.eaglei.search.provider.SearchRequest request)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RepositoryHarvester
public RepositoryHarvester(org.eaglei.model.EIOntModel eagleiOntModel,
org.eaglei.model.EIEntity institution,
org.eaglei.services.repository.RepositoryHttpClient repoClient)
- Creates a new RepositoryHarvester.
- Parameters:
eagleiOntModel - Handle to the in-memory representation of the eagle-i ontology.institution - Handle to the institution.repoClient - Configuration of the repository.
init
public void init()
throws java.io.IOException
- Specified by:
init in interface org.eaglei.search.provider.SearchProvider- Overrides:
init in class AbstractRDFProvider
- Throws:
java.io.IOException
count
public org.eaglei.search.provider.SearchCounts count(org.eaglei.search.provider.SearchCountRequest request)
throws java.io.IOException
- Specified by:
count in interface org.eaglei.search.provider.SearchProvider- Overrides:
count in class AbstractRDFProvider
- Throws:
java.io.IOException
getQueryExecution
protected com.hp.hpl.jena.query.QueryExecution getQueryExecution(com.hp.hpl.jena.query.Query query)
- Description copied from class:
AbstractRDFProvider
- Gets an ARQ QueryExecution for the Query.
- Specified by:
getQueryExecution in class AbstractRDFProvider
- Parameters:
query - Query
- Returns:
- QueryExecution
query
public org.eaglei.search.provider.SearchResultSet query(org.eaglei.search.provider.SearchRequest request)
throws java.io.IOException
- Specified by:
query in interface org.eaglei.search.provider.SearchProvider- Overrides:
query in class AbstractRDFProvider
- Throws:
java.io.IOException
Copyright © 2009-2010 Eagle-I. All Rights Reserved.