net.sourceforge.fluxion.runcible.graph
Class IsAEdge

java.lang.Object
  extended by net.sourceforge.fluxion.graph.AbstractEdge
      extended by net.sourceforge.fluxion.runcible.graph.IsAEdge
All Implemented Interfaces:
Edge, OWLEdge

public class IsAEdge
extends AbstractEdge
implements OWLEdge

An edge which represents an "is_a" relationship between two nodes. The is_a edge is special in that it does not represent any property in owl, rather it simply implies that the child node is a subtype of the parent. It can be used in a manner distinct from a WalkEdge in that it does not explicitly represent a restriction forming operation. The node at the end of this edge will be stated to additionally be a member of the child class, and so will be a MemberOfNode like the parent. Note that RestrictedNodes cannot sit at the head of an IsAEdge.

Version:
0.1
Author:
Tony Burdett
See Also:
Graph, Node

Constructor Summary
IsAEdge()
           
 
Method Summary
 org.semanticweb.owl.model.OWLProperty getOWLProperty()
          Return the owl property represented by this edge.
 void setOWLProperty(org.semanticweb.owl.model.OWLProperty owlProperty)
          Set the OWLProperty that this edge represents.
 
Methods inherited from class net.sourceforge.fluxion.graph.AbstractEdge
accept, getHeadNode, getLabel, getTailNode, setHeadNode, setLabel, setTailNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sourceforge.fluxion.graph.Edge
accept, getHeadNode, getLabel, getTailNode, setHeadNode, setLabel, setTailNode
 

Constructor Detail

IsAEdge

public IsAEdge()
Method Detail

setOWLProperty

public void setOWLProperty(org.semanticweb.owl.model.OWLProperty owlProperty)
Description copied from interface: OWLEdge
Set the OWLProperty that this edge represents. This would normally be a named owl datatype or object property, depending on the values being selected when navigating along this edge. For some implementations, you would not expect to call this: for example, if the edge represents nesting alone (and therefore doesn't correspond to a property at all).

Specified by:
setOWLProperty in interface OWLEdge
Parameters:
owlProperty - the owlProperty to represent this edge

getOWLProperty

public org.semanticweb.owl.model.OWLProperty getOWLProperty()
Description copied from interface: OWLEdge
Return the owl property represented by this edge. Some edges do not expect to have a property they correspond to (in the case of edges representing nesting of nodes within the scope of other nodes). For this reason, it is legal for Edge implementations to return null when this method is called.

Specified by:
getOWLProperty in interface OWLEdge
Returns:
the owl property


Copyright © 2010. All Rights Reserved.