Menu

#13 findVocabulary doesn't always work with index type 0

open
nobody
Model (10)
5
2006-12-26
2006-12-26
No

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.

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.