rdf_schema_generator 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/rdf_schema_generator.rb +5 -2
- metadata +2 -2
data/rdf_schema_generator.rb
CHANGED
@@ -13,8 +13,11 @@ class RdfSchemaGenerator < Rails::Generator::NamedBase
|
|
13
13
|
setup
|
14
14
|
end
|
15
15
|
|
16
|
-
def setup
|
17
|
-
|
16
|
+
def setup
|
17
|
+
proxy_uri = URI.parse(ENV['http_proxy']) if ENV['http_proxy']
|
18
|
+
(proxy_host, proxy_port = proxy_uri.host, proxy_port) if proxy_uri
|
19
|
+
http_protocol = Net::HTTP::Proxy(proxy_host, proxy_port)
|
20
|
+
content = http_protocol.get URI.parse(@url)
|
18
21
|
document = REXML::Document.new(content)
|
19
22
|
|
20
23
|
document.root.each_element('rdfs:Class') do |clazz|
|
metadata
CHANGED