Package org.apache.clerezza.rdf.core.access

Examples of org.apache.clerezza.rdf.core.access.LockableMGraphWrapper


        try {
            otimizationIndicator.createNewFile();
        } catch (IOException ex) {
            throw new RuntimeException(ex);
        }
        LockableMGraph result = new LockableMGraphWrapper(getMGraph(tcDir));
        mGraphMap.put(name, result);
        return result;
    }
View Full Code Here


        if (mGraphsDir.exists()) {
            for (String mGraphDirName : mGraphsDir.list()) {
                try {
                    UriRef uri = new UriRef(URLDecoder.decode(mGraphDirName, "utf-8"));
                    log.info("loading: "+mGraphDirName);
                    mGraphMap.put(uri, new LockableMGraphWrapper(getMGraph(new File(mGraphsDir, mGraphDirName))));
                } catch (UnsupportedEncodingException ex) {
                    throw new RuntimeException("utf-8 not supported", ex);
                } catch (Exception e) {
                    log.error("Could not load tdb graph in "+mGraphDirName, e);
                }
View Full Code Here

    try {
      otimizationIndicator.createNewFile();
    } catch (IOException ex) {
      throw new RuntimeException(ex);
    }
    LockableMGraph result = new LockableMGraphWrapper(getMGraph(tcDir));
    mGraphMap.put(name, result);
    return result;
  }
View Full Code Here

    if (mGraphsDir.exists()) {
      for (String mGraphDirName : mGraphsDir.list()) {
        try {
          UriRef uri = new UriRef(URLDecoder.decode(mGraphDirName, "utf-8"));
          log.info("loading: "+mGraphDirName);
          mGraphMap.put(uri, new LockableMGraphWrapper(getMGraph(new File(mGraphsDir, mGraphDirName))));
        } catch (UnsupportedEncodingException ex) {
          throw new RuntimeException("utf-8 not supported", ex);
        } catch (Exception e) {
          log.error("Could not load tdb graph in "+mGraphDirName, e);
        }
View Full Code Here

    };
    final ContentGraphProvider cgProvider = new ContentGraphProvider() {

      @Override
      public LockableMGraph getContentGraph() {
        return new LockableMGraphWrapper(new SimpleMGraph());
      }

    };

    testedConceptProviderManager = new TestedConceptProviderManager();
View Full Code Here

        this.mainBlobUri = new UriRef(uri.getUnicodeString()+MAIN_BLOB_SUFFIX);
        this.parts.put(mainBlobUri, main);
        if(metadata instanceof LockableMGraph){
            this.metadata = (LockableMGraph)metadata;
        } else {
            this.metadata = new LockableMGraphWrapper(metadata);
        }
        //init the read and write lock
        this.readLock = this.metadata.getLock().readLock();
        this.writeLock = this.metadata.getLock().writeLock();
    //Better parse the Blob in the Constructor than calling a public
View Full Code Here

        this.mainBlobUri = new UriRef(uri.getUnicodeString()+MAIN_BLOB_SUFFIX);
        this.parts.put(mainBlobUri, main);
        if(metadata instanceof LockableMGraph){
            this.metadata = (LockableMGraph)metadata;
        } else {
            this.metadata = new LockableMGraphWrapper(metadata);
        }
        //init the read and write lock
        this.readLock = this.metadata.getLock().readLock();
        this.writeLock = this.metadata.getLock().writeLock();
    //Better parse the Blob in the Constructor than calling a public
View Full Code Here

TOP

Related Classes of org.apache.clerezza.rdf.core.access.LockableMGraphWrapper

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.