com.clarkparsia.pellet.owlapiv3
Class OWLAPILoader

java.lang.Object
  extended by org.mindswap.pellet.KBLoader
      extended by com.clarkparsia.pellet.owlapiv3.OWLAPILoader

public class OWLAPILoader
extends KBLoader

Title:

Description:

Copyright: Copyright (c) 2007

Company: Clark & Parsia, LLC.

Author:
Evren Sirin

Field Summary
 
Fields inherited from class org.mindswap.pellet.KBLoader
log
 
Constructor Summary
OWLAPILoader()
           
 
Method Summary
 void clear()
          Resets the loader and clear any previously loaded ontologies.
 java.util.Set<org.semanticweb.owlapi.model.OWLOntology> getAllOntologies()
           
 KnowledgeBase getKB()
          Returns the KB instance associated with the loader.
 org.semanticweb.owlapi.model.OWLOntologyManager getManager()
           
 org.semanticweb.owlapi.model.OWLOntology getOntology()
           
 PelletReasoner getReasoner()
          Returns the reasoner created by this loader.
 void load()
          Load any previously parsed ontologies
 void parse(java.lang.String... fileNames)
          Parse one or more files to the internal representation supported by this loader.
 void setIgnoreImports(boolean ignoreImports)
          Instruct loader to respect or ignore imports.
 
Methods inherited from class org.mindswap.pellet.KBLoader
createKB, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OWLAPILoader

public OWLAPILoader()
Method Detail

getKB

public KnowledgeBase getKB()
Returns the KB instance associated with the loader. The function KBLoader.load() should be called beforehand.

Specified by:
getKB in class KBLoader
Returns:
KnowledgeBase instance

getManager

public org.semanticweb.owlapi.model.OWLOntologyManager getManager()

getOntology

public org.semanticweb.owlapi.model.OWLOntology getOntology()

getAllOntologies

public java.util.Set<org.semanticweb.owlapi.model.OWLOntology> getAllOntologies()

getReasoner

public PelletReasoner getReasoner()
Returns the reasoner created by this loader. A null value is returned until load() function is called (explicitly or implicitly).

Returns:
the reasoner created by this loader

load

public void load()
Load any previously parsed ontologies

Specified by:
load in class KBLoader

parse

public void parse(java.lang.String... fileNames)
Parse one or more files to the internal representation supported by this loader. Note: this method previously accepted a list of regular expressions instead of file URIs. This behavior has been changed as of 2.0.0-rc7.

Overrides:
parse in class KBLoader
See Also:
FileUtils.getFileURIs(String...)

setIgnoreImports

public void setIgnoreImports(boolean ignoreImports)
Instruct loader to respect or ignore imports.

Specified by:
setIgnoreImports in class KBLoader

clear

public void clear()
Resets the loader and clear any previously loaded ontologies.

Specified by:
clear in class KBLoader


Copyright © 2004 Evren Sirin. All Rights Reserved.