Skip Menu |

This queue is for tickets about the RDF-Simple CPAN distribution.

Report information
The Basics
Id: 29067
Status: resolved
Worked: 10 min
Priority: 0/
Queue: RDF-Simple

People
Owner: MTHURN [...] cpan.org
Requestors: MTHURN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.3
Fixed in: (no value)



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
Made the change, will appear in next release.