On Wednesday, July 31, 2013 08:47:33 PM Charles Li wrote:

> Using model.listNameSpaces(), I was able to list all actually, long "<
> http://blah.blah#>" format of namespaces, but I was unable to see what
> short namespace aliases are assigned to these actual namespaces.

Also note that listNamespaces() may well not do what you expect,
as indeed its Javadoc says: you get the namespace part of all the
URIs in the model used as (a) predicates and (b) the objects of an
RDF.type statement. Hence you won't get namespaces for URIs used
only as subjects or objects. (And those namespaces don't need prefixes.)
Also note that a model may have a prefix for some namespace N without
there being any actual uses of URIs in that namespace.

Chris

-- 
RIP Diana Wynne Jones, 1934 - 2011.

Epimorphics Ltd, http://www.epimorphics.com
Registered address: Court Lodge, 105 High Street, Portishead, Bristol BS20 6PT
Epimorphics Ltd. is a limited company registered in England (number 7016688)

Reply via email to