summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Legler <alex@a3li.li>2016-01-05 16:01:55 +0100
committerAlex Legler <alex@a3li.li>2016-01-05 16:01:55 +0100
commit8afb2d3c82fad8e90f729ac1af1f3ab899806c4f (patch)
tree47633cf68c3316f17176fda9e9741cc8f5df3843
parentBackport Array#to_h from 2.1 (diff)
downloadsemantic-data-toolkit-8afb2d3c82fad8e90f729ac1af1f3ab899806c4f.tar.gz
semantic-data-toolkit-8afb2d3c82fad8e90f729ac1af1f3ab899806c4f.tar.bz2
semantic-data-toolkit-8afb2d3c82fad8e90f729ac1af1f3ab899806c4f.zip
A little less conversion 🎶
-rwxr-xr-xprojects.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/projects.rb b/projects.rb
index 31a90e1..45d121b 100755
--- a/projects.rb
+++ b/projects.rb
@@ -6,6 +6,7 @@ require_relative 'lib/vocabulary'
require 'backports/2.1.0/array/to_h'
require 'json'
require 'rdf/rdfxml'
+require 'uri'
include RDF
abort "Usage: #{$PROGRAM_NAME} <RDF graph file or URL>" unless ARGV.first
@@ -63,7 +64,7 @@ projects_q.execute(graph) do |result|
project['email'] = email result[:proj_email].to_s
project['description'] = result[:proj_desc].to_s
project['irc'] = result[:proj_irc].to_s
- project['href'] = https result[:proj_href].to_s
+ project['href'] = URI.decode(https(result[:proj_href].to_s))
project['propagates_members'] = result[:propagates_members].to_s == 'true'
parent_id = label_to_id result[:parent_title].to_s