Package de.fuberlin.wiwiss.d2rq.map

Examples of de.fuberlin.wiwiss.d2rq.map.ClassMap


 
  private void parseClassMaps() {
    Iterator<Individual> it = this.model.listIndividuals(D2RQ.ClassMap);
    while (it.hasNext()) {
      Resource r = it.next();
      ClassMap classMap = new ClassMap(r);
      parseClassMap(classMap, r);
      parseResourceMap(classMap, r);
      this.mapping.addClassMap(classMap);
    }
  }
View Full Code Here


 
  private void parsePropertyBridges() {
    StmtIterator stmts = this.model.listStatements(null, D2RQ.belongsToClassMap, (RDFNode) null);
    while (stmts.hasNext()) {
      Statement stmt = stmts.nextStatement();
      ClassMap classMap = this.mapping.classMap(stmt.getResource());
      Resource r = stmt.getSubject();
      PropertyBridge bridge = new PropertyBridge(r);
      bridge.setBelongsToClassMap(classMap);
      parseResourceMap(bridge, r);
      parsePropertyBridge(bridge, r);
      classMap.addPropertyBridge(bridge);
    }
  }
View Full Code Here

    database.setJDBCDriver(driver);
    database.setUsername(user);
    database.setPassword(password);
    database.setStartupSQLScript(ResourceFactory.createResource("file:" + script));
    mapping.addDatabase(database);
    ClassMap classMap = new ClassMap(classMapURI);
    classMap.setDatabase(database);
    classMap.setURIPattern("row/@@T_" + datatype + ".ID@@");
    mapping.addClassMap(classMap);
    PropertyBridge propertyBridge = new PropertyBridge(propertyBridgeURI);
    propertyBridge.setBelongsToClassMap(classMap);
    propertyBridge.addProperty(valueProperty);
    propertyBridge.setColumn("T_" + datatype + ".VALUE");
    classMap.addPropertyBridge(propertyBridge);
    return mapping;
  }
View Full Code Here

TOP

Related Classes of de.fuberlin.wiwiss.d2rq.map.ClassMap

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.