|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GraphLoader
Title:
Description:
Copyright: Copyright (c) 2008
Company: Clark & Parsia, LLC.
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. |
Method Detail |
---|
void clear()
com.hp.hpl.jena.graph.Graph getGraph()
java.util.Set<java.lang.String> getUnpportedFeatures()
void load(java.lang.Iterable<com.hp.hpl.jena.graph.Graph> graphs) throws UnsupportedFeatureException
UnsupportedFeatureException
aterm.ATermAppl node2term(com.hp.hpl.jena.graph.Node node)
node
-
void preprocess()
void setGraph(com.hp.hpl.jena.graph.Graph graph)
graph
- boolean isLoadABox()
setLoadABox(boolean)
void setLoadABox(boolean loadABox)
loadABox
- boolean isPreprocessTypeTriples()
setPreprocessTypeTriples(boolean)
void setPreprocessTypeTriples(boolean preprocessTypeTriples)
void setProgressMonitor(ProgressMonitor monitor)
monitor
- void setKB(KnowledgeBase kb)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |