001 /*
002 * The contents of this file are subject to the Mozilla Public License
003 * Version 1.1 (the "License"); you may not use this file except in
004 * compliance with the License. You may obtain a copy of the License at
005 * http://www.mozilla.org/MPL/
006 *
007 * Software distributed under the License is distributed on an "AS IS" basis,
008 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
009 * the specific language governing rights and limitations under the License.
010 *
011 * The Original Code is Protege-2000.
012 *
013 * The Initial Developer of the Original Code is Stanford University. Portions
014 * created by Stanford University are Copyright (C) 2007. All Rights Reserved.
015 *
016 * Protege was developed by Stanford Medical Informatics
017 * (http://www.smi.stanford.edu) at the Stanford University School of Medicine
018 * with support from the National Library of Medicine, the National Science
019 * Foundation, and the Defense Advanced Research Projects Agency. Current
020 * information about Protege can be obtained at http://protege.stanford.edu.
021 *
022 */
023
024 package edu.stanford.smi.protegex.owl.model;
025
026
027 /**
028 * The common base interface of OWLDatatypeProperty and OWLObjectProperty.
029 *
030 * @author Holger Knublauch <holger@knublauch.com>
031 */
032 public interface OWLProperty extends RDFProperty {
033
034
035 /**
036 * Checks whether this is an inverse functional property.
037 * This is true if this either has the rdf:type owl:InverseFunctionalProperty
038 * or one of its super properties is inverse functional.
039 *
040 * @return true if this is inverse functional
041 */
042 boolean isInverseFunctional();
043
044
045 /**
046 * Checks whether this is an object slot or a datatype slot.
047 * This method is probably hardly ever needed - it is for the
048 * case where instanceof fails because a property has just changed
049 * from datatype to object property and the Java object still has
050 * the old type.
051 *
052 * @return true if this is an Object property
053 */
054 boolean isObjectProperty();
055
056
057 void setInverseFunctional(boolean value);
058 }
059