From 23e10b3f1bfb49e00d144c59734daeaa3e276605 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 14 Jul 2011 21:03:27 +0200 Subject: Drop impossible to abbreviate datetypes. --- foaf/linkedin2rdf.pl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'foaf/linkedin2rdf.pl') diff --git a/foaf/linkedin2rdf.pl b/foaf/linkedin2rdf.pl index 3e4eb24..3349b73 100755 --- a/foaf/linkedin2rdf.pl +++ b/foaf/linkedin2rdf.pl @@ -20,9 +20,6 @@ my $NAMESPACES= { ical => 'http://www.w3.org/2002/12/cal/icaltzd#', cv => 'http://purl.org/captsolo/resume-rdf/0.2/cv#', hresume => 'http://ontologi.es/hresume#', -# TODO: somehow make RDF::Trine abbreviate labels -# 'xsd:dateTime' => 'http://www.w3.org/2001/XMLSchema#dateTime', -# 'geo:SpatialThing' => 'http://www.w3.org/2003/01/geo/wgs84_pos#SpatialThing', }; my $doc = HTML::Microformats @@ -38,6 +35,6 @@ my $output = rdf_string($model,'RDFXML', ); # TODO: somehow make RDF::Trine generate stable IDs -$output =~ s/(?<=rdf:nodeID=")B[a-f0-9]{32}(?=0[0-9]{3}")//g; +$output =~ s/(?<=rdf:nodeID="B)[a-f0-9]{32}(?=0[0-9]{3}")//g; print $output; -- cgit v1.2.3