/** * Comparison is by the <var>text</var> property. * * @param object PARAMETER TO DO * @return RETURNED VALUE TO DO */ public int compareTo(java.lang.Object object) { if (object instanceof BNode) { return 1; } if (object instanceof URI) { return 1; } else if (object instanceof Literal) { Literal literal = (Literal) object; return getLabel().compareTo(literal.getLabel()); } else { throw new ClassCastException("Not an RDF node"); } } }