org.nlp2rdf.ontology
Class ClassIndexer

java.lang.Object
  extended by org.nlp2rdf.ontology.ClassIndexer

public class ClassIndexer
extends Object

Indexes an Ontology skips complex classes per default, this does not affect the hierarchy outcome


Constructor Summary
ClassIndexer()
           
 
Method Summary
 com.hp.hpl.jena.ontology.OntModel getHierarchyForClassURI(String classUri)
           
 String getLanguage()
           
 void index(com.hp.hpl.jena.ontology.OntModel from)
           
 boolean isCopyComments()
           
 boolean isCopyLabels()
           
 void setCopyComments(boolean copyComments)
           
 void setCopyLabels(boolean copyLabels)
           
 void setLanguage(String language)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassIndexer

public ClassIndexer()
Method Detail

index

public void index(com.hp.hpl.jena.ontology.OntModel from)

getHierarchyForClassURI

public com.hp.hpl.jena.ontology.OntModel getHierarchyForClassURI(String classUri)
Parameters:
classUri -
Returns:
a filled OntModel with all superclasses of classUri or null, if no class is found

isCopyLabels

public boolean isCopyLabels()

setCopyLabels

public void setCopyLabels(boolean copyLabels)

isCopyComments

public boolean isCopyComments()

setCopyComments

public void setCopyComments(boolean copyComments)

getLanguage

public String getLanguage()

setLanguage

public void setLanguage(String language)


Copyright © 2011. All Rights Reserved.