diff --git a/lib/AtteanX/Serializer/SPARQLHTML.pm b/lib/AtteanX/Serializer/SPARQLHTML.pm index 3075ab1e..d5ef9728 100644 --- a/lib/AtteanX/Serializer/SPARQLHTML.pm +++ b/lib/AtteanX/Serializer/SPARQLHTML.pm @@ -140,13 +140,13 @@ Serializes the L object as HTML. s/&/&/g; s/$uri]; if (my $map = $self->namespaces) { - my $abr = $map->abbreviate($html); + my $abr = $map->abbreviate($uri); if ($abr) { - return qq[$abr]; + return qq[$abr]; } else { return $html; } @@ -160,7 +160,6 @@ Serializes the L object as HTML. # if ($link) { # $html = qq[$html]; # } - return $html; } elsif ($node->does('Attean::API::Literal')) { my $html = $node->value; for ($html) {