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

Материал из Common History development
Перейти к навигации Перейти к поиску
(Geography)
(model from user:it4history)
Строка 169: Строка 169:
  
 
class Area {
 
class Area {
 +
AreaType
 +
Landmark
 +
GeoLocation
 
}
 
}
 
Area "InsideOfAreaId" -> Area
 
Area "InsideOfAreaId" -> Area
Area "Channel" -> ChannelType
+
Area "Channel" -d-> ChannelType
 +
Area "Location" <-d- AreaLocation
 +
 
 +
class Location {
 +
}
 +
 
 +
Location "Area" <- AreaLocation
 +
 
 +
class Period {
 +
DateFrom
 +
DateTo
 +
LocationId
 +
}
 +
Period -> Location
 +
 
 +
class Language {
 +
Phrase
 +
Content
 +
Language
 +
}
 +
 
 +
class Resource {
 +
Reference
 +
Href
 +
ISBN
 +
Author
 +
}
 +
Resource <- ContentReference
 +
 
 +
class Content {
 +
EventType
 +
Population
 +
}
 +
Content -> Period
 +
Content "Area" <-u- ContentArea
 +
Area <-r- ContentArea
 +
Content "Reference" <-d- ContentReference
 +
 
 +
class ContentLink {
 +
ContentLinkType - one of
 +
  PartOfEvent,
 +
  DependOnEvent,
 +
  DuplicateOfEvent
 +
}
 +
Content "parent" <-r- ContentLink
 +
Content "child" <-r- ContentLink
  
 
</uml>
 
</uml>

Версия 18:21, 11 апреля 2016

original is at http://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[править]

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

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