Package de.fuberlin.wiwiss.d2rq.mapgen

Examples of de.fuberlin.wiwiss.d2rq.mapgen.MappingGenerator


   */
  public MappingGenerator openMappingGenerator() {
    if (generator == null) {
      generator = generateDirectMapping ?
          new W3CMappingGenerator(getConnectedDB()) :
          new MappingGenerator(getConnectedDB());
      if (jdbcDriverClass != null) {
        generator.setJDBCDriverClass(jdbcDriverClass);
      }
      if (filter != null) {
        generator.setFilter(filter);
View Full Code Here


    assertEquals(1, g.size());
  }
 
  private Model generateDefaultMappingModel() {
    ConnectedDB cdb = new ConnectedDB(db.getJdbcURL(), db.getUser(), null);
    MappingGenerator generator = new MappingGenerator(cdb);
    return generator.mappingModel(EX);
  }
View Full Code Here

    } else {
      log.info("Writing to stdout");
      out = System.out;
    }

    MappingGenerator generator = loader.openMappingGenerator();
    try {
      if (cmd.contains(vocabAsOutput)) {
        Model model = generator.vocabularyModel();
        model.write(out, "TURTLE");
      } else {
        generator.writeMapping(out);
      }
    } finally {
      loader.closeMappingGenerator();
    }
  }
View Full Code Here

TOP

Related Classes of de.fuberlin.wiwiss.d2rq.mapgen.MappingGenerator

Copyright © 2018 www.massapicom. 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.