Examples of addDataPropertyLink()


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

          else {

            // When only the link changes between the class node and the internal node (domain)
            if (semanticTypeAlreadyExists && oldDomainNode == domain) {
              alignment.removeLink(oldIncomingLinkToColumnNode.getId());
              newLink = alignment.addDataPropertyLink(domain, columnNode, linkLabel);
            }
            // When there was an existing semantic type and the new domain is a new node in the graph and semantic type already existed
            else if (semanticTypeAlreadyExists) {
              alignment.removeLink(oldIncomingLinkToColumnNode.getId());
//              alignment.removeNode(oldDomainNode.getId());
View Full Code Here

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

            }
            // When there was an existing semantic type and the new domain is a new node in the graph and semantic type already existed
            else if (semanticTypeAlreadyExists) {
              alignment.removeLink(oldIncomingLinkToColumnNode.getId());
//              alignment.removeNode(oldDomainNode.getId());
              newLink = alignment.addDataPropertyLink(domain, columnNode, linkLabel);
            } else {
              newLink = alignment.addDataPropertyLink(domain, columnNode, linkLabel);
            }           
          }
        } else { // Synonym semantic type
View Full Code Here

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

            else if (semanticTypeAlreadyExists) {
              alignment.removeLink(oldIncomingLinkToColumnNode.getId());
//              alignment.removeNode(oldDomainNode.getId());
              newLink = alignment.addDataPropertyLink(domain, columnNode, linkLabel);
            } else {
              newLink = alignment.addDataPropertyLink(domain, columnNode, linkLabel);
            }           
          }
        } else { // Synonym semantic type
          SemanticType synType = new SemanticType(hNodeId, linkLabel, domain.getLabel(), SemanticType.Origin.User, 1.0);
          typesList.add(synType);
View Full Code Here

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

      ColumnNode columnNode = alignment.getColumnNodeByHNodeId(hNode.getId());
     
      List<LabeledLink> columnNodeIncomingLinks = alignment.getIncomingLinks(columnNode.getId());
      if (columnNodeIncomingLinks == null || columnNodeIncomingLinks.isEmpty()) { // SemanticType not yet assigned
        Label propertyLabel = new Label(ns + columnName, ns, "karma");
        alignment.addDataPropertyLink(classNode, columnNode, propertyLabel);
       
        // Create a semantic type object
        SemanticType type = new SemanticType(hNode.getId(), propertyLabel, internalNodeLabel, SemanticType.Origin.User, 1.0);
        worksheet.getSemanticTypes().addType(type);
        columnNode.setUserSelectedSemanticType(type);
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.