edu.stanford.smi.protegex.owl.model.impl
Class AbstractOWLModel

java.lang.Object
  extended byedu.stanford.smi.protege.model.DefaultKnowledgeBase
      extended byedu.stanford.smi.protegex.owl.model.impl.AbstractOWLModel
All Implemented Interfaces:
edu.stanford.smi.protege.util.Disposable, edu.stanford.smi.protege.model.KnowledgeBase, NamespaceManagerListener, OWLModel, OWLTestManager, ProtegeKnowledgeBase
Direct Known Subclasses:
JenaOWLModel, OWLDatabaseModel

public abstract class AbstractOWLModel
extends edu.stanford.smi.protege.model.DefaultKnowledgeBase
implements NamespaceManagerListener, OWLModel

Author:
Holger Knublauch

Field Summary
private  int anonCount
           
static String ANONYMOUS_BASE
           
private  edu.stanford.smi.protege.model.Cls anonymousClassMetaCls
           
private  edu.stanford.smi.protege.model.Cls anonymousRootCls
           
private static String AUTO_REPAIR_ENABLED
           
private  boolean bootstrapped
           
static String DEFAULT_ANNOTATION_PROPERTY_NAME
           
static String DEFAULT_CLASS_NAME
           
static String DEFAULT_DATATYPE_PROPERTY_NAME
           
static String DEFAULT_INDIVIDUAL_NAME
           
static String DEFAULT_OBJECT_PROPERTY_NAME
           
static String DEFAULT_PROPERTY_NAME
           
static String DEFAULT_TODO_PREFIX
           
static String[] DEFAULT_USED_LANGUAGES
           
private  Set defaultAnonymousTypes
           
private  Set floatDatatypes
           
private  boolean inInit
           
private  Set integerDatatypes
           
private  com.hp.hpl.jena.rdf.model.Model jenaModel
           
private  int lastGen
           
private  boolean loadDefaults
           
private  edu.stanford.smi.protege.model.Slot nameSlot
           
private  NamespaceManager namespaceManager
           
private  edu.stanford.smi.protege.model.Cls owlAllDifferentClass
           
private  edu.stanford.smi.protege.model.Cls owlAllValuesFromClass
           
private  edu.stanford.smi.protege.model.Slot owlAllValuesFromProperty
           
private  edu.stanford.smi.protege.model.Cls owlAnnotationPropertyClass
           
private  edu.stanford.smi.protege.model.Slot owlBackwardCompatibleWithProperty
           
private  edu.stanford.smi.protege.model.Cls owlCardinalityClass
           
private  edu.stanford.smi.protege.model.Slot owlCardinalityProperty
           
private  edu.stanford.smi.protege.model.Cls owlClassMetaCls
           
private  OWLClassDisplay owlClassRenderer
           
private  edu.stanford.smi.protege.model.Cls owlComplementClassClass
           
private  edu.stanford.smi.protege.model.Slot owlComplementOfProperty
           
private  edu.stanford.smi.protege.model.Cls owlDataRangeClass
           
private  edu.stanford.smi.protege.model.Cls owlDatatypePropertyClass
           
private  edu.stanford.smi.protege.model.Cls owlDeprecatedClassClass
           
private  edu.stanford.smi.protege.model.Cls owlDeprecatedPropertyClass
           
private  edu.stanford.smi.protege.model.Slot owlDifferentFromProperty
           
private  edu.stanford.smi.protege.model.Slot owlDisjointWithProperty
           
private  edu.stanford.smi.protege.model.Slot owlDistinctMembersProperty
           
private  edu.stanford.smi.protege.model.Cls owlEnumeratedClassClass
           
private  edu.stanford.smi.protege.model.Slot owlEquivalentClassProperty
           
private  edu.stanford.smi.protege.model.Slot owlEquivalentPropertyProperty
           
private  OWLFrameStore owlFrameStore
           
private  edu.stanford.smi.protege.model.Cls owlFunctionalPropertyClass
           
private  edu.stanford.smi.protege.model.Cls owlHasValueClass
           
private  edu.stanford.smi.protege.model.Slot owlHasValueProperty
           
private  edu.stanford.smi.protege.model.Slot owlImportsProperty
           
private  edu.stanford.smi.protege.model.Slot owlIncompatibleWithProperty
           
private  edu.stanford.smi.protege.model.Cls owlIntersectionClassClass
           
private  edu.stanford.smi.protege.model.Slot owlIntersectionOfProperty
           
private  edu.stanford.smi.protege.model.Cls owlInverseFunctionalPropertyClass
           
private  edu.stanford.smi.protege.model.Slot owlInverseOfProperty
           
private  edu.stanford.smi.protege.model.Cls owlLogicalClassClass
           
private  edu.stanford.smi.protege.model.Slot owlLogicalOperandsProperty
           
private  edu.stanford.smi.protege.model.Cls owlMaxCardinalityClass
           
private  edu.stanford.smi.protege.model.Slot owlMaxCardinalityProperty
           
private  edu.stanford.smi.protege.model.Cls owlMinCardinalityClass
           
private  edu.stanford.smi.protege.model.Slot owlMinCardinalityProperty
           
private  edu.stanford.smi.protege.model.Cls owlNamedClassClass
           
private  edu.stanford.smi.protege.model.Cls owlNothingClass
           
private  edu.stanford.smi.protege.model.Cls owlObjectPropertyClass
           
private  edu.stanford.smi.protege.model.Slot owlOneOfProperty
           
private  edu.stanford.smi.protege.model.Slot owlOnPropertyProperty
           
private  edu.stanford.smi.protege.model.Cls owlOntologyClass
           
private  edu.stanford.smi.protege.model.Slot owlOntologyPrefixesProperty
           
private  edu.stanford.smi.protege.model.Slot owlPriorVersionProperty
           
private  OWLProject owlProject
           
private  edu.stanford.smi.protege.model.Slot owlResourceURIProperty
           
private  edu.stanford.smi.protege.model.Cls owlRestrictionClass
           
private  edu.stanford.smi.protege.model.Slot owlSameAsProperty
           
private  edu.stanford.smi.protege.model.Cls owlSomeValuesFromClass
           
private  edu.stanford.smi.protege.model.Slot owlSomeValuesFromProperty
           
private  edu.stanford.smi.protege.model.Cls owlSymmetricPropertyClass
           
private  OWLNamedClass owlThingClass
           
private  edu.stanford.smi.protege.model.Cls owlTransitivePropertyClass
           
private  edu.stanford.smi.protege.model.Cls owlUnionClassClass
           
private  edu.stanford.smi.protege.model.Slot owlUnionOfProperty
           
private  edu.stanford.smi.protege.model.Slot owlValuesFromProperty
           
private  edu.stanford.smi.protege.model.Slot owlVersionInfoProperty
           
private  PropertyValueValidator propertyValueValidator
           
private  edu.stanford.smi.protege.model.Slot protegeClassificationStatusProperty
           
private  edu.stanford.smi.protege.model.Slot protegeInferredSubclassesProperty
           
private  edu.stanford.smi.protege.model.Slot protegeInferredSuperclassesProperty
           
private  edu.stanford.smi.protege.model.Slot protegeInferredTypeProperty
           
private  boolean protegeMetaOntologyImported
           
private  edu.stanford.smi.protege.model.Slot protegeSubclassesDisjointProperty
           
private  edu.stanford.smi.protege.model.Cls rdfAltClass
           
private  edu.stanford.smi.protege.model.Cls rdfBagClass
           
private  edu.stanford.smi.protege.model.Cls rdfExternalResourceClass
           
private  edu.stanford.smi.protege.model.Slot rdfFirstProperty
           
private  edu.stanford.smi.protege.model.Cls rdfListClass
           
private  edu.stanford.smi.protege.model.Instance rdfNilIndividual
           
private  edu.stanford.smi.protege.model.Slot rdfObjectProperty
           
private  edu.stanford.smi.protege.model.Slot rdfPredicateProperty
           
private  edu.stanford.smi.protege.model.Cls rdfPropertyClass
           
private  edu.stanford.smi.protege.model.Slot rdfRestSlot
           
private  edu.stanford.smi.protege.model.Slot rdfsCommentProperty
           
private  edu.stanford.smi.protege.model.Cls rdfsContainerClass
           
private  edu.stanford.smi.protege.model.Cls rdfsDatatypeClass
           
private  RDFSDatatypeFactory rdfsDatatypeFactory
           
private  edu.stanford.smi.protege.model.Slot rdfsDomainProperty
           
private  edu.stanford.smi.protege.model.Cls rdfSeqClass
           
private  edu.stanford.smi.protege.model.Slot rdfsIsDefinedByProperty
           
private  edu.stanford.smi.protege.model.Slot rdfsLabelProperty
           
private  edu.stanford.smi.protege.model.Cls rdfsLiteralClass
           
private  edu.stanford.smi.protege.model.Slot rdfsMemberProperty
           
private  edu.stanford.smi.protege.model.Cls rdfsNamedClassClass
           
private  edu.stanford.smi.protege.model.Slot rdfsRangeProperty
           
private  edu.stanford.smi.protege.model.Slot rdfsSeeAlsoProperty
           
private  edu.stanford.smi.protege.model.Slot rdfsSubClassOfProperty
           
private  edu.stanford.smi.protege.model.Slot rdfsSubPropertyOfProperty
           
private  edu.stanford.smi.protege.model.Cls rdfStatementClass
           
private  edu.stanford.smi.protege.model.Slot rdfSubjectProperty
           
private  edu.stanford.smi.protege.model.Slot rdfTypeProperty
           
private  edu.stanford.smi.protege.model.Slot rdfValueProperty
           
private  RepositoryManager repositoryManager
           
private static String SEARCH_SYNONYMS_KEY
           
private static String SEARCH_SYNONYMS_SEPARATOR
           
private  int systemID
          A running id used to create the system FrameIDs
private  TaskManager taskManager
           
private static String TEST_LIST_NAME
           
private static String TESTGROUP_LIST_NAME
           
private  URIResolver uriResolver
           
private static String VALID_SYMBOLS
          The characters that are valid name parts (in addition to the Java identifier chars)
private  RDFSDatatype xmlLiteralType
           
private  RDFSDatatype xsdAnyURI
           
private  RDFSDatatype xsdBase64Binary
           
private  RDFSDatatype xsdBoolean
           
private  RDFSDatatype xsdByte
           
private  RDFSDatatype xsdDate
           
private  RDFSDatatype xsdDateTime
           
private  RDFSDatatype xsdDecimal
           
private  RDFSDatatype xsdDouble
           
private  RDFSDatatype xsdDuration
           
private  RDFSDatatype xsdFloat
           
private  RDFSDatatype xsdInt
           
private  RDFSDatatype xsdInteger
           
private  RDFSDatatype xsdLong
           
private  RDFSDatatype xsdShort
           
private  RDFSDatatype xsdString
           
private  RDFSDatatype xsdTime
           
 
Fields inherited from class edu.stanford.smi.protege.model.DefaultKnowledgeBase
 
Fields inherited from interface edu.stanford.smi.protege.model.KnowledgeBase
MAXIMUM_CARDINALITY_UNBOUNDED, UNLIMITED_MATCHES
 
Constructor Summary
AbstractOWLModel(edu.stanford.smi.protege.model.KnowledgeBaseFactory factory, NamespaceManager namespaceManager)
           
 
Method Summary
 void addClassListener(ClassListener listener)
          Adds a ClassListener to receive events about any class in this OWLModel.
 void addModelListener(ModelListener listener)
          Adds a ModelListener to receive notifications when resources have been created, renamed or deleted.
 void addOWLTest(OWLTest test)
           
 void addPropertyListener(PropertyListener listener)
          Adds a PropertyListener to receive events about any property in this OWLModel.
 void addPropertyValueListener(PropertyValueListener listener)
          Adds a PropertyValueListener to receive events about any property value change in this OWLModel.
 void addResourceListener(ResourceListener listener)
          Adds a ResourceListener to receive events about any RDFResource in this OWLModel.
private  void adjustProtegeSystemFrames()
           
 void adjustSystemClasses()
           
 void adjustThing()
           
 RDFObject asRDFObject(Object object)
          Gets an RDFObject for a given value.
 RDFSLiteral asRDFSLiteral(Object value)
          Gets an RDFSLiteral for a given value.
 List asRDFSLiterals(Collection values)
           
private  void bootstrap()
          Creates the OWL metamodel.
 void copyFacetValuesIntoNamedClses()
          Copies all facet values of restriction superclasses into their named subclasses and thus makes sure that both values are synchronized.
 OWLDatatypeProperty createAnnotationOWLDatatypeProperty(String name)
           
 OWLObjectProperty createAnnotationOWLObjectProperty(String name)
           
 edu.stanford.smi.protege.model.Cls createCls(edu.stanford.smi.protege.model.FrameID id, String name, Collection directSuperclasses, Collection directTypes, boolean loadDefaults)
           
private  void createDefaultOWLOntology()
           
protected  void createDefaultOWLOntologyReally()
           
protected  edu.stanford.smi.protege.model.framestore.FrameStoreManager createFrameStoreManager()
           
 edu.stanford.smi.protege.model.Instance createInstance(edu.stanford.smi.protege.model.FrameID id, String name, Collection directTypes, boolean initializeDefaults)
           
private  edu.stanford.smi.protege.model.Slot createInstanceSlot(String name, edu.stanford.smi.protege.model.Cls directType, edu.stanford.smi.protege.model.Cls allowedCls)
           
private  RDFList createListInstance(Iterator values, edu.stanford.smi.protege.model.Cls listCls)
           
 String createNewResourceName(String partialLocalName)
          Creates a unique name from a given local name prefix.
 OWLAllDifferent createOWLAllDifferent()
           
 OWLAllValuesFrom createOWLAllValuesFrom()
           
 OWLAllValuesFrom createOWLAllValuesFrom(RDFProperty property, RDFResource filler)
           
 OWLAllValuesFrom createOWLAllValuesFrom(RDFProperty property, RDFSLiteral[] oneOfValues)
           
 OWLCardinality createOWLCardinality()
           
 OWLCardinality createOWLCardinality(RDFProperty property, int value)
           
 OWLCardinality createOWLCardinality(RDFProperty property, int value, RDFSClass qualifier)
           
 OWLComplementClass createOWLComplementClass()
           
 OWLComplementClass createOWLComplementClass(RDFSClass complement)
           
 OWLDataRange createOWLDataRange()
          Creates an empty owl:DataRange.
 OWLDataRange createOWLDataRange(RDFSLiteral[] values)
          Creates a new owl:DataRange consisting of a given set of values.
 OWLDatatypeProperty createOWLDatatypeProperty(String name)
          Creates a new OWLDatatypeProperty (with default settings, e.g. no range).
 OWLDatatypeProperty createOWLDatatypeProperty(String name, OWLNamedClass metaCls)
          Creates a new OWLDatatypeProperty with a given rdf:type as metaclass.
 OWLDatatypeProperty createOWLDatatypeProperty(String name, RDFSDatatype datatype)
          Creates a new OWLDatatypeProperty with a given RDFSDatatype as range.
 OWLDatatypeProperty createOWLDatatypeProperty(String name, RDFSLiteral[] dataRangeLiterals)
           
 OWLEnumeratedClass createOWLEnumeratedClass()
           
 OWLEnumeratedClass createOWLEnumeratedClass(Collection instances)
           
 OWLHasValue createOWLHasValue()
           
 OWLHasValue createOWLHasValue(RDFProperty property, Object value)
          Creates a new OWLHasValue for a given Slot.
 OWLIntersectionClass createOWLIntersectionClass()
           
 OWLIntersectionClass createOWLIntersectionClass(Collection clses)
           
 OWLMaxCardinality createOWLMaxCardinality()
           
 OWLMaxCardinality createOWLMaxCardinality(RDFProperty property, int value)
           
 OWLMaxCardinality createOWLMaxCardinality(RDFProperty property, int value, RDFSClass qualifier)
           
 OWLMinCardinality createOWLMinCardinality()
           
 OWLMinCardinality createOWLMinCardinality(RDFProperty property, int value)
           
 OWLMinCardinality createOWLMinCardinality(RDFProperty property, int value, RDFSClass qualifier)
           
 OWLNamedClass createOWLNamedClass(String name)
           
 OWLNamedClass createOWLNamedClass(String name, boolean loadDefaults)
           
 OWLNamedClass createOWLNamedClass(String name, OWLNamedClass metaCls)
          Creates a new named OWL class with a given metaclass, which must be a subclass of owl:Class.
 OWLNamedClass createOWLNamedSubclass(String name, OWLNamedClass superclass)
           
 OWLObjectProperty createOWLObjectProperty(String name)
          Creates a new OWLObjectProperty.
 OWLObjectProperty createOWLObjectProperty(String name, Collection allowedClasses)
           
 OWLObjectProperty createOWLObjectProperty(String name, OWLNamedClass metaCls)
           
 OWLOntology createOWLOntology(String prefix)
          Creates a new OWLOntology for a given prefix.
 OWLOntology createOWLOntology(String name, String uri)
          Deprecated.  
 OWLSomeValuesFrom createOWLSomeValuesFrom()
           
 OWLSomeValuesFrom createOWLSomeValuesFrom(RDFProperty property, RDFResource filler)
           
 OWLSomeValuesFrom createOWLSomeValuesFrom(RDFProperty property, RDFSLiteral[] oneOfValues)
           
 OWLUnionClass createOWLUnionClass()
           
 OWLUnionClass createOWLUnionClass(Collection clses)
           
 RDFExternalResource createRDFExternalResource(String uri)
          Deprecated.  
 RDFList createRDFList()
          Creates a new empty rdf:List
 RDFList createRDFList(Iterator values)
          Creates a new rdf:List.
 RDFProperty createRDFProperty(String name)
           
 RDFSClass createRDFSClassFromExpression(String parsableExpression)
          Gets or creates an RDFSClass based on a parsable expression.
 RDFSDatatype createRDFSDatatype(String name)
           
 RDFSLiteral createRDFSLiteral(Object value)
          Creates a new RDFSLiteral with a default datatype derived from the value.
 RDFSLiteral createRDFSLiteral(String lexicalValue, RDFSDatatype datatype)
          Creates a new RDFSLiteral with a given datatype.
 RDFSLiteral createRDFSLiteral(String value, String language)
          Creates a new string-typed literal with a given language.
 Object createRDFSLiteralOrString(String value, String language)
          Creates a new string-typed literal with a given language.
 RDFSNamedClass createRDFSNamedClass(String name)
           
 RDFSNamedClass createRDFSNamedClass(String name, boolean loadDefaults)
           
 RDFSNamedClass createRDFSNamedClass(String name, Collection parents, RDFSClass rdfType)
          Creates an RDFSNamedClass (or perhaps an OWLNamedClass) with given name, superclasses and rdf:type.
 RDFSNamedClass createRDFSNamedSubclass(String name, RDFSNamedClass superclass)
          Creates a new named OWL class which has exactly a given superclass.
 RDFUntypedResource createRDFUntypedResource(String uri)
          Creates an untyped rdf:Resource for a given URI.
 RDFSNamedClass createSubclass(String name, Collection superclasses)
          Creates a subclass of a number of superclasses.
 RDFSNamedClass createSubclass(String name, RDFSNamedClass superclass)
          Creates a subclass of a superclass.
 RDFProperty createSubproperty(String name, RDFProperty superProperty)
          Creates a new property as a subproperty of an existing property.
