@Component @Scope(value="prototype") public class FedoraSparql extends AbstractResource
| Modifier and Type | Field and Description |
|---|---|
protected javax.jcr.Session |
session |
datastreamService, eventBus, jcrTools, nodeService, objectService, pidMinter, repositoryService, sessions, uriInfo, versionService| Constructor and Description |
|---|
FedoraSparql() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
runSparqlQuery(InputStream requestBodyStream,
javax.ws.rs.core.Request request,
javax.ws.rs.core.UriInfo uriInfo)
Execute a SPARQL query against the JCR index
|
javax.ws.rs.core.Response |
sparqlQueryForm()
A stub method so we can return a text/html representation using
the right template.
|
addResponseInformationToStream, toPath@InjectedSession protected javax.jcr.Session session
public javax.ws.rs.core.Response sparqlQueryForm()
throws IOException,
javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionIOExceptionpublic javax.ws.rs.core.Response runSparqlQuery(InputStream requestBodyStream, @Context javax.ws.rs.core.Request request, @Context javax.ws.rs.core.UriInfo uriInfo) throws IOException, javax.jcr.RepositoryException
requestBodyStream - uriInfo - IOExceptionjavax.jcr.RepositoryExceptionCopyright © 2013-2014 DuraSpace, Inc.. All Rights Reserved.