Search Mailing List Archives
[p4-feedback] Possible P4 bug in RenameEntitiesPanel
nick.drummond at cs.manchester.ac.uk
Tue Apr 14 06:09:50 PDT 2009
Thanks for pointing this out/tracking this down.
I've fixed this particular issue.
However, entities with escape sequences in their URIs can currently be a
problem because of qname rendering in abbreviated rdf/xml.
The parser is currently happy with URIs with escapes as long at the entity
is not used as a type. The rdf/xml renderer should be fixed to prevent these
2009/4/12 Ken Bernstein <kbernstein at ontoreason.com>
> Hi. This is my first post to the group so my apologies if I have posted to
> the wrong location.
> Enclosed is a very simple RDF/XML OWL file. Past the namespace
> it contains one individual defined as:
> <rdf:Description rdf:about="#Some%2DTest">
> When I select "Change multiple entity URIs" from the refactor menu, an
> exception occurs.
> In the class RenameEntitiesPanel, the method extractNSFromEntity retrieves
> the entity URI fragment. The returned fragment string is fully decoded in
> that the "%2D" is replaced with the "-". The string returned by
> entity.getURI().toString() is not decoded, so the subsequent call of
> uriStr.lastIndexOf(frag) throws an exception.
> So it seems that:
> a) There is a bug, or
> b) Entities should not have escaped characters in their URIs.
> Any help or guidance on this matter would be appreciated.
> Best regards,
> Ken Bernstein
> OntoReason, LLC
> p4-feedback mailing list
> p4-feedback at lists.stanford.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the p4-feedback