org.eaglei.search.provider.rdf
Class RDFModelProvider

java.lang.Object
  extended by org.eaglei.search.provider.rdf.AbstractRDFProvider
      extended by 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.


Field Summary
 
Fields inherited from class org.eaglei.search.provider.rdf.AbstractRDFProvider
eagleiOntModel, institution, prefLabelProperties
 
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.
 
Methods inherited from class org.eaglei.search.provider.rdf.AbstractRDFProvider
count, createSearchResultFromModel, createSearchResultSet, createSPARQLString, getSearchResultsFromSPARQLResults, init, query
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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-2011 Eagle-I. All Rights Reserved.