Examples of changeLinkStatus()


Examples of edu.isi.karma.modeling.alignment.Alignment.changeLinkStatus()

        newType = new SemanticType(hNodeId, linkLabel, domain.getLabel(), SemanticType.Origin.User, 1.0);
//        newType = new SemanticType(hNodeId, classNode.getLabel(), null, SemanticType.Origin.User, 1.0,isPartOfKey);
        columnNode.setUserSelectedSemanticType(newType);
       
        if(newLink != null) {
          alignment.changeLinkStatus(newLink.getId(),
              LinkStatus.ForcedByUser);
        }
        // Update the alignment
        if(!this.isExecutedInBatch())
          alignment.align();
View Full Code Here

Examples of edu.isi.karma.modeling.alignment.Alignment.changeLinkStatus()

        classNode = alignment.addInternalNode(classNodeLabel);
      }

      LabeledLink newLink = alignment.addClassInstanceLink(classNode, columnNode,
          LinkKeyInfo.UriOfInstance);
      alignment.changeLinkStatus(newLink.getId(),
          LinkStatus.ForcedByUser);
     
      // Create the semantic type object
      newType = new SemanticType(hNodeId,
          ClassInstanceLink.getFixedLabel(), classNode.getLabel(),
View Full Code Here

Examples of edu.isi.karma.modeling.alignment.Alignment.changeLinkStatus()

      if (propertyLink instanceof DataPropertyLink) {
        String targetHNodeId = ((ColumnNode) propertyLink.getTarget())
            .getHNodeId();
        LabeledLink newLink = alignment.addDataPropertyOfColumnLink(classInstanceNode,
            columnNode, targetHNodeId, propertyLink.getId());
        alignment.changeLinkStatus(newLink.getId(),
            LinkStatus.ForcedByUser);
       
        // Create the semantic type object
        newType = new SemanticType(hNodeId,
            DataPropertyOfColumnLink.getFixedLabel(),
View Full Code Here

Examples of edu.isi.karma.modeling.alignment.Alignment.changeLinkStatus()

            classInstanceNode.getLabel(), SemanticType.Origin.User,
            1.0);
      } else if (propertyLink instanceof ObjectPropertyLink) {
        LabeledLink newLink = alignment.addObjectPropertySpecializationLink(
            classInstanceNode, columnNode, propertyLink.getId());
        alignment.changeLinkStatus(newLink.getId(),
            LinkStatus.ForcedByUser);

        // Create the semantic type object
        newType = new SemanticType(hNodeId,
            ObjectPropertySpecializationLink.getFixedLabel(),
View Full Code Here

Examples of edu.isi.karma.modeling.alignment.Alignment.changeLinkStatus()

          return new UpdateContainer(new ErrorUpdate(errorMessage));
        }
        classNode = alignment.addInternalNode(classNodeLabel);
      }
      LabeledLink newLink = alignment.addColumnSubClassOfLink(classNode, columnNode);
      alignment.changeLinkStatus(newLink.getId(),
          LinkStatus.ForcedByUser);
     
      // Create the semantic type object
      newType = new SemanticType(hNodeId,
          ColumnSubClassLink.getFixedLabel(), classNode.getLabel(),
View Full Code Here

Examples of edu.isi.karma.modeling.alignment.Alignment.changeLinkStatus()

    LinkIdFactory.getLinkTargetId(edgeId);
    Set<LabeledLink> currentLinks = alignment.getCurrentIncomingLinksToNode(LinkIdFactory.getLinkTargetId(edgeId));
    if (currentLinks != null && !currentLinks.isEmpty()) {
      for (LabeledLink currentLink: currentLinks) {
        //if (currentLink.getSource().getId().equals(newLink.getSource().getId()))
          alignment.changeLinkStatus(currentLink.getId(), LinkStatus.Normal);
      }
    }
   
    // Change the status of the user selected edge
    alignment.changeLinkStatus(edgeId, LinkStatus.ForcedByUser);
View Full Code Here

Examples of edu.isi.karma.modeling.alignment.Alignment.changeLinkStatus()

          alignment.changeLinkStatus(currentLink.getId(), LinkStatus.Normal);
      }
    }
   
    // Change the status of the user selected edge
    alignment.changeLinkStatus(edgeId, LinkStatus.ForcedByUser);
    if(!this.isExecutedInBatch())
      alignment.align();
   
    return getAlignmentUpdateContainer(alignment, worksheet, workspace);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.