public RdfStream addHttpComponentModelsForResourceToStream ( final RdfStream rdfStream , final FedoraResource resource , final UriInfo uriInfo , final IdentifierConverter < Resource , FedoraResource > idTranslator ) { LOGGER . debug ( "Adding additional HTTP context triples to stream" ) ; return new DefaultRdfStream ( rdfStream . topic ( ) , concat ( rdfStream , getUriAwareTripleFactories ( ) . entrySet ( ) . stream ( ) . flatMap ( e -> { LOGGER . debug ( "Adding response information using: {}" , e . getKey ( ) ) ; return stream ( spliteratorUnknownSize ( e . getValue ( ) . createModelForResource ( resource , uriInfo , idTranslator ) . listStatements ( ) , IMMUTABLE ) , false ) . map ( Statement :: asTriple ) ; } ) ) ) ; }
Add additional models to the RDF dataset for the given resource