Class Item
java.lang.Object
com.atomgraph.core.model.impl.ResourceBase
com.atomgraph.core.model.impl.QueriedResourceBase
com.atomgraph.server.model.impl.ResourceBase
com.atomgraph.server.resource.graph.Item
- All Implemented Interfaces:
com.atomgraph.core.model.QueriedResource,com.atomgraph.core.model.Resource,QueriedResource,Resource
Named graph resource.
Implements direct graph identification of the SPARQL Graph Store Protocol.
- Author:
- Martynas Jusevičius <martynas@atomgraph.com>
- See Also:
-
GraphStore- 4.1 Direct Graph Identification
-
Constructor Summary
ConstructorsConstructorDescriptionItem(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, Optional<org.apache.jena.ontology.Ontology> ontology, Optional<TemplateCall> templateCall, javax.ws.rs.core.HttpHeaders httpHeaders, javax.ws.rs.container.ResourceContext resourceContext) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Responsedelete()HandlesDELETEmethod, deletes the RDF representation of this resource from the application's dataset, and returns response.javax.ws.rs.core.Responseget()javax.ws.rs.core.Responsepost(org.apache.jena.rdf.model.Model model) HandlesPOSTmethod.javax.ws.rs.core.Responseput(org.apache.jena.rdf.model.Model model) HandlesPUTmethod.Methods inherited from class com.atomgraph.server.model.impl.ResourceBase
getApplication, getCacheControl, getHttpHeaders, getLanguages, getOntology, getOntResource, getQuery, getQueryResource, getQuerySolutionMap, getResourceContext, getSubResource, getTemplateCall, getUpdate, getUpdateResourceMethods inherited from class com.atomgraph.core.model.impl.QueriedResourceBase
describe, getQuery, getServiceMethods inherited from class com.atomgraph.core.model.impl.ResourceBase
getEncodings, getEntityTag, getLastModified, getMediaTypes, getRequest, getResponse, getResponseBuilder, getURI, getUriInfo, getWritableMediaTypesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atomgraph.core.model.QueriedResource
describe
-
Constructor Details
-
Item
@Inject public Item(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.Request request, @Context com.atomgraph.core.MediaTypes mediaTypes, com.atomgraph.core.model.Service service, Application application, Optional<org.apache.jena.ontology.Ontology> ontology, Optional<TemplateCall> templateCall, @Context javax.ws.rs.core.HttpHeaders httpHeaders, @Context javax.ws.rs.container.ResourceContext resourceContext)
-
-
Method Details
-
get
public javax.ws.rs.core.Response get()- Specified by:
getin interfacecom.atomgraph.core.model.Resource- Overrides:
getin classResourceBase
-
post
public javax.ws.rs.core.Response post(org.apache.jena.rdf.model.Model model) Description copied from class:ResourceBaseHandlesPOSTmethod. Appends the submitted RDF representation to the application's dataset.- Specified by:
postin interfacecom.atomgraph.core.model.Resource- Overrides:
postin classResourceBase- Parameters:
model- the RDF payload- Returns:
- response
200 OK
-
put
public javax.ws.rs.core.Response put(org.apache.jena.rdf.model.Model model) Description copied from class:ResourceBaseHandlesPUTmethod. Deletes the resource description (if any) and appends the submitted RDF representation to the application's dataset.- Specified by:
putin interfacecom.atomgraph.core.model.Resource- Overrides:
putin classResourceBase- Parameters:
model- RDF payload- Returns:
- response
201 Createdif resource did not exist,200 OKif it did
-
delete
public javax.ws.rs.core.Response delete()Description copied from class:ResourceBaseHandlesDELETEmethod, deletes the RDF representation of this resource from the application's dataset, and returns response.- Specified by:
deletein interfacecom.atomgraph.core.model.Resource- Overrides:
deletein classResourceBase- Returns:
- response
204 No Content
-