Examples of copyWithVersion()


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

    OntologyInfo ontology = null;
    if ( OntUtil.isOntResolvableUri(potentialOntUri) ) {
      try {
        MmiUri mmiUri = new MmiUri(potentialOntUri);
        // ignore version:
        mmiUri = mmiUri.copyWithVersion(null);
        ontology = getMostRecentOntologyVersion(mmiUri);
      }
      catch (URISyntaxException e) {
        // Not an MmiUri. Just try to use the argument as given:
        ontology = getOntology(potentialOntUri);
View Full Code Here

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

          mmiUri = new MmiUri(ontologyUri);
          OntModel unversionedModel = UnversionedConverter.getUnversionedModel(model, mmiUri);
         
          serialization = JenaUtil2.getOntModelAsString(unversionedModel, "RDF/XML-ABBREV");
         
          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(ontUri);
        version2 = mmiUri.getVersion();
       
        if ( version2 == null || version2.length() == 0 ) {
          // insert the version fragment so we are able to search in the database
          ontUri = mmiUri.copyWithVersion(version).getOntologyUri();
          if ( log.isDebugEnabled() ) {
            log.debug("_unregisterOntology: inserted version fragment: " +ontUri);
          }

        }
View Full Code Here

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

      if ( OntUtil.isOntResolvableUri(ontologyUri) ) {
        MmiUri mmiUri;
        try {
          mmiUri = new MmiUri(ontologyUri);
          model = UnversionedConverter.getUnversionedModel(model, mmiUri);
          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 ( USE_UNVERSIONED ) {
      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()

      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(ontology.getUri());
        if ( authority.equalsIgnoreCase(mmiUri.getAuthority())) {
          Item item = new Item();
          item.name = ontology.getDisplayLabel();
          item.version = mmiUri.getVersion();
          item.uri = mmiUri.copyWithVersion(null).getOntologyUri();
          selected.add(item);
        }
      }
      catch (URISyntaxException ignore) {
      }
View Full Code Here

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

                  log.debug("listVocabularies: mapping ontology discarded: " + ontologyUri);
                }
                continue;
              }

              String unversionedOntologyUri = mmiUri.copyWithVersion(null).toString();

              // always add unversioned one:
              out.println(unversionedOntologyUri+ SEP +display_label);
             
              if ( unverAndVer ) {   
View Full Code Here

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

                  log.debug("listMappings: non-mapping ontology discarded: " +ontologyUri);
                }
                continue;
              }

              String unversionedOntologyUri = mmiUri.copyWithVersion(null).toString();

              // always add unversioned one:
              out.println(unversionedOntologyUri+ SEP +display_label);
             
              if ( unverAndVer ) {   
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.