private Triple convertToInternalReference ( final Triple t , final IdentifierConverter < Resource , FedoraResource > idTranslator , final IdentifierConverter < Resource , FedoraResource > internalIdTranslator ) { if ( t . getObject ( ) . isURI ( ) ) { final Resource object = createResource ( t . getObject ( ) . getURI ( ) ) ; if ( idTranslator . inDomain ( object ) ) { final String path = idTranslator . convert ( object ) . getPath ( ) ; final Resource obj = createResource ( internalIdTranslator . toDomain ( path ) . getURI ( ) ) ; LOGGER . debug ( "Converting referencing resource uri {} to internal identifier {}." , t . getObject ( ) . getURI ( ) , obj . getURI ( ) ) ; return new Triple ( t . getSubject ( ) , t . getPredicate ( ) , obj . asNode ( ) ) ; } } return t ; }
Convert the referencing resource uri to un - dereferenceable internal identifier .