1 /*
2 * $Id: Statement.java,v 1.1 2004/07/24 18:10:30 roku Exp $
3 *
4 * Copyright 2004 University of Hannover
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18
19 package olr.rdf;
20
21
22
23 public class Statement extends Attribute
24 {
25
26 public Statement(String subject, String predicate, String object)
27 {
28 super(predicate, object);
29 this.subject = Tools.correctURI(subject);
30 }
31
32 public Statement(String subject, String predicate, String object, int ID)
33 {
34 super(predicate, object, ID);
35 this.subject = Tools.correctURI(subject);
36 }
37
38 public String getSubject()
39 {
40 return subject;
41 }
42
43 public String toString()
44 {
45 return String.valueOf(String.valueOf((new StringBuffer(String.valueOf(String.valueOf(subject.toString())))).append(':').append(super.toString())));
46 }
47
48 protected String subject;
49 }