KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > hp > hpl > jena > ontology > daml > DAMLObjectProperty


1 /*****************************************************************************
2  * Source code information
3  * -----------------------
4  * Original author Ian Dickinson, HP Labs Bristol
5  * Author email Ian.Dickinson@hp.com
6  * Package Jena
7  * Created 4 Jan 2001
8  * Filename $RCSfile: DAMLObjectProperty.java,v $
9  * Revision $Revision: 1.7 $
10  * Release status Preview-release $State: Exp $
11  *
12  * Last modified on $Date: 2005/02/21 12:05:00 $
13  * by $Author: andy_seaborne $
14  *
15  * (c) Copyright 2001, 2002, 2003, 2004, 2005 Hewlett-Packard Development Company, LP
16  * (see footer for full conditions)
17  *****************************************************************************/

18
19 // Package
20
///////////////
21
package com.hp.hpl.jena.ontology.daml;
22
23
24 // Imports
25
///////////////
26

27
28
29 /**
30  * <p>Java encapsulation of an object property in a DAML ontology. An object property
31  * is a partition of the class of properties, in which the range of the property
32  * is a DAML instance (rather than a datatype). Object properties may be transitive
33  * and unambiguous, which are modelled in the specification by sub-classes of
34  * <code>ObjectProperty</code> named <code>TransitiveProperty</code> and
35  * <code>UnambiguousProperty</code>. In this API, transitivity and uniqueness are
36  * modelled as attributes of the DAMLObjectProperty object.</p>
37  *
38  * @author Ian Dickinson, HP Labs (<a HREF="mailto:Ian.Dickinson@hp.com">email</a>)
39  * @version CVS info: $Id: DAMLObjectProperty.java,v 1.7 2005/02/21 12:05:00 andy_seaborne Exp $
40  */

41 public interface DAMLObjectProperty
42     extends DAMLProperty
43 {
44     // Constants
45
//////////////////////////////////
46

47     // External signature methods
48
//////////////////////////////////
49

50
51     /**
52      * <p>Set the flag to indicate that this property is to be considered
53      * transitive - that is, it is defined by the DAML class <code>TransitiveProperty</code>.</p>
54      *
55      * @param transitive True for a transitive property
56      */

57     public void setIsTransitive( boolean transitive );
58
59
60     /**
61      * <p>Answer true if this property is transitive.</p>
62      *
63      * @return True if this property is transitive
64      */

65     public boolean isTransitive();
66
67
68     /**
69      * <p>Set the flag to indicate that this property is to be considered
70      * unabiguous - that is, it is defined by the DAML class <code>UnambiguousProperty</code>.</p>
71      *
72      * @param unambiguous True for a unabiguous property
73      */

74     public void setIsUnambiguous( boolean unambiguous );
75
76
77     /**
78      * <p>Answer true if this property is an unambiguous property.</p>
79      *
80      * @return True if this property is unambiguous
81      */

82     public boolean isUnambiguous();
83
84
85     /**
86      * <p>Property accessor for the <code>inverseOf</code> property of a DAML Property. This denotes
87      * that the named property (say, P) is an inverse of this property (say, Q). Formally,
88      * if (x, y) is an instance of P, then (y, x) is an instance of Q. According to the
89      * DAML specification, inverseOf is only defined for object properties (i.e. not
90      * datatype properties).</p>
91      *
92      * @return Property accessor for <code>inverseOf</code>
93      */

94     public PropertyAccessor prop_inverseOf();
95
96
97
98 }
99
100
101 /*
102     (c) Copyright 2001, 2002, 2003, 2004, 2005 Hewlett-Packard Development Company, LP
103     All rights reserved.
104
105     Redistribution and use in source and binary forms, with or without
106     modification, are permitted provided that the following conditions
107     are met:
108
109     1. Redistributions of source code must retain the above copyright
110        notice, this list of conditions and the following disclaimer.
111
112     2. Redistributions in binary form must reproduce the above copyright
113        notice, this list of conditions and the following disclaimer in the
114        documentation and/or other materials provided with the distribution.
115
116     3. The name of the author may not be used to endorse or promote products
117        derived from this software without specific prior written permission.
118
119     THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
120     IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
121     OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
122     IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
123     INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
124     NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
125     DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
126     THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
127     (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
128     THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
129 */

130
131
Popular Tags