use of org.apache.stanbol.entityhub.model.sesame.RdfRepresentation in project stanbol by apache.
the class RdfIndexingSource method createRepresentationGraph.
/**
* Extracts the triples that belong to the {@link Representation} with the
* parsed id from the Sesame repository.
* @param con the repository connection
* @param uri the subject of the Representation to extract
* @return the representation with the extracted data.
* @throws RepositoryException
*/
protected RdfRepresentation createRepresentationGraph(RepositoryConnection con, org.openrdf.model.URI uri) throws RepositoryException {
RdfRepresentation rep = vf.createRdfRepresentation(uri);
Model model = rep.getModel();
extractRepresentation(con, model, uri, followBNodeState ? new HashSet<BNode>() : null);
return rep;
}
Aggregations