Examples of RegisteredOntologyInfo


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

      Orr.log(log_prefix +"Ontology from VineMain is not a RegisteredOntologyInfo: " +uri);
      _loadDataOfWorkingOntologiesForMapping(pePopup, currentIdx + 1);
      return;
    }
   
    RegisteredOntologyInfo registeredOntologyInfo = (RegisteredOntologyInfo) ontologyInfo;
   
    AsyncCallback<RegisteredOntologyInfo> callback = new AsyncCallback<RegisteredOntologyInfo>() {

      public void onFailure(Throwable thr) {
        String error = thr.getClass().getName()+ ": " +thr.getMessage();
View Full Code Here

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

      if ( ! (ontologyInfo instanceof RegisteredOntologyInfo)) {
        // only add suggestions for registered ontologies
        continue;
      }
     
      RegisteredOntologyInfo registeredOntologyInfo = (RegisteredOntologyInfo) ontologyInfo;
     
      String lab = ontologyInfo.getDisplayLabel();
      String uri = ontologyInfo.getUri();
     
//      // include a star as a convenience to see the whole list if the user types in a star:
View Full Code Here

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

        return;
      }
      BaseOntologyInfo ontologyInfo = VineMain.getOntologyInfo(enteredText);
      if (ontologyInfo instanceof RegisteredOntologyInfo) {
        // It is a registered ontology -- load it as a working one:
        RegisteredOntologyInfo roi = (RegisteredOntologyInfo) ontologyInfo;
        mainPanel.notifyWorkingOntologyAdded(OntologySelection.this, roi, popup);
      }
      else {
        // Try as an external ontology:
        OntologySelection.this.mainPanel.addExternalOntology(enteredText, popup);
View Full Code Here

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

    listBox.clear();
    int newIndexToSelect = -1;
    int index = 0;
    for ( Entry<String, RegisteredOntologyInfo> entry : suggestions.entrySet() ) {
      String uri = entry.getKey();
      RegisteredOntologyInfo roi = entry.getValue();
      String entryText = uri + ": " + roi.getDisplayLabel();
      String entryTextLc = entryText.toLowerCase();
     
      int pos = 0;
      for (String tok : toks) {
        pos = entryTextLc.indexOf(tok, pos);
View Full Code Here

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

    String html = "<font color=\"green\">Ontology loaded in work space.</font>" +
        "<br/>" +
        "Ontology URI: <b>" +(namespace != null ? namespace : "undefined") + "</b>"
    ;
   
    RegisteredOntologyInfo roi = getWizard().getRegisteredOntologyInfo();
    String uri = roi.getUnversionedUri();
    HostingType hostingType = roi.getHostingType();
   
    switch ( hostingType ) {
    case FULLY_HOSTED:
      if ( namespace != null ) {
        html += "<br/>Note: entities in this namespace will be moved to " +uri;
View Full Code Here

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

     
      String unversionedUri,
      String authority,
      String shortName
  ) {
    RegisteredOntologyInfo registeredOntologyInfo = new RegisteredOntologyInfo();
   
    registeredOntologyInfo.setUri(ontologyUri);
    registeredOntologyInfo.setDisplayLabel(displayLabel);
    registeredOntologyInfo.setType(type);
    registeredOntologyInfo.setUserId(userId);
    registeredOntologyInfo.setContactName(contactName);
    registeredOntologyInfo.setVersionNumber(versionNumber);
    registeredOntologyInfo.setDateCreated(dateCreated);
    registeredOntologyInfo.setUsername(userName);
    registeredOntologyInfo.setOntologyId(ontologyId, userId);
   
    registeredOntologyInfo.setUnversionedUri(unversionedUri);
    registeredOntologyInfo.setAuthority(authority);
    registeredOntologyInfo.setShortName(shortName);

    _setHostingType(registeredOntologyInfo);
   
    return registeredOntologyInfo;
  }
View Full Code Here

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

      ;
      History.newItem(PortalConsts.T_BROWSE);
      return;
    }
   
    RegisteredOntologyInfo ontologyInfo = new RegisteredOntologyInfo();
    OntologyPanel ontologyPanel = new OntologyPanel(ontologyInfo, false, false);

    pctrl.setOntologyInfo(ontologyInfo);
    pctrl.setOntologyPanel(ontologyPanel);
   
View Full Code Here

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

      ;
      History.newItem(PortalConsts.T_BROWSE);
      return;
    }
   
    RegisteredOntologyInfo ontologyInfo = new RegisteredOntologyInfo();
    OntologyPanel ontologyPanel = new OntologyPanel(ontologyInfo, false, false);

    pctrl.setOntologyInfo(ontologyInfo);
    pctrl.setOntologyPanel(ontologyPanel);
   
View Full Code Here

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

    BaseOntologyInfo ontologyInfo = ontologyPanel.getOntologyInfo();
   
    if ( ontologyInfo instanceof RegisteredOntologyInfo ) {
      // this should be the normal case.
     
      RegisteredOntologyInfo roi = (RegisteredOntologyInfo) ontologyInfo;
      OntologyData ontologyData = roi.getOntologyData();
      if ( ontologyData instanceof OtherOntologyData ) {
        dispatchUploadNewVersionOntology(roi);
        return;
      }
     
View Full Code Here

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

//          bodyPanel.add(browsePanel);
        break;
       
      case UPLOAD_NEW_VERSION:
        if ( pctrl.getOntologyInfo() instanceof RegisteredOntologyInfo ) {
          RegisteredOntologyInfo roi = (RegisteredOntologyInfo) pctrl.getOntologyInfo();
          String uri = roi.getUri();
          if ( uri.equals(History.getToken()) ){
            resolveUri(uri);
          }
          else {
            History.newItem(uri);
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.