On 18/08/14 15:12, Kristian Rosenvold wrote:
@Test
public void rdfResolvesToAbsolutePrefix() throws MalformedURLException {
    String rdf = "<http://fido>\n" +
          "        a                               \"dog\" .";

    final Model read = ModelFactory.createDefaultModel().read(new
ByteArrayInputStream(rdf.getBytes()),
          "http://dogz";, "TURTLE");

    QuadDataAcc insertData = new QuadDataAcc();
    insertData.setGraph(NodeFactory.createURI("http://testgraph";));
    insertData.addTriple(read.listStatements().nextStatement().asTriple());
    final UpdateDataInsert updateDataInsert = new UpdateDataInsert(insertData);

    final String actual = updateDataInsert.toString();
    assertTrue(actual.contains("<http://fido>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>  \"dog\""));
}

It's already fixed I think. Please try the development build of 2.12.1-SNAPSHOT.

        Andy

Reply via email to