Package uk.ac.osswatch.simal.rdf

Examples of uk.ac.osswatch.simal.rdf.SimalRepositoryException


            .trim();
        String sha1;
        try {
          sha1 = RDFUtils.getSHA1(mbox);
        } catch (NoSuchAlgorithmException e) {
          throw new SimalRepositoryException("Unable to create SHA1 Sum", e);
        }
        Element sha1Element = doc.createElementNS(RDFUtils.FOAF_NS,
            "mbox_sha1sum");
        Text sha1Text = doc.createTextNode(sha1);
        sha1Element.appendChild(sha1Text);
View Full Code Here


    try {
      fileStoreDir = new File(SimalProperties
          .getProperty(SimalProperties.PROPERTY_SIMAL_DOAP_FILE_STORE)
          + File.separator + "simal-uploads");
    } catch (SimalRepositoryException e) {
      throw new SimalRepositoryException(
      "Unable to create the filestore for annotated files");
    }
    if(!fileStoreDir.mkdirs()) {
      throw new SimalRepositoryException(
      "Unable to create the filestore for annotated files");
    }

    String path = fileStoreDir.getAbsolutePath();
    if (!(filename.endsWith(".rdf") || filename.endsWith(".xml"))) {
View Full Code Here

            Long.toString(newId));
        try {
          SimalProperties.save();
        } catch (Exception e) {
          logger.warn("Unable to save properties file", e);
          throw new SimalRepositoryException(
              "Unable to save properties file when creating the next person ID", e);
        }

        return fullID.toString();
      }
View Full Code Here

      HashSet<IReview> reviews = findReviewsBySPARQL(queryStr);
      if (reviews.size() == 0) {
        return null;
      }
      if (reviews.size() > 1) {
        throw new SimalRepositoryException("Mulitple reviews found with ID = " + id);
      }
      return (IReview) reviews.toArray()[0];
    }
View Full Code Here

        return JenaSimalRepository.getInstance();
      case JCR: 
        // commented out as this code moved to a branch - do we need to remove it yet?
        // return JcrSimalRepository.getInstance();
      default:
        throw new SimalRepositoryException("Attempt to create an unknown repository type");
    }
  }
View Full Code Here

          return new JenaDocumentService(getInstance());
        case JCR: 
          // commented out as this code moved to a branch - do we need to remove it yet?
          // return new JcrHomepageService(getInstance());
        default:
          throw new SimalRepositoryException("Attempt to create an unknown repository type");
      }
  }
View Full Code Here

          return new JenaProjectService(getInstance());
        case JCR: 
          // commented out as this code moved to a branch - do we need to remove it yet?
          // return new JcrProjectService(getInstance());
        default:
          throw new SimalRepositoryException("Attempt to create an unknown repository type");
     
  }
View Full Code Here

          return new JenaReviewService(getInstance());
        case JCR: 
          // commented out as this code moved to a branch - do we need to remove it yet?
          // return new JcrReviewService(getInstance());
        default:
          throw new SimalRepositoryException("Attempt to create an unknown repository type");
      }
  }
View Full Code Here

          return new JenaOrganisationService(getInstance());
        case JCR: 
          // commented out as this code moved to a branch - do we need to remove it yet?
          // return new JcrOrganisationService(getInstance());
        default:
          throw new SimalRepositoryException("Attempt to create an unknown repository type");
      }
  }
View Full Code Here

          return new JenaCategoryService(getInstance());
        case JCR:
          // commented out as this code moved to a branch - do we need to remove it yet?
            // return new JcrCategoryService(getInstance());
        default:
          throw new SimalRepositoryException("Attempt to create an unknown repository type");
      }
  }
View Full Code Here

TOP

Related Classes of uk.ac.osswatch.simal.rdf.SimalRepositoryException

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.