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

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

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

Alignment.removeLink介绍

[英]This method just deletes the specified link from the graph and leaves the rest of the graph untouched.
[中]此方法仅从图中删除指定的链接,而保持图的其余部分不变。

代码示例

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

private UpdateContainer deleteLink(Alignment alignment, OntologyManager ontMgr, JSONObject edge)
    throws JSONException {
  
  UpdateContainer uc = new UpdateContainer();
  String targetId = edge.getString(LinkJsonKeys.edgeTargetId.name());
  String edgeUri = edge.getString(LinkJsonKeys.edgeId.name());
  String linkId = LinkIdFactory.getLinkId(
      edgeUri,
      edge.getString(LinkJsonKeys.edgeSourceId.name()),
      targetId);
  
  // Add info to description string
  LabeledLink delLink = alignment.getLinkById(linkId);
  if(delLink != null) {
    this.displayLabel = delLink.getLabel().getDisplayName();
  } else {
    this.displayLabel = edgeUri;
  }
    
  alignment.removeLink(linkId);
  
  return uc;
}

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

for(LabeledLink oldIncomingLinkToColumnNode : columnNodeIncomingLinks) {
  Node oldDomainNode = oldIncomingLinkToColumnNode.getSource();
  alignment.removeLink(oldIncomingLinkToColumnNode.getId());
  if (alignment.isNodeIsolatedInTree(oldDomainNode.getId()))
    alignment.removeNode(oldDomainNode.getId());

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

alignment.removeLink(linkId);
linksRemoved = true;

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

alignment.removeLink(linkId);
Node domain = currentLink.getSource();
if (domain != null) {

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

for(LabeledLink oldIncomingLinkToColumnNode : columnNodeIncomingLinks) {
  Node oldDomainNode = oldIncomingLinkToColumnNode.getSource();
  alignment.removeLink(oldIncomingLinkToColumnNode.getId());
  if (alignment.isNodeIsolatedInTree(oldDomainNode.getId()))
    alignment.removeNode(oldDomainNode.getId());

相关文章