org.apache.nutch.ontology
Class OwlParser
java.lang.Object
org.apache.nutch.ontology.OwlParser
- All Implemented Interfaces:
- Parser
- public class OwlParser
- extends Object
- implements Parser
implementation of parser for w3c's OWL files
- Author:
- michael j pan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OwlParser
public OwlParser()
parse
public void parse(com.hp.hpl.jena.ontology.OntModel m)
- parse owl ontology files using jena
- Specified by:
parse
in interface Parser
parseClass
protected void parseClass(com.hp.hpl.jena.ontology.OntClass cls,
List occurs,
int depth)
rootClasses
public Iterator rootClasses(com.hp.hpl.jena.ontology.OntModel m)
- Specified by:
rootClasses
in interface Parser
rdfidToLabel
public String rdfidToLabel(String idString)
Copyright © 2006 The Apache Software Foundation