Model from viakviak: различия между версиями

Материал из Common History development
Перейти к навигации Перейти к поиску
(Language)
Строка 86: Строка 86:
 
LocationId -- only for conversion to UTC time, if necesary
 
LocationId -- only for conversion to UTC time, if necesary
 
= Language =
 
= Language =
Phrase -- All textual content is specified by phrases for internationalization. Допускается любой техт на любом языке. Все фразы содержатся в одном месте для упрощения перевода.
+
All textual content is specified by phrases for internationalization. Допускается любой техт на любом языке. Все фразы содержатся в одном месте для упрощения перевода.
  
Content
+
Phrase
 +
* Content
 +
* Language
  
Language
 
 
= Resource =
 
= Resource =
 
Reference -- ссылка на источник
 
Reference -- ссылка на источник

Версия 08:39, 12 апреля 2016

original is at: viakviak.livejournal.com/17149.html

Entities[править]

Термины, классы

Each entity has corresponding Type[править]

Area

Channel

Event

Landmark

Phrase

Reference

User

Each entity includes all system Properties[править]

System Properties: -- системные поля данных будут созданны для каждого класса

Id

NamePhraseId

DescriptionPhraseId

TypeId

CreateDate

ModifyDate

CreatorId

Entity Type[править]

simple entity satellite with system properties only - Каждый класс автоматически получит "тип" с возможными категориями.

Multiple Property[править]

references to multiple records. Usually it is implemented as joint table. Множественные ссылки от одного обьекта к нескольким другим. В реляционных базах данных такая конструкция поддерживается стандартной дополнительной "стыковой" таблицей.

Geography[править]

-- can use modern or historical references to point to specific geographical features.

Area[править]

-- географическое пространство

InsideOfAreaId -- для определения иерархической структуры

Channel -- River, Road, Channel, Path - Любой протяженный географический элемент

Location (multiple) -- goes through or resides in - где находится или что пересекает

Landmark -- точечный географический елемент

GeoLocation -- Geography(Latitude, Longitude)

Time[править]

-- Time could be specified by beginning and end explicitly or implicitly

-- Время понятие приближенное. Даже казалось бы точная дата 10 апреля 2016 года подразумевает на самом деле две точки времени: начало дня и его конец, общей протяженностью 24 часа. Пока точно не знаю как, но термин "время" должно правильно описывать любое временное понятие, как бы оно не называлось.

-- Examples: April 10, 2016; 1st century BC, Dark Ages, Winter of 1812, Конец 20 века.

Period[править]

DateFrom

DateTo

Season (Winter, Spring, Summer, Autumn)

DayOfWeek (1-7)

Month

Year

Century

Day1

Day2

DayCount -- number of days in the period

Age

LocationId -- only for conversion to UTC time, if necesary

Language[править]

All textual content is specified by phrases for internationalization. Допускается любой техт на любом языке. Все фразы содержатся в одном месте для упрощения перевода.

Phrase

  • Content
  • Language

Resource[править]

Reference -- ссылка на источник

Href

ISBN

Author

Content[править]

-- Main Entity containing any events or facts in time of history of humanity, including facts of absence.

-- Главный класс содержащий события и факты, включая отсутствие знания о чем-либо.

Event

#Period

Area (multiple) -- affected cities, countries, bodies of water, or continents

Channel (multiple) -- intersection or nearby

Landmark (multiple)

Reference (multiple) -- source of information

Population -- number of affected people

PartOfEvent (multiple) -- major events

DependOnEvent (multiple) -- preceeding events or causes

DuplicateOfEvent (multiple) -- duplications

Entity Types[править]

-- Examples of Entity Type options

-- Примеры категорий для разных классов

Area Type[править]

City Country District Lake Region Sea State Continent World

Channel Type[править]

Channel Border River Road Strait

Event Types[править]

Absence -- something doesn't exist Battle Catastrohe Citation City Conflict Country Discovery Famine Flood Fire Invention Person Product Reign Religion Technology Volcano War

model from user:it4history[править]

считаю, що три связи в #Content, а именно Area, Channel и Landmark можно заменить на одну связь к #Area

также предлагаю три таблицы с множественными ссылками на #Content слить в одну, добавив в нее поле ContentLinkType - one of PartOfEvent, DependOnEvent, DuplicateOfEvent