public class BaseEndpoint extends Object
| Modifier and Type | Field and Description |
|---|---|
protected javax.servlet.ServletContext |
context |
static String |
DUMMY_BASE_URI |
static String |
MIME_TURTLE |
protected javax.servlet.http.HttpServletRequest |
request |
protected javax.ws.rs.core.UriInfo |
uriInfo |
| Constructor and Description |
|---|
BaseEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
com.hp.hpl.jena.rdf.model.Model |
getBodyModel(javax.ws.rs.core.HttpHeaders hh,
InputStream body)
Load an RDF payload from a POST/PUT request.
|
Store |
getDefaultStore()
Return the default store, error if there is no such store configured
|
LuceneIndex |
getIndex(String name)
Find the given lucene index
|
com.hp.hpl.jena.rdf.model.Model |
getSafeBodyModel(javax.ws.rs.core.HttpHeaders hh,
InputStream body)
Load an RDF payload from a POST/PUT request.
|
void |
putToDefaultStore(javax.ws.rs.core.HttpHeaders hh,
InputStream body,
String graphname)
Utility which treats the request body as an RDF model
and adds it to the a named graph within the default store.
|
public static final String MIME_TURTLE
public static final String DUMMY_BASE_URI
@Context protected javax.servlet.ServletContext context
@Context protected javax.ws.rs.core.UriInfo uriInfo
@Context protected javax.servlet.http.HttpServletRequest request
public com.hp.hpl.jena.rdf.model.Model getBodyModel(javax.ws.rs.core.HttpHeaders hh,
InputStream body)
public com.hp.hpl.jena.rdf.model.Model getSafeBodyModel(javax.ws.rs.core.HttpHeaders hh,
InputStream body)
public Store getDefaultStore()
public void putToDefaultStore(javax.ws.rs.core.HttpHeaders hh,
InputStream body,
String graphname)
public LuceneIndex getIndex(String name)
Copyright © 2014. All rights reserved.