Package edu.isi.karma.rep.alignment

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


                JsonValues.holderLink.name());
          }

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


                nodesIndexcounter - 2, nodesIndexcounter - 1,
                JsonValues.horizontalDataPropertyLink.name(),
                "", "", "");
            linksArr.put(linkObj_holder);
          } else if (link.getType() == LinkType.ObjectPropertySpecializationLink) {
            ObjectPropertySpecializationLink opLink = (ObjectPropertySpecializationLink) link;
            String specializedLinkId = opLink
                .getSpecializedLinkId();
            // Get height of the class instance node
            Node specializedLinkTarget = this.alignment
                .getNodeById(LinkIdFactory
                    .getLinkTargetId(specializedLinkId));
View Full Code Here

            link = new DataPropertyOfColumnLink(id,
                ((DataPropertyOfColumnLink)e).getSpecializedColumnHNodeId(),
                ((DataPropertyOfColumnLink)e).getSpecializedLinkId()
                );
          else if (e instanceof ObjectPropertySpecializationLink)
            link = new ObjectPropertySpecializationLink(id, ((ObjectPropertySpecializationLink)e).getSpecializedLinkId());
          else {
              logger.error("cannot instanciate a link from the type: " + e.getType().toString());
              continue;
          }
          link.getModelIds().add(indexedModelId);
View Full Code Here

        link = new DataPropertyOfColumnLink(id,
            ((DataPropertyOfColumnLink)e).getSpecializedColumnHNodeId(),
            ((DataPropertyOfColumnLink)e).getSpecializedLinkId()
            );
      else if (e instanceof ObjectPropertySpecializationLink)
        link = new ObjectPropertySpecializationLink(id, ((ObjectPropertySpecializationLink)e).getSpecializedLinkId());
      else {
        logger.error("cannot instanciate a link from the type: " + e.getType().toString());
        continue;
      }
View Full Code Here

      } 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) {
        l = new SubClassLink(id);
      } else if (type == LinkType.CompactObjectPropertyLink) {
        l = new CompactObjectPropertyLink(id, objectPropertyType);
      } else if (type == LinkType.CompactSubClassLink) {
View Full Code Here

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

TOP

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

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.