public Set < Triple > getTriplesForObject ( DOReader reader ) throws ResourceIndexException { Set < Triple > objectTriples = new HashSet < Triple > ( ) ; try { for ( String modelRelobject : reader . getContentModels ( ) ) { if ( m_generators . containsKey ( modelRelobject ) ) { objectTriples . addAll ( m_generators . get ( modelRelobject ) . getTriplesForObject ( reader ) ) ; } } } catch ( ServerException e ) { throw new ResourceIndexException ( "Could not read object's content model" , e ) ; } return objectTriples ; }
Gets all triples implied by the object s models .