public DirectedWeightedMultigraph<Node, LabeledLink> getSteinerTree() { if (this.steinerTree == null) align(); // GraphUtil.printGraph(this.steinerTree); if (this.steinerTree == null) steinerTree = new DirectedWeightedMultigraph<>(LabeledLink.class); return this.steinerTree; }
al.addDataPropertyLink(n1, c1, new Label("http://example.com/layout/d1"), false); al.addDataPropertyLink(n2, c2, new Label("http://example.com/layout/d2"), false); al.align(); System.out.println(GraphUtil.labeledGraphToString(al.getSteinerTree())); } else {
@SuppressWarnings("unchecked") @Override public UpdateContainer doIt(Workspace workspace) throws CommandException { logCommand(logger, workspace); Alignment alignment = AlignmentManager.Instance().getAlignment( alignmentId); // Save the original alignment for undo oldAlignment = alignment.getAlignmentClone(); oldGraph = (DirectedWeightedMultigraph<Node, DefaultLink>) alignment .getGraph().clone(); try { alignment.deleteForcedInternalNode(nodeId); if(!this.isExecutedInBatch()) alignment.align(); } catch (JSONException e) { logger.error("Error adding Internal Node:" , e); } return WorksheetUpdateFactory.createSemanticTypesAndSVGAlignmentUpdates(worksheetId, workspace); }
alignment.addToForcedNodes(addedNode); if(!this.isExecutedInBatch()) alignment.align();
alignment.align(); c.add(new AlignmentSVGVisualizationUpdate(worksheetId));
alignment.align(); else if (modelingConfiguration.getPredictOnApplyHistory()) { if (columnNode.getLearnedSemanticTypes() == null) {
alignment.align(); uc.removeUpdateByClass(AlignmentSVGVisualizationUpdate.class); uc.add(new AlignmentSVGVisualizationUpdate(worksheetId));
@SuppressWarnings("unchecked") @Override public UpdateContainer doIt(Workspace workspace) throws CommandException { Alignment alignment = AlignmentManager.Instance().getAlignment( alignmentId); OntologyManager ontMgr = workspace.getOntologyManager(); // Save the original alignment for undo oldAlignment = alignment.getAlignmentClone(); oldGraph = (DirectedWeightedMultigraph<Node, DefaultLink>) alignment .getGraph().clone(); UpdateContainer uc = this.deleteLink(alignment, ontMgr, edge); if(!this.isExecutedInBatch()) alignment.align(); uc.append(this.computeAlignmentAndSemanticTypesAndCreateUpdates(workspace)); return uc; }
@SuppressWarnings("unchecked") @Override public UpdateContainer doIt(Workspace workspace) throws CommandException { Alignment alignment = AlignmentManager.Instance().getAlignment( alignmentId); OntologyManager ontMgr = workspace.getOntologyManager(); // Save the original alignment for undo oldAlignment = alignment.getAlignmentClone(); oldGraph = (DirectedWeightedMultigraph<Node, DefaultLink>) alignment .getGraph().clone(); UpdateContainer uc = this.addNewLink(alignment, ontMgr, edge); if(!this.isExecutedInBatch()) alignment.align(); uc.append(this.computeAlignmentAndSemanticTypesAndCreateUpdates(workspace)); return uc; }
alignment.align();
alignment.align();
alignment.align();
alignment.align();
alignment.setGraph(initialGraph); if(!this.isExecutedInBatch()) alignment.align(); AlignmentManager.Instance().addAlignmentToMap(alignmentId, alignment);
alignment.setGraph(initialGraph); if(!this.isExecutedInBatch()) alignment.align(); AlignmentManager.Instance().addAlignmentToMap(alignmentId, alignment); try {
alignment.setGraph(initialGraph); if(!this.isExecutedInBatch()) alignment.align(); AlignmentManager.Instance().addAlignmentToMap(alignmentId, alignment);
alignment.align(); else if (modelingConfiguration.getPredictOnApplyHistory()) { if (columnNode.getLearnedSemanticTypes() == null) {