Package de.fuberlin.wiwiss.d2rq.map

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


    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


      classMap.addClass(stmts.nextStatement().getSubject());
    }
    stmts = r.listProperties(D2RQ.additionalProperty);
    while (stmts.hasNext()) {
      Resource additionalProperty = stmts.nextStatement().getResource();
      PropertyBridge bridge = new PropertyBridge(r);
      bridge.setBelongsToClassMap(classMap);
      bridge.addProperty(additionalProperty.getProperty(D2RQ.propertyName).getResource());
      bridge.setConstantValue(additionalProperty.getProperty(D2RQ.propertyValue).getObject());
      classMap.addPropertyBridge(bridge);
    }
    stmts = r.listProperties(D2RQ.classDefinitionLabel);
    while (stmts.hasNext()) {
      classMap.addDefinitionLabel(stmts.nextStatement().getLiteral());
View Full Code Here

    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.PropertyBridge

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.