Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Bio-Phylo CPAN distribution.

Report information
The Basics
Id: 57212
Status: stalled
Priority: 0/
Queue: Bio-Phylo

People
Owner: Nobody in particular
Requestors: perl [...] toby.ink
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.21
Fixed in: (no value)



Subject: Regexp for CURIEs seems too narrow
Bio::Phylo::NeXML::Meta throws an error if CURIEs don't match m/^([a-zA-Z_]+):([a-zA-Z0-9_\-\.]+)$/ In fact, the RDFa spec allows a much wider set of characters in CURIEs. I'd recommend something like: use XML::RegExp; m/^($XML::RegExp::NCName)?:(\S*)$/ Yes - a single colon is actually a valid CURIE. (Per the XHTML+RDFa 1.0 spec, it expands to the URI <http://www.w3.org/1999/xhtml/vocab#>.)
Thanks for bringing this to my attention, I'll work on this. Best wishes, Rutger On Tue May 04 16:07:17 2010, TOBYINK wrote: Show quoted text
> Bio::Phylo::NeXML::Meta throws an error if CURIEs don't match > > m/^([a-zA-Z_]+):([a-zA-Z0-9_\-\.]+)$/ > > In fact, the RDFa spec allows a much wider set of characters in CURIEs. > I'd recommend something like: > > use XML::RegExp; > m/^($XML::RegExp::NCName)?:(\S*)$/ > > Yes - a single colon is actually a valid CURIE. (Per the XHTML+RDFa 1.0 > spec, it expands to the URI <http://www.w3.org/1999/xhtml/vocab#>.)
I am deferring fixing this because it seems like a highly esoteric bug that requires an additional dependency to be resolved. I'll come back to this if/when it turns out to be a real problem. On Tue May 04 16:07:17 2010, TOBYINK wrote: Show quoted text
> Bio::Phylo::NeXML::Meta throws an error if CURIEs don't match > > m/^([a-zA-Z_]+):([a-zA-Z0-9_\-\.]+)$/ > > In fact, the RDFa spec allows a much wider set of characters in CURIEs. > I'd recommend something like: > > use XML::RegExp; > m/^($XML::RegExp::NCName)?:(\S*)$/ > > Yes - a single colon is actually a valid CURIE. (Per the XHTML+RDFa 1.0 > spec, it expands to the URI <http://www.w3.org/1999/xhtml/vocab#>.)