public SemanticModel getModel() { if (this.semanticModel == null) try { this.learn(); } catch (Exception e) { logger.error("error in learing the semantic model for the source " + ((this.semanticModel == null) ? "" : this.semanticModel.getId())); e.printStackTrace(); } return this.semanticModel; }
public void print() { logger.info("id: " + this.getId()); logger.info("name: " + this.getName()); logger.info("description: " + this.getDescription()); logger.info(GraphUtil.labeledGraphToString(this.graph)); }
private void writeModel(JsonWriter writer) throws IOException { String nullStr = null; writer.beginObject(); writer.name("id").value(this.getId()); writer.name("name").value(this.getName()); writer.name("description").value(this.getDescription());
public SemanticModel(SemanticModel semanticModel) { this.id = semanticModel.getId(); this.name = semanticModel.getName(); this.description = semanticModel.getDescription(); this.graph = semanticModel.getGraph(); this.sourceColumns = semanticModel.getSourceColumns(); this.mappingToSourceColumns = semanticModel.getMappingToSourceColumns(); // this.selection = SuperSelectionManager.DEFAULT_SELECTION; }
return addedNodes; String modelId = model.getId();
i++; if (i == 4) continue; System.out.println(sm.getId()); temp = ml.addModel(sm, PatternWeightSystem.JWSPaperFormula); if (temp != null) addedNodes.addAll(temp);
i++; if (i == 4) continue; System.out.println(sm.getId()); temp = ml.addModel(sm, PatternWeightSystem.JWSPaperFormula); if (temp != null) addedNodes.addAll(temp);
return; String modelId = model.getId();
return null; String modelId = model.getId(); if (this.graphBuilder.getModelIds().contains(modelId)) {