Package edu.isi.karma.rep.alignment

Examples of edu.isi.karma.rep.alignment.DataPropertyOfColumnLink


            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();
            linkObj.put(JsonKeys.source.name(), linkId);
            edgeLinksArr.put(linkObj);
          } else {
            linksArr.put(linkObj);
          }
View Full Code Here


                JsonValues.key.name(), "", nodesIndexcounter,
                nodesIndexcounter - 1, "", "", "", "");
            linksArr.put(linkObj_holder);
          }
          if (link.getType() == LinkType.DataPropertyOfColumnLink) {
            DataPropertyOfColumnLink dpLink = (DataPropertyOfColumnLink) link;
            String startHNodeId = dpLink
                .getSpecializedColumnHNodeId();
            // Get height of the class instance node
            int height = maxTreeHeight
                - nodeHeightsMap.get(link.getSource());
            // Add 2 more holder nodes
View Full Code Here

          else if (e instanceof ClassInstanceLink)
            link = new ClassInstanceLink(id, e.getKeyType());
          else if (e instanceof ColumnSubClassLink)
            link = new ColumnSubClassLink(id);
          else if (e instanceof DataPropertyOfColumnLink)
            link = new DataPropertyOfColumnLink(id,
                ((DataPropertyOfColumnLink)e).getSpecializedColumnHNodeId(),
                ((DataPropertyOfColumnLink)e).getSpecializedLinkId()
                );
          else if (e instanceof ObjectPropertySpecializationLink)
            link = new ObjectPropertySpecializationLink(id, ((ObjectPropertySpecializationLink)e).getSpecializedLinkId());
View Full Code Here

      else if (e instanceof ClassInstanceLink)
        link = new ClassInstanceLink(id, e.getKeyType());
      else if (e instanceof ColumnSubClassLink)
        link = new ColumnSubClassLink(id);
      else if (e instanceof DataPropertyOfColumnLink)
        link = new DataPropertyOfColumnLink(id,
            ((DataPropertyOfColumnLink)e).getSpecializedColumnHNodeId(),
            ((DataPropertyOfColumnLink)e).getSpecializedLinkId()
            );
      else if (e instanceof ObjectPropertySpecializationLink)
        link = new ObjectPropertySpecializationLink(id, ((ObjectPropertySpecializationLink)e).getSpecializedLinkId());
View Full Code Here

      } else if (type == LinkType.ColumnSubClassLink) {
        l = new ColumnSubClassLink(id);
      } else if (type == LinkType.DataPropertyLink) {
        l = new DataPropertyLink(id, label);
      } else if (type == LinkType.DataPropertyOfColumnLink) {
        l = new DataPropertyOfColumnLink(id, hNodeId, specializedLinkId);
      } else if (type == LinkType.ObjectPropertyLink) {
        l = new ObjectPropertyLink(id, label, objectPropertyType);
      } else if (type == LinkType.ObjectPropertySpecializationLink) {
        l = new ObjectPropertySpecializationLink(hNodeId, specializedLinkId);
      } else if (type == LinkType.SubClassLink) {
View Full Code Here

  }
 
  public DataPropertyOfColumnLink addDataPropertyOfColumnLink(Node source, Node target, String specializedColumnHNodeId, String specializedLinkId) {
   
    String id = LinkIdFactory.getLinkId(Uris.DATAPROPERTY_OF_COLUMN_LINK_URI, source.getId(), target.getId());
    DataPropertyOfColumnLink link = new DataPropertyOfColumnLink(id, specializedColumnHNodeId, specializedLinkId);
    if (this.graphBuilder.addLink(source, target, link)) return link;
    return null
  }
View Full Code Here

        if (splLinkId.equals(link.getId()))
          return olink;
      }
      // Check for the data property specialization
      else if (olink instanceof DataPropertyOfColumnLink) {
        DataPropertyOfColumnLink dlink = (DataPropertyOfColumnLink) olink;
        Node target = link.getTarget();
        if (target instanceof ColumnNode) {
          ColumnNode cnode = (ColumnNode) target;
          if (dlink.getSpecializedColumnHNodeId().equals(cnode.getId()))
            return dlink;
        }
      }
    }
    return null;
View Full Code Here

TOP

Related Classes of edu.isi.karma.rep.alignment.DataPropertyOfColumnLink

Copyright © 2018 www.massapicom. 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.