org.mindswap.pellet
Class KRSSLoader

java.lang.Object
  extended by org.mindswap.pellet.KBLoader
      extended by org.mindswap.pellet.KRSSLoader

public class KRSSLoader
extends KBLoader

Parse files written in KRSS format and loads into the given KB.

Author:
Evren Sirin

Field Summary
static java.util.logging.Logger log
           
 
Constructor Summary
KRSSLoader()
           
KRSSLoader(KnowledgeBase kb)
           
 
Method Summary
 void clear()
          Resets the loader and clear any previously loaded ontologies.
 KnowledgeBase getKB()
          Returns the KB instance associated with the loader.
 boolean isForceUppercase()
           
 void load()
          Load any previously parsed ontologies
 void parse(java.io.Reader reader)
           
 void parseFile(java.lang.String fileURI)
          Parse a single file to the internal representation supported by this loader.
 void setForceUppercase(boolean forceUppercase)
           
 void setIgnoreImports(boolean ignoreImports)
          Instruct loader to respect or ignore imports.
 void verifyABox(java.lang.String file, KnowledgeBase kb)
           
 void verifyTBox(java.lang.String file, KnowledgeBase kb)
           
 
Methods inherited from class org.mindswap.pellet.KBLoader
createKB, parse, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

public static final java.util.logging.Logger log
Constructor Detail

KRSSLoader

public KRSSLoader()

KRSSLoader

public KRSSLoader(KnowledgeBase kb)
Method Detail

clear

public void clear()
Description copied from class: KBLoader
Resets the loader and clear any previously loaded ontologies.

Specified by:
clear in class KBLoader

isForceUppercase

public boolean isForceUppercase()

setForceUppercase

public void setForceUppercase(boolean forceUppercase)

parseFile

public void parseFile(java.lang.String fileURI)
Description copied from class: KBLoader
Parse a single file to the internal representation supported by this loader.

Parameters:
fileURI - the URI of the file to be loaded

parse

public void parse(java.io.Reader reader)
           throws java.io.IOException
Throws:
java.io.IOException

setIgnoreImports

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

Specified by:
setIgnoreImports in class KBLoader

verifyTBox

public void verifyTBox(java.lang.String file,
                       KnowledgeBase kb)
                throws java.lang.Exception
Throws:
java.lang.Exception

verifyABox

public void verifyABox(java.lang.String file,
                       KnowledgeBase kb)
                throws java.lang.Exception
Throws:
java.lang.Exception

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

load

public void load()
Load any previously parsed ontologies

Specified by:
load in class KBLoader


Copyright © 2004 Evren Sirin. All Rights Reserved.