Skip Menu |

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

Report information
The Basics
Id: 13839
Status: resolved
Priority: 0/
Queue: RDF-Simple

People
Owner: Nobody in particular
Requestors: ascope [...] cpan.org
Cc:
AdminCc:

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



Subject: Patch to allow file:/// URI schemes when serializing
Hi - Attached is a small patch to allow for file:/// URIs when serializing subjects. I needed this for some local RDF stuff that isn't necessary meant to be shared with the interweb at large. I might come back in a day or two with a patch for x-urn URIs too, but one thing at a time. :-)
--- Serialiser.pm.dist Wed Aug 11 01:51:42 2004 +++ Serialiser.pm Sat Jul 23 07:35:32 2005 @@ -60,7 +60,7 @@ # assign identifier as an arbitrary (but resolving) uri my $id = $triples[0]->[0]; - if (($id =~ m/^http/) or ($id =~ m/^\#/)) { + if (($id =~ m/^(?:http|file)/) or ($id =~ m/^\#/)) { $object->{Uri} = $id; } else {