|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.lehigh.swat.hawk.core.OntReader
edu.lehigh.swat.hawk.owl.OwlRdfReader
public class OwlRdfReader
OWL reader, reads OWL documents.
Constructor Summary | |
---|---|
OwlRdfReader(StorageModel s)
Constructor |
|
OwlRdfReader(StorageModel s,
java.lang.String blfile)
Constructor |
Method Summary | |
---|---|
protected boolean |
containsAnonymousChildren(AxiomNode node)
This method determines if a given AxiomNode contains any anonymous children |
protected boolean |
eliminateAnonymousNode(Ontology ont,
Axiom a,
AxiomNode node,
AxiomNode aNode,
AxiomNode rNode,
int d)
If the given AxiomNode (node) or any of its descendants are equivalent to the anonymous node (aNode) then they are replaced by the replacement node (rNode) |
protected boolean |
eliminateAnonymousNode(Ontology ont,
AxiomNode parent,
AxiomNode node,
AxiomNode aNode,
AxiomNode rNode)
|
protected RDFNode |
firstNode(NodeIterator ri)
OilEd: Returns the first statement in a model. |
Axiom |
getCompletelyDefinedDefinitions(ObjectId sid,
Ontology ont)
This method return the object of the axioms where the given sid plays the role of the subject |
Proxy |
getProxy()
|
boolean |
isAnonRestriction(AxiomNode res)
This method returns true if the given restriction node is anonymous, false otherwise |
protected boolean |
isAnonymous(ObjectId id)
Returns true of the given ObjectId is an anonymous node |
protected void |
mergeEquivalents(Ontology ont)
This method wherever possible eliminates non top level axioms containing anonymous nodes either in the subject or the object position. |
Document |
read(java.io.InputStream in)
Use empty string as XMl base. |
Document |
read(java.io.InputStream in,
java.lang.String xmlBase)
Read an input in OWL format to the model and return the document object |
Document |
read(java.lang.String url)
Read document from given URL |
protected void |
readOntology(Ontology ont,
Model model)
Parse and construct an ontology. |
void |
resolveAnonResProperties(AxiomNode propRes,
java.util.Vector<AxiomNode> temp,
Ontology ont)
This method resolves the anonymous properties occuring within a restriction. |
void |
resolveAnonymousRestrictions(Ontology ont)
This method resolves all the restrictions nested within other axioms/restrictions and also stores the top level restrictions into the ontology |
void |
resolveNonAtomicRestrictions(java.util.Vector<AxiomNode> nonAtomicRestrictions,
AxiomNode atomicRes,
java.util.Vector<AxiomNode> atomicRestrictions,
java.util.Vector<AxiomNode> tempA)
This method resolves all the non-atomic restrictions. |
void |
resolveNonAtomicRestrictions(java.util.Vector<AxiomNode> nonAtomicRestrictions,
Axiom axiom,
java.util.Vector<AxiomNode> atomicRestrictions,
java.util.Vector<Axiom> tempA,
Ontology ont)
This method resolves all the non-atomic restrictions. |
void |
resolveRestrictionsInAxioms(Axiom a,
int pos,
AxiomNode atomicRes,
java.util.Vector<AxiomNode> temp)
This method resolves all the anonymous restrictions occuring in an axiom by replacing them with their equivalent atomic restrictions. |
void |
resolveRestrictionsInAxioms(AxiomNode parent,
AxiomNode child,
AxiomNode atomicRes,
java.util.Vector<AxiomNode> temp)
|
void |
setProxy(Proxy p)
|
protected boolean |
topLevel(AxiomNode node,
AxiomNode aNode)
|
protected boolean |
topLevel(Ontology ont,
AxiomNode node)
Returns true if the given AxiomNode is a top level node i.e. |
protected java.util.Collection |
unpackList(Model currentModel,
Resource r)
OilEd: Unpacks a RDF List into a collection of resources |
Methods inherited from class edu.lehigh.swat.hawk.core.OntReader |
---|
getAllowUpdate, getLoadImports, setAllowUpdate, setLoadImports |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OwlRdfReader(StorageModel s) throws java.lang.Exception
java.lang.Exception
public OwlRdfReader(StorageModel s, java.lang.String blfile) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public Document read(java.io.InputStream in) throws java.lang.Exception
read
in class OntReader
java.lang.Exception
public Document read(java.lang.String url) throws java.lang.Exception
java.lang.Exception
public Document read(java.io.InputStream in, java.lang.String xmlBase) throws java.lang.Exception
java.lang.Exception
protected void readOntology(Ontology ont, Model model)
protected void mergeEquivalents(Ontology ont)
ont
- protected boolean isAnonymous(ObjectId id)
id
-
protected boolean containsAnonymousChildren(AxiomNode node)
node
-
protected boolean eliminateAnonymousNode(Ontology ont, Axiom a, AxiomNode node, AxiomNode aNode, AxiomNode rNode, int d)
protected boolean eliminateAnonymousNode(Ontology ont, AxiomNode parent, AxiomNode node, AxiomNode aNode, AxiomNode rNode)
protected boolean topLevel(Ontology ont, AxiomNode node)
ont
- node
-
protected boolean topLevel(AxiomNode node, AxiomNode aNode)
public void resolveAnonymousRestrictions(Ontology ont)
ont
- public Axiom getCompletelyDefinedDefinitions(ObjectId sid, Ontology ont)
sid
- ont
-
public void resolveRestrictionsInAxioms(Axiom a, int pos, AxiomNode atomicRes, java.util.Vector<AxiomNode> temp)
a
- pos
- atomicRes
- temp
- public void resolveRestrictionsInAxioms(AxiomNode parent, AxiomNode child, AxiomNode atomicRes, java.util.Vector<AxiomNode> temp)
public void resolveAnonResProperties(AxiomNode propRes, java.util.Vector<AxiomNode> temp, Ontology ont)
propRes
- temp
- ont
- public void resolveNonAtomicRestrictions(java.util.Vector<AxiomNode> nonAtomicRestrictions, AxiomNode atomicRes, java.util.Vector<AxiomNode> atomicRestrictions, java.util.Vector<AxiomNode> tempA)
nonAtomicRestrictions
- atomicRes
- atomicRestrictions
- tempA
- public void resolveNonAtomicRestrictions(java.util.Vector<AxiomNode> nonAtomicRestrictions, Axiom axiom, java.util.Vector<AxiomNode> atomicRestrictions, java.util.Vector<Axiom> tempA, Ontology ont)
nonAtomicRestrictions
- atomicRes
- atomicRestrictions
- tempA
- public boolean isAnonRestriction(AxiomNode res)
res
-
protected java.util.Collection unpackList(Model currentModel, Resource r)
protected RDFNode firstNode(NodeIterator ri)
public Proxy getProxy()
public void setProxy(Proxy p)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |