opener-ned 2.1.0 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a32557f4c5975993619a7c34fd8445c4a34c2772
4
- data.tar.gz: a1bf198c6c521deb21c295b6570e772ff2444cb6
3
+ metadata.gz: 2f8e7e7e81902565ee4114306df8d65bcd309aea
4
+ data.tar.gz: d9e7e2c4794392f6022ee7920c8218db4b0e215b
5
5
  SHA512:
6
- metadata.gz: 39f0013bf01f194047ecdd5921bca6618201045dd8197635fb2a34a023cbe4bf7a2d5a4365b338e9052b05c7fc8b6e57b7b6337b96105abca3231f5469b8adf3
7
- data.tar.gz: 56facef0fb80a8b52e50b7337ac82c3901f2a8938edce8a4f662ef593033658c8e25a04f7a39327f9fee65629b81eabdef8506500818e2f9455dd68de695d404
6
+ metadata.gz: 9b6990d7b5f33a154530298273406745ecefd326709c954ca4a6f7716f76a569a3ad8e0494e844a000988b1a1d816338dbfc09d1466221a31dbc5d9169333c57
7
+ data.tar.gz: a5680d80805c2999ca5da6bd8f8bf397cffeffebb190d5f410585e637a82f25de00912b9459c92dcabc6a739ce47b64ff29ec003bad5e7b8c298e7628855492d
data/README.md CHANGED
@@ -1,17 +1,12 @@
1
1
  Introduction
2
2
  ------------
3
3
 
4
- This repository contains a Named Entity Disambiguation tool that queries a
5
- DBpedia spotlight server. The client takes KAF as input (containing
6
- `<entities>` nodes).
4
+ This repository contains a Named Entity Disambiguation tool that queries a DBpedia spotlight server. The client takes KAF as input (containing `<entities>` nodes).
7
5
 
8
6
  ### Confused by some terminology?
9
7
 
