Class OntologyIndexer
- java.lang.Object
-
- ubic.basecode.ontology.jena.search.OntologyIndexer
-
public class OntologyIndexer extends Object
- Author:
- pavlidis
-
-
Constructor Summary
Constructors Constructor Description OntologyIndexer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SearchIndex
getSubjectIndex(String name)
static SearchIndex
indexOntology(String name, com.hp.hpl.jena.ontology.OntModel model)
static SearchIndex
indexOntology(String name, com.hp.hpl.jena.ontology.OntModel model, boolean force)
Loads or creates an index from an existing OntModel.
-
-
-
Method Detail
-
getSubjectIndex
public static SearchIndex getSubjectIndex(String name)
- Parameters:
name
-- Returns:
- indexlarq with default analyzer (English), or null if no index is available. DOES not create the index if it doesn't exist.
-
indexOntology
public static SearchIndex indexOntology(String name, com.hp.hpl.jena.ontology.OntModel model)
- Parameters:
name
-model
-- Returns:
-
indexOntology
public static SearchIndex indexOntology(String name, com.hp.hpl.jena.ontology.OntModel model, boolean force)
Loads or creates an index from an existing OntModel. Any existing index will loaded unless force=true. It will be created if there isn't one already, or if force=true.- Parameters:
name
-model
-force
-- Returns:
- index
-
-