org.apache.nutch.ontology
Class OntologyFactory

java.lang.Object
  extended by org.apache.nutch.ontology.OntologyFactory

public class OntologyFactory
extends Object

A factory for retrieving Ontology extensions.

Version:
$Id: OntologyFactory.java 823614 2009-10-09 17:02:32Z ab $
Author:
Michael Pan

Field Summary
static org.apache.commons.logging.Log LOG
           
 
Constructor Summary
OntologyFactory(Configuration conf)
           
 
Method Summary
 Ontology getOntology()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.commons.logging.Log LOG
Constructor Detail

OntologyFactory

public OntologyFactory(Configuration conf)
Method Detail

getOntology

public Ontology getOntology()
                     throws PluginRuntimeException
Returns:
Returns the online ontology extension specified in nutch configuration's key extension.ontology.extension-name. If the name is empty (no preference), the first available ontology extension is returned.
Throws:
PluginRuntimeException


Copyright © 2006 The Apache Software Foundation