org.apache.nutch.ontology
Class OntologyFactory
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
public static final org.apache.commons.logging.Log LOG
OntologyFactory
public OntologyFactory(Configuration conf)
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