org.mindswap.pellet
Class KRSSLoader
java.lang.Object
org.mindswap.pellet.KBLoader
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
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
log
public static final java.util.logging.Logger log
KRSSLoader
public KRSSLoader()
KRSSLoader
public KRSSLoader(KnowledgeBase kb)
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
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.