MemModel::findVocabulary doesn't always work correctly when the index type is 0. It expects # as the last char of the namespaces, but not all namespaces end with that char. In this particular case, I'm extracting RDF from the Adobe XMP metadata of a JPEG file, and it has the following namespaces:
http://ns.adobe.com/iX/1.0/
http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/
http://ns.adobe.com/exif/1.0/
http://ns.adobe.com/pdf/1.3/
http://ns.adobe.com/photoshop/1.0/
http://ns.adobe.com/tiff/1.0/
http://ns.adobe.com/xap/1.0/
http://purl.org/dc/elements/1.1/
With other index types it works well.