PATTERNS OF DATA MODELING- P36

PATTERNS OF DATA MODELING- P36: Models provide the means for building quality software in a predictable manner. Models let developers think deeply about software and cope with large size and complexity. Developers can think abstractly before becoming enmeshed in the details of writing code. Although models are beneficial, they can be difficult to construct. That is where patterns come in. Patterns provide building blocks that help developers construct models faster and better. | 162 Chapter 12 Language Translation PhraseEquivalence AbbreviationType phraseEquivalencelD abbreviationTypelD abbreviationTypeName T i i Phrase__ phraselD string phraseEquivalencelD FK languagelD FK abbreviationTypelD FK Language languagelD languageName languageDiscrim languageDiscrim Dialect 1 1 MajorLanguage AllLanguage allLanguagelD FK majorLanguagelD FK allLanguagelD FK dialectlD FK majorLanguagelD FK Figure Phrase-to-phrase translation IDEF1X model. The translation service is dedicated software that runs apart from client applications. The translation database stores corresponding Phrases for various Languages and AbbreviationTypes. A person must populate the translation database. Upon request the service finds the translation given a source Phrase target Language and target AbbreviationType. Figure shows a sample application table that could be subject to the translation mechanism. The phrase-to-phrase approach has a language bias. For example the source data may be stored in English and converted to another language only upon translation mapping. Architecturally a language bias is undesirable because users may detect the favored language. Person familyName personalName birthdate birthPlace_English hairColor_English eyeColor_English height weight Figure Phrase-to-phrase translation Person model. The pseudocode in Figure illustrates the logic for finding a translation. The pseudocode is written using the UML s Object Constraint Language Warmer-1999 . The basic logic is to first look for an exact match to the target language. Otherwise if a Dialect is specified look for the corresponding MajorLanguage. If that fails then make one more try to look for the AllLanguage record. Language-Neutral Translation 163 Phrase getTargetPhrase aTargetAbbrevType aTargetLanguage RETURNS aPhrase Start with all possible phrases for a source Phrase aSetOfPhrases Second restrict phrases to

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.