org.mindswap.owl
Interface OWLEntity

All Superinterfaces:
OWLObject
All Known Subinterfaces:
Actor, AnyOrder, Atom, AtomicGrounding, AtomicProcess, AtomList, Binding, BuiltinAtom, Choice, ClassAtom, CompositeProcess, Condition, Conditional, ControlConstruct, ControlConstructBag, ControlConstructList, DataPropertyAtom, DifferentIndividualsAtom, Expression, ForEach, Grounding, IfThenElse, IndividualPropertyAtom, Input, InputBinding, Iterate, JavaAtomicGrounding, Local, LogicLanguage, MessageMap, MultiConditional, Output, OutputBinding, OWLClass, OWLDataProperty, OWLIndividual, OWLObjectProperty, OWLProperty, OWLSIndividual, OWLSObjList, Parameter, Perform, Process, Produce, Profile, RDFList, RepeatUntil, RepeatWhile, Result, ResultVar, SameIndividualAtom, Sequence, Service, ServiceCategory, ServiceParameter, SimpleProcess, Split, SplitJoin, SWRLDataVariable, SWRLIndividual, SWRLIndividualObject, SWRLIndividualVariable, UPnPAtomicGrounding, ValueOf, Variable, WSDLAtomicGrounding, WSDLOperationRef
All Known Implementing Classes:
OWLSExtensions.ExtendedProfile, OWLSExtensions.OwnerEntity, impl.owls.profile.ProfileImpl, impl.owl.WrappedIndividual

public interface OWLEntity
extends OWLObject

Genric interface for OWL classes, properties and individuals.

Author:
Evren Sirin

Method Summary
 void addAnnotation(java.net.URI property, OWLDataValue value)
           
 void addAnnotation(java.net.URI property, java.lang.String value)
           
 void addAnnotation(java.net.URI property, java.lang.String value, java.lang.String lang)
           
 OWLDataValue getAnnotation(java.net.URI prop)
           
 OWLDataValue getAnnotation(java.net.URI prop, java.lang.String lang)
           
 OWLDataValueList getAnnotations(java.net.URI prop)
           
 java.lang.Object getAnonID()
           
 OWLKnowledgeBase getKB()
           
 java.lang.String getLabel()
          Get the rdfs:label for this resource.
 java.lang.String getLabel(java.lang.String lang)
          Get the rdfs:label with the specified language code.
 OWLDataValueList getLabels()
          Return all labels written in any language.
 java.lang.String getLocalName()
           
 OWLOntology getOntology()
           
 java.lang.String getQName()
           
 java.net.URI getURI()
          Return the URI for this resource.
 boolean isAnon()
          Check if this resource represents an anonymous node
 void removeAnnotations(java.net.URI property)
           
 void setAnnotation(java.net.URI property, OWLDataValue value)
           
 void setAnnotation(java.net.URI property, java.lang.String value)
           
 void setAnnotation(java.net.URI property, java.lang.String value, java.lang.String lang)
           
 void setLabel(java.lang.String label)
          Set the value of rdfs:label for this resource.
 void setLabel(java.lang.String label, java.lang.String lang)
           
 
Methods inherited from interface org.mindswap.owl.OWLObject
canCastTo, castTo, debugString, getImplementation, getNextView, setNextView
 

Method Detail

getOntology

OWLOntology getOntology()

getKB

OWLKnowledgeBase getKB()

isAnon

boolean isAnon()
Check if this resource represents an anonymous node

Returns:

getURI

java.net.URI getURI()
Return the URI for this resource. If this resource is anonymous then null value will be returned

Returns:

getLocalName

java.lang.String getLocalName()

getQName

java.lang.String getQName()

getAnonID

java.lang.Object getAnonID()

getLabel

java.lang.String getLabel()
Get the rdfs:label for this resource. This function will look for labels with different language codes according to the settings defined in OWLConfig

Returns:

getLabel

java.lang.String getLabel(java.lang.String lang)
Get the rdfs:label with the specified language code. If the label for the given language does not exist return null even a label is found for another language. Use getLabel() to be more flexible.

Parameters:
lang -
Returns:

getLabels

OWLDataValueList getLabels()
Return all labels written in any language.

Returns:
List of data values or empty list

setLabel

void setLabel(java.lang.String label)
Set the value of rdfs:label for this resource. Empty language identifier will be used.

Parameters:
label -

setLabel

void setLabel(java.lang.String label,
              java.lang.String lang)

getAnnotation

OWLDataValue getAnnotation(java.net.URI prop)

getAnnotation

OWLDataValue getAnnotation(java.net.URI prop,
                           java.lang.String lang)

getAnnotations

OWLDataValueList getAnnotations(java.net.URI prop)

addAnnotation

void addAnnotation(java.net.URI property,
                   OWLDataValue value)

addAnnotation

void addAnnotation(java.net.URI property,
                   java.lang.String value)

addAnnotation

void addAnnotation(java.net.URI property,
                   java.lang.String value,
                   java.lang.String lang)

setAnnotation

void setAnnotation(java.net.URI property,
                   OWLDataValue value)

setAnnotation

void setAnnotation(java.net.URI property,
                   java.lang.String value)

setAnnotation

void setAnnotation(java.net.URI property,
                   java.lang.String value,
                   java.lang.String lang)

removeAnnotations

void removeAnnotations(java.net.URI property)


Copyright © 2004 Evren Sirin. All Rights Reserved.