question: public static Model createIncludesModel ( Model model , String graphURI ) { Set < Graph > graphs = new HashSet < Graph > ( ) ; Graph baseGraph = model . getGraph ( ) ; addIncludes ( baseGraph , graphURI , graphs , new HashSet < String > ( ) ) ; if ( graphs . size ( ) == 1 ) { return model ; } else { MultiUnion union = new MultiUnion ( graphs . iterator ( ) ) ; union . setBaseGraph ( baseGraph ) ; return ModelFactory . createModelForGraph ( union ) ; } }
target:  Creates an includes Model for a given input Model. The includes Model is the union of the input Model will all graphs linked via sh:include (or owl:imports), transitively. 