opener-ned 2.0.1 → 2.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 52feee8c2bb6f1cbc0e13e763564ebcf1d317ea5
4
- data.tar.gz: 9d3f246df66dd2ed80ea8f88530e8bd9ec5b19d8
3
+ metadata.gz: d4537c35e5d9c6249f4794fe5157a30ce6d42d10
4
+ data.tar.gz: 69b2d56576f125010b2110617ca230db77ed07d8
5
5
  SHA512:
6
- metadata.gz: 5c7af973b5ee38ffed564fb2cde68da63fda96af29153587a0c6780117801b2eba1c0e55d6f1a7c7258033c35dadaec907df304cae5d02d13184f35e635d6a8d
7
- data.tar.gz: 5bef0f6b3742aba26c61e4a1565075014bdf0d78c5bd7799830073fd31406576fefba4a51a14a3f0e8da0ceef6df0dff4f36ee6bca95212caeb02b8cc480737c
6
+ metadata.gz: cda69d001bef6e50266996ac6115d32650b9703fca2ad08d4b5429f528773443cef1fce6aab5f2c4cbf97efb49a37aa6f47a5421b302ba28fa5743df9e9223eb
7
+ data.tar.gz: ab648e10c1f1580b956f7ec62ce052a1b93a91f8e4e1d12a9142f3cb0ce446e341f9ff5df1a30153365eea7c82578723229c1845b686e718187400617ee34a0c
data/README.md CHANGED
@@ -9,7 +9,7 @@ DBpedia spotlight server. The client takes KAF as input (containing
9
9
 
10
10
  This software is part of a larger collection of natural language processing
11
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
12
+ project at [the OpeNER portal](http://opener-project.github.io). There you can
13
13
  also find references to terms like KAF (an XML standard to represent linguistic
14
14
  annotations in texts), component, cores, scenario's and pipelines.
15
15
 
@@ -26,7 +26,7 @@ output KAF by default.
26
26
 
27
27
  ### Command line interface
28
28
 
29
- The NED client connects to the (DBPedia spotlight demo servers)[http://dbpedia-spotlight.github.io/demo/].
29
+ The NED client connects to the [DBPedia spotlight demo servers](http://dbpedia-spotlight.github.io/demo/).
30
30
 
31
31
  A simple example:
32
32
 
@@ -84,10 +84,8 @@ Description of dependencies
84
84
  ---------------------------
85
85
 
86
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]
87
+ components. You can find an installation guide and helper tools in the [OpeNER installer](ttps://github.com/opener-project/opener-installer) and an
88
+ [installation guide on the Opener Website](http://opener-project.github.io/getting-started/how-to/local-installation.html)
91
89
 
92
90
  At least you need the following system setup:
93
91
 
@@ -114,20 +112,20 @@ Language Extension
114
112
  Where to go from here
115
113
  ---------------------
116
114
 
117
- * Check (the project websitere)[http://opener-project.github.io]
118
- * (Checkout the webservice)[http://opener.olery.com/ned]
115
+ * [Check the project websitere](http://opener-project.github.io)
116
+ * [Checkout the webservice](http://opener.olery.com/ned)
119
117
 
120
118
  Report problem/Get help
121
119
  -----------------------
122
120
 
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].
121
+ If you encounter problems, please email <support@opener-project.eu> or leave an
122
+ issue in the [issue tracker](https://github.com/opener-project/ned/issue).
125
123
 
126
124
 
127
125
  Contributing
128
126
  ------------
129
127
 
130
- 1. Fork it ( http://github.com/opener-project/ned/fork )
128
+ 1. Fork it <http://github.com/opener-project/ned/fork>
131
129
  2. Create your feature branch (`git checkout -b my-new-feature`)
132
130
  3. Commit your changes (`git commit -am 'Add some feature'`)
133
131
  4. Push to the branch (`git push origin my-new-feature`)
data/bin/ned-daemon ADDED
@@ -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
+ )
Binary file
data/exec/ned.rb ADDED
@@ -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.0.1'
3
+ VERSION = '2.0.2'
4
4
  end # Ned
5
5
  end # Opener
data/opener-ned.gemspec CHANGED
@@ -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) }
@@ -25,6 +26,8 @@ Gem::Specification.new do |gem|
25
26
  gem.add_dependency 'opener-webservice'
26
27
  gem.add_dependency 'nokogiri'
27
28
  gem.add_dependency 'puma'
29
+ gem.add_dependency 'opener-daemons'
30
+ gem.add_dependency 'opener-core', ['>= 0.1.2']
28
31
 
29
32
  gem.add_development_dependency 'opener-build-tools'
30
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.0.1
4
+ version: 2.0.2
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
@@ -80,6 +80,34 @@ dependencies:
80
80
  version: '0'
81
81
  prerelease: false
82
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
83
111
  - !ruby/object:Gem::Dependency
84
112
  name: opener-build-tools
85
113
  version_requirements: !ruby/object:Gem::Requirement
@@ -111,6 +139,7 @@ dependencies:
111
139
  description: NED client using DBpedia
112
140
  email:
113
141
  executables:
142
+ - ned-daemon
114
143
  - ned-server
115
144
  - ned
116
145
  extensions: []
@@ -126,6 +155,8 @@ files:
126
155
  - opener-ned.gemspec
127
156
  - config.ru
128
157
  - README.md
158
+ - exec/ned.rb
159
+ - bin/ned-daemon
129
160
  - bin/ned-server
130
161
  - bin/ned
131
162
  homepage: