Class OntologyIndexer


  • public class OntologyIndexer
    extends Object
    Author:
    pavlidis
    • Constructor Detail

      • OntologyIndexer

        public OntologyIndexer()
    • 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