org.eaglei.search.provider.rdf
Class RDFModelProvider
java.lang.Object
org.eaglei.search.provider.rdf.AbstractRDFProvider
org.eaglei.search.provider.rdf.RDFModelProvider
- All Implemented Interfaces:
- org.eaglei.search.provider.SearchProvider
public final class RDFModelProvider
- extends AbstractRDFProvider
AbstractRDFProvider subclass that queries an in-memory Jena Model.
|
Constructor Summary |
RDFModelProvider(org.eaglei.model.EIOntModel eagleiOntModel,
org.eaglei.search.datagen.DataGenParams genParams,
org.eaglei.model.EIEntity institution)
Creates a SearchProvider for auto-generated RDF data. |
RDFModelProvider(com.hp.hpl.jena.rdf.model.Model model,
org.eaglei.model.EIOntModel eagleiOntModel,
org.eaglei.model.EIEntity institution)
Creates an RDF-based repository for the specified Jena Model. |
|
Method Summary |
protected com.hp.hpl.jena.query.QueryExecution |
getQueryExecution(com.hp.hpl.jena.query.Query query)
Gets an ARQ QueryExecution for the Query. |
org.eaglei.search.provider.ClassCountResult |
getResourceCount(org.eaglei.search.provider.SearchRequest request)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RDFModelProvider
public RDFModelProvider(org.eaglei.model.EIOntModel eagleiOntModel,
org.eaglei.search.datagen.DataGenParams genParams,
org.eaglei.model.EIEntity institution)
throws java.io.IOException
- Creates a SearchProvider for auto-generated RDF data.
- Parameters:
eagleiOntModel - Reference to the in-memory model of the eagle-i ontology.genParam - Generation parameters.institution - EIEntity of institution
- Throws:
java.io.IOException - Thrown if an error is encountered.
RDFModelProvider
public RDFModelProvider(com.hp.hpl.jena.rdf.model.Model model,
org.eaglei.model.EIOntModel eagleiOntModel,
org.eaglei.model.EIEntity institution)
throws java.io.IOException
- Creates an RDF-based repository for the specified Jena Model.
- Parameters:
model - The Jena model of RDF data that is the target for search queries.eagleiOntModel - Reference to the in-memory model of the eagle-i ontology.institution - EIEntity of institution
- Throws:
java.io.IOException - Thrown if an error is encountered.
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
getResourceCount
public org.eaglei.search.provider.ClassCountResult getResourceCount(org.eaglei.search.provider.SearchRequest request)
Copyright © 2009-2011 Eagle-I. All Rights Reserved.