Package de.fuberlin.wiwiss.d2rq.map

Examples of de.fuberlin.wiwiss.d2rq.map.Mapping.configuration()


    assertTrue(g.contains(Node.ANY, Node.ANY, Node.createLiteral("Hello World!")));
  }
 
  public void testGenerateEmptyGraphFromSimpleD2RQMapping() {
    Mapping m = MappingHelper.readFromTestFile("helpers/simple.ttl");
    m.configuration().setServeVocabulary(false);
    GraphD2RQ g = new GraphD2RQ(m);
    assertTrue(g.isEmpty());
  }
 
  public void testGenerateTripleFromSimpleD2RQMapping() {
View Full Code Here


    assertTrue(g.isEmpty());
  }
 
  public void testGenerateTripleFromSimpleD2RQMapping() {
    Mapping m = MappingHelper.readFromTestFile("helpers/simple.ttl");
    m.configuration().setServeVocabulary(false);
    db.executeSQL("INSERT INTO TEST VALUES (1, 'Hello World!')");
    GraphD2RQ g = new GraphD2RQ(m);
    assertTrue(g.contains(
        Node.createURI(EX + "test/1"), RDF.Nodes.type, Node.createURI(EX + "Test")));
    assertEquals(1, g.size());
View Full Code Here

  }
 
  protected void createMapping(String datatype) {
    this.datatype = datatype;
    Mapping mapping = generateMapping();
    mapping.configuration().setServeVocabulary(false);
    mapping.configuration().setUseAllOptimizations(true);
    mapping.connect();
    graph = getGraph(mapping);
    inspector = mapping.databases().iterator().next().connectedDB().schemaInspector();
  }
View Full Code Here

 
  protected void createMapping(String datatype) {
    this.datatype = datatype;
    Mapping mapping = generateMapping();
    mapping.configuration().setServeVocabulary(false);
    mapping.configuration().setUseAllOptimizations(true);
    mapping.connect();
    graph = getGraph(mapping);
    inspector = mapping.databases().iterator().next().connectedDB().schemaInspector();
  }
 
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.