edu.isi.karma.modeling.alignment.Alignment.getGraph()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(4.2k)|赞(0)|评价(0)|浏览(102)

本文整理了Java中edu.isi.karma.modeling.alignment.Alignment.getGraph()方法的一些代码示例,展示了Alignment.getGraph()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Alignment.getGraph()方法的具体详情如下:
包路径:edu.isi.karma.modeling.alignment.Alignment
类名称:Alignment
方法名:getGraph

Alignment.getGraph介绍

暂无

代码示例

代码示例来源:origin: usc-isi-i2/Web-Karma

UndirectedGraph<Node, DefaultLink> undirectedGraph = new AsUndirectedGraph<>(this.getGraph());

代码示例来源:origin: usc-isi-i2/Web-Karma

oldGraph = (DirectedWeightedMultigraph<Node, DefaultLink>)alignment.getGraph().clone();

代码示例来源:origin: usc-isi-i2/Web-Karma

initialGraph = (DirectedWeightedMultigraph<Node, DefaultLink>)alignment.getGraph().clone();

代码示例来源:origin: usc-isi-i2/Web-Karma

@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);
}

代码示例来源:origin: usc-isi-i2/Web-Karma

.getGraph().clone();

代码示例来源:origin: usc-isi-i2/Web-Karma

.getGraph().clone();
OntologyManager ontMgr = workspace.getOntologyManager();

代码示例来源:origin: usc-isi-i2/Web-Karma

@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;
}

代码示例来源:origin: usc-isi-i2/Web-Karma

@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;
}

代码示例来源:origin: usc-isi-i2/Web-Karma

@SuppressWarnings("unchecked")
@Override
public UpdateContainer doIt(Workspace workspace) throws CommandException {
  Alignment alignment = AlignmentManager.Instance().getAlignment(
      alignmentId);
  Worksheet worksheet = workspace.getWorksheet(worksheetId);
  OntologyManager ontMgr = workspace.getOntologyManager();
  // Save the original alignment for undo
  oldAlignment = alignment.getAlignmentClone();
  oldGraph = (DirectedWeightedMultigraph<Node, DefaultLink>) alignment
      .getGraph().clone();
  UpdateContainer uc = new UpdateContainer();
  WorksheetCommandHistoryExecutor histExecutor = new WorksheetCommandHistoryExecutor(
      worksheetId, workspace);
  // First delete the links that are not present in newEdges and present
  // in intialEdges
  try {
    refineInitialEdges(alignment);
    uc.append(deleteLinks(histExecutor, workspace, worksheet, alignment));
    uc.append(addNewLinks(histExecutor, workspace, alignment, ontMgr));
  } catch (JSONException e) {
    e.printStackTrace();
  }
  return uc;
}

代码示例来源:origin: usc-isi-i2/Web-Karma

oldGraph = (DirectedWeightedMultigraph<Node, DefaultLink>)alignment.getGraph().clone();

代码示例来源:origin: usc-isi-i2/Web-Karma

initialGraph = (DirectedWeightedMultigraph<Node, DefaultLink>)alignment.getGraph().clone();

代码示例来源:origin: usc-isi-i2/Web-Karma

.getGraph().clone();

代码示例来源:origin: usc-isi-i2/Web-Karma

oldGraph = (DirectedWeightedMultigraph<Node, DefaultLink>)alignment.getGraph().clone();

相关文章