private  edu.stanford.smi.protege.model.Cls createSystemCls(String name, edu.stanford.smi.protege.model.Cls superclass)
           
private  edu.stanford.smi.protege.model.Cls createSystemCls(String name, Collection superclasses, edu.stanford.smi.protege.model.Cls type)
           
protected  edu.stanford.smi.protege.model.SystemFrames createSystemFrames()
           
private  edu.stanford.smi.protege.model.Instance createSystemInstance(String name, edu.stanford.smi.protege.model.Cls type)
           
private  edu.stanford.smi.protege.model.Slot createSystemSlot(String name, edu.stanford.smi.protege.model.Cls type)
           
 Triple createTriple(RDFResource subject, RDFProperty predicate, Object object)
          Creates a new Triple.
 String createUniqueNewFrameName(String baseName)
           
 void defaultNamespaceChanged(String oldValue, String newValue)
           
static void deleteAllFrames(OWLModel owlModel)
          Deletes all Frames that are not system classes (including OWL system classes).
private  void deleteAnonymousSuperclasses(OWLNamedClass namedOWLClass)
           
 void deleteCls(edu.stanford.smi.protege.model.Cls cls)
           
private  void deleteRestrictionsDependingOnPropertyType(OWLProperty owlProperty, edu.stanford.smi.protege.model.Cls type)
           
 boolean endTransaction()
          Ends the recently opened transaction and commits the state.
 boolean ensureProtegeMetaOntologyImported()
          Makes sure that the Protege meta ontology is imported in an ontology tag that has rdf:about="".
private  void ensureProtegePrefixExists()
           
 QueryResults executeSPARQLQuery(String partialQueryText)
          Executes a SPARQL query on this OWLModel.
private  void fillDatatypeSet(com.hp.hpl.jena.datatypes.xsd.XSDDatatype[] types, Set set)
           
 Set getAllImports()
          Gets all (transitive) imports in this OWLModel.
 edu.stanford.smi.protege.model.Cls getAnonymousRootCls()
          Deprecated.  
 String getBrowserText(edu.stanford.smi.protege.model.Instance instance)
           
 Collection getChangedInferredClasses()
          Gets all named classes where the classification status is OWLNames.CLASSIFICATION_STATUS_CONSISTENT_AND_CHANGED, i.e. all classes that were identified to move by the most recent invokation of a classifier.
private  Collection getClsesWithClassificationStatus(int status)
           
 RDFSNamedClass getCommonSuperclass(Collection classes)
          Gets the most specific common superclass of a given collection of named classes.
 String getDefaultLanguage()
          Gets the default language specified by the user through an annotation property at owl:Ontology.
 OWLOntology getDefaultOWLOntology()
           
 Collection getDomainlessProperties()
          Gets all properties that have owl:Thing as their domain.
 Set getFloatDatatypes()
          Gets all float XML Schema datatypes, including xsd:float etc.
 String getFrameNameForURI(String uri, boolean generatePrefix)
           
 Collection getInconsistentClasses()
          Gets all classes which have been marked as inconsistent.
 Set getIntegerDatatypes()
          Gets all integer XML Schema datatypes, including xsd:int etc.
 com.hp.hpl.jena.rdf.model.Model getJenaModel()
          Gets a (read-only) Jena Model serving as a live view upon the Protege TripleStores.
 String getLocalNameForResourceName(String frameName)
           
 String getLocalNameForURI(String uri)
          Gets the local part of an URI, e.g. for http://www.aldi.de/ontologies#Hans this will return the String Hans.
 Collection getMatchingResources(RDFProperty property, String matchString, int maxMatches)
          Gets all RDFResources that have a matching value for a given property.
 String getNamespaceForResourceName(String resourceName)
           
 String getNamespaceForURI(String uri)
          Gets the namespace part of a given URI.
 NamespaceManager getNamespaceManager()
          Gets the NamespaceManager used by this knowledge base.
 String getNextAnonymousResourceName()
          Gets the next name that can be used to create an "anonymous" instance.
 RDFSNamedClass getOWLAllDifferentClass()
           
 edu.stanford.smi.protege.model.Cls getOWLAllDifferentClassCls()
           
 Collection getOWLAllDifferents()
          Gets a collection of all OWLAllDifferents in the knowlegde base.
 Collection getOWLAnnotationProperties()
          Gets all annotation properties.
 RDFSNamedClass getOWLAnnotationPropertyClass()
           
 OWLClassDisplay getOWLClassDisplay()
          Gets the currently used renderer for classes into display strings.
 Collection getOWLClasses()
          Deprecated. use getRDFSClasses instead
 OWLClassParser getOWLClassParser()
          Gets the OWLClassParser for the current class expression syntax.
 RDFSNamedClass getOWLDataRangeClass()
          Gets the class owl:DataRange, which is used to represent enumerations of datatype values.
 OWLDatatypeProperty getOWLDatatypeProperty(String name)
           
 OWLNamedClass getOWLDatatypePropertyClass()
          Gets the standard metaclass of all datatype slots/properties.
 edu.stanford.smi.protege.model.Cls getOWLDatatypePropertyMetaClassCls()
           
 RDFSNamedClass getOWLDeprecatedClassClass()
           
 RDFProperty getOWLDifferentFromProperty()
           
 RDFProperty getOWLDisjointWithProperty()
           
 RDFProperty getOWLDistinctMembersProperty()
           
 RDFProperty getOWLEquivalentClassProperty()
           
 RDFProperty getOWLEquivalentPropertyProperty()
           
 OWLFrameStore getOWLFrameStore()
          Provides low level access to some internal Protege detail - normally not needed.
 RDFSNamedClass getOWLFunctionalPropertyClass()
           
 OWLIndividual getOWLIndividual(String name)
           
 Collection getOWLIndividuals()
          Gets those Instances in the ontology that are instances of a OWLNamedClass.
 Collection getOWLIndividuals(boolean onlyVisibleClasses)
          Gets those Instances in the ontology that are instances of a OWLNamedClass.
 RDFProperty getOWLIntersectionOfProperty()
           
 RDFSNamedClass getOWLInverseFunctionalPropertyClass()
           
 RDFProperty getOWLInverseOfProperty()
           
 OWLJavaFactory getOWLJavaFactory()
          Gets the OWLJavaFactory that is used to create the Java objects for ontology resources.
 OWLNamedClass getOWLNamedClass(String name)
          A convenience method which includes the typecast after getCls().
 OWLNamedClass getOWLNamedClassClass()
          Gets the standard metaclass of all named classes.
 edu.stanford.smi.protege.model.Cls getOWLNamedClassMetaClassCls()
           
 OWLNamedClass getOWLNothing()
          Gets the system class owl:Nothing, which represents the empty set for reasoners.
 OWLObjectProperty getOWLObjectProperty(String name)
           
 OWLNamedClass getOWLObjectPropertyClass()
          Gets the standard metaclass of all object slots/properties.
 edu.stanford.smi.protege.model.Cls getOWLObjectPropertyMetaClassCls()
           
 RDFProperty getOWLOneOfProperty()
          Gets the owl:oneOf property.
 Collection getOWLOntologies()
          Gets all OWLOntologies in the current model.
 OWLOntology getOWLOntologyByURI(String uri)
          Gets the OWLOntology with a given URI.
 OWLNamedClass getOWLOntologyClass()
           
 edu.stanford.smi.protege.model.Cls getOWLOntologyCls()
           
 Collection getOWLOntologyProperties()
          Gets the owl:OntologyProperties defined in OWL.
 OWLProject getOWLProject()
          Gets the associated OWLProject, which can be used to store project-specific settings.
 OWLProperty getOWLProperty(String name)
          A convenience method including typecast.
 RDFSNamedClass[] getOWLRestrictionMetaclasses()
          Gets the metaclasses of the available OWLRestriction kinds.
 Collection getOWLRestrictionsOnProperty(RDFProperty property)
          Gets a Collection of all Restrictions that are defined on a given property.
 RDFProperty getOWLSameAsProperty()
           
private  edu.stanford.smi.protege.model.Frame[] getOWLSystemFramesArray()
           
 Collection getOWLSystemResources()
          Gets a Collection of all system resources installed by the OWL Plugin.
private  SettingsMap getOWLTestGroupsSettingsMap()
           
 OWLTest[] getOWLTests()
           
