edu.lehigh.swat.hawk.core
Class OntReader

java.lang.Object
  extended by edu.lehigh.swat.hawk.core.OntReader
Direct Known Subclasses:
OwlRdfReader

public abstract class OntReader
extends java.lang.Object

Document reader, read a file into storage


Constructor Summary
OntReader()
          Constructor
 
Method Summary
 boolean getAllowUpdate()
          test if allow updating loaded document
 boolean getLoadImports()
          test if imported documents are to be loaded
abstract  Document read(java.io.InputStream in)
          Read the input into the model and return the corresponding docuement object.
 void setAllowUpdate(boolean up)
          set whether or not to replace loaded document
 void setLoadImports(boolean imp)
          set whether or not to load imported documents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OntReader

public OntReader()
Constructor

Method Detail

read

public abstract Document read(java.io.InputStream in)
                       throws java.lang.Exception
Read the input into the model and return the corresponding docuement object.

Throws:
java.lang.Exception

setLoadImports

public void setLoadImports(boolean imp)
set whether or not to load imported documents


setAllowUpdate

public void setAllowUpdate(boolean up)
set whether or not to replace loaded document


getLoadImports

public boolean getLoadImports()
test if imported documents are to be loaded


getAllowUpdate

public boolean getAllowUpdate()
test if allow updating loaded document