Package edu.isi.karma.rep.alignment

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


          else if (e instanceof ObjectPropertyLink)
            link = new ObjectPropertyLink(id, e.getLabel(), ((ObjectPropertyLink)e).getObjectPropertyType());
          else if (e instanceof SubClassLink)
            link = new SubClassLink(id);
          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(),
View Full Code Here


    addedNodes.add(target);

    String linkId = LinkIdFactory.getLinkId(propertyUri, source.getId(), target.getId())
    LabeledLink link;
    if (propertyUri.equalsIgnoreCase(ClassInstanceLink.getFixedLabel().getUri()))
      link = new ClassInstanceLink(linkId);
    else {
      Label label = this.ontologyManager.getUriLabel(propertyUri);
      link = new DataPropertyLink(linkId, label);
    }
    if (!this.graphBuilder.addLink(source, target, link)) return null;
View Full Code Here

      else if (e instanceof ObjectPropertyLink)
        link = new ObjectPropertyLink(id, e.getLabel(), ((ObjectPropertyLink)e).getObjectPropertyType());
      else if (e instanceof SubClassLink)
        link = new SubClassLink(id);
      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(),
View Full Code Here

    addedNodes.add(target);

    String linkId = LinkIdFactory.getLinkId(propertyUri, source.getId(), target.getId())
    LabeledLink link;
    if (propertyUri.equalsIgnoreCase(ClassInstanceLink.getFixedLabel().getUri()))
      link = new ClassInstanceLink(linkId);
    else {
      Label label = this.ontologyManager.getUriLabel(propertyUri);
      link = new DataPropertyLink(linkId, label);
    }
    if (!this.graphBuilder.addLink(source, target, link)) return null;
View Full Code Here

    addedNodes.add(target);

    String linkId = LinkIdFactory.getLinkId(propertyUri, source.getId(), target.getId())
    LabeledLink link;
    if (propertyUri.equalsIgnoreCase(ClassInstanceLink.getFixedLabel().getUri()))
      link = new ClassInstanceLink(linkId);
    else {
      Label label = this.ontologyManager.getUriLabel(propertyUri);
      link = new DataPropertyLink(linkId, label);
    }
    if (!this.graphBuilder.addLink(source, target, link)) return null;
View Full Code Here

    }
      reader.endObject();
     
      DefaultLink l = null;
      if (type == LinkType.ClassInstanceLink) {
        l = new ClassInstanceLink(id, keyInfo);
      } else if (type == LinkType.ColumnSubClassLink) {
        l = new ColumnSubClassLink(id);
      } else if (type == LinkType.DataPropertyLink) {
        l = new DataPropertyLink(id, label);
      } else if (type == LinkType.DataPropertyOfColumnLink) {
View Full Code Here

  }
 
  public ClassInstanceLink addClassInstanceLink(Node source, Node target, LinkKeyInfo keyInfo) {
   
    String id = LinkIdFactory.getLinkId(Uris.CLASS_INSTANCE_LINK_URI, source.getId(), target.getId());
    ClassInstanceLink link = new ClassInstanceLink(id, keyInfo);
    if (this.graphBuilder.addLink(source, target, link)) return link;
    return null;
  }
View Full Code Here

TOP

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

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.