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

Материал из Common History development
Перейти к навигации Перейти к поиску
(model from user:it4history)
(model from user:it4history)
Строка 167: Строка 167:
  
 
= model from [[user:it4history]] =
 
= model from [[user:it4history]] =
считаю, що три связи в [[#Content]], а именно Area, Channel и Landmark можно заменить на одну связь к [[#Area]]
 
 
также предлагаю три таблицы с множественными ссылками на [[#Content]] слить в одну, добавив в нее поле ContentLinkType - one of PartOfEvent, DependOnEvent, DuplicateOfEvent
 
 
<uml>
 
<uml>
 
hide methods
 
hide methods
Строка 197: Строка 194:
 
Language
 
Language
 
}
 
}
Phrase -u-> Content
+
Phrase -u-> Event
  
 
class Resource {
 
class Resource {
Строка 205: Строка 202:
 
Author
 
Author
 
}
 
}
Resource <- ContentReference
+
Resource <- EventReference
  
class Content {
+
class Event {
 
EventType
 
EventType
 
GeoPoint
 
GeoPoint
Строка 213: Строка 210:
 
Population
 
Population
 
}
 
}
Content -> Period
+
Event -> Period
Content "Area" <-u- ContentArea
+
Event "Area" <-u- EventArea
Area <-r- ContentArea
+
Area <-r- EventArea
Content "Reference" <-d- ContentReference
+
Event "Reference" <-d- EventReference
  
 
class EventLink {
 
class EventLink {
Строка 225: Строка 222:
 
   DuplicateOfEvent
 
   DuplicateOfEvent
 
}
 
}
Content "Event" <-r- EventLink
+
Event "Event" <-r- EventLink
Content "EventTo" <-r- EventLink
+
Event "EventTo" <-r- EventLink
  
 +
class User {
 +
}
 
</uml>
 
</uml>

Версия 08:51, 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[править]

Events happen at certain time period. Main Entity containing any events or facts in time of history of humanity, including facts of absence. Главный класс содержащий события и факты, включая отсутствие знания о чем-либо.

Event -- Событие

#Period

GeoPoint -- Geography(Latitude, Longitude). Географическая точка.

Address – International postal address. Международный адрес

EventLink (multiple) – related Events.

Reference (multiple) -- source of information

Population -- number of affected people

Link[править]

- Связка

GeoDirection (North, East, South, West, ...)

Event -- event from

EventTo -- event to

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[править]