KickJava   Java API By Example, From Geeks To Geeks.

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


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: DAMLInstance.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 import com.hp.hpl.jena.rdf.model.Property;
29 import com.hp.hpl.jena.util.iterator.ExtendedIterator;
30
31
32
33 /**
34  * Java representation of a DAML Instance.
35  *
36  * @author Ian Dickinson, HP Labs (<a HREF="mailto:Ian.Dickinson@hp.com">email</a>)
37  * @version CVS info: $Id: DAMLInstance.java,v 1.7 2005/02/21 12:05:00 andy_seaborne Exp $
38  */

39 public interface DAMLInstance
40     extends DAMLCommon
41 {
42     // Constants
43
//////////////////////////////////
44

45
46
47     // External signature methods
48
//////////////////////////////////
49

50     /**
51      * Property accessor for <code>daml:sameIndividualAs</code> property on a DAML instance.
52      *
53      * @return a property accessor
54      */

55     public PropertyAccessor prop_sameIndividualAs();
56
57
58     /**
59      * Return an iterator over all of the instances that are the same as this one,
60      * by generating the transitive closure over the <code>daml:samePropertyAs</code>
61      * property.
62      *
63      * @return an iterator whose values will all be DAMLInstance objects
64      */

65     public ExtendedIterator getSameInstances();
66
67
68     /**
69      * Answer an iterator over all of the DAML instances that are equivalent to this
70      * instance, which will be the union of <code>daml:equivalentTo</code> and
71      * <code>daml:sameIndividualAs</code>.
72      *
73      * @return an iterator ranging over every equivalent DAML instance - each value of
74      * the iteration should be a DAMLInstance object.
75      */

76     public ExtendedIterator getEquivalentValues();
77
78
79     /**
80      * Answer a property accessor for a user defined property.
81      *
82      * @param property An RDF or DAML property
83      * @return a property accessor, that simplifies some of the basic operations
84      * of a given property on a given object
85      */

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

121
122
Popular Tags