Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
moving models to separate files
- Loading branch information
Showing
17 changed files
with
124 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class Casedword | ||
include DataMapper::Resource | ||
storage_names[:default]='casedword' | ||
property :wordid, Integer, :key => true | ||
property :lemma, String | ||
has 1, :sense, :child_key => [:casedwordid] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class Categorydef | ||
include DataMapper::Resource | ||
storage_names[:default]='categorydef' | ||
property :categoryid, Integer, :key => true | ||
property :name, String | ||
property :pos, String | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class Framedef | ||
include DataMapper::Resource | ||
storage_names[:framedef] | ||
property :frameid, Integer, :key => true | ||
property :frame, String | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class Frameref | ||
include DataMapper::Resource | ||
storage_names[:frameref] | ||
property :synsetid, Integer, :key => true | ||
property :wordid, Integer, :key => true | ||
property :frameid, Integer, :key => true | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
class Lexlinkref | ||
include DataMapper::Resource | ||
storage_names[:default]='lexlinkref' | ||
property :synset1id, Integer, :key => true | ||
property :word1id, Integer, :key => true | ||
property :synset2id, Integer, :key => true | ||
property :word2id, Integer, :key => true | ||
property :linkid, Integer, :key => true | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class Linkdef | ||
include DataMapper::Resource | ||
storage_names[:default]='linkdef' | ||
property :linkid, Integer, :key => true | ||
property :name, String | ||
property :recurses, Boolean | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class Morphdef | ||
include DataMapper::Resource | ||
storage_names[:morphdef] | ||
property :morphid, Integer, :key => true | ||
property :lemma, String | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class Morphref | ||
include DataMapper::Resource | ||
storage_names[:morphref] | ||
property :wordid, Integer, :key => true | ||
property :pos, String, :key => true | ||
property :morphid, Integer, :key => true | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
class Sample | ||
include DataMapper::Resource | ||
storage_names[:default]='sample' | ||
property :sampleid, Integer, :key => true | ||
property :synsetid, Integer, :key => true | ||
property :sample, String | ||
belongs_to :synset, :child_key => [:synsetid] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
class Sense | ||
include DataMapper::Resource | ||
storage_names[:default]='sense' | ||
property :synsetid, Integer, :key => true | ||
property :wordid, Integer, :key => true | ||
property :tagcount, Integer | ||
property :casedwordid, Integer | ||
property :lexid, Integer | ||
property :rank, Integer | ||
belongs_to :word, :child_key => [:wordid] | ||
belongs_to :synset, :child_key => [:synsetid] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class Sentencedef | ||
include DataMapper::Resource | ||
storage_names[:sentencedef] | ||
property :sentenceid, Integer, :key => true | ||
property :sentence, String | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class Sentenceref | ||
include DataMapper::Resource | ||
storage_names[:sentenceref] | ||
property :synsetid, Integer, :key => true | ||
property :wordid, Integer, :key => true | ||
property :sentenceid, Integer, :key => true | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class Semlinkref | ||
include DataMapper::Resource | ||
storage_names[:default]='semlinkref' | ||
property :synset1id, Integer, :key => true | ||
property :synset2id, Integer, :key => true | ||
property :linkid, Integer, :key => true | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
class Synset | ||
include DataMapper::Resource | ||
storage_names[:default]='synset' | ||
property :synsetid, Integer, :key => true | ||
property :categoryid, Integer | ||
property :definition, String | ||
property :pos, String | ||
belongs_to :categorydef, :child_key => [:categoryid] | ||
has n, :samples, :child_key => [:synsetid] | ||
has n, :senses, :child_key => [:synsetid] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
class Word | ||
include DataMapper::Resource | ||
storage_names[:default]='word' | ||
property :wordid, Integer, :key => true | ||
property :lemma, String | ||
has n, :senses, :child_key => [:wordid] | ||
has n, :synsets, :through => :senses, :child_key => [:wordid] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class Wordposition | ||
include DataMapper::Resource | ||
storage_names[:default]='wordposition' | ||
property :synsetid, Integer, :key => true | ||
property :wordid, Integer, :key => true | ||
belongs_to :sense, :child_key => [:synsetid, :wordid] | ||
end |