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 {