Package org.deri.orefine.ckan.model

Examples of org.deri.orefine.ckan.model.Resource


    model.write(sw, null, "TURTLE");
    sw.flush();
    String url = storage.uploadFile(sw.toString(), provFileLabel, apikey);
    //build and return a representing resource
    String description = "RDF provenance description (from Google Refine)";
    return new Resource("text/turtle", description, url);
  }
View Full Code Here


    //Google Refine CSV exporter returns "application/x-unknown" as format I'll replace this with text/csv as it is more intuitive
    if(format.equals("application/x-unknown")){
      format = "text/csv";
    }
    String description = translate(format) + " (from Google Refine)";
    return new Resource(format, description, url);
  }
View Full Code Here

TOP

Related Classes of org.deri.orefine.ckan.model.Resource

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.