Package edu.isi.karma.model.serialization

Examples of edu.isi.karma.model.serialization.WebServicePublisher


     
      edu.isi.karma.rep.model.Model inputModel = s.getInputModel();
      edu.isi.karma.rep.model.Model outputModel = s.getOutputModel();
      String sparql;
     
      WebServicePublisher servicePublisher = new WebServicePublisher(s);
      if (getResourceType() == ResourceType.Input) {
        if (getFormat().equalsIgnoreCase(SerializationLang.SPARQL)) {
          sparql = inputModel.getSparqlConstructQuery(null);
          getResponse().setContentType(MimeType.TEXT_PLAIN);
          pw.write(sparql);
          return;
        } else
          m = servicePublisher.generateInputPart();
      }

      if (getResourceType() == ResourceType.Output) {
        if (getFormat().equalsIgnoreCase(SerializationLang.SPARQL)) {
          sparql = outputModel.getSparqlConstructQuery(null);
          getResponse().setContentType(MimeType.TEXT_PLAIN);
          pw.write(sparql);
          return;
        } else
          m = servicePublisher.generateOutputPart();;
      }
    }
   
    if (getFormat().equalsIgnoreCase(SerializationLang.XML))
      getResponse().setContentType(MimeType.APPLICATION_XML);
View Full Code Here


      logger.info("Source added to the Worksheet.");
    }
   
    try {
      if (service != null) {
        WebServicePublisher servicePublisher = new WebServicePublisher(service);
        servicePublisher.publish(Repository.Instance().LANG, true);
        logger.info("Service model has successfully been published to repository: " + service.getId());
        return new UpdateContainer(new InfoUpdate(
        "Service model has successfully been published to repository: " + service.getId()));
      } else { //if (source != null) {
        DataSourcePublisher sourcePublisher = new DataSourcePublisher(source, workspace.getFactory(), wk.getMetadataContainer().getSourceInformation());
View Full Code Here

TOP

Related Classes of edu.isi.karma.model.serialization.WebServicePublisher

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.