First I need to ask if you use Windows? Because there is currently an
Issue with the BundleDataFile on Windows systems.
I'm on OS X, occasionally Linux.
The DataFileProvider can not return directories. If you need a
functionality like this I suggest to use a Zip archive, get the
InputStream, create an ArchiveInputStream and than read the entries
directly form this.
Ok. this is actually for the OWL API. Normally, you can create an
AutoIRIMapper(File directory) to gather ontologies recursively from a
directory and use those instead of dereferencing URIs.
Internally, this class recurses into files and subdirs by calling
directory.listFiles().
It would be great to have another IRIMapper implementation that recurses
into archive contents instead. It would be nice to obtain an InpuStream
for each ArchiveEntry without copying its content, can you do something
like that with commons-compressors? (perhaps the question is silly?)
I have never tried this with additional spaces and line breaks. Maybe try
<Data-Files>schemas,schemas/registry</Data-Files>
But because most users will write it like this I will definitely test
this and if currently not working add support for this.
Indeed, it's not trimming spaces and breaks. The way you suggested it
works for me too. Thanks!
The MainDataFileProvider will always throw IO Exceptions if a resource
is not found.
I imagined that. The problem was that the resource was supposed to be
found...
Alessandro
--
M.Sc. Alessandro Adamou
Alma Mater Studiorum - Università di Bologna
Department of Computer Science
Mura Anteo Zamboni 7, Bologna - Italy
Semantic Technology Laboratory (STLab)
Institute for Cognitive Science and Technology (ISTC)
National Research Council (CNR)
Via Nomentana 56, 00161 Rome - Italy
"As for the charges against me, I am unconcerned. I am beyond their timid, lying
morality, and so I am beyond caring."
(Col. Walter E. Kurtz)