Examples of SubClassLink


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

      id = LinkIdFactory.getLinkId(uri, sourceId, targetId);
      label = new Label(ontologyManager.getUriLabel(uri));
     
      LabeledLink newLink;
      if (uri.equalsIgnoreCase(Uris.RDFS_SUBCLASS_URI))
        newLink = new SubClassLink(id);
      else
        newLink = new ObjectPropertyLink(id, label, linkObjectPropertyType);
     
      sortedLinks.add(newLink);
    }
View Full Code Here

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

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

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

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

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

        id = LinkIdFactory.getLinkId(lf1.getLinkUri(), link.getSource().getId(), link.getTarget().getId());
        if (link instanceof ObjectPropertyLink)
          newLinks.add(new ObjectPropertyLink(id, new Label(lf1.getLinkUri()), ((ObjectPropertyLink) link).getObjectPropertyType()));
        else if (link instanceof SubClassLink)
          newLinks.add(new SubClassLink(id));

        weights.add(lf1.getWeight());
      } else if (c < 0) {
        sources.add(link.getTarget());
        targets.add(link.getSource());

        id = LinkIdFactory.getLinkId(lf2.getLinkUri(), link.getSource().getId(), link.getTarget().getId());
        if (link instanceof ObjectPropertyLink)
          newLinks.add(new ObjectPropertyLink(id, new Label(lf2.getLinkUri()), ((ObjectPropertyLink) link).getObjectPropertyType()));
        else if (link instanceof SubClassLink)
          newLinks.add(new SubClassLink(id));

        weights.add(lf2.getWeight());
      } else
        continue;
View Full Code Here

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

      } 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) {
        l = new CompactSubClassLink(id);
      } else {
View Full Code Here

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

 
  // Probably we don't need this function in the interface to GUI
  public SubClassLink addSubClassOfLink(Node source, Node target) {
   
    String id = LinkIdFactory.getLinkId(Uris.RDFS_SUBCLASS_URI, source.getId(), target.getId());
    SubClassLink link = new SubClassLink(id);
    if (this.graphBuilder.addLink(source, target, link)) return link;
    return null
  }
View Full Code Here

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

        Node source = this.getNodeById(LinkIdFactory.getLinkSourceId(linkId));
        Node target = this.getNodeById(LinkIdFactory.getLinkTargetId(linkId));
        String linkUri = LinkIdFactory.getLinkUri(linkId);
        LabeledLink newLink;
        if (linkUri.equalsIgnoreCase(Uris.RDFS_SUBCLASS_URI))
          newLink = new SubClassLink(linkId);
        else
          newLink = new ObjectPropertyLink(linkId,
              this.graphBuilder.getOntologyManager().getUriLabel(linkUri),
              this.graphBuilder.getOntologyManager().getObjectPropertyType(source.getLabel().getUri(), target.getLabel().getUri(), linkUri));
       
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.