Examples of copyWithVersion()


Examples of org.mmisw.ont.mmiuri.MmiUri.copyWithVersion()

            map.put("authority", "-");

            try {
                MmiUri mmiUri = new MmiUri(ontology.getUri());
                String uri = mmiUri.copyWithVersion(null).clone().getOntologyUri();
                String authority = mmiUri.getAuthority().toLowerCase();

                map.put("uri", uri);
                map.put("version_status", getVersionStatus(versionStatus, authority));
                map.put("authority", authority);
View Full Code Here

Examples of org.mmisw.ont.mmiuri.MmiUri.copyWithVersion()

      if ( OntServiceUtil.isOntResolvableUri(ontologyUri) ) {
        try {
          MmiUri mmiUri = new MmiUri(ontologyUri);
          authority = mmiUri.getAuthority();
          shortName = mmiUri.getTopic();
          unversionedUri = mmiUri.copyWithVersion(null).getOntologyUri();
        }
        catch (URISyntaxException e) {
          // shouldn't happen.
         
          String error = "Shouldn't happen: ont-resolvable URI is not an MmiUri: "
View Full Code Here

Examples of org.mmisw.ont.mmiuri.MmiUri.copyWithVersion()

      if ( OntServiceUtil.isOntResolvableUri(ontologyUri) ) {
        try {
          MmiUri mmiUri = new MmiUri(ontologyUri);
          authority = mmiUri.getAuthority();
          shortName = mmiUri.getTopic();
          unversionedUri = mmiUri.copyWithVersion(null).getOntologyUri();
        }
        catch (URISyntaxException e) {
          // shouldn't happen.
         
          String error = "Shouldn't happen: ont-resolvable URI is not an MmiUri: "
View Full Code Here

Examples of org.mmisw.ont.mmiuri.MmiUri.copyWithVersion()

                    if ( OntServiceUtil.isOntResolvableUri(ontologyUri) ) {
                        // prefer to show the unversioned URI
                        try {
                            MmiUri mmiUri = new MmiUri(ontologyUri);
                            version = mmiUri.getVersion();
                            ontologyUri = mmiUri.copyWithVersion(null).getOntologyUri();
                        }
                        catch (URISyntaxException ignore) {
                        }
                    }
                    else {
View Full Code Here

Examples of org.mmisw.ont.mmiuri.MmiUri.copyWithVersion()

         
          // AG$: we don;t use the serialization; but here we need to update
          // the model reference to be unversionedModel:
          model = unversionedModel;

          ontologyUri = mmiUri.copyWithVersion(null).getOntologyUri();
        }
        catch (URISyntaxException e) {
          log.error("shouldn't happen", e);
          return;
        }
View Full Code Here

Examples of org.mmisw.ont.mmiuri.MmiUri.copyWithVersion()

      if (OntUtil.isOntResolvableUri(ontologyUri)) {
        MmiUri mmiUri;
        try {
          mmiUri = new MmiUri(ontologyUri);
          ontologyUri = mmiUri.copyWithVersion(null).getOntologyUri();
        }
        catch (URISyntaxException e) {
          log.error("shouldn't happen", e);
          return;
        }
View Full Code Here

Examples of org.mmisw.ont.mmiuri.MmiUri.copyWithVersion()

    MmiUri mmiUri = new MmiUri(generatedUsersUri);
    String version = mmiUri.getVersion();
   
    // unversioned URI for purposes of geting possible prior version, set up auqportal filename,
    // graphId, and report it in the result back to caller:
    final String unversUsersUri = mmiUri.copyWithVersion(null).getOntologyUri();
   
    // info from previous version if any:
    String ontologyId = null;
    String ontologyUserId = null;
    RegisteredOntologyInfo usersOntology = orrClient.getOntologyInfo(unversUsersUri);
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.