public void testTriplePrettyPrintingWithNodeANY() {
assertEquals("?ANY ?ANY ?ANY .", PrettyPrinter.toString(Triple.ANY));
}
public void testTriplePrettyPrintingWithPrefixMapping() {
PrefixMappingImpl prefixes = new PrefixMappingImpl();
prefixes.setNsPrefixes(PrefixMapping.Standard);
prefixes.setNsPrefix("ex", "http://example.org/");
assertEquals("ex:a rdfs:label \"Example\" .",
PrettyPrinter.toString(new Triple(
Node.createURI("http://example.org/a"),
RDFS.label.asNode(),
Node.createLiteral("Example", null, null)), prefixes));