Package org.mmisw.watchdog.orr.RegisterOntology

Examples of org.mmisw.watchdog.orr.RegisterOntology.RegistrationResult


    // remove trailing separator:
    String ontologyUri = namespace.replaceAll("(/|#)+$", "");
   
    String graphId = "";
    RegistrationResult result = RegisterOntology.register(
        username, password, ontologyUri , outputFile.toString(), fileContents, graphId, formAction);
   
    _log("Response status: " +result.status+ ": " +HttpStatus.getStatusText(result.status));
    _log("Response body:\n" +result.message);
  }
View Full Code Here


    URL url = new URL(ontologyUri);
    String ontName = new File(url.getPath()).getName();
    String contents = HttpUtil.getAsString(ontologyUri, "application/rdf+xml");
    _log("Registering " +ontologyUri+ " (" + contents.length() + ")");
   
    RegistrationResult result = RegisterOntology.register(orrUsername, orrPassword, ontologyUri, ontName, contents, "", orrFormAction);
    _log("RegistrationResult: status=" +result.status+ " message: " +result.message);
  }
View Full Code Here

    URL url = new URL(ontologyUri);
    String ontName = new File(url.getPath()).getName();
    String contents = HttpUtil.getAsString(ontologyUri, "application/rdf+xml");
    _log("Unregistering " +ontologyUri);
   
    RegistrationResult result = RegisterOntology.register(orrUsername, orrPassword, ontologyUri, ontName, contents, "", orrFormAction);
    _log("UnregistrationResult: status=" +result.status+ " message: " +result.message);
  }
View Full Code Here

TOP

Related Classes of org.mmisw.watchdog.orr.RegisterOntology.RegistrationResult

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.