Index: src/nongnu/cashews/rdf/Graph.java
===================================================================
RCS file: /share/darwin/darwin4/cvs/java/src/nongnu/cashews/rdf/Graph.java,v
retrieving revision 1.2
diff -u -3 -p -u -r1.2 Graph.java
--- src/nongnu/cashews/rdf/Graph.java 2005/02/01 01:05:47 1.2
+++ src/nongnu/cashews/rdf/Graph.java 2005/02/03 00:31:11
@@ -52,4 +52,35 @@ public class Graph
*/
private Set graph;
+ /**
+ * Returns true if the specified object is either of type Graph
,
+ * or a sub-type, and contains an equivalent set of triples. If the
+ * specified object is null, false is returned.
+ *
+ * @param obj the object to compare this object with.
+ * @return true if the two objects are equivalent.
+ */
+ public boolean equals(Object obj)
+ {
+ if (obj == null)
+ return false;
+ if (getClass() == obj.getClass())
+ {
+ Graph g = (Graph) obj;
+ return graph.equals(g.getGraph());
+ }
+ else
+ return false;
+ }
+
+ /**
+ * Returns the graph of RDF triples.
+ *
+ * @return a graph of RDF triples.
+ */
+ public Set getGraph()
+ {
+ return graph;
+ }
+
}
Index: src/nongnu/cashews/rdf/Literal.java
===================================================================
RCS file: Literal.java
diff -N Literal.java
--- /dev/null Thu Feb 3 00:00:04 2005
+++ Literal.java Thu Feb 3 00:31:11 2005
@@ -0,0 +1,35 @@
+/* Literal.java -- Representation of a RDF literal.
+ Copyright (C) 2005 The University of Sheffield.
+
+This file is part of the CASheW-s editor.
+
+The CASheW-s editor is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+The CASheW-s editor is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with The CASheW-s editor; see the file COPYING. If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+*/
+
+package nongnu.cashews.rdf;
+
+/**
+ *
+ * This interface represents an RDF literal. + *
+ * + * @author Andrew John Hughes (address@hidden) + */ +public class Literal + implements RDFObject +{ + +} Index: src/nongnu/cashews/rdf/RDFURI.java =================================================================== RCS file: RDFURI.java diff -N RDFURI.java --- /dev/null Thu Feb 3 00:00:04 2005 +++ RDFURI.java Thu Feb 3 00:31:11 2005 @@ -0,0 +1,46 @@ +/* RDFURI.java -- Representation of a RDF URI. + Copyright (C) 2005 The University of Sheffield. + +This file is part of the CASheW-s editor. + +The CASheW-s editor is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +The CASheW-s editor is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with The CASheW-s editor; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. +*/ + +package nongnu.cashews.rdf; + +import java.net.URI; + +/** + *+ * This interface represents an RDF URI. + *
+ * + * @author Andrew John Hughes (address@hidden) + * @see java.net.URI + */ +public class RDFURI + implements Subject, Predicate, RDFObject +{ + + /** + * The URI itself. + * + * @see java.net.URI + * @serial the uniform resource identifier. + */ + private URI uri; + +}