com.bbn.swede.core.resources
Class OWLClass

java.lang.Object
  extended bycom.bbn.swede.core.resources.OWLElement
      extended bycom.bbn.swede.core.resources.OWLClass
All Implemented Interfaces:
IOWLClass, IOWLElement

public class OWLClass
extends OWLElement
implements IOWLClass

Implementation for OWL class elements.

Author:
jlerner

Field Summary
protected  Resource _jenaResource
          The Jena resource represented by this OWL class element.
 
Fields inherited from class com.bbn.swede.core.resources.OWLElement
_elemParent, _info, _resource, _sElementName
 
Constructor Summary
(package private) OWLClass(Resource res)
          Creates an OWL class element based on a Jena resource.
 
Method Summary
 Resource getJenaResource()
          Retrieves the Jena resource this OWL class element is based on.
 String getURI()
          Returns the URI of the OWL element, or null if it has no URI.
 boolean isAnonymous()
          Indicates whether the OWL class represented by the element is anonymous.
 
Methods inherited from class com.bbn.swede.core.resources.OWLElement
accept, contains, getAdapter, getCorrespondingElement, getCorrespondingResource, getElementInfo, getElementName, getLocalURI, getParent, getPath, getResource, isReadOnly, setElementName, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.bbn.swede.core.IOWLElement
accept, contains, getCorrespondingElement, getCorrespondingResource, getElementInfo, getElementName, getLocalURI, getParent, getPath, getResource, isReadOnly, setParent
 

Field Detail

_jenaResource

protected Resource _jenaResource
The Jena resource represented by this OWL class element.

Constructor Detail

OWLClass

OWLClass(Resource res)
Creates an OWL class element based on a Jena resource.

Parameters:
res - The Jena resource.
Method Detail

isAnonymous

public boolean isAnonymous()
Description copied from interface: IOWLClass
Indicates whether the OWL class represented by the element is anonymous.

Specified by:
isAnonymous in interface IOWLClass
Returns:
true if the class is anonymous, false if not.

getURI

public String getURI()
Description copied from interface: IOWLElement
Returns the URI of the OWL element, or null if it has no URI.

Specified by:
getURI in interface IOWLElement
Overrides:
getURI in class OWLElement

getJenaResource

public Resource getJenaResource()
Retrieves the Jena resource this OWL class element is based on.

Specified by:
getJenaResource in interface IOWLClass
Returns:
The Jena resource.


Copyright © 2004-2005 BBN Technologies. All Rights Reserved.