Literal implements Node { @Override public String getLabel() { int i = _data.lastIndexOf("\""); return NxUtil.unescape(_data.substring(1, i)); } Literal(String data);  Literal(String data, boolean isNTriples);  Literal(String data, String lang);  Literal(String data, Resource dt);  Literal(String data, String lang, Resource dt); private  Literal(String data, String lang, Resource dt, boolean isNTriples); @Override String getLabel(); String getLanguageTag(); Resource getDatatype(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); @Override int compareTo(Node n);  }
@Test public void testGetLabel() { String data = "Test\"{}…"; Literal l = new Literal(data); System.out.println(l); assertEquals("Test\"{}…", l.getLabel()); }