public class ResourceBase extends com.atomgraph.core.model.impl.QueriedResourceBase implements Resource, QueriedResource
| Modifier | Constructor and Description |
|---|---|
|
ResourceBase(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Request request,
com.atomgraph.core.MediaTypes mediaTypes,
com.atomgraph.core.model.Service service,
Application application,
org.apache.jena.ontology.Ontology ontology,
TemplateCall templateCall,
javax.ws.rs.core.HttpHeaders httpHeaders,
com.sun.jersey.api.core.ResourceContext resourceContext)
Public JAX-RS instance.
|
protected |
ResourceBase(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Request request,
com.atomgraph.core.MediaTypes mediaTypes,
URI uri,
com.atomgraph.core.model.Service service,
Application application,
org.apache.jena.ontology.Ontology ontology,
TemplateCall templateCall,
javax.ws.rs.core.HttpHeaders httpHeaders,
com.sun.jersey.api.core.ResourceContext resourceContext) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
delete()
Handles
DELETE method, deletes the RDF representation of this resource from the application's dataset, and
returns response. |
Application |
getApplication() |
javax.ws.rs.core.CacheControl |
getCacheControl()
Returns the cache control of this resource, if specified.
|
javax.ws.rs.core.HttpHeaders |
getHttpHeaders()
Returns HTTP headers of the current request.
|
List<Locale> |
getLanguages()
Content languages supported by the matching LDT template.
|
org.apache.jena.ontology.Ontology |
getOntology() |
org.apache.jena.ontology.OntResource |
getOntResource()
Returns this resource as ontology resource.
|
org.apache.jena.query.Query |
getQuery()
Returns query used to retrieve RDF description of this resource.
|
org.apache.jena.query.QuerySolutionMap |
getQuerySolutionMap()
Returns variable bindings for description query.
|
com.sun.jersey.api.core.ResourceContext |
getResourceContext() |
javax.ws.rs.core.Response.ResponseBuilder |
getResponseBuilder(org.apache.jena.query.Dataset dataset)
Creates response builder from response dataset.
|
javax.ws.rs.core.Response.ResponseBuilder |
getResponseBuilder(org.apache.jena.rdf.model.Model model)
Creates response builder from response model.
|
Object |
getSubResource()
Returns sub-resource instance.
|
TemplateCall |
getTemplateCall()
Returns LDT template that the URI of this resource matches.
|
org.apache.jena.update.UpdateRequest |
getUpdate()
Returns update used to remove RDF description of this resource.
|
javax.ws.rs.core.Response |
post(org.apache.jena.query.Dataset dataset)
Handles
POST method. |
javax.ws.rs.core.Response |
put(org.apache.jena.query.Dataset dataset)
Handles
PUT method. |
describe, get, getQuery, getServicegetEncodings, getEntityTag, getEntityTag, getLastModified, getLastModified, getMediaTypes, getRequest, getResponse, getResponse, getURI, getUriInfo, getVariants, getWritableMediaTypespublic ResourceBase(@Context
javax.ws.rs.core.UriInfo uriInfo,
@Context
javax.ws.rs.core.Request request,
@Context
com.atomgraph.core.MediaTypes mediaTypes,
@Context
com.atomgraph.core.model.Service service,
@Context
Application application,
@Context
org.apache.jena.ontology.Ontology ontology,
@Context
TemplateCall templateCall,
@Context
javax.ws.rs.core.HttpHeaders httpHeaders,
@Context
com.sun.jersey.api.core.ResourceContext resourceContext)
ldt:Document, this resource becomes a page resource and
HATEOS metadata is added (relations to the container and previous/next page resources).application - LDT applicationmediaTypes - mediaTypesuriInfo - URI information of the current requestrequest - current requestservice - SPARQL serviceontology - LDT ontologytemplateCall - templateCallhttpHeaders - HTTP headers of the current requestresourceContext - resource contextprotected ResourceBase(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Request request,
com.atomgraph.core.MediaTypes mediaTypes,
URI uri,
com.atomgraph.core.model.Service service,
Application application,
org.apache.jena.ontology.Ontology ontology,
TemplateCall templateCall,
javax.ws.rs.core.HttpHeaders httpHeaders,
com.sun.jersey.api.core.ResourceContext resourceContext)
public Object getSubResource()
getSubResource in class com.atomgraph.core.model.impl.QueriedResourceBasepublic javax.ws.rs.core.Response post(org.apache.jena.query.Dataset dataset)
POST method. Appends the submitted RDF representation to the application's dataset.post in interface com.atomgraph.core.model.Resourcepost in class com.atomgraph.core.model.impl.QueriedResourceBasedataset - the RDF payload200 OKpublic javax.ws.rs.core.Response put(org.apache.jena.query.Dataset dataset)
PUT method. Deletes the resource description (if any) and
appends the submitted RDF representation to the application's dataset.put in interface com.atomgraph.core.model.Resourceput in class com.atomgraph.core.model.impl.QueriedResourceBasedataset - RDF payload201 Created if resource did not exist, 200 OK if it didpublic javax.ws.rs.core.Response delete()
DELETE method, deletes the RDF representation of this resource from the application's dataset, and
returns response.delete in interface com.atomgraph.core.model.Resourcedelete in class com.atomgraph.core.model.impl.QueriedResourceBase204 No Contentpublic org.apache.jena.query.QuerySolutionMap getQuerySolutionMap()
public javax.ws.rs.core.Response.ResponseBuilder getResponseBuilder(org.apache.jena.query.Dataset dataset)
Linkheader.
getResponseBuilder in class com.atomgraph.core.model.impl.ResourceBasedataset - response RDF datasetpublic javax.ws.rs.core.Response.ResponseBuilder getResponseBuilder(org.apache.jena.rdf.model.Model model)
Linkheader.
getResponseBuilder in class com.atomgraph.core.model.impl.ResourceBasemodel - response RDF modelpublic List<Locale> getLanguages()
getLanguages in class com.atomgraph.core.model.impl.ResourceBasepublic org.apache.jena.ontology.OntResource getOntResource()
public TemplateCall getTemplateCall()
404 Not Found was returned.public javax.ws.rs.core.CacheControl getCacheControl()
ldt:cacheControl on templates in the sitemap ontology.public org.apache.jena.query.Query getQuery()
getQuery in interface com.atomgraph.core.model.QueriedResourcegetQuery in class com.atomgraph.core.model.impl.QueriedResourceBasegetQuerySolutionMap()public org.apache.jena.update.UpdateRequest getUpdate()
getQuerySolutionMap()public javax.ws.rs.core.HttpHeaders getHttpHeaders()
public com.sun.jersey.api.core.ResourceContext getResourceContext()
public Application getApplication()
public org.apache.jena.ontology.Ontology getOntology()
Copyright © 2015–2020. All rights reserved.