InternalNode n1 = al.addInternalNode(new Label("http://example.com/layout/C01_")); InternalNode n2 = al.addInternalNode(new Label("http://example.com/layout/C02_")); al.addDataPropertyLink(n1, c1, new Label("http://example.com/layout/d1"), false); al.addDataPropertyLink(n2, c2, new Label("http://example.com/layout/d2"), false); al.align(); System.out.println(GraphUtil.labeledGraphToString(al.getSteinerTree()));
newLink = alignment.addDataPropertyLink(source, columnNode, linkLabel, isProvenance); SemanticType newType = new SemanticType(hNodeId, linkLabel, source.getLabel(), source.getId(), isProvenance,
if (columnNodeIncomingLinks == null || columnNodeIncomingLinks.isEmpty()) { // SemanticType not yet assigned Label propertyLabel = new Label(ns + columnName, ns, "karma"); alignment.addDataPropertyLink(classNode, columnNode, propertyLabel, false);