Examples of PTSWImport


Examples of uk.ac.osswatch.simal.importData.PTSWImport

  static PTSWImport importer;
  static Document ptswExport;

  @BeforeClass
  public static void createImporter() {
    importer = new PTSWImport();
  }
View Full Code Here

Examples of uk.ac.osswatch.simal.importData.PTSWImport

  private static final Logger logger = LoggerFactory
      .getLogger(ImportPTSWTask.class);

  @Override
  public void run() {
    PTSWImport importer = new PTSWImport();
    try {
      importer.importLatestDOAP();
    } catch (SimalException e) {
      logger.error("Unable to import data from PTSW", e);
    } catch (IOException e) {
      logger.error("Unable to import data from PTSW", e);
    }
View Full Code Here

Examples of uk.ac.osswatch.simal.importData.PTSWImport

   * Import all the documents updated since the last time we updated from PTSW.
   *
   * @throws SimalException
   */
  private static void importPTSW() throws SimalException {
    PTSWImport importer = new PTSWImport();
    Document pings = importer.getLatestPingsAsRDF();
    OutputFormat format = new OutputFormat(pings);
    StringWriter writer = new StringWriter();
    XMLSerializer serial = new XMLSerializer(writer, format);
    try {
      serial.serialize(pings);
View Full Code Here

Examples of uk.ac.osswatch.simal.importData.PTSWImport

          + e.getMessage(), ToolsPage.class);
    }
  }

  private void importPTSW() throws UserReportableException {
    PTSWImport importer = new PTSWImport();
    try {
      importer.importLatestDOAP();
    } catch (SimalRepositoryException e) {
      throw new UserReportableException(
          "Unable to import data into the repostory", ToolsPage.class, e);
    } catch (SimalException e) {
      throw new UserReportableException("Unable to import data from PTSW",
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.