public static String labeledGraphToString(Graph<Node, LabeledLink> graph) { if (graph == null) { logger.debug("The input graph is null."); return ""; } StringBuffer sb = new StringBuffer(); sb.append("*** Nodes ***\n"); for (Node n : graph.vertexSet()) { sb.append(n.getLocalId()); sb.append("\n"); } sb.append("*** Links ***\n"); for (LabeledLink edge : graph.edgeSet()) { sb.append("("); sb.append(edge.getId()); sb.append(" - status=" + edge.getStatus().name()); sb.append(" - w=" + edge.getWeight()); sb.append(" - type=" + edge.getType().name()); sb.append("\n"); } //sb.append("------------------------------------------"); return sb.toString(); }
linksWithSameUri.remove(link); Set<LabeledLink> linksWithSameType = typeToLinksMap.get(((LabeledLink)link).getType()); if (linksWithSameType != null) linksWithSameType.remove(link);
logger.error("cannot instanciate a link from the type: " + e.getType().toString()); continue;
linkObj.put(JsonKeys.linkType.name(), link.getType()); if (link.getType() == LinkType.ObjectPropertySpecializationLink) { ObjectPropertySpecializationLink spLink = (ObjectPropertySpecializationLink) link; String linkId = spLink.getSpecializedLinkId(); linkObj.put(JsonKeys.source.name(), linkId); edgeLinksArr.put(linkObj); } else if (link.getType() == LinkType.DataPropertyOfColumnLink) { DataPropertyOfColumnLink spLink = (DataPropertyOfColumnLink) link; String linkId = spLink.getSpecializedLinkId();
logger.error("cannot instanciate a link from the type: " + e.getType().toString()); continue;
if (link.getType() == LinkType.ClassInstanceLink && target instanceof ColumnNode) { ColumnNode cNode = (ColumnNode) target; linksArr.put(linkObj_holder); if (link.getType() == LinkType.DataPropertyOfColumnLink) { DataPropertyOfColumnLink dpLink = (DataPropertyOfColumnLink) link; String startHNodeId = dpLink "", "", ""); linksArr.put(linkObj_holder); } else if (link.getType() == LinkType.ObjectPropertySpecializationLink) { ObjectPropertySpecializationLink opLink = (ObjectPropertySpecializationLink) link; String specializedLinkId = opLink linksArr.put(linkObj_holder); linkObj.put(JsonKeys.linkType.name(), link.getType());
logger.error("cannot instanciate a link from the type: " + e.getType().toString()); continue;
newLink = new ObjectPropertySpecializationLink(newId, ((ObjectPropertySpecializationLink)this).getSpecializedLinkId()); else logger.error("cannot instanciate a link from the type: " + this.getType().toString());
if (alignment.getSteinerTree() != null) { for (LabeledLink link : alignment.getSteinerTree().edgeSet()) { if ((link.getStatus() == LinkStatus.Normal || link.getStatus() == LinkStatus.PreferredByUI) && (link.getType() == LinkType.ObjectPropertyLink)) { links.add(link); continue; if(link.getType() == LinkType.DataPropertyLink) hasDataProperty = true;
link = new ObjectPropertySpecializationLink(id, ((ObjectPropertySpecializationLink)e).getSpecializedLinkId()); else { logger.error("cannot instanciate a link from the type: " + e.getType().toString()); continue;