|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mindswap.pellet.jena.graph.loader.DefaultGraphLoader
public class DefaultGraphLoader
Title:
Description:
Copyright: Copyright (c) 2008
Company: Clark & Parsia, LLC.
Field Summary | |
---|---|
static java.util.logging.Logger |
log
|
static QNameProvider |
qnames
|
Constructor Summary | |
---|---|
DefaultGraphLoader()
|
Method Summary | |
---|---|
void |
clear()
Clear all internal caches (essentially used for mapping bnodes to ATerm structures) |
com.hp.hpl.jena.graph.Graph |
getGraph()
Get the Jena graph used in the loader. |
java.util.Set<java.lang.String> |
getUnpportedFeatures()
Returns the unsupported axioms ignored by the loader. |
boolean |
isLoadABox()
Returns if the loader will load the Abox triples. |
boolean |
isPreprocessTypeTriples()
Returns if the loader will preprocess rdf:type triples. |
void |
load(java.lang.Iterable<com.hp.hpl.jena.graph.Graph> graphs)
Load the axioms from the Jena graphs to the given KB. |
aterm.ATermAppl |
node2term(com.hp.hpl.jena.graph.Node node)
Translate the given graph node into an ATerm object. |
void |
preprocess()
Do the preprocessing steps necessary to cache any information that will be used for loading. |
void |
setGraph(com.hp.hpl.jena.graph.Graph graph)
Set the graph that will be used during loading. |
void |
setKB(KnowledgeBase kb)
|
void |
setLoadABox(boolean loadABox)
Sets the flag that tells the loader to skip ABox (instance) statements. |
void |
setPreprocessTypeTriples(boolean preprocessTypeTriples)
This option forces the loader to process type triples before processing other triples. |
void |
setProgressMonitor(ProgressMonitor monitor)
Set the progress monitor that will show the load progress. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.util.logging.Logger log
public static QNameProvider qnames
Constructor Detail |
---|
public DefaultGraphLoader()
Method Detail |
---|
public void setProgressMonitor(ProgressMonitor monitor)
setProgressMonitor
in interface GraphLoader
public void setGraph(com.hp.hpl.jena.graph.Graph graph)
setGraph
in interface GraphLoader
public com.hp.hpl.jena.graph.Graph getGraph()
getGraph
in interface GraphLoader
public java.util.Set<java.lang.String> getUnpportedFeatures()
getUnpportedFeatures
in interface GraphLoader
public void clear()
clear
in interface GraphLoader
public aterm.ATermAppl node2term(com.hp.hpl.jena.graph.Node node)
node2term
in interface GraphLoader
public void setKB(KnowledgeBase kb)
setKB
in interface GraphLoader
public void load(java.lang.Iterable<com.hp.hpl.jena.graph.Graph> graphs) throws UnsupportedFeatureException
load
in interface GraphLoader
UnsupportedFeatureException
public void preprocess()
preprocess
in interface GraphLoader
public boolean isLoadABox()
GraphLoader
isLoadABox
in interface GraphLoader
GraphLoader.setLoadABox(boolean)
public void setLoadABox(boolean loadABox)
GraphLoader
setLoadABox
in interface GraphLoader
public boolean isPreprocessTypeTriples()
GraphLoader
isPreprocessTypeTriples
in interface GraphLoader
GraphLoader.setPreprocessTypeTriples(boolean)
public void setPreprocessTypeTriples(boolean preprocessTypeTriples)
GraphLoader
setPreprocessTypeTriples
in interface GraphLoader
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |