summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas <dr@jones.dk>2013-07-19 17:51:01 +0200
committerJonas <dr@jones.dk>2013-07-19 17:51:01 +0200
commit7bf68ba634163c2c7cefa220f49802574fb74a96 (patch)
tree6573501d0bd5376139788875898f17306ff6d7f4
parent10a459833a060fe6a55c56613256688ddbc96a78 (diff)
Simplyfy rdf2events::objectdescribe().
-rwxr-xr-xbin/rdf2events7
1 files changed, 3 insertions, 4 deletions
diff --git a/bin/rdf2events b/bin/rdf2events
index c8ed4da..a66b517 100755
--- a/bin/rdf2events
+++ b/bin/rdf2events
@@ -194,12 +194,11 @@ sub thingdescribe {
}
sub objectdescribe {
- my ($title, $thing, $uri) = @_;
+ my ($title, $thing, $urinode) = @_;
return undef unless ($thing);
- return thingdescribe( $title, $thing->literal_value, undef )
- unless ($uri);
- return thingdescribe( $title, $thing->literal_value, node2uri($uri) );
+
+ return thingdescribe( $title, $thing->literal_value, node2uri($urinode) );
}
sub node2uri {