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

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

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

Alignment.getSteinerTree介绍

暂无

代码示例

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

private Map<Node,Boolean> getClassesInModel(Workspace workspace) {
  final Alignment alignment = AlignmentManager.Instance().getAlignment(
      workspace.getId(), worksheetId);
  Map<Node,Boolean> nodeSet = new HashMap<>();
  Set<Node> treeNodes = alignment.getSteinerTree().vertexSet();
  if (treeNodes != null) {
    for (Node n : treeNodes) {
      nodeSet.put(n, true);
    }
  }
  return nodeSet;
}

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

HashSet<String> provenanceProperties = new HashSet<>();
if(alignment != null) {
  DirectedWeightedMultigraph<Node, LabeledLink> alignmentGraph = alignment.getSteinerTree();
  if(alignmentGraph != null) {
    List<LabeledLink> links = Arrays.asList(alignmentGraph.edgeSet().toArray(new LabeledLink[0]));

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

for (Node node: alignment.getSteinerTree().vertexSet()) {
  if (node.getType() == NodeType.InternalNode) {
    steinerTreeNodeIds.add(node.getId());

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

al.addDataPropertyLink(n2, c2, new Label("http://example.com/layout/d2"), false);
  al.align();
  System.out.println(GraphUtil.labeledGraphToString(al.getSteinerTree()));
} else {
  logger.info("No directory for preloading ontologies exists.");

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

Set<String> steinerTreeNodeIds = new HashSet<>();
if (alignment != null && !alignment.isEmpty()) {
  DirectedWeightedMultigraph<Node, LabeledLink> steinerTree = alignment.getSteinerTree(); 
  for (Node node: steinerTree.vertexSet()) {
    if (node.getType() == NodeType.InternalNode) {

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

this.alignmentGraph = alignment.getSteinerTree();
this.steinerTreeRoot = alignment.GetTreeRoot();

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

@Override
public void generateJson(String prefix, PrintWriter pw,
    VWorkspace vWorkspace) {
  Workspace workspace = vWorkspace.getWorkspace();
  alignment = AlignmentManager.Instance().getAlignment(workspace.getId(), worksheetId);
  this.alignmentGraph = alignment.getSteinerTree();
  UIConfiguration uiConfiguration = UIConfigurationRegistry.getInstance().getUIConfiguration(vWorkspace.getWorkspace().getContextId());
  if (uiConfiguration.isForceModelLayoutEnabled())
    generateJsonForForceLayout(prefix, pw, vWorkspace);
  else
    generateJsonForNormalLayout(prefix, pw, vWorkspace);
}

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

DirectedWeightedMultigraph<Node, LabeledLink> tree = al.getSteinerTree();

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

if (alignment.getSteinerTree() != null) {
  for (LabeledLink link : alignment.getSteinerTree().edgeSet()) {
    if ((link.getStatus() == LinkStatus.Normal || link.getStatus() == LinkStatus.PreferredByUI) && (link.getType() == LinkType.ObjectPropertyLink)) {
      links.add(link);
Set<Node> nodes = alignment.getSteinerTree().vertexSet();
boolean linksRemoved = false;
for (Node node:nodes) {
SemanticModel semanticModel = new SemanticModel(workspace, worksheet, worksheetName, alignment.getSteinerTree(), selection);
semanticModel.setName(worksheetName);
try {

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

for (Node node: alignment.getSteinerTree().vertexSet()) {
  if (node.getType() == NodeType.InternalNode) {
    steinerTreeNodeIds.add(node.getId());

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

tree = al.getSteinerTree();

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

logger.info(GraphUtil.labeledGraphToString(alignment.getSteinerTree()));

相关文章