yowl 0.4.pre → 0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/INSTALL-MACOSX.md CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  Unfortunately, its not trivial to get YOWL to run on Mac OS X.
4
4
 
5
- You can either use MacPorts or Brew to install some of the components that YOWL needs.
5
+ You can either use MacPorts or HomeBrew to install some of the components that YOWL needs (graphviz
6
+ and wget) and we also need Fink (for libraptor version 1).
6
7
 
7
8
  ## MacPorts
8
9
 
@@ -16,10 +17,11 @@ sudo port install graphviz wget
16
17
 
17
18
  ## HomeBrew
18
19
 
19
- As an alternative to MacPorts, you can install Brew and use that to install Graphviz,
20
- for installation instructions of Brew look here: https://github.com/mxcl/homebrew/wiki/Installation
20
+ As an alternative to MacPorts, you can install HomeBrew and use that to install Graphviz,
21
+ for installation instructions of HomeBrew look [here](https://github.com/mxcl/homebrew/wiki/Installation)
22
+ or [here](http://mxcl.github.com/homebrew/).
21
23
 
22
- Once Brew is installed, install Graphviz and wget:
24
+ Once Brew is installed, install Graphviz and wget as follows:
23
25
 
24
26
  ```
25
27
  sudo brew install graphviz wget
data/lib/yowl.rb CHANGED
@@ -9,6 +9,8 @@ require 'rdf/raptor'
9
9
  require 'sparql'
10
10
  require 'graphviz'
11
11
  require 'optparse'
12
+ require 'optparse/version'
13
+ require 'yowl/version'
12
14
  require 'yowl/optionsparser'
13
15
  require 'yowl/options'
14
16
  require 'yowl/util'
@@ -1,20 +1,26 @@
1
1
  module YOWL
2
-
3
2
  class OptionsParser
4
-
5
3
  def self.parse(args_)
6
-
4
+
5
+ if args_.size == 0
6
+ args_[0] = '--help'
7
+ end
8
+
7
9
  options = Options.new
8
-
10
+
9
11
  opts = OptionParser.new do |opts|
10
12
  #
11
13
  # Set a banner, displayed at the top of the help screen.
12
14
  #
13
- opts.banner = "Usage: YOWL [<options>]"
14
-
15
- opts.separator ""
15
+ opts.banner = <<-EOF
16
+ #{YOWL::NAME_AND_VERSION}
17
+
18
+ Usage: #{YOWL::NAME} [<options>]
19
+
20
+ EOF
21
+
16
22
  opts.separator "Specific options:"
17
-
23
+
18
24
  opts.on('-i', '--ontology FILES', String, 'Read input FILES') do |ontology|
19
25
  options.ontology_file_names << ontology
20
26
  if args_.size > 0
@@ -27,7 +33,7 @@ module YOWL
27
33
  end
28
34
  end
29
35
  end
30
-
36
+
31
37
  opts.on('-o', '--output DIR', 'Write HTML output to DIR') do |dir|
32
38
  options.output_dir = dir
33
39
  end
@@ -35,36 +41,39 @@ module YOWL
35
41
  opts.on('-t', '--template DIR', 'Use ERB templates in DIR') do |dir|
36
42
  options.template_dir = dir
37
43
  end
38
-
44
+
39
45
  opts.on('--no-vann', 'Skip looking for vann:preferedNamespacePrefix') do |value|
40
46
  options.noVann = true
41
47
  end
42
48
 
43
49
  opts.separator ""
44
50
  opts.separator "Common options:"
45
-
46
- opts.on_tail("-?", "-h", "--help", "Show this message") do
51
+
52
+ opts.on("-?", "-h", "--help", "Show this message") do
47
53
  puts opts
48
- return nil
54
+ exit
49
55
  end
50
-
51
- opts.on_tail("-V", "--version", "Show version") do
52
- puts OptionParser::Version.join('.')
56
+
57
+ opts.on("-V", "--version", "Show version") do
58
+ puts YOWL::NAME_AND_VERSION
53
59
  exit
54
60
  end
55
61
 
56
- opts.on_tail("-v", "--verbose", "Show verbose logging") do
62
+ opts.on("-v", "--verbose", "Show verbose logging") do
57
63
  options.verbose = true
58
64
  end
59
65
 
60
- opts.on_tail("-q", "--quiet", "Suppress most logging") do
66
+ opts.on("-q", "--quiet", "Suppress most logging") do
61
67
  options.quiet = true
62
68
  end
63
-
69
+
70
+ opts.separator ""
71
+ opts.separator "For more help refer to https://github.com/jgeluk/yowl"
72
+
64
73
  end
65
-
74
+
66
75
  opts.parse!(args_)
67
-
76
+
68
77
  if ! options.validate()
69
78
  puts opts
70
79
  return nil
data/lib/yowl/version.rb CHANGED
@@ -1,3 +1,8 @@
1
1
  module YOWL
2
- VERSION = "0.4.pre"
2
+
3
+ NAME = "yowl"
4
+ VERSION = "0.4"
5
+
6
+ NAME_AND_VERSION = "#{NAME} #{VERSION}"
7
+
3
8
  end
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yowl
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15384665
5
- prerelease: 4
4
+ hash: 3
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - pre
10
- version: 0.4.pre
9
+ version: "0.4"
11
10
  platform: ruby
12
11
  authors:
13
12
  - Leigh Dodds
@@ -35,9 +34,25 @@ dependencies:
35
34
  type: :runtime
36
35
  version_requirements: *id001
37
36
  - !ruby/object:Gem::Dependency
38
- name: rdf
37
+ name: json
39
38
  prerelease: false
40
39
  requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ hash: 1
45
+ segments:
46
+ - 1
47
+ - 7
48
+ - 5
49
+ version: 1.7.5
50
+ type: :runtime
51
+ version_requirements: *id002
52
+ - !ruby/object:Gem::Dependency
53
+ name: rdf
54
+ prerelease: false
55
+ requirement: &id003 !ruby/object:Gem::Requirement
41
56
  none: false
42
57
  requirements:
43
58
  - - ">="
@@ -49,11 +64,11 @@ dependencies:
49
64
  - 8
50
65
  version: 0.3.8
51
66
  type: :runtime
52
- version_requirements: *id002
67
+ version_requirements: *id003
53
68
  - !ruby/object:Gem::Dependency
54
69
  name: rdf-raptor
55
70
  prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
71
+ requirement: &id004 !ruby/object:Gem::Requirement
57
72
  none: false
58
73
  requirements:
59
74
  - - ">="
@@ -65,11 +80,11 @@ dependencies:
65
80
  - 2
66
81
  version: 0.4.2
67
82
  type: :runtime
68
- version_requirements: *id003
83
+ version_requirements: *id004
69
84
  - !ruby/object:Gem::Dependency
70
85
  name: rdf-json
71
86
  prerelease: false
72
- requirement: &id004 !ruby/object:Gem::Requirement
87
+ requirement: &id005 !ruby/object:Gem::Requirement
73
88
  none: false
74
89
  requirements:
75
90
  - - ">="
@@ -81,11 +96,11 @@ dependencies:
81
96
  - 0
82
97
  version: 0.3.0
83
98
  type: :runtime
84
- version_requirements: *id004
99
+ version_requirements: *id005
85
100
  - !ruby/object:Gem::Dependency
86
101
  name: rdf-trix
87
102
  prerelease: false
88
- requirement: &id005 !ruby/object:Gem::Requirement
103
+ requirement: &id006 !ruby/object:Gem::Requirement
89
104
  none: false
90
105
  requirements:
91
106
  - - ">="
@@ -97,11 +112,27 @@ dependencies:
97
112
  - 0
98
113
  version: 0.3.0
99
114
  type: :runtime
100
- version_requirements: *id005
115
+ version_requirements: *id006
116
+ - !ruby/object:Gem::Dependency
117
+ name: rdf-xsd
118
+ prerelease: false
119
+ requirement: &id007 !ruby/object:Gem::Requirement
120
+ none: false
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ hash: 3
125
+ segments:
126
+ - 0
127
+ - 3
128
+ - 8
129
+ version: 0.3.8
130
+ type: :runtime
131
+ version_requirements: *id007
101
132
  - !ruby/object:Gem::Dependency
102
133
  name: sxp
103
134
  prerelease: false
104
- requirement: &id006 !ruby/object:Gem::Requirement
135
+ requirement: &id008 !ruby/object:Gem::Requirement
105
136
  none: false
106
137
  requirements:
107
138
  - - ">="
@@ -113,11 +144,11 @@ dependencies:
113
144
  - 14
114
145
  version: 0.0.14
115
146
  type: :runtime
116
- version_requirements: *id006
147
+ version_requirements: *id008
117
148
  - !ruby/object:Gem::Dependency
118
149
  name: sparql
119
150
  prerelease: false
120
- requirement: &id007 !ruby/object:Gem::Requirement
151
+ requirement: &id009 !ruby/object:Gem::Requirement
121
152
  none: false
122
153
  requirements:
123
154
  - - ">="
@@ -129,11 +160,11 @@ dependencies:
129
160
  - 1
130
161
  version: 0.3.1
131
162
  type: :runtime
132
- version_requirements: *id007
163
+ version_requirements: *id009
133
164
  - !ruby/object:Gem::Dependency
134
165
  name: ruby-graphviz
135
166
  prerelease: false
136
- requirement: &id008 !ruby/object:Gem::Requirement
167
+ requirement: &id010 !ruby/object:Gem::Requirement
137
168
  none: false
138
169
  requirements:
139
170
  - - ">="
@@ -145,7 +176,7 @@ dependencies:
145
176
  - 8
146
177
  version: 1.0.8
147
178
  type: :runtime
148
- version_requirements: *id008
179
+ version_requirements: *id010
149
180
  description: " Yet another OWL documentor. YOWL is a command line utility that can read a number of RDFS/OWL files, \n called the repository, and generate a documentation website from it, with visualisations like\n Class Diagrams (as SVG), Individuals Diagrams and Import Diagrams.\n"
150
181
  email:
151
182
  - leigh.dodds@talis.com
@@ -292,14 +323,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
292
323
  required_rubygems_version: !ruby/object:Gem::Requirement
293
324
  none: false
294
325
  requirements:
295
- - - ">"
326
+ - - ">="
296
327
  - !ruby/object:Gem::Version
297
- hash: 25
328
+ hash: 3
298
329
  segments:
299
- - 1
300
- - 3
301
- - 1
302
- version: 1.3.1
330
+ - 0
331
+ version: "0"
303
332
  requirements: []
304
333
 
305
334
  rubyforge_project: nowarning