Examples of addInternalNode()


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

                return new UpdateContainer(new ErrorUpdate("" +
                "Error occured while setting semantic type!"));
              }
            }
          }
          domain = alignment.addInternalNode(label);
        }
         
        // Check if a semantic type already exists for the column
        ColumnNode columnNode = alignment.getColumnNodeByHNodeId(hNodeId);
        columnNode.setRdfLiteralType(rdfLiteralType);
View Full Code Here

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

              + metaPropertyUri
              + "' should be in the Ontology Manager, but it is not.";
          logger.error(errorMessage);
          return new UpdateContainer(new ErrorUpdate(errorMessage));
        }
        classNode = alignment.addInternalNode(classNodeLabel);
      }

      LabeledLink newLink = alignment.addClassInstanceLink(classNode, columnNode,
          LinkKeyInfo.UriOfInstance);
      alignment.changeLinkStatus(newLink.getId(),
View Full Code Here

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

              + metaPropertyUri
              + "' should be in the Ontology Manager, but it is not.";
          logger.error(errorMessage);
          return new UpdateContainer(new ErrorUpdate(errorMessage));
        }
        classNode = alignment.addInternalNode(classNodeLabel);
      }
      LabeledLink newLink = alignment.addColumnSubClassOfLink(classNode, columnNode);
      alignment.changeLinkStatus(newLink.getId(),
          LinkStatus.ForcedByUser);
     
View Full Code Here

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

    }
   
    String ns = Namespaces.KARMA;
    // Create the internal node for worksheet
    Label internalNodeLabel = new Label(ns + worksheet.getTitle().trim().replaceAll(" ", "_"), ns, "karma");
    Node classNode = alignment.addInternalNode(internalNodeLabel);
   
    // Create column nodes for all columns
    List<HNode> sortedLeafHNodes = new ArrayList<HNode>();
    worksheet.getHeaders().getSortedLeafHNodes(sortedLeafHNodes);
    for (HNode hNode : sortedLeafHNodes){
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.