Package org.fcrepo.http.commons.api.rdf
Interface UriAwareResourceModelFactory
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
Modifier and TypeMethodDescriptionorg.apache.jena.rdf.model.ModelcreateModelForResource(org.fcrepo.kernel.api.models.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 Details
-
createModelForResource
org.apache.jena.rdf.model.Model createModelForResource(org.fcrepo.kernel.api.models.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
-