private  SettingsMap getOWLTestsSettingsMap()
           
 OWLNamedClass getOWLThingClass()
          Gets the root class of the OWL class hierarchy (owl:Thing).
 RDFProperty getOWLUnionOfProperty()
           
 RDFProperty getOWLValuesFromProperty()
          Gets the owl:valuesFrom property (used for qualified cardinality restrictions.
 edu.stanford.smi.protege.model.ValueType getOWLValueType(String uri)
          Gets the Protege ValueType that represents a given URI string.
 RDFProperty getOWLVersionInfoProperty()
           
 String getPrefixForResourceName(String frameName)
           
 Collection getPropertyValueLiterals(RDFResource resource, RDFProperty property)
           
 PropertyValueValidator getPropertyValueValidator()
          Gets the currently used PropertyValueValidator.
 RDFProperty getProtegeAllowedParentProperty()
          Gets the property protege:allowedParent (if it exists)
 RDFProperty getProtegeClassificationStatusProperty()
          Gets the property that is used internally to store the classification status of a class.
 RDFProperty getProtegeInferredSubclassesProperty()
           
 RDFProperty getProtegeInferredSuperclassesProperty()
           
 OWLDatatypeProperty getProtegeReadOnlyProperty()
           
 RDFProperty getProtegeSubclassesDisjointProperty()
           
 RDFExternalResource getRDFExternalResource(String uri)
          Deprecated.  
 RDFSClass getRDFExternalResourceClass()
          Deprecated.  
 RDFProperty getRDFFirstProperty()
          Gets the rdf:first property.
 RDFIndividual getRDFIndividual(String name)
           
 Collection getRDFIndividuals()
          Gets those Instances in the ontology that are instances of an RDFSNamedClass.
 Collection getRDFIndividuals(boolean onlyVisibleClasses)
          Gets those Instances in the ontology that are instances of an RDFSNamedClass.
private  Collection getRDFIndividuals(Iterator it, boolean onlyVisibleClasses)
           
 RDFSNamedClass getRDFListClass()
          Gets the rdf:List class.
 edu.stanford.smi.protege.model.Cls getRDFListCls()
           
 RDFList getRDFNil()
          Gets the placeholder for empty rdf:Lists.
 Collection getRDFProperties()
          Gets a collection of all RDFProperties (or subclasses thereof).
 RDFProperty getRDFProperty(String name)
          A convenience method to access a slot as RDFProperty.
 RDFSNamedClass getRDFPropertyClass()
          Gets the rdf:Property metaclass.
 RDFResource getRDFResource(String name)
          Gets an RDFResource by its name.
 RDFResource getRDFResourceAs(String name, Class javaInterface)
          Combines the calls getRDFResource(name).as(javaInterface).
 RDFResource getRDFResourceByBrowserText(String text)
          Gets the first resource that has a given browser text.
 RDFResource getRDFResourceByNameOrBrowserText(String text)
          Gets the first instance that has a given name or browser text.
 int getRDFResourceCount()
          Gets the number of all RDFResources in this model.
 Collection getRDFResources()
          Gets a list of all RDFResources in this model.
static Collection getRDFResources(edu.stanford.smi.protege.model.KnowledgeBase kb, Collection frames)
           
 Collection getRDFResourcesWithPropertyValue(RDFProperty property, Object value)
          Gets all RDFResources that have a given value for a given property.
 RDFProperty getRDFRestProperty()
          Gets the rdf:rest property, which is used to describe the rest of an rdf:List.
 int getRDFSClassCount()
          Gets the number of rdfs:Classes (or owl:Classes) in this model, including anonymous classes and system classes.
 Collection getRDFSClasses()
          Gets all rdfs:Classes (or owl:Classes) in this model, including anonymous classes and system classes.
 edu.stanford.smi.protege.model.Cls getRDFSClassMetaClassCls()
           
 OWLDatatypeProperty getRDFSCommentProperty()
           
 RDFSDatatype getRDFSDatatypeByName(String name)
          Gets an XML Schema Datatype using the prefix notation (e.g.
 RDFSDatatype getRDFSDatatypeByURI(String uri)
          Gets an XML Schema Datatype by its URI (e.g.
 RDFSNamedClass getRDFSDatatypeClass()
           
 RDFSDatatypeFactory getRDFSDatatypeFactory()
           
 RDFSDatatype getRDFSDatatypeOfValue(Object valueOrRDFSLiteral)
          Gets the RDFSDatatype of a given primitive value, which can be either a standard value (e.g.
 Collection getRDFSDatatypes()
          Gets a Collection of the (named) RDF/XML Schema datatypes.
 RDFProperty getRDFSDomainProperty()
          Gets the rdfs:domain property.
 RDFProperty getRDFSIsDefinedByProperty()
           
 RDFProperty getRDFSLabelProperty()
           
 RDFSNamedClass getRDFSNamedClass(String name)
           
 RDFSNamedClass getRDFSNamedClassClass()
          Gets the rdfs:Class metaclass
 RDFProperty getRDFSRangeProperty()
          Gets the rdfs:range property.
 RDFProperty getRDFSSubClassOfProperty()
           
 RDFProperty getRDFSSubPropertyOfProperty()
          Gets the property rdfs:subPropertyOf
 RDFProperty getRDFTypeProperty()
          Gets the rdf:type property.
 RDFUntypedResource getRDFUntypedResource(String uri, boolean createOnDemand)
          Gets an RDFUntypedResource for a given string.
 RDFSNamedClass getRDFUntypedResourcesClass()
          Gets the internal type of all untyped resources.
 RDFSDatatype getRDFXMLLiteralType()
          Gets the resource representing the datatype rdf:XMLLiteral.
 RepositoryManager getRepositoryManager()
           
 String getResourceNameForURI(String uri)
          Gets the name of a Frame by converting a URI.
 Collection getResourceNameMatches(String nameExpression, int maxMatches)
          Gets all RDFResources that have a matching name (possibly using wildcards).
 Collection getResourcesWithPrefix(String prefix)
          Gets all resource in this that have a given prefix.
 edu.stanford.smi.protege.model.Cls getRootCls()
           
 edu.stanford.smi.protege.model.Cls getRootSlotMetaCls()
           
 Collection getSearchSynonymProperties()
          Gets the slots that are used for matching when the user searches for a frame in the search fields.
 RDFProperty[] getSystemAnnotationProperties()
          Gets the pre-defined system annotation slots such as rdfs:comment.
 TaskManager getTaskManager()
          Gets the TaskManager that can be used for executing tasks that take a long time.
 String getTodoAnnotationPrefix()
          Gets the prefix used to distinguish "to-do" list items from other values of the to-do list property.
 OWLDatatypeProperty getTodoAnnotationProperty()
          Gets the (annotation) slot that is used to represent "to-do" list items in this knowledge base.
 String getUniqueFrameName(String name)
           
 String getURIForResourceName(String name)
           
 URIResolver getURIResolver()
          Gets the OWLModel's URIResolver, which is used to convert the URIs of imported ontologies into physical URLs (for saving and loading files).
 String[] getUsedLanguages()
          Gets the list of language prefixes defined by the user in the owl:Ontology.
private  Collection getUserDefinedInstances(edu.stanford.smi.protege.model.Cls cls)
           
private  Collection getUserDefinedInstances(Collection instances)
           
 Collection getUserDefinedOWLDatatypeProperties()
          Gets a Collection of all user-defined OWLDatatypeProperties in this knowledge base.
 Collection getUserDefinedOWLNamedClasses()
          Gets a Collection of all user-defined named OWL classes in this knowledge base.
 Collection getUserDefinedOWLObjectProperties()
          Gets a Collection of all user-defined OWLObjectProperties in this knowledge base.
 Collection getUserDefinedOWLProperties()
          Gets a Collection of all user-defined OWLProperties in this knowledge base.
 Collection getUserDefinedRDFIndividuals(boolean onlyVisibleClasses)
          Gets all non-system individuals in this OWLModel.
 Collection getUserDefinedRDFProperties()
          Gets all user-defined RDF properties in this OWLModel.
 Collection getUserDefinedRDFSNamedClasses()
          Gets all user-defined RDFSClses including the OWLNamedClses.
 String getValidNamespaceFrameName(String suggestedName)
           
static String getValidOWLFrameName(AbstractOWLModel kb, String suggestedName)
           
 List getValueLiterals(List values)
           
 String getValueTypeURI(edu.stanford.smi.protege.model.ValueType valueType)
          The inverse of getValueType.
 List getVisibleResources(Iterator iterator)
          Gets a list of resources, only containing the visible entries of a given Iterator.
private  Collection getVisibleUserDefinedInstances(edu.stanford.smi.protege.model.Cls cls)
           
private  Collection getVisibleUserDefinedInstances(Collection instances)
           
 Collection getVisibleUserDefinedOWLProperties()
          Gets a Collection of all user-defined, visible OWLProperties in this knowledge base.
 Collection getVisibleUserDefinedRDFProperties()
          Gets all visible, user-defined RDF properties in this knowledge base.
 RDFSDatatype getXSDanyURI()
          Gets the default datatype for URI values.
 RDFSDatatype getXSDbase64Binary()
          Gets the default datatype for byte[] values.
 RDFSDatatype getXSDboolean()
          Gets the default datatype for boolean values.
 RDFSDatatype getXSDbyte()
          Gets the default datatype for byte values.
 RDFSDatatype getXSDdate()
          Gets the default datatype for date values.
 RDFSDatatype getXSDdateTime()
          Gets the default datatype for timestamp values.
 RDFSDatatype getXSDdecimal()
          Gets the default datatype for BigDecimal values.
 RDFSDatatype getXSDdouble()
          Gets the default datatype for double values.
 RDFSDatatype getXSDduration()
          Gets the datatype for duration values.
 RDFSDatatype getXSDfloat()
          Gets the default datatype for float values.
 RDFSDatatype getXSDint()
          Gets the default datatype for integer values.
 RDFSDatatype getXSDinteger()
          Gets the default datatype for BigInteger values.
 RDFSDatatype getXSDlong()
          Gets the default datatype for long values.
 RDFSDatatype getXSDshort()
          Gets the default datatype for short values.
 RDFSDatatype getXSDstring()
          Gets the default datatype for string values.
 RDFSDatatype getXSDtime()
          Gets the default datatype for time values.
private  void initInferredSlots()
           
private  void initOntologyMetaclass()
           
abstract  void initOWLFrameFactoryInvocationHandler()
           
protected  void initOWLFrameStore()
           
private  void initRDFDatatypes()
           
private  void initRestrictionMetaclasses()
           
 boolean isAnonymousResource(RDFResource resource)
          Deprecated.  
 boolean isAnonymousResourceName(String name)
           
 boolean isAutoRepairEnabled()
           
 boolean isDefaultAnonymousType(edu.stanford.smi.protege.model.Cls type)
           
 boolean isDefaultAnonymousType(Collection types)
           
 boolean isOWLSystemFrame(edu.stanford.smi.protege.model.Frame frame)
          Checks whether a given frame is one of the results of getOWLSystemResources.
 boolean isOWLTestGroupEnabled(String groupName)
           
 boolean isProtegeMetaOntologyImported()
           
 boolean isSlotMetaCls(edu.stanford.smi.protege.model.Cls cls)
           
 boolean isTrueInstance(edu.stanford.smi.protege.model.Instance instance)
           
static boolean isValidOWLFrameName(NamespaceManager nsm, String name)
           
 boolean isValidOWLFrameName(String name)
           
private static boolean isValidOWLFrameNamePart(String name)
           
 boolean isValidPropertyValue(RDFResource subject, RDFProperty predicate, Object value)
          Checks if a certain object would be a valid value for a given subject/property pair.
 boolean isValidResourceName(String name, RDFResource resource)
          Checks whether a given String would be a valid name for a given resource.
 Iterator listOWLAnonymousClasses()
          Gets an Iterator of all OWLAnonymousClasses in the ontology.
 Iterator listOWLNamedClasses()
          Gets an Iterator on all OWLNamedClasses in the ontology, including system classes.
 Iterator listRDFProperties()
          Gets an Iterator on all RDFProperties in the model, including system properties.
 Iterator listRDFSNamedClasses()
          Gets an Iterator on all RDFSNamedClasses in the ontology, including system classes.
 Iterator listReferences(Object object, int maxResults)
          Finds all references to a given object, i.e. all triples that have the given object as their object.
 Iterator listSubjects(RDFProperty property)
          The the subjects of all triples where a given property has any value.
 void namespaceChanged(String prefix, String oldValue, String newValue)
           
 void prefixAdded(String prefix)
           
 void prefixChanged(String namespace, String oldPrefix, String newPrefix)
           
 void prefixRemoved(String prefix)
           
 void removeClassListener(ClassListener listener)
          Removes a ClassListener that was previously added.
 void removeModelListener(ModelListener listener)
          Removes a ModelListener that was previously added.
 void removeOWLTest(OWLTest test)
           
 void removePropertyListener(PropertyListener listener)
          Removes a PropertyListener that was previously added.
 void removePropertyValueListener(PropertyValueListener listener)
          Removes a PropertyValueListener previously added.
private static void removeProtegeSystemResources(edu.stanford.smi.protege.model.KnowledgeBase kb, Collection frames)
           
 void removeResourceListener(ResourceListener listener)
          Removes a ResourceListener that was previously added.
 void replacePrefixInInstances(String oldPrefix, String newPrefix)
          Replaces the prefix of all NamespaceInstances that have an old prefix.
 void resetJenaModel()
           
 void setAutoRepairEnabled(boolean value)
           
 edu.stanford.smi.protege.model.Instance setDirectType(edu.stanford.smi.protege.model.Instance instance, edu.stanford.smi.protege.model.Cls type)
           
 void setLoadDefaults(boolean value)
           
 void setNamespaceManager(NamespaceManager namespaceManager)
           
 void setOWLClassDisplay(OWLClassDisplay renderer)
          Sets the OWLClassDisplay to change the default display of classes.
 void setOWLJavaFactory(OWLJavaFactory factory)
          Sets the OWLJavaFactory for this OWLModel.
 void setOWLProject(OWLProject owlProject)
          Sets the associated OWLProject.
 void setOWLTestGroupEnabled(String groupName, boolean value)
           
 void setProject(edu.stanford.smi.protege.model.Project project)
           
 void setPropertyValueValidator(PropertyValueValidator validator)
          Sets the validator that shall be used in future calls of the validation methods.
 void setSearchSynonymProperties(Collection slots)
           
private  void setStringRange(edu.stanford.smi.protege.model.Slot slot)
           
 void setTaskManager(TaskManager taskManager)
          Sets the TaskManager.
 void setURIResolver(URIResolver uriResolver)
          Sets the URIResolver which is used in future calls of getURIResolver().
 void updateProtegeMetaOntologyImported()
           
 
Methods inherited from class edu.stanford.smi.protege.model.DefaultKnowledgeBase
addClsListener, addClsListener, addDirectSuperclass, addDirectSuperslot, addDirectTemplateSlot, addDirectType, addDirectTypes, addFacetListener, addFacetListener, addFrameListener, addFrameListener, addInstance, addInstanceListener, addInstanceListener, addJavaLoadPackage, addKnowledgeBaseListener, addOwnSlotValue, addSlotListener, addSlotListener, addTemplateFacetValue, addTemplateSlotValue, addTransactionListener, areValidOwnSlotValues, beginTransaction, changeFrameName, clearAllListeners, close, commitTransaction, containsFrame, createCls, createCls, createCls, createCls, createFacet, createFacet, createFacet, createFacet, createFrameFactory, createInstance, createInstance, createInstance, createInstance, createSimpleInstance, createSimpleInstance, createSimpleInstance, createSlot, createSlot, createSlot, createSlot, createSlot, createUniqueFrameName, deleteFacet, deleteFrame, deleteInstance, deleteSimpleInstance, deleteSlot, dispose, endTransaction, equals, flushCache, getAllowedClses, getAllowedParents, getAllowedValues, getAllowsMultipleValues, getAssociatedFacet, getAssociatedSlot, getBuildString, getClientInformation, getCls, getClsCount, getClses, getClsesWithMatchingBrowserText, getClsNameMatches, getCommandManager, getCurrentUsers, getDefaultClsMetaCls, getDefaultFacetMetaCls, getDefaultSlotMetaCls, getDefaultValues, getDirectBrowserSlotPattern, getDirectDomain, getDirectInstanceCount, getDirectInstances, getDirectlyOverriddenTemplateFacets, getDirectlyOverriddenTemplateSlots, getDirectOwnSlotValue, getDirectOwnSlotValues, getDirectOwnSlotValuesClosure, getDirectSubclassCount, getDirectSubclasses, getDirectSubslotCount, getDirectSubslots, getDirectSuperclassCount, getDirectSuperclasses, getDirectSuperslotCount, getDirectSuperslots, getDirectTemplateFacetValues, getDirectTemplateSlots, getDirectTemplateSlotValues, getDirectType, getDirectTypes, getDispatchEventsEnabled, getDisplaySlotNotSetString, getDisplaySlotPatternValueNotSetString, getDocumentation, getDomain, getEventsEnabled, getFacet, getFacetCheckingEnabled, getFacetCount, getFacets, getFrame, getFrame, getFrameCount, getFrameCounts, getFrameCreationTimestamp, getFrameCreator, getFrameFactory, getFrameLastModificationTimestamp, getFrameLastModifier, getFrameNameMatches, getFrameNamePrefix, getFrames, getFrameStoreManager, getFrameStores, getFramesWithMatchingDirectOwnSlotValue, getFramesWithValue, getGenerateEventsEnabled, getHeadFrameStore, getInheritedTemplateSlots, getInstance, getInstanceCount, getInstances, getInstances, getInvalidFrameNameDescription, getInvalidOwnSlotValuesText, getInvalidOwnSlotValueText, getInverseSlot, getKnowledgeBaseFactory, getMatchingFrames, getMatchingReferences, getMaximumCardinality, getMaximumCardinality2, getMaximumValue, getMinimumCardinality, getMinimumValue, getMissingTypeString, getName, getName, getNameSlot, getNextFrameNumber, getOverriddenTemplateFacets, getOverriddenTemplateSlots, getOwnFacets, getOwnFacetValues, getOwnSlotAllowsMultipleValues, getOwnSlotAndSubslotValues, getOwnSlotDefaultValues, getOwnSlotFacets, getOwnSlotFacetValues, getOwnSlots, getOwnSlotValue, getOwnSlotValueCount, getOwnSlotValues, getOwnSlotValueType, getProject, getReachableSimpleInstances, getReachableSimpleInstances, getReferences, getReferences, getReifedRelationFromSlot, getReifedRelationToSlot, getReifiedRelationCls, getRootClses, getRootClsMetaCls, getRootFacetMetaCls, getRootSlots, getSimpleInstance, getSimpleInstanceCount, getSlot, getSlotCount, getSlots, getSlotValueLastModificationTimestamp, getSlotValueLastModifier, getSubclasses, getSubslots, getSuperclasses, getSuperslots, getSystemFrames, getTemplateFacets, getTemplateFacetValue, getTemplateFacetValues, getTemplateSlotAllowedClses, getTemplateSlotAllowedParents, getTemplateSlotAllowedValues, getTemplateSlotAllowsMultipleValues, getTemplateSlotDefaultValues, getTemplateSlotDocumentation, getTemplateSlotMaximumCardinality, getTemplateSlotMaximumCardinality2, getTemplateSlotMaximumValue, getTemplateSlotMinimumCardinality, getTemplateSlotMinimumCardinality2, getTemplateSlotMinimumValue, getTemplateSlots, getTemplateSlotValue, getTemplateSlotValues, getTemplateSlotValueType, getTerminalFrameStore, getTypes, getUnreachableSimpleInstances, getUserName, getValueChecking, getValues, getValueType, getVersionString, hasChanged, hasDirectlyOverriddenTemplateFacet, hasDirectlyOverriddenTemplateSlot, hasDirectSuperclass, hasDirectSuperslot, hasDirectTemplateSlot, hasDirectType, hasInheritedTemplateSlot, hasOverriddenTemplateFacet, hasOverriddenTemplateSlot, hasOwnSlot, hasSlotValueAtSomeFrame, hasSuperclass, hasSuperslot, hasTemplateSlot, hasType, insertFrameStore, insertFrameStore, isAbstract, isAutoUpdatingFacetValues, isCallCachingEnabled, isClosed, isClsMetaCls, isDefaultClsMetaCls, isDefaultFacetMetaCls, isDefaultSlotMetaCls, isFacetMetaCls, isJournalingEnabled, isLoading, isMetaCls, isUndoEnabled, isValidFrameName, isValidOwnSlotValue, moveDirectOwnSlotValue, moveDirectSubclass, moveDirectSubclass, moveDirectSubslot, moveDirectSubslot, moveDirectTemplateSlot, moveDirectType, notifyVisibilityChanged, removeClsListener, removeClsListener, removeDirectSuperclass, removeDirectSuperslot, removeDirectTemplateFacetOverrides, removeDirectTemplateSlot, removeDirectType, removeDirectTypes, removeFacetListener, removeFacetListener, removeFrameListener, removeFrameListener, removeFrameStore, removeInstanceListener, removeInstanceListener, removeJavaLoadPackage, removeKnowledgeBaseListener, removeOwnSlotValue, removeSlotListener, removeSlotListener, removeTemplateFacetOverrides, removeTransactionListener, rollbackTransaction, setAbstract, setAllowedClses, setAllowedParents, setAllowedValues, setAllowsMultipleValues, setArgumentCheckingEnabled, setAssociatedFacet, setAssociatedSlot, setAutoUpdateFacetValues, setBuildString, setCallCachingEnabled, setChanged, setChangeMonitorEnabled, setCleanDispatchEnabled, setClientInformation, setDefaultClsMetaCls, setDefaultFacetMetaCls, setDefaultSlotMetaCls, setDefaultValues, setDirectBrowserSlot, setDirectBrowserSlotPattern, setDirectBrowserTextPattern, setDirectOwnSlotValue, setDirectOwnSlotValues, setDirectTemplateFacetValue, setDirectTemplateFacetValues, setDirectTemplateSlotValues, setDirectTypeOfSubclasses, setDirectTypeOfSubslots, setDirectTypes, setDispatchEventsEnabled, setDocumentation, setDocumentation, setEventDispatchEnabled, setEventsEnabled, setFacetCheckingEnabled, setFrameFactory, setFrameName, setFrameNamePrefix, setFrameNameValidator, setGenerateDeletingFrameEventsEnabled, setGenerateEventsEnabled, setInverseSlot, setJournalingEnabled, setLoading, setMaximumCardinality, setMaximumValue, setMinimumCardinality, setMinimumValue, setModificationRecordUpdatingEnabled, setName, setNextFrameNumber, setOwnSlotValue, setOwnSlotValues, setPollForEvents, setTemplateFacetValue, setTemplateFacetValues, setTemplateSlotAllowedClses, setTemplateSlotAllowedParents, setTemplateSlotAllowedValues, setTemplateSlotAllowsMultipleValues, setTemplateSlotDefaultValues, setTemplateSlotDocumentation, setTemplateSlotDocumentation, setTemplateSlotMaximumCardinality, setTemplateSlotMaximumValue, setTemplateSlotMinimumCardinality, setTemplateSlotMinimumValue, setTemplateSlotValue, setTemplateSlotValues, setTemplateSlotValueType, setTerminalFrameStore, setUndoEnabled, setUserName, setValueChecking, setValues, setValueType, setVersionString, startJournaling, stopJournaling, toString, toString, toString, toStringForFrame, toStringForObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.stanford.smi.protegex.owl.model.OWLModel
beginTransaction, endTransaction, getDispatchEventsEnabled, getGenerateEventsEnabled, getTripleStoreModel, setDispatchEventsEnabled, setGenerateEventsEnabled
 
Methods inherited from interface edu.stanford.smi.protegex.owl.model.ProtegeKnowledgeBase
addClsListener, addClsListener, addDirectSuperclass, addDirectSuperslot, addDirectTemplateSlot, addDirectType, addFacetListener, addFacetListener, addFrameListener, addFrameListener, addInstance, addInstanceListener, addInstanceListener, addKnowledgeBaseListener, addOwnSlotValue, addSlotListener, addSlotListener, addTemplateFacetValue, addTemplateSlotValue, areValidOwnSlotValues, clearAllListeners, containsFrame, createCls, createCls, createCls, createFacet, createFacet, createFacet, createInstance, createInstance, createInstance, createSimpleInstance, createSlot, createSlot, createSlot, createSlot, deleteFacet, deleteFrame, deleteInstance, deleteSlot, getAllowedClses, getAllowedParents, getAllowedValues, getAllowsMultipleValues, getAssociatedFacet, getAssociatedSlot, getCls, getClsCount, getClses, getClsNameMatches, getCommandManager, getCurrentUsers, getDefaultClsMetaCls, getDefaultFacetMetaCls, getDefaultSlotMetaCls, getDefaultValues, getDirectBrowserSlotPattern, getDirectDomain, getDirectInstanceCount, getDirectInstances, getDirectlyOverriddenTemplateFacets, getDirectlyOverriddenTemplateSlots, getDirectOwnSlotValue, getDirectOwnSlotValues, getDirectOwnSlotValuesClosure, getDirectSubclassCount, getDirectSubclasses, getDirectSubslotCount, getDirectSubslots, getDirectSuperclassCount, getDirectSuperclasses, getDirectSuperslotCount, getDirectSuperslots, getDirectTemplateFacetValues, getDirectTemplateSlots, getDirectTemplateSlotValues, getDirectType, getDirectTypes, getDocumentation, getDomain, getFacet, getFacetCount, getFacets, getFrame, getFrame, getFrameCount, getFrameCounts, getFrameCreationTimestamp, getFrameCreator, getFrameFactory, getFrameLastModificationTimestamp, getFrameLastModifier, getFrameNameMatches, getFrameNamePrefix, getFrames, getFrameStores, getFramesWithValue, getInstance, getInstanceCount, getInstances, getInstances, getInvalidFrameNameDescription, getInvalidOwnSlotValuesText, getInvalidOwnSlotValueText, getInverseSlot, getMatchingFrames, getMatchingReferences, getMaximumCardinality, getMaximumValue, getMinimumCardinality, getMinimumValue, getName, getName, getNameSlot, getNextFrameNumber, getOverriddenTemplateFacets, getOwnSlotAllowsMultipleValues, getOwnSlotAndSubslotValues, getOwnSlotDefaultValues, getOwnSlotFacets, getOwnSlotFacetValues, getOwnSlots, getOwnSlotValue, getOwnSlotValueCount, getOwnSlotValues, getOwnSlotValueType, getProject, getReachableSimpleInstances, getReferences, getRootClses, getRootClsMetaCls, getRootFacetMetaCls, getRootSlots, getSimpleInstanceCount, getSlot, getSlotCount, getSlots, getSlotValueLastModificationTimestamp, getSlotValueLastModifier, getSubclasses, getSubslots, getSuperclasses, getSuperslots, getSystemFrames, getTemplateFacets, getTemplateFacetValue, getTemplateFacetValues, getTemplateSlotAllowedClses, getTemplateSlotAllowedParents, getTemplateSlotAllowedValues, getTemplateSlotAllowsMultipleValues, getTemplateSlotDefaultValues, getTemplateSlotDocumentation, getTemplateSlotMaximumCardinality, getTemplateSlotMaximumValue, getTemplateSlotMinimumCardinality, getTemplateSlotMinimumValue, getTemplateSlots, getTemplateSlotValue, getTemplateSlotValues, getTemplateSlotValueType, getUnreachableSimpleInstances, getUserName, getValueChecking, getValues, getValueType, getVersionString, hasDirectlyOverriddenTemplateFacet, hasDirectlyOverriddenTemplateSlot, hasDirectSuperclass, hasDirectSuperslot, hasDirectTemplateSlot, hasDirectType, hasInheritedTemplateSlot, hasOverriddenTemplateFacet, hasOverriddenTemplateSlot, hasOwnSlot, hasSlotValueAtSomeFrame, hasSuperclass, hasSuperslot, hasTemplateSlot, hasType, insertFrameStore, insertFrameStore, isAbstract, isAutoUpdatingFacetValues, isCallCachingEnabled, isClsMetaCls, isDefaultClsMetaCls, isDefaultFacetMetaCls, isDefaultSlotMetaCls, isFacetMetaCls, isJournalingEnabled, isLoading, isMetaCls, isValidFrameName, isValidOwnSlotValue, moveDirectSubclass, moveDirectSubslot, moveDirectTemplateSlot, notifyVisibilityChanged, removeClsListener, removeClsListener, removeDirectSuperclass, removeDirectSuperslot, removeDirectTemplateSlot, removeDirectType, removeFacetListener, removeFacetListener, removeFrameListener, removeFrameListener, removeFrameStore, removeInstanceListener, removeInstanceListener, removeJavaLoadPackage, removeKnowledgeBaseListener, removeOwnSlotValue, removeSlotListener, removeSlotListener, removeTemplateFacetOverrides, setAbstract, setAllowedClses, setAllowedParents, setAllowedValues, setAllowsMultipleValues, setArgumentCheckingEnabled, setAssociatedFacet, setAssociatedSlot, setAutoUpdateFacetValues, setBuildString, setCallCachingEnabled, setChanged, setChangeMonitorEnabled, setCleanDispatchEnabled, setDefaultClsMetaCls, setDefaultFacetMetaCls, setDefaultSlotMetaCls, setDefaultValues, setDirectBrowserSlot, setDirectBrowserSlotPattern, setDirectOwnSlotValues, setDirectTypeOfSubclasses, setDirectTypeOfSubslots, setDirectTypes, setDocumentation, setDocumentation, setFacetCheckingEnabled, setFrameFactory, setFrameName, setFrameNamePrefix, setFrameNameValidator, setGenerateDeletingFrameEventsEnabled, setInverseSlot, setJournalingEnabled, setMaximumCardinality, setMaximumValue, setMinimumCardinality, setMinimumValue, setName, setNextFrameNumber, setOwnSlotValues, setPollForEvents, setTemplateFacetValue, setTemplateFacetValues, setTemplateSlotAllowedClses, setTemplateSlotAllowedParents, setTemplateSlotAllowedValues, setTemplateSlotAllowsMultipleValues, setTemplateSlotDefaultValues, setTemplateSlotDocumentation, setTemplateSlotDocumentation, setTemplateSlotMaximumCardinality, setTemplateSlotMaximumValue, setTemplateSlotMinimumCardinality, setTemplateSlotMinimumValue, setTemplateSlotValue, setTemplateSlotValues, setTemplateSlotValueType, setUndoEnabled, setUserName, setValueChecking, setValues, setValueType, setVersionString, startJournaling, stopJournaling
 
Methods inherited from interface edu.stanford.smi.protege.model.KnowledgeBase
addJavaLoadPackage, addTransactionListener, changeFrameName, createInstance, createUniqueFrameName, flushCache, getBuildString, getClientInformation, getClsesWithMatchingBrowserText, getEventsEnabled, getKnowledgeBaseFactory, getReifedRelationFromSlot, getReifedRelationToSlot, getReifiedRelationCls, getSimpleInstance, hasChanged, isClosed, moveDirectOwnSlotValue, moveDirectType, removeTransactionListener, setClientInformation, setEventsEnabled, setModificationRecordUpdatingEnabled
 
Methods inherited from interface edu.stanford.smi.protege.util.Disposable
dispose
 

Field Detail

owlAllDifferentClass

private edu.stanford.smi.protege.model.Cls owlAllDifferentClass

owlAnnotationPropertyClass

private edu.stanford.smi.protege.model.Cls owlAnnotationPropertyClass

owlDeprecatedClassClass

private edu.stanford.smi.protege.model.Cls owlDeprecatedClassClass

owlDeprecatedPropertyClass

private edu.stanford.smi.protege.model.Cls owlDeprecatedPropertyClass

owlFunctionalPropertyClass

private edu.stanford.smi.protege.model.Cls owlFunctionalPropertyClass

owlInverseFunctionalPropertyClass

private edu.stanford.smi.protege.model.Cls owlInverseFunctionalPropertyClass

owlSymmetricPropertyClass

private edu.stanford.smi.protege.model.Cls owlSymmetricPropertyClass

owlTransitivePropertyClass

private edu.stanford.smi.protege.model.Cls owlTransitivePropertyClass

owlAllValuesFromClass

private edu.stanford.smi.protege.model.Cls owlAllValuesFromClass

anonymousClassMetaCls

private edu.stanford.smi.protege.model.Cls anonymousClassMetaCls

anonymousRootCls

private edu.stanford.smi.protege.model.Cls anonymousRootCls

owlDataRangeClass

private edu.stanford.smi.protege.model.Cls owlDataRangeClass

owlEnumeratedClassClass

private edu.stanford.smi.protege.model.Cls owlEnumeratedClassClass

rdfExternalResourceClass

private edu.stanford.smi.protege.model.Cls rdfExternalResourceClass

rdfListClass

private edu.stanford.smi.protege.model.Cls rdfListClass

owlOntologyClass

private edu.stanford.smi.protege.model.Cls owlOntologyClass

owlClassMetaCls

private edu.stanford.smi.protege.model.Cls owlClassMetaCls

owlRestrictionClass

private edu.stanford.smi.protege.model.Cls owlRestrictionClass

owlSomeValuesFromClass

private edu.stanford.smi.protege.model.Cls owlSomeValuesFromClass

owlHasValueClass

private edu.stanford.smi.protege.model.Cls owlHasValueClass

owlMinCardinalityClass

private edu.stanford.smi.protege.model.Cls owlMinCardinalityClass

owlMaxCardinalityClass

private edu.stanford.smi.protege.model.Cls owlMaxCardinalityClass

owlCardinalityClass

private edu.stanford.smi.protege.model.Cls owlCardinalityClass

owlLogicalClassClass

private edu.stanford.smi.protege.model.Cls owlLogicalClassClass

owlIntersectionClassClass

private edu.stanford.smi.protege.model.Cls owlIntersectionClassClass

rdfStatementClass

private edu.stanford.smi.protege.model.Cls rdfStatementClass

rdfAltClass

private edu.stanford.smi.protege.model.Cls rdfAltClass

rdfBagClass

private edu.stanford.smi.protege.model.Cls rdfBagClass

rdfsNamedClassClass

private edu.stanford.smi.protege.model.Cls rdfsNamedClassClass

rdfsContainerClass

private edu.stanford.smi.protege.model.Cls rdfsContainerClass

rdfsDatatypeClass

private edu.stanford.smi.protege.model.Cls rdfsDatatypeClass

rdfSeqClass

private edu.stanford.smi.protege.model.Cls rdfSeqClass

owlUnionClassClass

private edu.stanford.smi.protege.model.Cls owlUnionClassClass

owlComplementClassClass

private edu.stanford.smi.protege.model.Cls owlComplementClassClass

owlNamedClassClass

private edu.stanford.smi.protege.model.Cls owlNamedClassClass

owlNothingClass

private edu.stanford.smi.protege.model.Cls owlNothingClass

rdfsLiteralClass

private edu.stanford.smi.protege.model.Cls rdfsLiteralClass

rdfPropertyClass

private edu.stanford.smi.protege.model.Cls rdfPropertyClass

owlDatatypePropertyClass

private edu.stanford.smi.protege.model.Cls owlDatatypePropertyClass

owlObjectPropertyClass

private edu.stanford.smi.protege.model.Cls owlObjectPropertyClass

owlAllValuesFromProperty

private edu.stanford.smi.protege.model.Slot owlAllValuesFromProperty

owlBackwardCompatibleWithProperty

private edu.stanford.smi.protege.model.Slot owlBackwardCompatibleWithProperty

owlCardinalityProperty

private edu.stanford.smi.protege.model.Slot owlCardinalityProperty

owlComplementOfProperty

private edu.stanford.smi.protege.model.Slot owlComplementOfProperty

owlDisjointWithProperty

private edu.stanford.smi.protege.model.Slot owlDisjointWithProperty

owlEquivalentClassProperty

private edu.stanford.smi.protege.model.Slot owlEquivalentClassProperty

owlValuesFromProperty

private edu.stanford.smi.protege.model.Slot owlValuesFromProperty

rdfsDomainProperty

private edu.stanford.smi.protege.model.Slot rdfsDomainProperty

rdfsRangeProperty

private edu.stanford.smi.protege.model.Slot rdfsRangeProperty

rdfsSubClassOfProperty

private edu.stanford.smi.protege.model.Slot rdfsSubClassOfProperty

rdfsSubPropertyOfProperty

private edu.stanford.smi.protege.model.Slot rdfsSubPropertyOfProperty

protegeClassificationStatusProperty

private edu.stanford.smi.protege.model.Slot protegeClassificationStatusProperty

rdfsCommentProperty

private edu.stanford.smi.protege.model.Slot rdfsCommentProperty

owlDifferentFromProperty

private edu.stanford.smi.protege.model.Slot owlDifferentFromProperty

owlDistinctMembersProperty

private edu.stanford.smi.protege.model.Slot owlDistinctMembersProperty

owlEquivalentPropertyProperty

private edu.stanford.smi.protege.model.Slot owlEquivalentPropertyProperty

owlHasValueProperty

private edu.stanford.smi.protege.model.Slot owlHasValueProperty

owlIncompatibleWithProperty

private edu.stanford.smi.protege.model.Slot owlIncompatibleWithProperty

owlInverseOfProperty

private edu.stanford.smi.protege.model.Slot owlInverseOfProperty

protegeInferredTypeProperty

private edu.stanford.smi.protege.model.Slot protegeInferredTypeProperty

protegeInferredSubclassesProperty

private edu.stanford.smi.protege.model.Slot protegeInferredSubclassesProperty

protegeInferredSuperclassesProperty

private edu.stanford.smi.protege.model.Slot protegeInferredSuperclassesProperty

owlIntersectionOfProperty

private edu.stanford.smi.protege.model.Slot owlIntersectionOfProperty

rdfsIsDefinedByProperty

private edu.stanford.smi.protege.model.Slot rdfsIsDefinedByProperty

rdfsLabelProperty

private edu.stanford.smi.protege.model.Slot rdfsLabelProperty

owlLogicalOperandsProperty

private edu.stanford.smi.protege.model.Slot owlLogicalOperandsProperty

owlMaxCardinalityProperty

private edu.stanford.smi.protege.model.Slot owlMaxCardinalityProperty

owlMinCardinalityProperty

private edu.stanford.smi.protege.model.Slot owlMinCardinalityProperty

nameSlot

private edu.stanford.smi.protege.model.Slot nameSlot

owlOnPropertyProperty

private edu.stanford.smi.protege.model.Slot owlOnPropertyProperty

owlImportsProperty

private edu.stanford.smi.protege.model.Slot owlImportsProperty

owlOntologyPrefixesProperty

private edu.stanford.smi.protege.model.Slot owlOntologyPrefixesProperty

owlOneOfProperty

private edu.stanford.smi.protege.model.Slot owlOneOfProperty

owlUnionOfProperty

private edu.stanford.smi.protege.model.Slot owlUnionOfProperty

owlPriorVersionProperty

private edu.stanford.smi.protege.model.Slot owlPriorVersionProperty

rdfFirstProperty

private edu.stanford.smi.protege.model.Slot rdfFirstProperty

rdfObjectProperty

private edu.stanford.smi.protege.model.Slot rdfObjectProperty

rdfPredicateProperty

private edu.stanford.smi.protege.model.Slot rdfPredicateProperty

rdfRestSlot

private edu.stanford.smi.protege.model.Slot rdfRestSlot

rdfSubjectProperty

private edu.stanford.smi.protege.model.Slot rdfSubjectProperty

rdfTypeProperty

private edu.stanford.smi.protege.model.Slot rdfTypeProperty

rdfValueProperty

private edu.stanford.smi.protege.model.Slot rdfValueProperty

rdfsMemberProperty

private edu.stanford.smi.protege.model.Slot rdfsMemberProperty

owlResourceURIProperty

private edu.stanford.smi.protege.model.Slot owlResourceURIProperty

owlSameAsProperty

private edu.stanford.smi.protege.model.Slot owlSameAsProperty

rdfsSeeAlsoProperty

private edu.stanford.smi.protege.model.Slot rdfsSeeAlsoProperty

owlSomeValuesFromProperty

private edu.stanford.smi.protege.model.Slot owlSomeValuesFromProperty

owlVersionInfoProperty

private edu.stanford.smi.protege.model.Slot owlVersionInfoProperty

protegeSubclassesDisjointProperty

private edu.stanford.smi.protege.model.Slot protegeSubclassesDisjointProperty

xsdBoolean

private RDFSDatatype xsdBoolean

xsdDouble

private RDFSDatatype xsdDouble

xsdFloat

private RDFSDatatype xsdFloat

xsdLong

private RDFSDatatype xsdLong

xsdInt

private RDFSDatatype xsdInt

xsdShort

private RDFSDatatype xsdShort

xsdByte

private RDFSDatatype xsdByte

xsdString

private RDFSDatatype xsdString

xsdBase64Binary

private RDFSDatatype xsdBase64Binary

xsdDate

private RDFSDatatype xsdDate

xsdTime

private RDFSDatatype xsdTime

xsdDateTime

private RDFSDatatype xsdDateTime

xsdDuration

private RDFSDatatype xsdDuration

xsdAnyURI

private RDFSDatatype xsdAnyURI

xsdDecimal

private RDFSDatatype xsdDecimal

xsdInteger

private RDFSDatatype xsdInteger

xmlLiteralType

private RDFSDatatype xmlLiteralType

floatDatatypes

private Set floatDatatypes

integerDatatypes

private Set integerDatatypes

systemID

private int systemID
A running id used to create the system FrameIDs


inInit

private boolean inInit

jenaModel

private com.hp.hpl.jena.rdf.model.Model jenaModel

ANONYMOUS_BASE

public static final String ANONYMOUS_BASE
See Also:
Constant Field Values

bootstrapped

private boolean bootstrapped

owlClassRenderer

private OWLClassDisplay owlClassRenderer

owlFrameStore

private OWLFrameStore owlFrameStore

owlProject

private OWLProject owlProject

propertyValueValidator

private PropertyValueValidator propertyValueValidator

protegeMetaOntologyImported

private boolean protegeMetaOntologyImported

uriResolver

private URIResolver uriResolver

DEFAULT_TODO_PREFIX

public static final String DEFAULT_TODO_PREFIX
See Also:
Constant Field Values

DEFAULT_USED_LANGUAGES

public static final String[] DEFAULT_USED_LANGUAGES

loadDefaults

private boolean loadDefaults

namespaceManager

private NamespaceManager namespaceManager

rdfNilIndividual

private edu.stanford.smi.protege.model.Instance rdfNilIndividual

owlThingClass

private OWLNamedClass owlThingClass

SEARCH_SYNONYMS_KEY

private static final String SEARCH_SYNONYMS_KEY
See Also:
Constant Field Values

SEARCH_SYNONYMS_SEPARATOR

private static final String SEARCH_SYNONYMS_SEPARATOR
See Also:
Constant Field Values

VALID_SYMBOLS

private static final String VALID_SYMBOLS
The characters that are valid name parts (in addition to the Java identifier chars)

See Also:
Constant Field Values

defaultAnonymousTypes

private Set defaultAnonymousTypes

DEFAULT_ANNOTATION_PROPERTY_NAME

public static final String DEFAULT_ANNOTATION_PROPERTY_NAME
See Also:
Constant Field Values

DEFAULT_CLASS_NAME

public static final String DEFAULT_CLASS_NAME
See Also:
Constant Field Values

DEFAULT_DATATYPE_PROPERTY_NAME

public static final String DEFAULT_DATATYPE_PROPERTY_NAME
See Also:
Constant Field Values

DEFAULT_INDIVIDUAL_NAME

public static final String DEFAULT_INDIVIDUAL_NAME
See Also:
Constant Field Values

DEFAULT_OBJECT_PROPERTY_NAME

public static final String DEFAULT_OBJECT_PROPERTY_NAME
See Also:
Constant Field Values

DEFAULT_PROPERTY_NAME

public static final String DEFAULT_PROPERTY_NAME
See Also:
Constant Field Values

rdfsDatatypeFactory

private RDFSDatatypeFactory rdfsDatatypeFactory

taskManager

private TaskManager taskManager

repositoryManager

private RepositoryManager repositoryManager

anonCount

private int anonCount

AUTO_REPAIR_ENABLED

private static final String AUTO_REPAIR_ENABLED
See Also:
Constant Field Values

TEST_LIST_NAME

private static final String TEST_LIST_NAME
See Also:
Constant Field Values

TESTGROUP_LIST_NAME

private static final String TESTGROUP_LIST_NAME
See Also:
Constant Field Values

lastGen

private int lastGen
Constructor Detail

AbstractOWLModel

public AbstractOWLModel(edu.stanford.smi.protege.model.KnowledgeBaseFactory factory,
                        NamespaceManager namespaceManager)
Method Detail

addClassListener

public void addClassListener(ClassListener listener)
Description copied from interface: OWLModel
Adds a ClassListener to receive events about any class in this OWLModel.

Specified by:
addClassListener in interface OWLModel
Parameters:
listener - the ClassListener to add (currently must be a ClassAdapter)
See Also:
OWLModel.removeClassListener(edu.stanford.smi.protegex.owl.model.event.ClassListener)

addModelListener

public void addModelListener(ModelListener listener)
Description copied from interface: OWLModel
Adds a ModelListener to receive notifications when resources have been created, renamed or deleted.

Specified by:
addModelListener in interface OWLModel
Parameters:
listener - the ModelListener to add (currently must be a ModelAdapter)
See Also:
OWLModel.removeModelListener(edu.stanford.smi.protegex.owl.model.event.ModelListener)

addPropertyListener

public void addPropertyListener(PropertyListener listener)
Description copied from interface: OWLModel
Adds a PropertyListener to receive events about any property in this OWLModel.

Specified by:
addPropertyListener in interface OWLModel
Parameters:
listener - the PropertyListener to add (currently must be a PropertyAdapter)
See Also:
OWLModel.removePropertyListener(edu.stanford.smi.protegex.owl.model.event.PropertyListener)

addPropertyValueListener

public void addPropertyValueListener(PropertyValueListener listener)
Description copied from interface: OWLModel
Adds a PropertyValueListener to receive events about any property value change in this OWLModel. Note that the number of events is most likely very large and installing such a global listener may slow down the system significantly.

Specified by:
addPropertyValueListener in interface OWLModel
Parameters:
listener - the PropertyValueListener to add
See Also:
OWLModel.removePropertyValueListener(edu.stanford.smi.protegex.owl.model.event.PropertyValueListener)

asRDFSLiteral

public RDFSLiteral asRDFSLiteral(Object value)
Description copied from interface: OWLModel
Gets an RDFSLiteral for a given value. If the value is already an RDFSLiteral, then the method will return it. If the value is a String, Float, Integer or Boolean, then the method will wrap it into a corresponding RDFSLiteral. If the object is null, then the method retrurn null. Objects of other types are not permitted for this method. This is a convenience method to post-process those calls that return either an Object or an RDFSLiteral, if only an RDFSLiteral is desired.

Specified by:
asRDFSLiteral in interface OWLModel
Parameters:
value - a primitive value or an RDFSLiteral
Returns:
an RDFSLiteral of the same value or null if value is null

asRDFObject

public RDFObject asRDFObject(Object object)
Description copied from interface: OWLModel
Gets an RDFObject for a given value. If the value is already an RDFObject then the method will simply return it. If the value is already an RDFSLiteral, then the method will return it. If the value is a String, Float, Integer or Boolean, then the method will wrap it up into a corresponding RDFSLiteral which will be returned as an RDFObject. If the object is an RDFResourece then the method will return it. If the object is null the the method will return null.

Specified by:
asRDFObject in interface OWLModel
Parameters:
object - the object to convert
Returns:
an RDFObject with the same value

asRDFSLiterals

public List asRDFSLiterals(Collection values)
Specified by:
asRDFSLiterals in interface OWLModel

addResourceListener

public void addResourceListener(ResourceListener listener)
Description copied from interface: OWLModel
Adds a ResourceListener to receive events about any RDFResource in this OWLModel.

Specified by:
addResourceListener in interface OWLModel
Parameters:
listener - the ResourceListener to add (currently must be ResourceAdapter)
See Also:
OWLModel.removeResourceListener(edu.stanford.smi.protegex.owl.model.event.ResourceListener)

adjustSystemClasses

public void adjustSystemClasses()

adjustThing

public void adjustThing()

initOWLFrameFactoryInvocationHandler

public abstract void initOWLFrameFactoryInvocationHandler()

initOWLFrameStore

protected void initOWLFrameStore()

createSystemCls

private edu.stanford.smi.protege.model.Cls createSystemCls(String name,
                                                           edu.stanford.smi.protege.model.Cls superclass)

createSystemCls

private edu.stanford.smi.protege.model.Cls createSystemCls(String name,
                                                           Collection superclasses,
                                                           edu.stanford.smi.protege.model.Cls type)

createSystemFrames

protected edu.stanford.smi.protege.model.SystemFrames createSystemFrames()

bootstrap

private void bootstrap()
Creates the OWL metamodel.


createSystemSlot

private edu.stanford.smi.protege.model.Slot createSystemSlot(String name,
                                                             edu.stanford.smi.protege.model.Cls type)

adjustProtegeSystemFrames

private void adjustProtegeSystemFrames()

setStringRange

private void setStringRange(edu.stanford.smi.protege.model.Slot slot)

initRDFDatatypes

private void initRDFDatatypes()

fillDatatypeSet

private void fillDatatypeSet(com.hp.hpl.jena.datatypes.xsd.XSDDatatype[] types,
                             Set set)

createSystemInstance

private edu.stanford.smi.protege.model.Instance createSystemInstance(String name,
                                                                     edu.stanford.smi.protege.model.Cls type)

getTaskManager

public TaskManager getTaskManager()
Description copied from interface: OWLModel
Gets the TaskManager that can be used for executing tasks that take a long time.

Specified by:
getTaskManager in interface OWLModel

initOntologyMetaclass

private void initOntologyMetaclass()

initRestrictionMetaclasses

private void initRestrictionMetaclasses()

initInferredSlots

private void initInferredSlots()

removeClassListener

public void removeClassListener(ClassListener listener)
Description copied from interface: OWLModel
Removes a ClassListener that was previously added.

Specified by:
removeClassListener in interface OWLModel
Parameters:
listener - the ClassListener to remove
See Also:
OWLModel.addClassListener(edu.stanford.smi.protegex.owl.model.event.ClassListener)

removeModelListener

public void removeModelListener(ModelListener listener)
Description copied from interface: OWLModel
Removes a ModelListener that was previously added.

Specified by:
removeModelListener in interface OWLModel
Parameters:
listener - the ModelListener to remove
See Also:
OWLModel.addModelListener(edu.stanford.smi.protegex.owl.model.event.ModelListener)

removePropertyListener

public void removePropertyListener(PropertyListener listener)
Description copied from interface: OWLModel
Removes a PropertyListener that was previously added.

Specified by:
removePropertyListener in interface OWLModel
Parameters:
listener - the PropertyListener to remove
See Also:
OWLModel.addPropertyListener(edu.stanford.smi.protegex.owl.model.event.PropertyListener)

removePropertyValueListener

public void removePropertyValueListener(PropertyValueListener listener)
Description copied from interface: OWLModel
Removes a PropertyValueListener previously added.

Specified by:
removePropertyValueListener in interface OWLModel
Parameters:
listener - the listener to remove
See Also:
OWLModel.addPropertyValueListener(edu.stanford.smi.protegex.owl.model.event.PropertyValueListener)

removeResourceListener

public void removeResourceListener(ResourceListener listener)
Description copied from interface: OWLModel
Removes a ResourceListener that was previously added.

Specified by:
removeResourceListener in interface OWLModel
Parameters:
listener - the ResourceListener to remove
See Also:
OWLModel.addResourceListener(edu.stanford.smi.protegex.owl.model.event.ResourceListener)

setOWLClassDisplay

public void setOWLClassDisplay(OWLClassDisplay renderer)
Description copied from interface: OWLModel
Sets the OWLClassDisplay to change the default display of classes. As a side-effect, this call also changes the OWLClassParser, which depends on the display.

Specified by:
setOWLClassDisplay in interface OWLModel
Parameters:
renderer - the new display (not null)

getOWLJavaFactory

public OWLJavaFactory getOWLJavaFactory()
Description copied from interface: OWLModel
Gets the OWLJavaFactory that is used to create the Java objects for ontology resources.

Specified by:
getOWLJavaFactory in interface OWLModel
Returns:
the OWLJavaFactory
See Also:
OWLModel.setOWLJavaFactory(edu.stanford.smi.protegex.owl.model.factory.OWLJavaFactory)

setOWLJavaFactory

public void setOWLJavaFactory(OWLJavaFactory factory)
Description copied from interface: OWLModel
Sets the OWLJavaFactory for this OWLModel. An OWLJavaFactory creates the Java object for an RDFResource.

Specified by:
setOWLJavaFactory in interface OWLModel
Parameters:
factory - the new OWLJavaFactory
See Also:
OWLJavaFactory, OWLModel.getOWLJavaFactory()

setOWLProject

public void setOWLProject(OWLProject owlProject)
Description copied from interface: OWLModel
Sets the associated OWLProject.

Specified by:
setOWLProject in interface OWLModel
Parameters:
owlProject - the new OWLProject
See Also:
OWLModel.getOWLProject()

getPropertyValueValidator

public PropertyValueValidator getPropertyValueValidator()
Description copied from interface: OWLModel
Gets the currently used PropertyValueValidator.

Specified by:
getPropertyValueValidator in interface OWLModel
Returns:
the validator
See Also:
OWLModel.setPropertyValueValidator(edu.stanford.smi.protegex.owl.model.validator.PropertyValueValidator)

isValidPropertyValue

public boolean isValidPropertyValue(RDFResource subject,
                                    RDFProperty predicate,
                                    Object value)
Description copied from interface: OWLModel
Checks if a certain object would be a valid value for a given subject/property pair. This can be used by visual components to validate user input. Typical implementations check for constraint violations such as numeric ranges, string length etc. This does not check for cardinality restrictions.

Specified by:
isValidPropertyValue in interface OWLModel
Parameters:
subject - the subject to check the value for
predicate - the property to check for
value - the potential value
Returns:
true if value would be valid for the subject/predicate pair

setPropertyValueValidator

public void setPropertyValueValidator(PropertyValueValidator validator)
Description copied from interface: OWLModel
Sets the validator that shall be used in future calls of the validation methods.

Specified by:
setPropertyValueValidator in interface OWLModel
Parameters:
validator - the new Validator (or null)
See Also:
OWLModel.isValidPropertyValue(edu.stanford.smi.protegex.owl.model.RDFResource, edu.stanford.smi.protegex.owl.model.RDFProperty, java.lang.Object)

copyFacetValuesIntoNamedClses

public void copyFacetValuesIntoNamedClses()
Copies all facet values of restriction superclasses into their named subclasses and thus makes sure that both values are synchronized. This method must be called after a file has been loaded.


createNewResourceName

public String createNewResourceName(String partialLocalName)
Description copied from interface: OWLModel
Creates a unique name from a given local name prefix. For example, if you pass in "Class", then the method will return "Class_42" or "travel:Class_42" depending on the default namespace of the currently active TripleStore. This method can be used to create new names for classes, properties etc.

Specified by:
createNewResourceName in interface OWLModel
Parameters:
partialLocalName - the partial name
Returns:
a unique name for a new resource

createOWLAllDifferent

public OWLAllDifferent createOWLAllDifferent()
Specified by:
createOWLAllDifferent in interface OWLModel

createOWLAllValuesFrom

public OWLAllValuesFrom createOWLAllValuesFrom()
Specified by:
createOWLAllValuesFrom in interface OWLModel

createOWLAllValuesFrom

public OWLAllValuesFrom createOWLAllValuesFrom(RDFProperty property,
                                               RDFResource filler)
Specified by:
createOWLAllValuesFrom in interface OWLModel

createOWLAllValuesFrom

public OWLAllValuesFrom createOWLAllValuesFrom(RDFProperty property,
                                               RDFSLiteral[] oneOfValues)
Specified by:
createOWLAllValuesFrom in interface OWLModel

createAnnotationOWLDatatypeProperty

public OWLDatatypeProperty createAnnotationOWLDatatypeProperty(String name)
Specified by:
createAnnotationOWLDatatypeProperty in interface OWLModel

createAnnotationOWLObjectProperty

public OWLObjectProperty createAnnotationOWLObjectProperty(String name)
Specified by:
createAnnotationOWLObjectProperty in interface OWLModel

createOWLCardinality

public OWLCardinality createOWLCardinality()
Specified by:
createOWLCardinality in interface OWLModel

createOWLCardinality

public OWLCardinality createOWLCardinality(RDFProperty property,
                                           int value)
Specified by:
createOWLCardinality in interface OWLModel

createOWLCardinality

public OWLCardinality createOWLCardinality(RDFProperty property,
                                           int value,
                                           RDFSClass qualifier)
Specified by:
createOWLCardinality in interface OWLModel

createCls

public edu.stanford.smi.protege.model.Cls createCls(edu.stanford.smi.protege.model.FrameID id,
                                                    String name,
                                                    Collection directSuperclasses,
                                                    Collection directTypes,
                                                    boolean loadDefaults)
Specified by:
createCls in interface ProtegeKnowledgeBase

createOWLComplementClass

public OWLComplementClass createOWLComplementClass()
Specified by:
createOWLComplementClass in interface OWLModel

createOWLComplementClass

public OWLComplementClass createOWLComplementClass(RDFSClass complement)
Specified by:
createOWLComplementClass in interface OWLModel

createOWLDataRange

public OWLDataRange createOWLDataRange()
Description copied from interface: OWLModel
Creates an empty owl:DataRange.

Specified by:
createOWLDataRange in interface OWLModel
Returns:
a new empty owl:DataRange

createOWLDataRange

public OWLDataRange createOWLDataRange(RDFSLiteral[] values)
Description copied from interface: OWLModel
Creates a new owl:DataRange consisting of a given set of values. This will create an rdf:List to store the values on the fly

Specified by:
createOWLDataRange in interface OWLModel
Parameters:
values - the values in the owl:oneOf list in the owl:DataRange
Returns:
a new OWLDataRange

createOWLDatatypeProperty

public OWLDatatypeProperty createOWLDatatypeProperty(String name)
Description copied from interface: OWLModel
Creates a new OWLDatatypeProperty (with default settings, e.g. no range).

Specified by:
createOWLDatatypeProperty in interface OWLModel
Parameters:
name - the name of the new property
Returns:
a new OWLDatatypeProperty

createOWLDatatypeProperty

public OWLDatatypeProperty createOWLDatatypeProperty(String name,
                                                     OWLNamedClass metaCls)
Description copied from interface: OWLModel
Creates a new OWLDatatypeProperty with a given rdf:type as metaclass.

Specified by:
createOWLDatatypeProperty in interface OWLModel
Parameters:
name - the name of the new property
metaCls - the rdf:type of the property
Returns:
a new OWLDatatypeProperty, instance of the metaclass

createOWLDatatypeProperty

public OWLDatatypeProperty createOWLDatatypeProperty(String name,
                                                     RDFSDatatype datatype)
Description copied from interface: OWLModel
Creates a new OWLDatatypeProperty with a given RDFSDatatype as range.

Specified by:
createOWLDatatypeProperty in interface OWLModel
Parameters:
name - the name of the new property
datatype - the (initial) range (e.g. getXSDint()
Returns:
a new OWLDatatypeProperty

createOWLDatatypeProperty

public OWLDatatypeProperty createOWLDatatypeProperty(String name,
                                                     RDFSLiteral[] dataRangeLiterals)
Specified by:
createOWLDatatypeProperty in interface OWLModel

createDefaultOWLOntology

private void createDefaultOWLOntology()

createDefaultOWLOntologyReally

protected void createDefaultOWLOntologyReally()

createFrameStoreManager

protected edu.stanford.smi.protege.model.framestore.FrameStoreManager createFrameStoreManager()

createOWLEnumeratedClass

public OWLEnumeratedClass createOWLEnumeratedClass()
Specified by:
createOWLEnumeratedClass in interface OWLModel

createOWLEnumeratedClass

public OWLEnumeratedClass createOWLEnumeratedClass(Collection instances)
Specified by:
createOWLEnumeratedClass in interface OWLModel

createRDFExternalResource

public RDFExternalResource createRDFExternalResource(String uri)
Deprecated.  

Specified by:
createRDFExternalResource in interface OWLModel

createOWLHasValue

public OWLHasValue createOWLHasValue()
Specified by:
createOWLHasValue in interface OWLModel

createOWLHasValue

public OWLHasValue createOWLHasValue(RDFProperty property,
                                     Object value)
Description copied from interface: OWLModel
Creates a new OWLHasValue for a given Slot.

Specified by:
createOWLHasValue in interface OWLModel
Parameters:
property - the restricted Slot
value - an Instance, Boolean, Integer, Double, or String
Returns:
a new OWLHasValue

createInstance

public edu.stanford.smi.protege.model.Instance createInstance(edu.stanford.smi.protege.model.FrameID id,
                                                              String name,
                                                              Collection directTypes,
                                                              boolean initializeDefaults)
Specified by:
createInstance in interface ProtegeKnowledgeBase

createInstanceSlot

private edu.stanford.smi.protege.model.Slot createInstanceSlot(String name,
                                                               edu.stanford.smi.protege.model.Cls directType,
                                                               edu.stanford.smi.protege.model.Cls allowedCls)

createOWLIntersectionClass

public OWLIntersectionClass createOWLIntersectionClass()
Specified by:
createOWLIntersectionClass in interface OWLModel

createOWLIntersectionClass

public OWLIntersectionClass createOWLIntersectionClass(Collection clses)
Specified by:
createOWLIntersectionClass in interface OWLModel

createRDFList

public RDFList createRDFList()
Description copied from interface: OWLModel
Creates a new empty rdf:List

Specified by:
createRDFList in interface OWLModel
Returns:
a new RDFList

createRDFList

public RDFList createRDFList(Iterator values)
Description copied from interface: OWLModel
Creates a new rdf:List.

Specified by:
createRDFList in interface OWLModel
Parameters:
values - an Iterator on the initial values of this list.
Returns:
a new RDFList.

createRDFSClassFromExpression

public RDFSClass createRDFSClassFromExpression(String parsableExpression)
Description copied from interface: OWLModel
Gets or creates an RDFSClass based on a parsable expression. If the expression is parsed into an anonymous class, then the anonymous class will be created. If the expression is just the name of a named class, then the named class will be returned. Note that the expression must be parsable or an null will be returned.

Specified by:
createRDFSClassFromExpression in interface OWLModel
Parameters:
parsableExpression - a parsable expression such as !(Person | Animal)
Returns:
an RDFSClass

createRDFSDatatype

public RDFSDatatype createRDFSDatatype(String name)
Specified by:
createRDFSDatatype in interface OWLModel

createListInstance

private RDFList createListInstance(Iterator values,
                                   edu.stanford.smi.protege.model.Cls listCls)

createOWLMaxCardinality

public OWLMaxCardinality createOWLMaxCardinality()
Specified by:
createOWLMaxCardinality in interface OWLModel

createOWLMaxCardinality

public OWLMaxCardinality createOWLMaxCardinality(RDFProperty property,
                                                 int value)
Specified by:
createOWLMaxCardinality in interface OWLModel

createOWLMaxCardinality

public OWLMaxCardinality createOWLMaxCardinality(RDFProperty property,
                                                 int value,
                                                 RDFSClass qualifier)
Specified by:
createOWLMaxCardinality in interface OWLModel

createOWLMinCardinality

public OWLMinCardinality createOWLMinCardinality()
Specified by:
createOWLMinCardinality in interface OWLModel

createOWLMinCardinality

public OWLMinCardinality createOWLMinCardinality(RDFProperty property,
                                                 int value)
Specified by:
createOWLMinCardinality in interface OWLModel

createOWLMinCardinality

public OWLMinCardinality createOWLMinCardinality(RDFProperty property,
                                                 int value,
                                                 RDFSClass qualifier)
Specified by:
createOWLMinCardinality in interface OWLModel

createOWLNamedClass

public OWLNamedClass createOWLNamedClass(String name)
Specified by:
createOWLNamedClass in interface OWLModel

createOWLNamedClass

public OWLNamedClass createOWLNamedClass(String name,
                                         boolean loadDefaults)
Specified by:
createOWLNamedClass in interface OWLModel

createOWLNamedClass

public OWLNamedClass createOWLNamedClass(String name,
                                         OWLNamedClass metaCls)
Description copied from interface: OWLModel
Creates a new named OWL class with a given metaclass, which must be a subclass of owl:Class.

Specified by:
createOWLNamedClass in interface OWLModel
Parameters:
name - the name of the new class
metaCls - the metaclass (subclass of owl:Class)
Returns:
the new OWLNamedClass

createOWLNamedSubclass

public OWLNamedClass createOWLNamedSubclass(String name,
                                            OWLNamedClass superclass)
Specified by:
createOWLNamedSubclass in interface OWLModel

createOWLObjectProperty

public OWLObjectProperty createOWLObjectProperty(String name)
Description copied from interface: OWLModel
Creates a new OWLObjectProperty.

Specified by:
createOWLObjectProperty in interface OWLModel
Parameters:
name - the name of the new property
Returns:
a new owl:ObjectProperty with the given name

createOWLObjectProperty

public OWLObjectProperty createOWLObjectProperty(String name,
                                                 OWLNamedClass metaCls)
Specified by:
createOWLObjectProperty in interface OWLModel

createOWLObjectProperty

public OWLObjectProperty createOWLObjectProperty(String name,
                                                 Collection allowedClasses)
Specified by:
createOWLObjectProperty in interface OWLModel

createOWLOntology

public OWLOntology createOWLOntology(String prefix)
Description copied from interface: OWLModel
Creates a new OWLOntology for a given prefix. Note that the prefix of the new ontology must have been defined before. The new OWLOntology will get the internal name prefix + ":".

Specified by:
createOWLOntology in interface OWLModel
Parameters:
prefix - a valid namespace prefix
Returns:
the new OWLOntology

createOWLOntology

public OWLOntology createOWLOntology(String name,
                                     String uri)
Deprecated.  

Specified by:
createOWLOntology in interface OWLModel
See Also:
OWLModel.createOWLOntology(String)

createRDFSNamedClass

public RDFSNamedClass createRDFSNamedClass(String name)
Specified by:
createRDFSNamedClass in interface OWLModel

createRDFSNamedClass

public RDFSNamedClass createRDFSNamedClass(String name,
                                           boolean loadDefaults)
Specified by:
createRDFSNamedClass in interface OWLModel

createRDFSNamedClass

public RDFSNamedClass createRDFSNamedClass(String name,
                                           Collection parents,
                                           RDFSClass rdfType)
Description copied from interface: OWLModel
Creates an RDFSNamedClass (or perhaps an OWLNamedClass) with given name, superclasses and rdf:type.

Specified by:
createRDFSNamedClass in interface OWLModel
Parameters:
name - the name of the new class
parents - the parents
rdfType - the rdf:type of the new class
Returns:
the new class

createRDFSNamedSubclass

public RDFSNamedClass createRDFSNamedSubclass(String name,
                                              RDFSNamedClass superclass)
Description copied from interface: OWLModel
Creates a new named OWL class which has exactly a given superclass. This is a convenience method which removes the need to remove the root class.

Specified by:
createRDFSNamedSubclass in interface OWLModel
Parameters:
name - the name of the new class
superclass - the superclass it shall have
Returns:
the new OWLNamedClass

createRDFUntypedResource

public RDFUntypedResource createRDFUntypedResource(String uri)
Description copied from interface: OWLModel
Creates an untyped rdf:Resource for a given URI. The caller must make sure that no resource with the same URI already exists.

Specified by:
createRDFUntypedResource in interface OWLModel
Parameters:
uri - the URI to create an untyped resource for
Returns:
the new RDFUntypedResource

createRDFProperty

public RDFProperty createRDFProperty(String name)
Specified by:
createRDFProperty in interface OWLModel

createTriple

public Triple createTriple(RDFResource subject,
                           RDFProperty predicate,
                           Object object)
Description copied from interface: OWLModel
Creates a new Triple. This method should be used instead of creating an instance of DefaultTriple directly. The model is not changed at all by this.

Specified by:
createTriple in interface OWLModel
Parameters:
subject - the subject of the Triple
predicate - the predicate of the Triple
object - the object of the Triple
Returns:
a new Triple

getAllImports

public Set getAllImports()
Description copied from interface: OWLModel
Gets all (transitive) imports in this OWLModel.

Specified by:
getAllImports in interface OWLModel
Returns:
a Set of String URIs of the import statements

createSubclass

public RDFSNamedClass createSubclass(String name,
                                     RDFSNamedClass superclass)
Description copied from interface: OWLModel
Creates a subclass of a superclass. The new class will have the same rdf:type as its parent.

Specified by:
createSubclass in interface OWLModel
Parameters:
name - the name of the new subclass or null for a default name
superclass - the superclass
Returns:
the new subclass

createSubclass

public RDFSNamedClass createSubclass(String name,
                                     Collection superclasses)
Description copied from interface: OWLModel
Creates a subclass of a number of superclasses. The new class will have the same rdf:type as its first parent

Specified by:
createSubclass in interface OWLModel
Parameters:
name - the name of the new subclass or null for a default name
superclasses - a Collection of RDFSClasses
Returns:
the new subclass

createOWLSomeValuesFrom

public OWLSomeValuesFrom createOWLSomeValuesFrom()
Specified by:
createOWLSomeValuesFrom in interface OWLModel

createOWLSomeValuesFrom

public OWLSomeValuesFrom createOWLSomeValuesFrom(RDFProperty property,
                                                 RDFResource filler)
Specified by:
createOWLSomeValuesFrom in interface OWLModel

createOWLSomeValuesFrom

public OWLSomeValuesFrom createOWLSomeValuesFrom(RDFProperty property,
                                                 RDFSLiteral[] oneOfValues)
Specified by:
createOWLSomeValuesFrom in interface OWLModel

createSubproperty

public RDFProperty createSubproperty(String name,
                                     RDFProperty superProperty)
Description copied from interface: OWLModel
Creates a new property as a subproperty of an existing property. The new property will get the same type as the superproperty.

Specified by:
createSubproperty in interface OWLModel
Parameters:
name - the name of the new subproperty, or null for a default name
superProperty - the superproperty
Returns:
a new (sub-) property

endTransaction

public boolean endTransaction()
Description copied from interface: OWLModel
Ends the recently opened transaction and commits the state.

Specified by:
endTransaction in interface OWLModel
Returns:
true
See Also:
OWLModel.beginTransaction(java.lang.String)

executeSPARQLQuery

public QueryResults executeSPARQLQuery(String partialQueryText)
                                throws Exception
Description copied from interface: OWLModel
Executes a SPARQL query on this OWLModel. The method will internally add prefix declarations according to the current namespace declarations. The resulting QueryResults object can be used to iterate over the results.

Specified by:
executeSPARQLQuery in interface OWLModel
Parameters:
partialQueryText - the query text, typically beginning with "SELECT"
Returns:
a QueryResults object
Throws:
Exception - if the query string could not be handled

createOWLUnionClass

public OWLUnionClass createOWLUnionClass()
Specified by:
createOWLUnionClass in interface OWLModel

createOWLUnionClass

public OWLUnionClass createOWLUnionClass(Collection clses)
Specified by:
createOWLUnionClass in interface OWLModel

createRDFSLiteral

public RDFSLiteral createRDFSLiteral(Object value)
Description copied from interface: OWLModel
Creates a new RDFSLiteral with a default datatype derived from the value.

Specified by:
createRDFSLiteral in interface OWLModel
Parameters:
value - the value (not null)
Returns:
a new RDFSLiteral

createRDFSLiteral

public RDFSLiteral createRDFSLiteral(String lexicalValue,
                                     RDFSDatatype datatype)
Description copied from interface: OWLModel
Creates a new RDFSLiteral with a given datatype.

Specified by:
createRDFSLiteral in interface OWLModel
Parameters:
lexicalValue - the value in the literal (not null)
datatype - the RDFSDatatype of the value
Returns:
a new RDFSLiteral

createRDFSLiteral

public RDFSLiteral createRDFSLiteral(String value,
                                     String language)
Description copied from interface: OWLModel
Creates a new string-typed literal with a given language.

Specified by:
createRDFSLiteral in interface OWLModel
Parameters:
value - the value in the literal (not null)
language - the language tag of the value (possibly null)
Returns:
a new RDFSLiteral

createRDFSLiteralOrString

public Object createRDFSLiteralOrString(String value,
                                        String language)
Description copied from interface: OWLModel
Creates a new string-typed literal with a given language. If the language is null or empty, then this returns the value as a string only.

Specified by:
createRDFSLiteralOrString in interface OWLModel
Parameters:
value - the value in the literal (not null)
language - the language tag of the value (possibly null)
Returns:
a new RDFSLiteral

deleteAllFrames

public static void deleteAllFrames(OWLModel owlModel)
Deletes all Frames that are not system classes (including OWL system classes).


deleteCls

public void deleteCls(edu.stanford.smi.protege.model.Cls cls)
Specified by:
deleteCls in interface ProtegeKnowledgeBase

ensureProtegeMetaOntologyImported

public boolean ensureProtegeMetaOntologyImported()
Makes sure that the Protege meta ontology is imported in an ontology tag that has rdf:about="".


ensureProtegePrefixExists

private void ensureProtegePrefixExists()

getOWLAllDifferents

public Collection getOWLAllDifferents()
Description copied from interface: OWLModel
Gets a collection of all OWLAllDifferents in the knowlegde base.

Specified by:
getOWLAllDifferents in interface OWLModel
Returns:
a collection of 'em

getOWLAllDifferentClass

public RDFSNamedClass getOWLAllDifferentClass()
Specified by:
getOWLAllDifferentClass in interface OWLModel

getOWLAnnotationProperties

public Collection getOWLAnnotationProperties()
Description copied from interface: OWLModel
Gets all annotation properties.

Specified by:
getOWLAnnotationProperties in interface OWLModel
Returns:
the annotation properties

getAnonymousRootCls

public edu.stanford.smi.protege.model.Cls getAnonymousRootCls()
Deprecated.  

Specified by:
getAnonymousRootCls in interface OWLModel

getBrowserText

public String getBrowserText(edu.stanford.smi.protege.model.Instance instance)
Specified by:
getBrowserText in interface ProtegeKnowledgeBase

getChangedInferredClasses

public Collection getChangedInferredClasses()
Description copied from interface: OWLModel
Gets all named classes where the classification status is OWLNames.CLASSIFICATION_STATUS_CONSISTENT_AND_CHANGED, i.e. all classes that were identified to move by the most recent invokation of a classifier.

Specified by:
getChangedInferredClasses in interface OWLModel
Returns:
a Collection of OWLNamedClass instances

getCommonSuperclass

public RDFSNamedClass getCommonSuperclass(Collection classes)
Description copied from interface: OWLModel
Gets the most specific common superclass of a given collection of named classes.

Specified by:
getCommonSuperclass in interface OWLModel
Parameters:
classes - the RDFSNamedClasses to get the superclass of (at least one)
Returns:
the most specific common superclass of all classes, e.g. owl:Thing

getProtegeClassificationStatusProperty

public RDFProperty getProtegeClassificationStatusProperty()
Description copied from interface: OWLModel
Gets the property that is used internally to store the classification status of a class.

Specified by:
getProtegeClassificationStatusProperty in interface OWLModel
Returns:
the protege:classificationStatus property

getClsesWithClassificationStatus

private Collection getClsesWithClassificationStatus(int status)

getOWLDatatypeProperty

public OWLDatatypeProperty getOWLDatatypeProperty(String name)
Specified by:
getOWLDatatypeProperty in interface OWLModel

getOWLDatatypePropertyClass

public OWLNamedClass getOWLDatatypePropertyClass()
Description copied from interface: OWLModel
Gets the standard metaclass of all datatype slots/properties.

Specified by:
getOWLDatatypePropertyClass in interface OWLModel
Returns:
the metaclass

getOWLDeprecatedClassClass

public RDFSNamedClass getOWLDeprecatedClassClass()
Specified by:
getOWLDeprecatedClassClass in interface OWLModel

getDefaultLanguage

public String getDefaultLanguage()
Description copied from interface: OWLModel
Gets the default language specified by the user through an annotation property at owl:Ontology.

Specified by:
getDefaultLanguage in interface OWLModel
Returns:
the default language or null for none

getDefaultOWLOntology

public OWLOntology getDefaultOWLOntology()
Specified by:
getDefaultOWLOntology in interface OWLModel

getDomainlessProperties

public Collection getDomainlessProperties()
Description copied from interface: OWLModel
Gets all properties that have owl:Thing as their domain. This includes all properties that have no domain statement at all.

Specified by:
getDomainlessProperties in interface OWLModel
Returns:
a Collection of RDFProperties

getFloatDatatypes

public Set getFloatDatatypes()
Description copied from interface: OWLModel
Gets all float XML Schema datatypes, including xsd:float etc. For these datatypes, the method RDFSLiteral.getFloat() is valid.

Specified by:
getFloatDatatypes in interface OWLModel
Returns:
the float types

getIntegerDatatypes

public Set getIntegerDatatypes()
Description copied from interface: OWLModel
Gets all integer XML Schema datatypes, including xsd:int etc. For these datatypes, the method RDFSLiteral.getInt() is valid.

Specified by:
getIntegerDatatypes in interface OWLModel
Returns:
the integer types

getOWLDifferentFromProperty

public RDFProperty getOWLDifferentFromProperty()
Specified by:
getOWLDifferentFromProperty in interface OWLModel

getOWLDisjointWithProperty

public RDFProperty getOWLDisjointWithProperty()
Specified by:
getOWLDisjointWithProperty in interface OWLModel

getOWLEquivalentPropertyProperty

public RDFProperty getOWLEquivalentPropertyProperty()
Specified by:
getOWLEquivalentPropertyProperty in interface OWLModel

getOWLOneOfProperty

public RDFProperty getOWLOneOfProperty()
Description copied from interface: OWLModel
Gets the owl:oneOf property.

Specified by:
getOWLOneOfProperty in interface OWLModel
Returns:
owl:oneOf

getOWLProject

public OWLProject getOWLProject()
Description copied from interface: OWLModel
Gets the associated OWLProject, which can be used to store project-specific settings.

Specified by:
getOWLProject in interface OWLModel
Returns:
the OWLProject (never null)

getRepositoryManager

public RepositoryManager getRepositoryManager()
Specified by:
getRepositoryManager in interface OWLModel

getRDFExternalResource

public RDFExternalResource getRDFExternalResource(String uri)
Deprecated.  

Specified by:
getRDFExternalResource in interface OWLModel

getRDFExternalResourceClass

public RDFSClass getRDFExternalResourceClass()
Deprecated.  

Specified by:
getRDFExternalResourceClass in interface OWLModel
See Also:
OWLModel.getRDFUntypedResourcesClass()

getRDFFirstProperty

public RDFProperty getRDFFirstProperty()
Description copied from interface: OWLModel
Gets the rdf:first property.

Specified by:
getRDFFirstProperty in interface OWLModel
Returns:
rdf:first

getInconsistentClasses

public Collection getInconsistentClasses()
Description copied from interface: OWLModel
Gets all classes which have been marked as inconsistent.

Specified by:
getInconsistentClasses in interface OWLModel
Returns:
a Collection of NamedClses

getJenaModel

public com.hp.hpl.jena.rdf.model.Model getJenaModel()
Description copied from interface: OWLModel
Gets a (read-only) Jena Model serving as a live view upon the Protege TripleStores.

Specified by:
getJenaModel in interface OWLModel
Returns:
a Jena Model

getOWLAnnotationPropertyClass

public RDFSNamedClass getOWLAnnotationPropertyClass()
Specified by:
getOWLAnnotationPropertyClass in interface OWLModel

getOWLClassParser

public OWLClassParser getOWLClassParser()
Description copied from interface: OWLModel
Gets the OWLClassParser for the current class expression syntax.

Specified by:
getOWLClassParser in interface OWLModel
Returns:
the currently used parser

getOWLClassDisplay

public OWLClassDisplay getOWLClassDisplay()
Description copied from interface: OWLModel
Gets the currently used renderer for classes into display strings.

Specified by:
getOWLClassDisplay in interface OWLModel
Returns:
the OWLClassDisplay
See Also:
OWLModel.setOWLClassDisplay(edu.stanford.smi.protegex.owl.model.classdisplay.OWLClassDisplay)

getProtegeInferredSubclassesProperty

public RDFProperty getProtegeInferredSubclassesProperty()
Specified by:
getProtegeInferredSubclassesProperty in interface OWLModel

getProtegeInferredSuperclassesProperty

public RDFProperty getProtegeInferredSuperclassesProperty()
Specified by:
getProtegeInferredSuperclassesProperty in interface OWLModel

getRDFSDomainProperty

public RDFProperty getRDFSDomainProperty()
Description copied from interface: OWLModel
Gets the rdfs:domain property.

Specified by:
getRDFSDomainProperty in interface OWLModel
Returns:
rdfs:domain

getRDFSIsDefinedByProperty

public RDFProperty getRDFSIsDefinedByProperty()
Specified by:
getRDFSIsDefinedByProperty in interface OWLModel

getRDFSLabelProperty

public RDFProperty getRDFSLabelProperty()
Specified by:
getRDFSLabelProperty in interface OWLModel

getRDFResourceCount

public int getRDFResourceCount()
Description copied from interface: OWLModel
Gets the number of all RDFResources in this model. This method is useful to estimate the number of iterations for an algorithm without accessing all resources. This is equivalent to getRDFResources().size(), but much more efficient than that.

Specified by:
getRDFResourceCount in interface OWLModel
Returns:
the number of RDFResources

getRDFResources

public Collection getRDFResources()
Description copied from interface: OWLModel
Gets a list of all RDFResources in this model.

Specified by:
getRDFResources in interface OWLModel
Returns:
a Collection of RDFResource objects

getRDFResourcesWithPropertyValue

public Collection getRDFResourcesWithPropertyValue(RDFProperty property,
                                                   Object value)
Description copied from interface: OWLModel
Gets all RDFResources that have a given value for a given property.

Specified by:
getRDFResourcesWithPropertyValue in interface OWLModel
Parameters:
property - the RDFProperty
value - the value (must match exactly)
Returns:
a Collection of RDFResources

getRDFResources

public static Collection getRDFResources(edu.stanford.smi.protege.model.KnowledgeBase kb,
                                         Collection frames)

getRDFListClass

public RDFSNamedClass getRDFListClass()
Description copied from interface: OWLModel
Gets the rdf:List class.

Specified by:
getRDFListClass in interface OWLModel
Returns:
rdf:List

getRDFUntypedResource

public RDFUntypedResource getRDFUntypedResource(String uri,
                                                boolean createOnDemand)
Description copied from interface: OWLModel
Gets an RDFUntypedResource for a given string. If no existing instance of this URI is found, the method can be instructed to create one.

Specified by:
getRDFUntypedResource in interface OWLModel
Parameters:
uri - the URI to look up
createOnDemand - true to have the system create one if it doesn't exist
Returns:
the RDFUntypedResource or null if none currently exists.

getRDFUntypedResourcesClass

public RDFSNamedClass getRDFUntypedResourcesClass()
Description copied from interface: OWLModel
Gets the internal type of all untyped resources.

Specified by:
getRDFUntypedResourcesClass in interface OWLModel
Returns:
the class of untyped resources

getResourceNameMatches

public Collection getResourceNameMatches(String nameExpression,
                                         int maxMatches)
Description copied from interface: OWLModel
Gets all RDFResources that have a matching name (possibly using wildcards).

Specified by:
getResourceNameMatches in interface OWLModel
Parameters:
nameExpression - the name pattern
maxMatches - the maximum number of hits to be returned

getOWLDataRangeClass

public RDFSNamedClass getOWLDataRangeClass()
Description copied from interface: OWLModel
Gets the class owl:DataRange, which is used to represent enumerations of datatype values.

Specified by:
getOWLDataRangeClass in interface OWLModel
Returns:
owl:DataRange

getOWLIntersectionOfProperty

public RDFProperty getOWLIntersectionOfProperty()
Specified by:
getOWLIntersectionOfProperty in interface OWLModel

getOWLNamedClass

public OWLNamedClass getOWLNamedClass(String name)
Description copied from interface: OWLModel
A convenience method which includes the typecast after getCls(). The invoker must make sure that the name really reflects a OWLNamedClass.

Specified by:
getOWLNamedClass in interface OWLModel
Parameters:
name - the name of the OWLNamedClass to get
Returns:
a OWLNamedClass

getOWLNamedClassClass

public OWLNamedClass getOWLNamedClassClass()
Description copied from interface: OWLModel
Gets the standard metaclass of all named classes.

Specified by:
getOWLNamedClassClass in interface OWLModel
Returns:
the metaclass owl:Class

getOWLValuesFromProperty

public RDFProperty getOWLValuesFromProperty()
Description copied from interface: OWLModel
Gets the owl:valuesFrom property (used for qualified cardinality restrictions.

Specified by:
getOWLValuesFromProperty in interface OWLModel
Returns:
the owl:valuesFrom property

getMatchingResources

public Collection getMatchingResources(RDFProperty property,
                                       String matchString,
                                       int maxMatches)
Description copied from interface: OWLModel
Gets all RDFResources that have a matching value for a given property.

Specified by:
getMatchingResources in interface OWLModel
Parameters:
property - the (string) property to compare to
matchString - the match string (can include wild cards). The matching is case insensitive.
maxMatches - the maximum number of matches (-1 for all matches, which can be a lot!)
Returns:
the matching RDFResources

getNextAnonymousResourceName

public String getNextAnonymousResourceName()
Description copied from interface: OWLModel
Gets the next name that can be used to create an "anonymous" instance. Anonymous resources don't exist in Protege, so we need to use naming conventions to mark those anonymous instances, which will then be converted back to real anonymous nodes in the OWL file (e.g. by the JenaCreator).

Specified by:
getNextAnonymousResourceName in interface OWLModel
Returns:
a suitable name for an "anonymous" resource

getRDFNil

public RDFList getRDFNil()
Description copied from interface: OWLModel
Gets the placeholder for empty rdf:Lists.

Specified by:
getRDFNil in interface OWLModel
Returns:
rdf:nil

getRDFProperties

public Collection getRDFProperties()
Description copied from interface: OWLModel
Gets a collection of all RDFProperties (or subclasses thereof).

Specified by:
getRDFProperties in interface OWLModel
Returns:
a Collection of RDFProperties

getRDFResource

public RDFResource getRDFResource(String name)
Description copied from interface: OWLModel
Gets an RDFResource by its name.

Specified by:
getRDFResource in interface OWLModel
Parameters:
name - the name of the resource
Returns:
an RDFResource or null if none was found under that name

getRDFResourceAs

public RDFResource getRDFResourceAs(String name,
                                    Class javaInterface)
Description copied from interface: OWLModel
Combines the calls getRDFResource(name).as(javaInterface). Warning: No checks are done.

Specified by:
getRDFResourceAs in interface OWLModel
Parameters:
name - the name of the resource to get
javaInterface - the target type of the result
Returns:
an instance of the Java interface representing the resource, or null
See Also:
OWLModel.getRDFResource(java.lang.String), RDFResource.as(java.lang.Class)

getOWLIndividual

public OWLIndividual getOWLIndividual(String name)
Specified by:
getOWLIndividual in interface OWLModel

getOWLNothing

public OWLNamedClass getOWLNothing()
Description copied from interface: OWLModel
Gets the system class owl:Nothing, which represents the empty set for reasoners.

Specified by:
getOWLNothing in interface OWLModel
Returns:
the Nothing class

getOWLRestrictionsOnProperty

public Collection getOWLRestrictionsOnProperty(RDFProperty property)
Description copied from interface: OWLModel
Gets a Collection of all Restrictions that are defined on a given property.

Specified by:
getOWLRestrictionsOnProperty in interface OWLModel
Parameters:
property - the property to get all Restrictions for
Returns:
a Collection of OWLRestriction objects

getSearchSynonymProperties

public Collection getSearchSynonymProperties()
Description copied from interface: OWLModel
Gets the slots that are used for matching when the user searches for a frame in the search fields. These are used in addition to the :NAME slot in the getFrameNameMatches() method.

Specified by:
getSearchSynonymProperties in interface OWLModel
Returns:
the collection of synonym slots (by default: an empty collection)

getOWLObjectProperty

public OWLObjectProperty getOWLObjectProperty(String name)
Specified by:
getOWLObjectProperty in interface OWLModel

getOWLObjectPropertyClass

public OWLNamedClass getOWLObjectPropertyClass()
Description copied from interface: OWLModel
Gets the standard metaclass of all object slots/properties.

Specified by:
getOWLObjectPropertyClass in interface OWLModel
Returns:
the metaclass

getOWLOntologies

public Collection getOWLOntologies()
Description copied from interface: OWLModel
Gets all OWLOntologies in the current model. This always includes the default ontology.

Specified by:
getOWLOntologies in interface OWLModel
Returns:
a Collection of OWLOntologies
See Also:
OWLModel.getDefaultOWLOntology()

getOWLOntologyByURI

public OWLOntology getOWLOntologyByURI(String uri)
Description copied from interface: OWLModel
Gets the OWLOntology with a given URI.

Specified by:
getOWLOntologyByURI in interface OWLModel
Parameters:
uri - the URI to look up
Returns:
the OWLOntology or null if it does not exist yet

getOWLOntologyClass

public OWLNamedClass getOWLOntologyClass()
Specified by:
getOWLOntologyClass in interface OWLModel

getOWLOntologyProperties

public Collection getOWLOntologyProperties()
Description copied from interface: OWLModel
Gets the owl:OntologyProperties defined in OWL. These are incompatibleWith etc.

Specified by:
getOWLOntologyProperties in interface OWLModel
Returns:
the Ontology properties

getOWLClasses

public Collection getOWLClasses()
Deprecated. use getRDFSClasses instead


getOWLFrameStore

public OWLFrameStore getOWLFrameStore()
Description copied from interface: OWLModel
Provides low level access to some internal Protege detail - normally not needed.

Specified by:
getOWLFrameStore in interface OWLModel

getOWLFunctionalPropertyClass

public RDFSNamedClass getOWLFunctionalPropertyClass()
Specified by:
getOWLFunctionalPropertyClass in interface OWLModel

getOWLInverseFunctionalPropertyClass

public RDFSNamedClass getOWLInverseFunctionalPropertyClass()
Specified by:
getOWLInverseFunctionalPropertyClass in interface OWLModel

getOWLIndividuals

public Collection getOWLIndividuals()
Description copied from interface: OWLModel
Gets those Instances in the ontology that are instances of a OWLNamedClass. This is equivalent to getOWLIndividuals(false).

Specified by:
getOWLIndividuals in interface OWLModel
Returns:
the OWL instances

getOWLIndividuals

public Collection getOWLIndividuals(boolean onlyVisibleClasses)
Description copied from interface: OWLModel
Gets those Instances in the ontology that are instances of a OWLNamedClass.

Specified by:
getOWLIndividuals in interface OWLModel
Parameters:
onlyVisibleClasses - true to only return instanceso of visible classes
Returns:
the OWL instances

getOWLProperty

public OWLProperty getOWLProperty(String name)
Description copied from interface: OWLModel
A convenience method including typecast.

Specified by:
getOWLProperty in interface OWLModel
Parameters:
name - the name of the property to get
Returns:
(OWLProperty) getRDFProperty(name)

getOWLSystemResources

public Collection getOWLSystemResources()
Description copied from interface: OWLModel
Gets a Collection of all system resources installed by the OWL Plugin. These are not editable and not included, but isSystem().

Specified by:
getOWLSystemResources in interface OWLModel
Returns:
a Collection of system resources

getOWLSystemFramesArray

private edu.stanford.smi.protege.model.Frame[] getOWLSystemFramesArray()

getOWLThingClass

public OWLNamedClass getOWLThingClass()
Description copied from interface: OWLModel
Gets the root class of the OWL class hierarchy (owl:Thing).

Specified by:
getOWLThingClass in interface OWLModel
Returns:
owl:Thing

getProtegeAllowedParentProperty

public RDFProperty getProtegeAllowedParentProperty()
Description copied from interface: OWLModel
Gets the property protege:allowedParent (if it exists)

Specified by:
getProtegeAllowedParentProperty in interface OWLModel
Returns:
the property or null

getOWLValueType

public edu.stanford.smi.protege.model.ValueType getOWLValueType(String uri)
Description copied from interface: OWLModel
Gets the Protege ValueType that represents a given URI string.

Specified by:
getOWLValueType in interface OWLModel
Parameters:
uri - the URI (e.g., "http://www.w3.org/2001/XMLSchema#float")
Returns:
the ValueType or null if uri is invalid

getRDFIndividual

public RDFIndividual getRDFIndividual(String name)
Specified by:
getRDFIndividual in interface OWLModel

getRDFIndividuals

public Collection getRDFIndividuals()
Description copied from interface: OWLModel
Gets those Instances in the ontology that are instances of an RDFSNamedClass. This includes all OWL individuals.

Specified by:
getRDFIndividuals in interface OWLModel
Returns:
the RDF instances

getRDFIndividuals

public Collection getRDFIndividuals(boolean onlyVisibleClasses)
Description copied from interface: OWLModel
Gets those Instances in the ontology that are instances of an RDFSNamedClass.

Specified by:
getRDFIndividuals in interface OWLModel
Parameters:
onlyVisibleClasses - true to only return instances of visible classes.
Returns:
the RDF instances

getRDFIndividuals

private Collection getRDFIndividuals(Iterator it,
                                     boolean onlyVisibleClasses)

getRDFSNamedClassClass

public RDFSNamedClass getRDFSNamedClassClass()
Description copied from interface: OWLModel
Gets the rdfs:Class metaclass

Specified by:
getRDFSNamedClassClass in interface OWLModel
Returns:
rdfs:Class

getRDFSNamedClass

public RDFSNamedClass getRDFSNamedClass(String name)
Specified by:
getRDFSNamedClass in interface OWLModel

getRDFProperty

public RDFProperty getRDFProperty(String name)
Description copied from interface: OWLModel
A convenience method to access a slot as RDFProperty.

Specified by:
getRDFProperty in interface OWLModel
Parameters:
name - the name of the slot to get
Returns:
(RDFProperty) getSlot(name)

getRDFPropertyClass

public RDFSNamedClass getRDFPropertyClass()
Description copied from interface: OWLModel
Gets the rdf:Property metaclass.

Specified by:
getRDFPropertyClass in interface OWLModel
Returns:
rdf:Property

getProtegeReadOnlyProperty

public OWLDatatypeProperty getProtegeReadOnlyProperty()
Specified by:
getProtegeReadOnlyProperty in interface OWLModel
Returns:
the Slot ProtegeNames.READ_ONLY

getRDFSDatatypeByName

public RDFSDatatype getRDFSDatatypeByName(String name)
Description copied from interface: OWLModel
Gets an XML Schema Datatype using the prefix notation (e.g. "xsd:int").

Specified by:
getRDFSDatatypeByName in interface OWLModel
Parameters:
name - the name of the datatype to get
Returns:
the RDFSDatatype

getRDFSDatatypeByURI

public RDFSDatatype getRDFSDatatypeByURI(String uri)
Description copied from interface: OWLModel
Gets an XML Schema Datatype by its URI (e.g. XSDDatatype.XSDint).

Specified by:
getRDFSDatatypeByURI in interface OWLModel
Parameters:
uri - the URI of the datatype to get
Returns:
the RDFSDatatype

getRDFSDatatypeOfValue

public RDFSDatatype getRDFSDatatypeOfValue(Object valueOrRDFSLiteral)
Description copied from interface: OWLModel
Gets the RDFSDatatype of a given primitive value, which can be either a standard value (e.g. Integer, Float), or an RDFSLiteral.

Specified by:
getRDFSDatatypeOfValue in interface OWLModel
Parameters:
valueOrRDFSLiteral - the value object
Returns:
the RDFSDatatype of this value

getRDFSDatatypes

public Collection getRDFSDatatypes()
Description copied from interface: OWLModel
Gets a Collection of the (named) RDF/XML Schema datatypes.

Specified by:
getRDFSDatatypes in interface OWLModel
Returns:
the datatype objects (instance of RDFSDatatype)

getRDFRestProperty

public RDFProperty getRDFRestProperty()
Description copied from interface: OWLModel
Gets the rdf:rest property, which is used to describe the rest of an rdf:List.

Specified by:
getRDFRestProperty in interface OWLModel
Returns:
the rdf:rest property (never null)

getRDFXMLLiteralType

public RDFSDatatype getRDFXMLLiteralType()
Description copied from interface: OWLModel
Gets the resource representing the datatype rdf:XMLLiteral.

Specified by:
getRDFXMLLiteralType in interface OWLModel
Returns:
rdf:XMLLiteral

getOWLRestrictionMetaclasses

public RDFSNamedClass[] getOWLRestrictionMetaclasses()
Description copied from interface: OWLModel
Gets the metaclasses of the available OWLRestriction kinds.

Specified by:
getOWLRestrictionMetaclasses in interface OWLModel
Returns:
an Array of metaclasses

getRootCls

public edu.stanford.smi.protege.model.Cls getRootCls()
Specified by:
getRootCls in interface ProtegeKnowledgeBase

getRootSlotMetaCls

public edu.stanford.smi.protege.model.Cls getRootSlotMetaCls()
Specified by:
getRootSlotMetaCls in interface ProtegeKnowledgeBase

getOWLSameAsProperty

public RDFProperty getOWLSameAsProperty()
Specified by:
getOWLSameAsProperty in interface OWLModel

getOWLUnionOfProperty

public RDFProperty getOWLUnionOfProperty()
Specified by:
getOWLUnionOfProperty in interface OWLModel

getRDFSClassMetaClassCls

public edu.stanford.smi.protege.model.Cls getRDFSClassMetaClassCls()

getOWLNamedClassMetaClassCls

public edu.stanford.smi.protege.model.Cls getOWLNamedClassMetaClassCls()

getOWLDatatypePropertyMetaClassCls

public edu.stanford.smi.protege.model.Cls getOWLDatatypePropertyMetaClassCls()

getOWLObjectPropertyMetaClassCls

public edu.stanford.smi.protege.model.Cls getOWLObjectPropertyMetaClassCls()

getOWLAllDifferentClassCls

public edu.stanford.smi.protege.model.Cls getOWLAllDifferentClassCls()

getRDFListCls

public edu.stanford.smi.protege.model.Cls getRDFListCls()

getOWLOntologyCls

public edu.stanford.smi.protege.model.Cls getOWLOntologyCls()

getProtegeSubclassesDisjointProperty

public RDFProperty getProtegeSubclassesDisjointProperty()
Specified by:
getProtegeSubclassesDisjointProperty in interface OWLModel
Returns:
the Slot OWLNames.Slot.SUBCLASSES_DISJOINT

getRDFTypeProperty

public RDFProperty getRDFTypeProperty()
Description copied from interface: OWLModel
Gets the rdf:type property.

Specified by:
getRDFTypeProperty in interface OWLModel
Returns:
rdf:type as an RDFProperty

getSystemAnnotationProperties

public RDFProperty[] getSystemAnnotationProperties()
Description copied from interface: OWLModel
Gets the pre-defined system annotation slots such as rdfs:comment.

Specified by:
getSystemAnnotationProperties in interface OWLModel
Returns:
the system annotation slots

getTodoAnnotationPrefix

public String getTodoAnnotationPrefix()
Description copied from interface: OWLModel
Gets the prefix used to distinguish "to-do" list items from other values of the to-do list property.

Specified by:
getTodoAnnotationPrefix in interface OWLModel
Returns:
the current prefix (as specified in an owl:Ontology annotation)

getTodoAnnotationProperty

public OWLDatatypeProperty getTodoAnnotationProperty()
Description copied from interface: OWLModel
Gets the (annotation) slot that is used to represent "to-do" list items in this knowledge base. This can be specified using the appropriate annotation value in the owl:Ontology.

Specified by:
getTodoAnnotationProperty in interface OWLModel
Returns:
the current to-do slot (default: OWLNames.Slot.VERSION_INFO)

getUsedLanguages

public String[] getUsedLanguages()
Description copied from interface: OWLModel
Gets the list of language prefixes defined by the user in the owl:Ontology. This can be used to provide default values in language selection boxes.

Specified by:
getUsedLanguages in interface OWLModel
Returns:
a list of language prefixes (e.g. ["de", "en", "fr"])

getUserDefinedOWLNamedClasses

public Collection getUserDefinedOWLNamedClasses()
Description copied from interface: OWLModel
Gets a Collection of all user-defined named OWL classes in this knowledge base. Note that this returns neither anonymous classes such as Restrictions nor system classes. like owl:Thing and owl:Nothing.

Specified by:
getUserDefinedOWLNamedClasses in interface OWLModel
Returns:
a Collection of OWLNamedClass instances

getUserDefinedRDFIndividuals

public Collection getUserDefinedRDFIndividuals(boolean onlyVisibleClasses)
Description copied from interface: OWLModel
Gets all non-system individuals in this OWLModel.

Specified by:
getUserDefinedRDFIndividuals in interface OWLModel
Parameters:
onlyVisibleClasses - true to only return instances of visible classes
Returns:
a collection of RDFResources

getUserDefinedInstances

private Collection getUserDefinedInstances(edu.stanford.smi.protege.model.Cls cls)

getUserDefinedInstances

private Collection getUserDefinedInstances(Collection instances)

getUserDefinedOWLProperties

public Collection getUserDefinedOWLProperties()
Description copied from interface: OWLModel
Gets a Collection of all user-defined OWLProperties in this knowledge base.

Specified by:
getUserDefinedOWLProperties in interface OWLModel
Returns:
a Collection of OWLProperty objects

getUserDefinedOWLObjectProperties

public Collection getUserDefinedOWLObjectProperties()
Description copied from interface: OWLModel
Gets a Collection of all user-defined OWLObjectProperties in this knowledge base.

Specified by:
getUserDefinedOWLObjectProperties in interface OWLModel
Returns:
a Collection of OWLObjectProperty objects.

getUserDefinedOWLDatatypeProperties

public Collection getUserDefinedOWLDatatypeProperties()
Description copied from interface: OWLModel
Gets a Collection of all user-defined OWLDatatypeProperties in this knowledge base.

Specified by:
getUserDefinedOWLDatatypeProperties in interface OWLModel
Returns:
a Collection of OWLDatatypeProperty objects.

getUserDefinedRDFProperties

public Collection getUserDefinedRDFProperties()
Description copied from interface: OWLModel
Gets all user-defined RDF properties in this OWLModel.

Specified by:
getUserDefinedRDFProperties in interface OWLModel
Returns:
a collection of RDFProperty instances

getUserDefinedRDFSNamedClasses

public Collection getUserDefinedRDFSNamedClasses()
Description copied from interface: OWLModel
Gets all user-defined RDFSClses including the OWLNamedClses.

Specified by:
getUserDefinedRDFSNamedClasses in interface OWLModel
Returns:
the user-defined RDFSNamedClasses

getValueTypeURI

public String getValueTypeURI(edu.stanford.smi.protege.model.ValueType valueType)
Description copied from interface: OWLModel
The inverse of getValueType.

Specified by:
getValueTypeURI in interface OWLModel
Parameters:
valueType -
Returns:
the OWL URI of a given ValueType

getVisibleUserDefinedOWLProperties

public Collection getVisibleUserDefinedOWLProperties()
Description copied from interface: OWLModel
Gets a Collection of all user-defined, visible OWLProperties in this knowledge base.

Specified by:
getVisibleUserDefinedOWLProperties in interface OWLModel
Returns:
a Collection of OWLProperty objects

getVisibleUserDefinedInstances

private Collection getVisibleUserDefinedInstances(edu.stanford.smi.protege.model.Cls cls)

getVisibleUserDefinedInstances

private Collection getVisibleUserDefinedInstances(Collection instances)

getVisibleUserDefinedRDFProperties

public Collection getVisibleUserDefinedRDFProperties()
Description copied from interface: OWLModel
Gets all visible, user-defined RDF properties in this knowledge base.

Specified by:
getVisibleUserDefinedRDFProperties in interface OWLModel
Returns:
a collection of RDFProperty instances

getXSDboolean

public RDFSDatatype getXSDboolean()
Description copied from interface: OWLModel
Gets the default datatype for boolean values.

Specified by:
getXSDboolean in interface OWLModel
Returns:
xsd:boolean

getXSDdouble

public RDFSDatatype getXSDdouble()
Description copied from interface: OWLModel
Gets the default datatype for double values.

Specified by:
getXSDdouble in interface OWLModel
Returns:
xsd:double

getXSDfloat

public RDFSDatatype getXSDfloat()
Description copied from interface: OWLModel
Gets the default datatype for float values.

Specified by:
getXSDfloat in interface OWLModel
Returns:
xsd:float

getXSDlong

public RDFSDatatype getXSDlong()
Description copied from interface: OWLModel
Gets the default datatype for long values.

Specified by:
getXSDlong in interface OWLModel
Returns:
xsd:long

getXSDint

public RDFSDatatype getXSDint()
Description copied from interface: OWLModel
Gets the default datatype for integer values.

Specified by:
getXSDint in interface OWLModel
Returns:
xsd:int

getXSDshort

public RDFSDatatype getXSDshort()
Description copied from interface: OWLModel
Gets the default datatype for short values.

Specified by:
getXSDshort in interface OWLModel
Returns:
xsd:short

getXSDbyte

public RDFSDatatype getXSDbyte()
Description copied from interface: OWLModel
Gets the default datatype for byte values.

Specified by:
getXSDbyte in interface OWLModel
Returns:
xsd:byte

getXSDstring

public RDFSDatatype getXSDstring()
Description copied from interface: OWLModel
Gets the default datatype for string values.

Specified by:
getXSDstring in interface OWLModel
Returns:
xsd:string

getXSDbase64Binary

public RDFSDatatype getXSDbase64Binary()
Description copied from interface: OWLModel
Gets the default datatype for byte[] values.

Specified by:
getXSDbase64Binary in interface OWLModel
Returns:
xsd:base64Binary

getXSDdate

public RDFSDatatype getXSDdate()
Description copied from interface: OWLModel
Gets the default datatype for date values.

Specified by:
getXSDdate in interface OWLModel
Returns:
xsd:date

getXSDtime

public RDFSDatatype getXSDtime()
Description copied from interface: OWLModel
Gets the default datatype for time values.

Specified by:
getXSDtime in interface OWLModel
Returns:
xsd:time

getXSDdateTime

public RDFSDatatype getXSDdateTime()
Description copied from interface: OWLModel
Gets the default datatype for timestamp values.

Specified by:
getXSDdateTime in interface OWLModel
Returns:
xsd:dateTime

getXSDduration

public RDFSDatatype getXSDduration()
Description copied from interface: OWLModel
Gets the datatype for duration values.

Specified by:
getXSDduration in interface OWLModel
Returns:
xsd:duration

getXSDanyURI

public RDFSDatatype getXSDanyURI()
Description copied from interface: OWLModel
Gets the default datatype for URI values.

Specified by:
getXSDanyURI in interface OWLModel
Returns:
xsd:anyURI

getXSDdecimal

public RDFSDatatype getXSDdecimal()
Description copied from interface: OWLModel
Gets the default datatype for BigDecimal values.

Specified by:
getXSDdecimal in interface OWLModel
Returns:
xsd:decimal

getXSDinteger

public RDFSDatatype getXSDinteger()
Description copied from interface: OWLModel
Gets the default datatype for BigInteger values.

Specified by:
getXSDinteger in interface OWLModel
Returns:
xsd:integer

getOWLVersionInfoProperty

public RDFProperty getOWLVersionInfoProperty()
Specified by:
getOWLVersionInfoProperty in interface OWLModel

getRDFSRangeProperty

public RDFProperty getRDFSRangeProperty()
Description copied from interface: OWLModel
Gets the rdfs:range property.

Specified by:
getRDFSRangeProperty in interface OWLModel
Returns:
rdfs:range

getRDFSSubPropertyOfProperty

public RDFProperty getRDFSSubPropertyOfProperty()
Description copied from interface: OWLModel
Gets the property rdfs:subPropertyOf

Specified by:
getRDFSSubPropertyOfProperty in interface OWLModel
Returns:
rdfs:subPropertyOf

isAnonymousResource

public boolean isAnonymousResource(RDFResource resource)
Deprecated.  

Specified by:
isAnonymousResource in interface OWLModel
See Also:
RDFResource.isAnonymous()

isAnonymousResourceName

public boolean isAnonymousResourceName(String name)
Specified by:
isAnonymousResourceName in interface OWLModel

isDefaultAnonymousType

public boolean isDefaultAnonymousType(edu.stanford.smi.protege.model.Cls type)

isDefaultAnonymousType

public boolean isDefaultAnonymousType(Collection types)

isOWLSystemFrame

public boolean isOWLSystemFrame(edu.stanford.smi.protege.model.Frame frame)
Deprecated.  

Description copied from interface: OWLModel
Checks whether a given frame is one of the results of getOWLSystemResources.

Specified by:
isOWLSystemFrame in interface OWLModel
Parameters:
frame - the Frame to check
Returns:
true if frame is one of the system frames

isProtegeMetaOntologyImported

public boolean isProtegeMetaOntologyImported()
Specified by:
isProtegeMetaOntologyImported in interface OWLModel

isValidResourceName

public boolean isValidResourceName(String name,
                                   RDFResource resource)
Description copied from interface: OWLModel
Checks whether a given String would be a valid name for a given resource.

Specified by:
isValidResourceName in interface OWLModel
Parameters:
name - the potential name of the resource
resource - the RDFResource to test
Returns:
true if the resource could be renamed to name

isTrueInstance

public boolean isTrueInstance(edu.stanford.smi.protege.model.Instance instance)

listOWLAnonymousClasses

public Iterator listOWLAnonymousClasses()
Description copied from interface: OWLModel
Gets an Iterator of all OWLAnonymousClasses in the ontology.

Specified by:
listOWLAnonymousClasses in interface OWLModel
Returns:
an Iterator of OWLAnonymousClass objects

listOWLNamedClasses

public Iterator listOWLNamedClasses()
Description copied from interface: OWLModel
Gets an Iterator on all OWLNamedClasses in the ontology, including system classes.

Specified by:
listOWLNamedClasses in interface OWLModel
Returns:
an Iterator of OWLNamedClass objects

listRDFProperties

public Iterator listRDFProperties()
Description copied from interface: OWLModel
Gets an Iterator on all RDFProperties in the model, including system properties.

Specified by:
listRDFProperties in interface OWLModel
Returns:
an Iterator of RDFProperty objects

listRDFSNamedClasses

public Iterator listRDFSNamedClasses()
Description copied from interface: OWLModel
Gets an Iterator on all RDFSNamedClasses in the ontology, including system classes.

Specified by:
listRDFSNamedClasses in interface OWLModel
Returns:
an Iterator of RDFSNamedClass objects

listReferences

public Iterator listReferences(Object object,
                               int maxResults)
Description copied from interface: OWLModel
Finds all references to a given object, i.e. all triples that have the given object as their object.

Specified by:
listReferences in interface OWLModel
Parameters:
object - the object to look for
maxResults - the maximum number of expected results
Returns:
an Iterator of type Tuple

listSubjects

public Iterator listSubjects(RDFProperty property)
Description copied from interface: OWLModel
The the subjects of all triples where a given property has any value. The Iterator does not contain duplicates.

Specified by:
listSubjects in interface OWLModel
Parameters:
property - the property to look for
Returns:
an Iterator of RDFResources

setDirectType

public edu.stanford.smi.protege.model.Instance setDirectType(edu.stanford.smi.protege.model.Instance instance,
                                                             edu.stanford.smi.protege.model.Cls type)
Specified by:
setDirectType in interface ProtegeKnowledgeBase

deleteAnonymousSuperclasses

private void deleteAnonymousSuperclasses(OWLNamedClass namedOWLClass)

deleteRestrictionsDependingOnPropertyType

private void deleteRestrictionsDependingOnPropertyType(OWLProperty owlProperty,
                                                       edu.stanford.smi.protege.model.Cls type)

setLoadDefaults

public void setLoadDefaults(boolean value)

setProject

public void setProject(edu.stanford.smi.protege.model.Project project)
Specified by:
setProject in interface ProtegeKnowledgeBase

setSearchSynonymProperties

public void setSearchSynonymProperties(Collection slots)
Specified by:
setSearchSynonymProperties in interface OWLModel
See Also:
OWLModel.getSearchSynonymProperties()

setTaskManager

public void setTaskManager(TaskManager taskManager)
Description copied from interface: OWLModel
Sets the TaskManager.

Specified by:
setTaskManager in interface OWLModel
Parameters:
taskManager - the new TaskManager (not null)
See Also:
OWLModel.getTaskManager()

addOWLTest

public void addOWLTest(OWLTest test)
Specified by:
addOWLTest in interface OWLTestManager

getOWLTests

public OWLTest[] getOWLTests()
Specified by:
getOWLTests in interface OWLTestManager

getOWLTestGroupsSettingsMap

private SettingsMap getOWLTestGroupsSettingsMap()

getOWLTestsSettingsMap

private SettingsMap getOWLTestsSettingsMap()

isAutoRepairEnabled

public boolean isAutoRepairEnabled()
Specified by:
isAutoRepairEnabled in interface OWLTestManager

isOWLTestGroupEnabled

public boolean isOWLTestGroupEnabled(String groupName)
Specified by:
isOWLTestGroupEnabled in interface OWLTestManager

removeOWLTest

public void removeOWLTest(OWLTest test)
Specified by:
removeOWLTest in interface OWLTestManager

setAutoRepairEnabled

public void setAutoRepairEnabled(boolean value)
Specified by:
setAutoRepairEnabled in interface OWLTestManager

setOWLTestGroupEnabled

public void setOWLTestGroupEnabled(String groupName,
                                   boolean value)
Specified by:
setOWLTestGroupEnabled in interface OWLTestManager

updateProtegeMetaOntologyImported

public void updateProtegeMetaOntologyImported()

createUniqueNewFrameName

public String createUniqueNewFrameName(String baseName)

defaultNamespaceChanged

public void defaultNamespaceChanged(String oldValue,
                                    String newValue)
Specified by:
defaultNamespaceChanged in interface NamespaceManagerListener

getResourceNameForURI

public String getResourceNameForURI(String uri)
Description copied from interface: OWLModel
Gets the name of a Frame by converting a URI. The name in the format prefix:localName. If the namespace of the URI is the default namespace, then the prefix will be empty and the name will consist of only the local name.

Specified by:
getResourceNameForURI in interface OWLModel
Parameters:
uri - a fully qualified URI
Returns:
the name of the corresponding Frame

getFrameNameForURI

public String getFrameNameForURI(String uri,
                                 boolean generatePrefix)

getRDFResourceByBrowserText

public RDFResource getRDFResourceByBrowserText(String text)
Description copied from interface: OWLModel
Gets the first resource that has a given browser text. This call is extremely inefficient, because it might iterate through all resources in the knowledge base.

Specified by:
getRDFResourceByBrowserText in interface OWLModel
Parameters:
text - the browser text
Returns:
the Instance or null

getRDFResourceByNameOrBrowserText

public RDFResource getRDFResourceByNameOrBrowserText(String text)
Description copied from interface: OWLModel
Gets the first instance that has a given name or browser text. This call is much faster than the getRDFResourceByBrowserText if the default browser key (:NAME) is used.

Specified by:
getRDFResourceByNameOrBrowserText in interface OWLModel
Parameters:
text -
Returns:
the Instance or null

getRDFSClassCount

public int getRDFSClassCount()
Description copied from interface: OWLModel
Gets the number of rdfs:Classes (or owl:Classes) in this model, including anonymous classes and system classes. This is equivalent to getRDFSClasses().size().

Specified by:
getRDFSClassCount in interface OWLModel
Returns:
the number of classes

getRDFSClasses

public Collection getRDFSClasses()
Description copied from interface: OWLModel
Gets all rdfs:Classes (or owl:Classes) in this model, including anonymous classes and system classes.

Specified by:
getRDFSClasses in interface OWLModel
Returns:
a Collection of RDFSClass objects

getRDFSDatatypeFactory

public RDFSDatatypeFactory getRDFSDatatypeFactory()
Specified by:
getRDFSDatatypeFactory in interface OWLModel

removeProtegeSystemResources

private static void removeProtegeSystemResources(edu.stanford.smi.protege.model.KnowledgeBase kb,
                                                 Collection frames)

getResourcesWithPrefix

public Collection getResourcesWithPrefix(String prefix)
Description copied from interface: OWLModel
Gets all resource in this that have a given prefix.

Specified by:
getResourcesWithPrefix in interface OWLModel
Parameters:
prefix - the prefix to search for
Returns:
a Collection of the matching NamespaceInstances

getLocalNameForResourceName

public String getLocalNameForResourceName(String frameName)
Specified by:
getLocalNameForResourceName in interface OWLModel

getLocalNameForURI

public String getLocalNameForURI(String uri)
Description copied from interface: OWLModel
Gets the local part of an URI, e.g. for http://www.aldi.de/ontologies#Hans this will return the String Hans.

Specified by:
getLocalNameForURI in interface OWLModel
Parameters:
uri - the fully qualified URI
Returns:
the local name in the URI

getNamespaceManager

public NamespaceManager getNamespaceManager()
Description copied from interface: OWLModel
Gets the NamespaceManager used by this knowledge base.

Specified by:
getNamespaceManager in interface OWLModel
Returns:
the NamespaceManager

getNamespaceForResourceName

public String getNamespaceForResourceName(String resourceName)
Specified by:
getNamespaceForResourceName in interface OWLModel

getNamespaceForURI

public String getNamespaceForURI(String uri)
Description copied from interface: OWLModel
Gets the namespace part of a given URI. For http://www.aldi.de/ontologies#Hans this will return http://www.aldi.de/ontologies#.

Specified by:
getNamespaceForURI in interface OWLModel
Parameters:
uri - the fully qualified URI
Returns:
the namespace including the #

getPrefixForResourceName

public String getPrefixForResourceName(String frameName)
Specified by:
getPrefixForResourceName in interface OWLModel

getUniqueFrameName

public String getUniqueFrameName(String name)

getURIForResourceName

public String getURIForResourceName(String name)
Specified by:
getURIForResourceName in interface OWLModel

getURIResolver

public URIResolver getURIResolver()
Description copied from interface: OWLModel
Gets the OWLModel's URIResolver, which is used to convert the URIs of imported ontologies into physical URLs (for saving and loading files).

Specified by:
getURIResolver in interface OWLModel
Returns:
the URIResolver (a DefaultURIResolver by default)
See Also:
OWLModel.setURIResolver(edu.stanford.smi.protegex.owl.jena.URIResolver)

getVisibleResources

public List getVisibleResources(Iterator iterator)
Description copied from interface: OWLModel
Gets a list of resources, only containing the visible entries of a given Iterator.

Specified by:
getVisibleResources in interface OWLModel
Parameters:
iterator - an Iterator of RDFResources
Returns:
a sublist of iterator

getRDFSCommentProperty

public OWLDatatypeProperty getRDFSCommentProperty()
Specified by:
getRDFSCommentProperty in interface OWLModel

getValidNamespaceFrameName

public String getValidNamespaceFrameName(String suggestedName)

getValidOWLFrameName

public static String getValidOWLFrameName(AbstractOWLModel kb,
                                          String suggestedName)

isSlotMetaCls

public boolean isSlotMetaCls(edu.stanford.smi.protege.model.Cls cls)
Specified by:
isSlotMetaCls in interface ProtegeKnowledgeBase

isValidOWLFrameName

public boolean isValidOWLFrameName(String name)

isValidOWLFrameName

public static boolean isValidOWLFrameName(NamespaceManager nsm,
                                          String name)

isValidOWLFrameNamePart

private static boolean isValidOWLFrameNamePart(String name)

namespaceChanged

public void namespaceChanged(String prefix,
                             String oldValue,
                             String newValue)
Specified by:
namespaceChanged in interface NamespaceManagerListener

prefixAdded

public void prefixAdded(String prefix)
Specified by:
prefixAdded in interface NamespaceManagerListener

prefixChanged

public void prefixChanged(String namespace,
                          String oldPrefix,
                          String newPrefix)
Specified by:
prefixChanged in interface NamespaceManagerListener

prefixRemoved

public void prefixRemoved(String prefix)
Specified by:
prefixRemoved in interface NamespaceManagerListener

replacePrefixInInstances

public void replacePrefixInInstances(String oldPrefix,
                                     String newPrefix)
Replaces the prefix of all NamespaceInstances that have an old prefix.

Parameters:
oldPrefix - the old prefix (to look for)
newPrefix - the new prefix (can be null for no prefix)

resetJenaModel

public void resetJenaModel()

setNamespaceManager

public void setNamespaceManager(NamespaceManager namespaceManager)

getRDFSDatatypeClass

public RDFSNamedClass getRDFSDatatypeClass()

getPropertyValueLiterals

public Collection getPropertyValueLiterals(RDFResource resource,
                                           RDFProperty property)

getValueLiterals

public List getValueLiterals(List values)

getRDFSSubClassOfProperty

public RDFProperty getRDFSSubClassOfProperty()
Specified by:
getRDFSSubClassOfProperty in interface OWLModel

getOWLEquivalentClassProperty

public RDFProperty getOWLEquivalentClassProperty()
Specified by:
getOWLEquivalentClassProperty in interface OWLModel

getOWLInverseOfProperty

public RDFProperty getOWLInverseOfProperty()
Specified by:
getOWLInverseOfProperty in interface OWLModel

getOWLDistinctMembersProperty

public RDFProperty getOWLDistinctMembersProperty()

setURIResolver

public void setURIResolver(URIResolver uriResolver)
Description copied from interface: OWLModel
Sets the URIResolver which is used in future calls of getURIResolver().

Specified by:
setURIResolver in interface OWLModel
Parameters:
uriResolver - the new URIResolver
See Also:
OWLModel.getURIResolver()