org.eaglei.search.provider.rdf
Class SPARQLProtocolProvider
java.lang.Object
org.eaglei.search.provider.rdf.AbstractRDFProvider
org.eaglei.search.provider.rdf.SPARQLProtocolProvider
- All Implemented Interfaces:
- org.eaglei.search.provider.SearchProvider
public class SPARQLProtocolProvider
- extends AbstractRDFProvider
AbstractRDFProvider subclass that executes the SPARQL query
against a SPARQL endpoint.
|
Constructor Summary |
SPARQLProtocolProvider(org.eaglei.model.EIOntModel eagleiOntModel,
org.eaglei.model.EIEntity institution,
RepositoryConfig repoConfig)
Creates a SearchProvider for an RDF-repository that is accessed via SPARQL Protocol at the
specified URL. |
|
Method Summary |
protected org.eaglei.search.provider.SearchResult |
createSearchResultFromModel(java.lang.String uri,
com.hp.hpl.jena.rdf.model.Model model)
Creates a SearchResult from an Model holding only RDF triples associated with that subject URI |
protected com.hp.hpl.jena.query.QueryExecution |
getQueryExecution(com.hp.hpl.jena.query.Query query)
Gets an ARQ QueryExecution for the Query. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SPARQLProtocolProvider
public SPARQLProtocolProvider(org.eaglei.model.EIOntModel eagleiOntModel,
org.eaglei.model.EIEntity institution,
RepositoryConfig repoConfig)
- Creates a SearchProvider for an RDF-repository that is accessed via SPARQL Protocol at the
specified URL.
createSearchResultFromModel
protected org.eaglei.search.provider.SearchResult createSearchResultFromModel(java.lang.String uri,
com.hp.hpl.jena.rdf.model.Model model)
- Description copied from class:
AbstractRDFProvider
- Creates a SearchResult from an Model holding only RDF triples associated with that subject URI
- Overrides:
createSearchResultFromModel in class AbstractRDFProvider
- Returns:
- SearchResult or null if it could not be created.
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
Copyright © 2009-2010 Eagle-I. All Rights Reserved.