本文整理了Java中edu.isi.karma.modeling.alignment.Alignment.getOutgoingLinksInTree()
方法的一些代码示例,展示了Alignment.getOutgoingLinksInTree()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Alignment.getOutgoingLinksInTree()
方法的具体详情如下:
包路径:edu.isi.karma.modeling.alignment.Alignment
类名称:Alignment
方法名:getOutgoingLinksInTree
暂无
代码示例来源:origin: usc-isi-i2/Web-Karma
Set<LabeledLink> currentIncomingLinks, currentOutgoingLinks;
currentIncomingLinks = this.getIncomingLinksInTree(nodeId);
currentOutgoingLinks = this.getOutgoingLinksInTree(nodeId);
if (currentIncomingLinks != null)
for (LabeledLink l : currentIncomingLinks)
代码示例来源:origin: usc-isi-i2/Web-Karma
private void addProvenaceLinks(Alignment alignment, Label linkLabel, LiteralNode targetNode) {
String targetId = targetNode.getId();
Set<Node> internalNodes = alignment.getNodesByType(NodeType.InternalNode);
String edgeUri = linkLabel.getUri();
for(Node internalNode : internalNodes) {
String nodeId = internalNode.getId();
Set<LabeledLink> inLinks = alignment.getIncomingLinksInTree(nodeId);
Set<LabeledLink> outLinks = alignment.getOutgoingLinksInTree(nodeId);
if((inLinks != null && inLinks.size() > 0)
|| (outLinks != null && outLinks.size() > 0)) {
String linkId = LinkIdFactory.getLinkId(edgeUri, nodeId, targetId);
LabeledLink link = alignment.getLinkById(linkId);
if(link == null) {
link = alignment.addObjectPropertyLink(internalNode,
targetNode, linkLabel);
alignment.changeLinkStatus(linkId, LinkStatus.ForcedByUser);
link.setProvenance(true, false);
}
}
}
}
代码示例来源:origin: usc-isi-i2/Web-Karma
String nodeId = internalNode.getId();
Set<LabeledLink> inLinks = alignment.getIncomingLinksInTree(nodeId);
Set<LabeledLink> outLinks = alignment.getOutgoingLinksInTree(nodeId);
if((inLinks != null && inLinks.size() > 0)
|| (outLinks != null && outLinks.size() > 0)) {
代码示例来源:origin: usc-isi-i2/Web-Karma
} else {
incomingLinks = alignment.getIncomingLinksInTree(nodeId);
outgoingLinks = alignment.getOutgoingLinksInTree(nodeId);
代码示例来源:origin: usc-isi-i2/Web-Karma
for (Node node:nodes) {
if (node instanceof InternalNode) {
Set<LabeledLink> outLinks = alignment.getOutgoingLinksInTree(node.getId());
if(outLinks != null && outLinks.size() > 0) {
boolean hasProvLink = false;
内容来源于网络,如有侵权,请联系作者删除!