Package org.openrdf.http.client

Examples of org.openrdf.http.client.NamespaceClient


  private Map<String, String> getNamespaceMap()
    throws StoreException
  {
    long now = System.currentTimeMillis();
    if (namespaces == null || !namespaces.isFresh(now)) {
      NamespaceClient client = this.client.namespaces();
      if (namespaces != null) {
        client.ifNoneMatch(namespaces.getETag());
      }
      NamespaceResult result = client.list();
      if (result == null) {
        assert namespaces != null;
        namespaces.refreshed(now, client.getMaxAge());
      }
      else {
        namespaces = new CachedNamespaceResult(result.asMap(), client.getETag());
      }
    }
    return namespaces.getNamespaces();
  }
View Full Code Here

TOP

Related Classes of org.openrdf.http.client.NamespaceClient

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.