module WordNet::DefaultDB
This gem is a container for the default database files required for the 'wordnet' gem. It's mostly just a wrapper around the Sqlite database from SQLUNet:
http://sqlunet.sourceforge.net/
Constants
- DATABASE_FILENAME
The name of the bundled Sqlite database
- DATA_DIR
The data directory which contains the database file
- REVISION
Version-control revision constant
- VERSION
Library version constant
Public Class Methods
uri()
click to toggle source
Return the Sequel URI for the database
# File lib/wordnet/defaultdb.rb, line 35 def self::uri dbfile = WordNet::DefaultDB::DATA_DIR + DATABASE_FILENAME return nil unless dbfile.exist? return "sqlite:%s" % [ dbfile ] end