From 3cdba8ac30ad6b8c822e7259bfb74ad56a983471 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Fri, 15 Oct 2010 16:34:12 +0200 Subject: Add foaf files and scripts. --- projects/foaf/fbfixup.pl | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100755 projects/foaf/fbfixup.pl (limited to 'projects/foaf/fbfixup.pl') diff --git a/projects/foaf/fbfixup.pl b/projects/foaf/fbfixup.pl new file mode 100755 index 0000000..5cc5f60 --- /dev/null +++ b/projects/foaf/fbfixup.pl @@ -0,0 +1,41 @@ +#!/usr/bin/perl + +# Sanitize RDF from Facebook Exporter + +undef $/; + +while (<>) { + + s{ + Mørkøv\n\s* + Vestsjalland\n\s* + Denmark\n\s* + + \n\s* + .*?\n\s* + \n\s* + \n\s* + + }{}gsx; + + s{ + \n\s* + + }{ + + + }gsx; + + s{ + \n\s* + \n\s* + \n\s* + \n\s* + .*?\n\s* + \n\s* + + }{}gsx; + + s,(( *)),$1\n$2$3\@chat.facebook.com,gs; + print; +} -- cgit v1.2.3