Example #1
0
 /**
  * valueEquals.
  *
  * @param lit a {@link lupos.datastructures.items.literal.Literal} object.
  * @return a boolean.
  */
 public boolean valueEquals(final Literal lit) {
   return (toString().compareTo(lit.toString()) == 0);
 }
 @Override
 public void writeSimpleLiteral(OutputStream os, Literal literal) throws IOException {
   os.write("\"type\": \"literal\", \"value\": ".getBytes());
   os.write(literal.originalString().getBytes());
 }