TripleCollection mGraph = new SimpleMGraph();
NonLiteral resource = new BNode() {
};
mGraph.add(new TripleImpl(resource, RDFS.comment, new PlainLiteralImpl("a resource")));
GraphNode node = new GraphNode(resource, mGraph);
DataFieldResolver dataFieldResolver = new GraphNodeDataFieldResolver(node, simpleFunctions);
StringReader reader = new StringReader("${ns:rdfs=http://www.w3.org/2000/01/rdf-schema#}${rdfs:comment}");
StringWriter writer = new StringWriter();
new DefaultParser(reader, writer).perform(dataFieldResolver);