UriRef id = new UriRef("http://www.example.org/test");
UriRef doubleTestField = new UriRef("http://www.example.org/field/double");
LiteralFactory lf = LiteralFactory.getInstance();
graph.add(new TripleImpl(id, doubleTestField, lf.createTypedLiteral(Float.NaN)));
graph.add(new TripleImpl(id, doubleTestField, lf.createTypedLiteral(Float.POSITIVE_INFINITY)));
graph.add(new TripleImpl(id, doubleTestField, lf.createTypedLiteral(Float.NEGATIVE_INFINITY)));
RdfValueFactory vf = new RdfValueFactory(graph);
Representation r = vf.createRepresentation(id.getUnicodeString());
Set<Float> expected = new HashSet<Float>(Arrays.asList(
Float.NaN, Float.POSITIVE_INFINITY,Float.NEGATIVE_INFINITY));