org.openanzo.atom.client
Class APPRepository
java.lang.Object
org.openrdf.repository.sail.SailRepository
org.openanzo.atom.client.APPRepository
- All Implemented Interfaces:
- AtomClientConstants, org.openrdf.repository.Repository
public class APPRepository
- extends org.openrdf.repository.sail.SailRepository
- implements AtomClientConstants
| Fields inherited from interface org.openanzo.atom.client.AtomClientConstants |
CACHE_CONTROL_NO_CACHE, CLIENT_ERROR, CONTENT_ATOM_SERVICE_XML, CONTENT_ATOM_XML, CONTENT_JSON, CONTENT_RDF, HEADER_A_IM, HEADER_ACCEPT, HEADER_ALLOW, HEADER_CACHE_CONTROL, HEADER_CONTENT_TYPE, HEADER_ETAG, HEADER_IF_MATCH, HEADER_IF_MODIFIED_SINCE, HEADER_IF_NONE_MATCH, HEADER_IF_UNMODIFIED_SINCE, HTTP_BAD_REQUEST, HTTP_CONFLICT, HTTP_CREATED, HTTP_FORBIDDEN, HTTP_GONE, HTTP_INTERNAL_SERVER_ERROR, HTTP_METHOD_NOT_ALLOWED, HTTP_NOT_AUTHORIZED, HTTP_NOT_FOUND, HTTP_NOT_MODIFIED, HTTP_OK, HTTP_UNSUPPORTED_MEDIA, LINK_REL_ALTERNATE, LINK_REL_COLLECTION, LINK_REL_CONTENT_GRAPH, LINK_REL_EDIT, LINK_REL_EDIT_MEDIA, LINK_REL_FIRST, LINK_REL_HISTORY, LINK_REL_INTROSPECTION, LINK_REL_LAST, LINK_REL_NEXT, LINK_REL_PREVIOUS, LINK_REL_RELATED, LINK_REL_SELF |
|
Constructor Summary |
APPRepository(java.lang.String host,
int port,
java.lang.String atomContext,
java.lang.String username,
java.lang.String password)
|
APPRepository(java.lang.String namedGraphURI,
java.lang.String host,
int port,
java.lang.String atomContext,
java.lang.String username,
java.lang.String password)
|
|
Method Summary |
org.openrdf.repository.Repository |
abort()
|
org.openrdf.repository.Repository |
begin()
|
org.openrdf.repository.Repository |
commit()
|
java.lang.String |
doSPARQLQuery(java.lang.String query)
|
org.apache.abdera.model.Entry |
getEntry()
|
java.net.URI |
getNamedGraphUri()
|
java.lang.Long |
getRevision()
|
boolean |
refresh()
refresh the contents of the model, return true if changed. |
| Methods inherited from class org.openrdf.repository.sail.SailRepository |
getConnection, getDataDir, getSail, getValueFactory, initialize, isWritable, setDataDir, shutDown |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
APPRepository
public APPRepository(java.lang.String host,
int port,
java.lang.String atomContext,
java.lang.String username,
java.lang.String password)
throws java.lang.Exception
- Throws:
java.lang.Exception
APPRepository
public APPRepository(java.lang.String namedGraphURI,
java.lang.String host,
int port,
java.lang.String atomContext,
java.lang.String username,
java.lang.String password)
throws java.lang.Exception
- Throws:
java.lang.Exception
begin
public org.openrdf.repository.Repository begin()
abort
public org.openrdf.repository.Repository abort()
commit
public org.openrdf.repository.Repository commit()
refresh
public boolean refresh()
throws java.lang.Exception
- refresh the contents of the model, return true if changed.
- Returns:
-
- Throws:
java.lang.Exception
getNamedGraphUri
public java.net.URI getNamedGraphUri()
getEntry
public org.apache.abdera.model.Entry getEntry()
getRevision
public java.lang.Long getRevision()
doSPARQLQuery
public java.lang.String doSPARQLQuery(java.lang.String query)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.