Package com.hp.hpl.jena.rdf.model

Examples of com.hp.hpl.jena.rdf.model.Literal.asNode()


    Literal l = ResourceFactory.createPlainLiteral("example");
    map.add("o", l);
    ParameterizedSparqlString query = new ParameterizedSparqlString(map);
   
    Assert.assertEquals(r.asNode(), query.getParam("s"));
    Assert.assertEquals(l.asNode(), query.getParam("o"));
  }
 
  @Test
  public void test_param_string_constructor_8()
  {
View Full Code Here


       
        Graph safeGraph = deductions.getGraph();
        assertTrue(safeGraph instanceof SafeGraph);
       
        Graph rawGraph = ((SafeGraph)safeGraph).getRawGraph();
        Triple deduction = new Triple(l.asNode(), q.asNode(), r.asNode());
        TestUtil.assertIteratorValues(this,
                rawGraph.find(Node.ANY, Node.ANY, Node.ANY),
                new Triple[]{deduction});
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.