Subject: | regex for resource identification is too liberal |
Line 108 of Serialiser.pm, when deciding whether to treat the triple as
a resource or a literal, uses the test:
($statement->[2] =~ m/^\w+\:/)
but this matches a LOT of strings that are not URLs. Please change it
to the following:
($statement->[2] =~ m/^[a-z]+:/)
Or better yet:
use Regex::Common qw(URI);
($statement->[2] =~ m/$RE{URI}/)
However, can an RDF resource be anything other than http or file ???
--
- - Martin 'Kingpin' Thurn