Package edu.isi.karma.rep.alignment

Examples of edu.isi.karma.rep.alignment.Node


  public DirectedWeightedMultigraph<Node, LabeledLink> getLabeledSteinerTree(ResultGraph initialTree) {
    WeightedMultigraph<Node, DefaultLink> tree =
        new WeightedMultigraph<Node, DefaultLink>(DefaultLink.class);
   
    HashSet<Node> visitedNodes = new HashSet<Node>();
    Node source, target;
    DefaultLink l;
    double weight;
    for (Fact f : initialTree.getFacts()) {
      source = this.getIdToNodeMap().get(f.source().name());
      target = this.getIdToNodeMap().get(f.destination().name());
     
      if (LinkIdFactory.getLinkUri(f.label().name).equals(Uris.DEFAULT_LINK_URI)) {
        String id = LinkIdFactory.getLinkId(Uris.DEFAULT_LINK_URI, source.getId(), target.getId());         
        l = new CompactObjectPropertyLink(id, ObjectPropertyType.None);
      }
      else l = this.getIdToLinkMap().get(f.label().name);
      weight = f.weight();
      if (!visitedNodes.contains(source)) {
View Full Code Here


      mgr.updateCache();
    }
   
    GraphBuilderTopK gbtk = new GraphBuilderTopK(mgr, false);
   
    Node n1 = new InternalNode("n1", new Label("http://erlangen-crm.org/current/E55_Type"));
    Node n2 = new InternalNode("n2", new Label("http://erlangen-crm.org/current/E70_Thing"));
    Node n3 = new InternalNode("n3", new Label("http://erlangen-crm.org/current/E39_Actor"));
    Node n4 = new InternalNode("n4", new Label("http://erlangen-crm.org/current/E74_Group"));

    gbtk.addNode(n1);
    gbtk.addNode(n2);
    gbtk.addNode(n3);
    gbtk.addNode(n4);
View Full Code Here

TOP

Related Classes of edu.isi.karma.rep.alignment.Node

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.