Package org.fcrepo.http.commons.api.rdf
Interface UriAwareResourceModelFactory
-
- All Known Implementing Classes:
HttpApiResources
public interface UriAwareResourceModelFactory
Helper to generate an RDF model for a FedoraResourceImpl that (likely) creates relations from our resource to other HTTP components- Author:
- awoods
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.jena.rdf.model.Model
createModelForResource(FedoraResource resource, javax.ws.rs.core.UriInfo uriInfo)
Given a resource, the UriInfo and a way to generate graph subjects, create a model with triples to inject into an RDF response for the resource (e.g.
-
-
-
Method Detail
-
createModelForResource
org.apache.jena.rdf.model.Model createModelForResource(FedoraResource resource, javax.ws.rs.core.UriInfo uriInfo)
Given a resource, the UriInfo and a way to generate graph subjects, create a model with triples to inject into an RDF response for the resource (e.g. to add HATEOAS links)- Parameters:
resource
- the resourceuriInfo
- the uri info- Returns:
- model containing triples for the given resource
-
-