diff options
author | 2016-01-05 16:01:55 +0100 | |
---|---|---|
committer | 2016-01-05 16:01:55 +0100 | |
commit | 8afb2d3c82fad8e90f729ac1af1f3ab899806c4f (patch) | |
tree | 47633cf68c3316f17176fda9e9741cc8f5df3843 | |
parent | Backport Array#to_h from 2.1 (diff) | |
download | semantic-data-toolkit-8afb2d3c82fad8e90f729ac1af1f3ab899806c4f.tar.gz semantic-data-toolkit-8afb2d3c82fad8e90f729ac1af1f3ab899806c4f.tar.bz2 semantic-data-toolkit-8afb2d3c82fad8e90f729ac1af1f3ab899806c4f.zip |
A little less conversion 🎶
-rwxr-xr-x | projects.rb | 3 |
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 |