Package edu.isi.karma.rep.alignment

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


       
        if (ModelingConfiguration.getPropertiesDirect()) {
          if (this.ontologyManager.isConnectedByDirectProperty(sourceUri, targetUri) ||
              this.ontologyManager.isConnectedByDirectProperty(targetUri, sourceUri)) {
            logger.debug( sourceUri + " and " + targetUri + " are connected by a direct object property.");
            link = new CompactObjectPropertyLink(id, ObjectPropertyType.Direct);
            addLink(source, target, link);
            connected = true;
          }
        }
       
        if (ModelingConfiguration.getPropertiesIndirect() && !connected) {
          if (this.ontologyManager.isConnectedByIndirectProperty(sourceUri, targetUri) ||
              this.ontologyManager.isConnectedByIndirectProperty(targetUri, sourceUri)) {
            logger.debug( sourceUri + " and " + targetUri + " are connected by an indirect object property.");
            link = new CompactObjectPropertyLink(id, ObjectPropertyType.Indirect);
            addLink(source, target, link);
            connected = true;
          }
        }
       
        if (ModelingConfiguration.getPropertiesWithOnlyRange() && !connected) {
          if (this.ontologyManager.isConnectedByDomainlessProperty(sourceUri, targetUri) ||
              this.ontologyManager.isConnectedByDomainlessProperty(targetUri, sourceUri)) {
            logger.debug( sourceUri + " and " + targetUri + " are connected by an object property whose range is " + sourceUri + " or " + targetUri);
            link = new CompactObjectPropertyLink(id, ObjectPropertyType.WithOnlyRange);
            addLink(source, target, link);
            connected = true;
          }
        }
       
        if (ModelingConfiguration.getPropertiesWithOnlyDomain() && !connected) {
          if (this.ontologyManager.isConnectedByRangelessProperty(sourceUri, targetUri) ||
              this.ontologyManager.isConnectedByRangelessProperty(targetUri, sourceUri)) {
            logger.debug( sourceUri + " and " + targetUri + " are connected by an object property whose domain is " + sourceUri + " or " + targetUri);
            link = new CompactObjectPropertyLink(id, ObjectPropertyType.WithOnlyDomain);
            addLink(source, target, link)
            connected = true;
          }
        }
       
        if (ModelingConfiguration.getPropertiesSubClass() && !connected) {
          if (this.ontologyManager.isSubClass(sourceUri, targetUri, false) ||
              this.ontologyManager.isSubClass(targetUri, sourceUri, false)) {
            logger.debug( sourceUri + " and " + targetUri + " are connected by a subClassOf relation.");
            link = new CompactSubClassLink(id);
            addLink(source, target, link);
            connected = true;
          }
        }
       
        if (ModelingConfiguration.getPropertiesWithoutDomainRange() && !connected) {
          if (this.ontologyManager.isConnectedByDomainlessAndRangelessProperty(sourceUri, targetUri)) {// ||
  //            this.ontologyManager.isConnectedByDomainlessAndRangelessProperty(targetUri, sourceUri)) {
            link = new CompactObjectPropertyLink(id, ObjectPropertyType.WithoutDomainAndRange);
            addLink(source, target, link);
            connected = true;
          }
        }
View Full Code Here


      } 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 {
        logger.error("cannot instanciate a link from the type: " + type.toString());
        return null;
View Full Code Here

      source = this.getIdToNodeMap().get(f.source().name());
      target = this.getIdToNodeMap().get(f.destination().name());
     
      if (LinkIdFactory.getLinkUri(f.label().name).equals(Uris.DEFAULT_LINK_URI)) {
        String id = LinkIdFactory.getLinkId(Uris.DEFAULT_LINK_URI, source.getId(), target.getId());         
        l = new CompactObjectPropertyLink(id, ObjectPropertyType.None);
      }
      else l = this.getIdToLinkMap().get(f.label().name);
      weight = f.weight();
      if (!visitedNodes.contains(source)) {
        tree.addVertex(source);
View Full Code Here

TOP

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

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.