info.aduna.model.enterprise.desktop.loader
Class DefaultLoader

java.lang.Object
  extended by info.aduna.gee.spectacle.Loader
      extended by info.aduna.spectacle.SpectacleLoader
          extended by info.aduna.model.enterprise.desktop.loader.DefaultLoader

public class DefaultLoader
extends SpectacleLoader


Field Summary
static String ADDITIONAL_DATA_QUERY
           
static String ALL_ENTITIES_QUERY
           
static String MATCHES_QUERY
           
 
Fields inherited from class info.aduna.gee.spectacle.Loader
DEFAULT_LABELS_PATTERN, ENTITIES_DATA_FILENAME, INTERNAL_LIST_SEQUENCE_FIELD, NAVSPEC_DATA_FILENAME, RENDERER_DATA_FILENAME
 
Constructor Summary
DefaultLoader(Spectacle spectacle, Profile profile)
           
 
Method Summary
protected  void addProperty(org.openrdf.model.Resource subject, String property, String value, Map<org.openrdf.model.Resource,DefaultEntity> entities)
           
protected  void addSignificantTerm(org.openrdf.model.Resource subject, String term, Map<org.openrdf.model.Resource,DefaultEntity> entities)
           
protected  List<Entity> createEntities()
          Returns the List of explored Entities.
protected  List<FacetClassifier> createFacets()
          Create the list of facets that will be used to provide Guided Exploration through the dataset.
 Map<Object,Double> getDynamicEntities(FacetValue facetValue)
           
 List<FacetValue> getDynamicFacets(List<FacetValue> facetValues)
           
 Comparator<Object> getFacetValueComparator(String facetName)
           
protected  String[] getFields()
           
 List<FacetValue> getGuidedExplorationFacets(List<FacetValue> facetValues)
           
 String getI18nDescriptionKey()
           
 Map<String,Integer> getSuggestions(GuidedExplorationResult geeResult, String facet)
           
 boolean isKnownEntityId(org.openrdf.model.Resource resource)
           
protected  void setProperty(org.openrdf.model.Resource subject, String property, String value, Map<org.openrdf.model.Resource,DefaultEntity> entities)
           
 void sortEntities(List<Entity> entities)
           
 
Methods inherited from class info.aduna.spectacle.SpectacleLoader
getProfile, preprocessValue, run
 
Methods inherited from class info.aduna.gee.spectacle.Loader
commit, getNavigationTree, setEntities, setEntities, setFacets, setNavigation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALL_ENTITIES_QUERY

public static final String ALL_ENTITIES_QUERY

ADDITIONAL_DATA_QUERY

public static final String ADDITIONAL_DATA_QUERY

MATCHES_QUERY

public static final String MATCHES_QUERY
Constructor Detail

DefaultLoader

public DefaultLoader(Spectacle spectacle,
                     Profile profile)
Method Detail

isKnownEntityId

public boolean isKnownEntityId(org.openrdf.model.Resource resource)

createEntities

protected List<Entity> createEntities()
Description copied from class: Loader
Returns the List of explored Entities.

Specified by:
createEntities in class Loader

addSignificantTerm

protected void addSignificantTerm(org.openrdf.model.Resource subject,
                                  String term,
                                  Map<org.openrdf.model.Resource,DefaultEntity> entities)

setProperty

protected void setProperty(org.openrdf.model.Resource subject,
                           String property,
                           String value,
                           Map<org.openrdf.model.Resource,DefaultEntity> entities)

addProperty

protected void addProperty(org.openrdf.model.Resource subject,
                           String property,
                           String value,
                           Map<org.openrdf.model.Resource,DefaultEntity> entities)

createFacets

protected List<FacetClassifier> createFacets()
Create the list of facets that will be used to provide Guided Exploration through the dataset.

Specified by:
createFacets in class Loader
Returns:
a list of facets

getGuidedExplorationFacets

public List<FacetValue> getGuidedExplorationFacets(List<FacetValue> facetValues)
Specified by:
getGuidedExplorationFacets in class SpectacleLoader

getDynamicFacets

public List<FacetValue> getDynamicFacets(List<FacetValue> facetValues)
Specified by:
getDynamicFacets in class SpectacleLoader

getFields

protected String[] getFields()

getDynamicEntities

public Map<Object,Double> getDynamicEntities(FacetValue facetValue)
                                      throws DynamicFacetInputException
Specified by:
getDynamicEntities in class SpectacleLoader
Throws:
DynamicFacetInputException

getSuggestions

public Map<String,Integer> getSuggestions(GuidedExplorationResult geeResult,
                                          String facet)
Overrides:
getSuggestions in class SpectacleLoader

sortEntities

public void sortEntities(List<Entity> entities)
Overrides:
sortEntities in class SpectacleLoader

getFacetValueComparator

public Comparator<Object> getFacetValueComparator(String facetName)
Overrides:
getFacetValueComparator in class SpectacleLoader

getI18nDescriptionKey

public String getI18nDescriptionKey()
Specified by:
getI18nDescriptionKey in class SpectacleLoader


Copyright © 1997-2008 Aduna. All Rights Reserved.