10
- This software is part of a larger collection of natural language processing
11
- tools known as "the OpeNER project". You can find more information about the
12
- project at (the OpeNER portal)[http://opener-project.github.io]. There you can
13
- also find references to terms like KAF (an XML standard to represent linguistic
14
- annotations in texts), component, cores, scenario's and pipelines.
8
+ This software is part of a larger collection of natural language processing tools known as "the OpeNER project". You can find more information about the project at [the OpeNER portal](http://opener-project.github.io). There you can also find references to terms like KAF (an XML standard to represent linguistic annotations in texts), component, cores, scenario's and pipelines.
9
+
15
10
 
16
11
  Quick Use Example
17
12
  -----------------
@@ -20,13 +15,12 @@ Installing the ned can be done by executing:
20
15
 
21
16
  gem install opener-ned
22
17
 
23
- Please bare in mind that all components in OpeNER take KAF as an input and
24
- output KAF by default.
18
+ Please bare in mind that all components in OpeNER take KAF as an input and output KAF by default.
25
19
 
26
20
 
27
21
  ### Command line interface
28
22
 
29
- The NED client connects to the (DBPedia spotlight demo servers)[http://dbpedia-spotlight.github.io/demo/].
23
+ The NED client connects to the [DBPedia spotlight demo servers](http://dbpedia-spotlight.github.io/demo/).
30
24
 
31
25
  A simple example:
32
26
 
@@ -56,26 +50,20 @@ You can launch a language identification webservice by executing:
56
50
 
57
51
  ned-server
58
52
 
59
- This will launch a mini webserver with the webservice. It defaults to port 9292,
60
- so you can access it at <http://localhost:9292>.
53
+ This will launch a mini webserver with the webservice. It defaults to port 9292, so you can access it at <http://localhost:9292>.
61
54
 
62
- To launch it on a different port provide the `-p [port-number]` option like
63
- this:
55
+ To launch it on a different port provide the `-p [port-number]` option like this:
64
56
 
65
57
  ned-server -p 1234
66
58
 
67
59
  It then launches at <http://localhost:1234>
68
60
 
69
- Documentation on the Webservice is provided by surfing to the urls provided
70
- above. For more information on how to launch a webservice run the command with
71
- the ```-h``` option.
61
+ Documentation on the Webservice is provided by surfing to the urls provided above. For more information on how to launch a webservice run the command with the ```-h``` option.
72
62
 
73
63
 
74
64
  ### Daemon
75
65
 
76
- Last but not least the NED comes shipped with a daemon that
77
- can read jobs (and write) jobs to and from Amazon SQS queues. For more
78
- information type:
66
+ Last but not least the NED comes shipped with a daemon that can read jobs (and write) jobs to and from Amazon SQS queues. For moreinformation type:
79
67
 
80
68
  ned-daemon -h
81
69
 
@@ -83,11 +71,8 @@ information type:
83
71
  Description of dependencies
84
72
  ---------------------------
85
73
 
86
- This component runs best if you run it in an environment suited for OpeNER
87
- components. You can find an installation guide and helper tools in the (OpeNER
88
- installer)[https://github.com/opener-project/opener-installer] and (an
89
- installation guide on the Opener
90
- Website)[http://opener-project.github.io/getting-started/how-to/local-installation.html]
74
+ This component runs best if you run it in an environment suited for OpeNER components. You can find an installation guide and helper tools in the [OpeNER installer](ttps://github.com/opener-project/opener-installer) and an
75
+ [installation guide on the Opener Website](http://opener-project.github.io/getting-started/how-to/local-installation.html)
91
76
 
92
77
  At least you need the following system setup:
93
78
 
@@ -102,9 +87,7 @@ At least you need the following system setup:
102
87
 
103
88
  ### Structure
104
89
 
105
- This repository comes in two parts: a collection of Java source files and Ruby
106
- source files. The Java code can be found in the `core/` directory, everything
107
- else will be Ruby source code.
90
+ This repository comes in two parts: a collection of Java source files and Ruby source files. The Java code can be found in the `core/` directory, everything else will be Ruby source code.
108
91
 
109
92
  Language Extension
110
93
  ------------------
@@ -114,20 +97,20 @@ Language Extension
114
97
  Where to go from here
115
98
  ---------------------
116
99
 
117
- * Check (the project websitere)[http://opener-project.github.io]
118
- * (Checkout the webservice)[http://opener.olery.com/ned]
100
+ * [Check the project websitere](http://opener-project.github.io)
101
+ * [Checkout the webservice](http://opener.olery.com/ned)
119
102
 
120
103
  Report problem/Get help
121
104
  -----------------------
122
105
 
123
- If you encounter problems, please email support@opener-project.eu or leave an
124
- issue in the (issue tracker)[https://github.com/opener-project/ned/issues].
106
+ If you encounter problems, please email <support@opener-project.eu> or leave an issue in the
107
+ [issue tracker](https://github.com/opener-project/ned/issue).
125
108
 
126
109
 
127
110
  Contributing
128
111
  ------------
129
112
 
130
- 1. Fork it ( http://github.com/opener-project/ned/fork )
113
+ 1. Fork it <http://github.com/opener-project/ned/fork>
131
114
  2. Create your feature branch (`git checkout -b my-new-feature`)
132
115
  3. Commit your changes (`git commit -am 'Add some feature'`)
133
116
  4. Push to the branch (`git push origin my-new-feature`)
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'opener/daemons'
4
+
5
+ exec_path = File.expand_path('../../exec/ned.rb', __FILE__)
6
+
7
+ Opener::Daemons::Controller.new(
8
+ :name => 'ned',
9
+ :exec_path => exec_path
10
+ )
@@ -1,10 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require_relative '../lib/opener/ned/server'
3
+ require 'puma/cli'
4
4
 
5
- # Without calling `Rack::Server#options` manually the CLI arguments will never
6
- # be passed, thus the application can't be specified as a constructor argument.
7
- server = Rack::Server.new
8
- server.options[:config] = File.expand_path('../../config.ru', __FILE__)
5
+ rack_config = File.expand_path('../../config.ru', __FILE__)
9
6
 
10
- server.start
7
+ cli = Puma::CLI.new([rack_config] + ARGV)
8
+ cli.run
Binary file
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'opener/daemons'
4
+ require_relative '../lib/opener/ned'
5
+
6
+ options = Opener::Daemons::OptParser.parse!(ARGV)
7
+ daemon = Opener::Daemons::Daemon.new(Opener::Ned, options)
8
+
9
+ daemon.start
@@ -1,5 +1,5 @@
1
1
  module Opener
2
2
  class Ned
3
- VERSION = '2.1.0'
3
+ VERSION = '2.2.0'
4
4
  end # Ned
5
5
  end # Opener
@@ -15,7 +15,8 @@ Gem::Specification.new do |gem|
15
15
  'lib/**/*',
16
16
  '*.gemspec',
17
17
  'config.ru',
18
- 'README.md'
18
+ 'README.md',
19
+ 'exec/**/*'
19
20
  ]).select { |file| File.file?(file) }
20
21
 
21
22
  gem.executables = Dir.glob('bin/*').map { |file| File.basename(file) }
@@ -24,6 +25,9 @@ Gem::Specification.new do |gem|
24
25
  gem.add_dependency 'httpclient'
25
26
  gem.add_dependency 'opener-webservice'
26
27
  gem.add_dependency 'nokogiri'
28
+ gem.add_dependency 'puma'
29
+ gem.add_dependency 'opener-daemons'
30
+ gem.add_dependency 'opener-core', ['>= 0.1.2']
27
31
 
28
32
  gem.add_development_dependency 'opener-build-tools'
29
33
  gem.add_development_dependency 'rake'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opener-ned
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - development@olery.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-20 00:00:00.000000000 Z
11
+ date: 2014-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra
@@ -66,6 +66,48 @@ dependencies:
66
66
  version: '0'
67
67
  prerelease: false
68
68
  type: :runtime
69
+ - !ruby/object:Gem::Dependency
70
+ name: puma
71
+ version_requirements: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ requirement: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - '>='
79
+ - !ruby/object:Gem::Version
80
+ version: '0'
81
+ prerelease: false
82
+ type: :runtime
83
+ - !ruby/object:Gem::Dependency
84
+ name: opener-daemons
85
+ version_requirements: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ requirement: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - '>='
93
+ - !ruby/object:Gem::Version
94
+ version: '0'
95
+ prerelease: false
96
+ type: :runtime
97
+ - !ruby/object:Gem::Dependency
98
+ name: opener-core
99
+ version_requirements: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '>='
102
+ - !ruby/object:Gem::Version
103
+ version: 0.1.2
104
+ requirement: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - '>='
107
+ - !ruby/object:Gem::Version
108
+ version: 0.1.2
109
+ prerelease: false
110
+ type: :runtime
69
111
  - !ruby/object:Gem::Dependency
70
112
  name: opener-build-tools
71
113
  version_requirements: !ruby/object:Gem::Requirement
@@ -98,15 +140,18 @@ description: NED client using DBpedia
98
140
  email:
99
141
  executables:
100
142
  - ned
143
+ - ned-daemon
101
144
  - ned-server
102
145
  extensions: []
103
146
  extra_rdoc_files: []
104
147
  files:
105
148
  - README.md
106
149
  - bin/ned
150
+ - bin/ned-daemon
107
151
  - bin/ned-server
108
152
  - config.ru
109
153
  - core/target/ehu-ned-1.0.jar
154
+ - exec/ned.rb
110
155
  - lib/opener/ned.rb
111
156
  - lib/opener/ned/cli.rb
112
157
  - lib/opener/ned/public/markdown.css
@@ -138,3 +183,4 @@ signing_key:
138
183
  specification_version: 4
139
184
  summary: NED client using DBpedia
140
185
  test_files: []
186
+ has_rdoc: yard