Package com.hp.hpl.jena.gvs

Examples of com.hp.hpl.jena.gvs.StoreException


    for (RelevantMoment relevantMoment : existingRelevantMoments) {
      if (relevantMoment.assertions.contains(sourceComponent)) {
        break;
      }
      if (relevantMoment.revocations.contains(sourceComponent)) {
        throw new StoreException(
            "Assertion "+moleculeRef+" of source "+source+" not found (already revoked at "+relevantMoment.moment+" which is before "+moment+")");
      }
      if (relevantMoment.revokeAllSources.contains(source)) {
        throw new StoreException(
            "Assertion "+moleculeRef+" of source "+source+" not found (not between "+relevantMoment.moment+" and "+moment+")");
      }
    }
    RelevantMoment relevantMoment = getRelevantMoment(moment);
View Full Code Here


  public void revokeComponent(Source source, NamedNode moleculeRef,
      Date moment) {
    Resource revokingComponentRes = getAssertionOf(source, moleculeRef,
        moment);
    if (revokingComponentRes == null) {
      throw new StoreException("Assertion not found");
    }
    Calendar calendar = Calendar.getInstance();
    calendar.setTime(moment);
    Literal momentLit = metaModel.createTypedLiteral(new XSDDateTime(
        calendar));
View Full Code Here

   */
  public FSSToreImpl(File storeDir, GraphCache cache) throws IOException {
    storeDir.mkdirs();
    lockFile = new File(storeDir, ".running-gvs-id");
    if (!lockFile.createNewFile()) {
      throw new StoreException(
          "Another instance seems to be still running, if not delete "
              + lockFile);
    }
    lockFile.deleteOnExit();
    File moleculeStoreDir = new File(storeDir, "moleculestore");
View Full Code Here

    for (MaximumContextualMolecule cMolecule : contextualMolecules) {
      NamedNode componentName = moleculeStore
          .getNameOfContextualMolecule(cMolecule);// MoleculesMap.get(cMolecule);
      if (componentName == null) {
        throw new StoreException(
            "Revoking compononent unknown to the store");
      }
      metaStore.revokeComponent(source, componentName, moment);
    }
View Full Code Here

      Set<FunctionallyGroundedNode> functionallyGroundedNodes, Date moment) {
    for (FunctionallyGroundedNode fgNode : functionallyGroundedNodes) {
      NamedNode componentName = moleculeStore
          .getNameOfFunctionallyGroundedNode(fgNode);// fgNodesMap.get(fgNode);
      if (componentName == null) {
        throw new StoreException(
            "Revoking compononent unknown to the store");
      }
      metaStore.revokeComponent(source, componentName, moment);
    }
View Full Code Here

    for (TerminalMolecule tMolecule : terminalMolecules) {
      NamedNode componentName = moleculeStore
          .getNameOfTerminalMolecule(tMolecule);// tMoleculesMap.get(tMolecule);
      if (componentName == null) {
        throw new StoreException(
            "Revoking compononent unknown to the store");
      }
      metaStore.revokeComponent(source, componentName, moment);
    }
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.gvs.StoreException

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.