Package org.mmisw.orrclient.gwt.client.rpc

Examples of org.mmisw.orrclient.gwt.client.rpc.PropertyInfo


     
      if ( entityUri == null ) {
        continue;
      }
       
      PropertyInfo entityInfo = new PropertyInfo();
      entityInfo.setUri(entityUri);
      entityInfo.setDomainUri(domainUri);


      // is ontologyUri a prefix of entityUri?
      if ( entityUri.indexOf(ontologyUri) == 0 ) {
        String localName = entityUri.substring(ontologyUri.length());
        localName = localName.replaceAll("^/+", "");
        entityInfo.setLocalName(localName);
      }
      else {
        // use the given entityUri as the local name.
        // Note that the query is made against the ontology, so every entity
        // found there should be included.
        String localName = _getLocalName(entityUri);
        entityInfo.setLocalName(localName);
      }

      if ( entityInfo != null ) {
        _addProps(entityUri, entityInfo, ontModel);
        entities.add(entityInfo);
View Full Code Here


    }
   
    ExtendedIterator<DatatypeProperty> props = ontModel.listDatatypeProperties();
    while ( props.hasNext() ) {
      DatatypeProperty prop = props.next();
      PropertyInfo entityInfo = _createPropertyInfo(prop, ontologyUri, ontModel);
      if ( entityInfo != null ) {
        entities.add(entityInfo);
      }
    }
   
View Full Code Here

    }
   
    ExtendedIterator<ObjectProperty> props = ontModel.listObjectProperties();
    while ( props.hasNext() ) {
      ObjectProperty prop = props.next();
      PropertyInfo entityInfo = _createPropertyInfo(prop, ontologyUri, ontModel);
      if ( entityInfo != null ) {
        entities.add(entityInfo);
      }
    }
   
View Full Code Here

      return null;
    }
    String entityUri = prop.getURI();
    String localName = _getLocalName(entityUri, ontologyUri);
   
    PropertyInfo entityInfo = new PropertyInfo();
    entityInfo.setUri(entityUri);
    entityInfo.setLocalName(localName);

    OntResource domain = null;
    if ( prop instanceof OntProperty ) {
      OntProperty ontProp = (OntProperty) prop;
      domain = ontProp.getDomain();
    }
    if ( domain != null &&  domain.isURIResource() ) {
      String domainUri = domain.getURI();
      entityInfo.setDomainUri(domainUri);
    }

    _addProps(entityUri, entityInfo, ontModel, null);
    return entityInfo;
  }
View Full Code Here

TOP

Related Classes of org.mmisw.orrclient.gwt.client.rpc.PropertyInfo

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.