Hello all,

Is there any way to access the prefixes from loaded documents via the Model 
interface? For example, I create a new model and read in a number of ontologies 
(e.g. DBpedia, FOAF) via the Model.read(InputStream, String) method. If I then 
call the getNsURIPrefix(String) with a URI (e.g. 
http://xmlns.com/foaf/0.1/Person) I would expect that it should return "foaf" 
as that prefix was bound when I loaded the FOAF ontology, but instead it just 
returns null. Is it possible to capture the prefix mappings when the files are 
loaded?

Thanks in advance for any solutions,
Evan Patton

Reply via email to