{"id":372,"date":"2025-08-30T15:57:11","date_gmt":"2025-08-30T19:57:11","guid":{"rendered":"https:\/\/www.eventfulstories.info\/?page_id=372"},"modified":"2025-09-08T11:20:29","modified_gmt":"2025-09-08T15:20:29","slug":"type-context-definition-language","status":"publish","type":"page","link":"https:\/\/www.eventfulstories.info\/?page_id=372","title":{"rendered":"Type Context Definition Language"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Type Context Definition Tour<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In this section, a sample type context definition will be presented line-by-line to explain how the type context works. It has been checked for consistency by the compilation software and is known to be a self-consistent type system.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Header section<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A header declaration opens the type context definition. Name-value pairs of meta data are contained between the opening <em>begin header<\/em> and closing <em>end header <\/em>lines. The meta data declares the authorship, title, date of submission, etc. of the definition.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>begin header\nauthor = &lt;&lt;G Baran&gt;&gt;\nauthor_email = &lt;&lt;info@eventfulstories.info&gt;&gt;\ndate = &lt;&lt;2025-07-29&gt;&gt;\ntitle = &lt;&lt;Example: A Type Context Sampler&gt;&gt;\nform = &lt;&lt;Text&gt;&gt;\nlanguage = &lt;&lt;English&gt;&gt;\ncontent = &lt;&lt;\nJust enough to introduce\nthe key elements of\nEventful Stories types and values.\n&gt;&gt;\nend header<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Type definition section<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">After the header comes the definition of data types, opened with the <em>begin types<\/em> declaration and closed with <em>end types<\/em>..<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>begin types<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Root declaration<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>root Object &lt;&lt;Base element of all types&gt;&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The first type defined is the <em>root<\/em>. It specifies the name, <em>Object<\/em>, of the super-type of all super-types. The <em>root<\/em> type and <em>primitive<\/em> types have no super-type. Every general <em>type<\/em> has exactly one super-type ensuring that the type context has a simple hierarchical structure. This will be explained fully below.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">All type names begin with an upper-case letter. This distinguishes them from the record field names which have lower-case names.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The text between the guillemets &#8220;&lt;&lt; &#8230; >>&#8221; is a comment attached to the preceding definition. Every <em>root<\/em>, <em>primitive<\/em>, <em>type<\/em>, and data field or attribute entry must have an attached descriptive comment.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Primitive types<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">There are four <em>primitive<\/em> data types that define the low-level constant information stored in the database directly. These are integers, real numbers, text strings, and binary-large-objects. The primitive types have no super-type.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">An implementation may recognize additional primitive values for convenience, like a <em>TimeStamp<\/em> or <em>IPv6<\/em> address.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>primitive Int  &lt;&lt;Int64&gt;&gt;\nprimitive Real &lt;&lt;Float&gt;&gt;\nprimitive Text &lt;&lt;UTF8 text&gt;&gt;\nprimitive Blob &lt;&lt;Binary large object&gt;&gt;<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Defining types<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Every type declaration has the form<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>type &#91;Super-type name] :&gt; &#91;Type label]<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">where <em>[Super-type name]<\/em> stands for the super-type and <em>[Type label]<\/em> stands for the one-word label of the type being defined.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>type :> Person           &lt;&lt;Abstract root for a Person>><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The key word <em>type<\/em> introduces a general data type or record form or entity form. The symbol &#8221; :>&#8221; indicates a super-type relationship.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The name of the super-type is to the left of the &#8221; :>&#8221; symbol except for types that have the root <em>Object<\/em> as their super type, such as <em>Person<\/em> where <em>Object<\/em> is implicit and omitted.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The <em>Person<\/em> type is defined to be an abstract identity for a person. All facts about a person such as birth date or name are recorded by making a reference from the record of the fact to the abstract <em>Person<\/em> record . <em>Person<\/em> acts as an anchor for all data about a person, functioning like a Social Security Number in the US.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>type Time :> Date<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This statement defines a new type called <em>Time.Date<\/em>  which is a sub-type of <em>Time<\/em>. The new type&#8217;s label is <em>Date<\/em>. Labels must be one capitalized word. The full name of a type is the concatenation of the label segments from root down to the type.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>type :&gt; Time             &lt;&lt;Abstract root for an expression of time&gt;&gt;\ntype Time :&gt; Date        &lt;&lt;A date on a calendar&gt;&gt;\n    year  :: Int         &lt;&lt;Year&gt;&gt;\n    month :: Text        &lt;&lt;Month name&gt;&gt;\n    day   :: Int         &lt;&lt;Day of month&gt;&gt;\ntype Time :&gt; Instant     &lt;&lt;Abstract root for an instant of time&gt;&gt;\ntype Time.Instant :&gt; UTC &lt;&lt;Universal coordinated time&gt;&gt;\n    utc :: Blob          &lt;&lt;An expression of universal time&gt;&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Time<\/em> is another abstract root type definition. Everything that &#8220;is-a&#8221; time is in the type hierarchy rooted at <em>Time<\/em>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">One form of a time is a date. The <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>type Time :&gt; Date<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">line defines a new type called <em>Time.Date<\/em> that is a time. This is stated directly in the super-type relationship. That <em>Time.Date<\/em> is a sub-type of Time means that <em>Time.Date<\/em> is a specific form of a <em>Time<\/em>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Type instantiation and UUID<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">When values are assigned to a type, an <em>instance<\/em> of that type is created. Each type instance is tagged with a universally unique identifier or UUID. This is the identifying hook that helps make inter-Evidence Module references work.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Attributes<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Time.Date<\/em> has three named fields or attributes, all of which are instantiated by constants: the <em>year<\/em>, <em>month<\/em>, and <em>day<\/em>. The double-colons &#8220;::&#8221; are common in programming languages to say &#8220;has this type'&#8221;. That is the meaning here.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Another form of a time record is a universal time or UT. This represents an instant in time expressed as a UT value, which is a sub-type of the abstract type <em>Time.Instant<\/em>, a type without any fields or attributes. The value of a UT time is recorded in the field <em>ut<\/em> as a binary value.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>type :&gt; TimePeriod       &lt;&lt;A difference between times&gt;&gt;\n    tbegin :: Time       &lt;&lt;Beginning time of a TimePeriod&gt;&gt;\n    tend   :: Time       &lt;&lt;Ending time of a TimePeriod&gt;&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Closely related to a single time is a <em>TimePeriod<\/em>. It marks a time interval with a beginning and an ending time.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To express a period measured in days, for example, provide a <em>TimePeriod<\/em> instance with two <em>Time.Date<\/em> instances of <em>Time<\/em>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Identities<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>type :&gt; Identity         &lt;&lt;A form of identity of an individual.&gt;&gt;\ntype Identity :&gt; UUID    &lt;&lt;A binary unique identifier for any Object.&gt;&gt;\n    uuid :: Blob         &lt;&lt;The binary expression of the UUID&gt;&gt;\ntype Identity :&gt; Name    &lt;&lt;Any name&gt;&gt;\n    name :: Text         &lt;&lt;The name of the individual&gt;&gt;\ntype Identity.Name :&gt; Person &lt;&lt;A person's name&gt;&gt;\n    who :: -&gt; Person     &lt;&lt;Whose name&gt;&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Forms of identity are needed for any distinguishable individuals. An identity form is a sub-type of the root type <em>Identity<\/em>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The <em>Identity.UUID<\/em> is a universally unique identifier. Software can generate long binary patterns that have vanishingly small probabilities of being a duplicate of any other generated UUID. They are used in Eventful Stories to identify every instance of a<br>data type with its own set of attribute values.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A person&#8217;s name is declared to be a sub-type of an <em>Identity.Name<\/em> which contains the name. There can be all sorts of names, and the type <em>Identity.Name.Person<\/em> is the name of a person as opposed to the name of a pet or a bank.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The new element in <em>Identity.Name.Person<\/em> definition is the attribute <em>who<\/em>. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>who :: -&gt; Person     &lt;&lt;Whose name&gt;&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This is a pointer or reference to an existing <em>Person<\/em> entity instance. The value of such a reference in the working system is the UUID of the person.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>type Comment :> Generic  &lt;&lt;A comment on any entity in the system>>\n    subject :: -> Object &lt;&lt;Any entity can be the subject of the comment>><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Object<\/em> may be used in attribute reference definitions where &#8220;any type&#8221; is allowed as a target such as for a comment type that attaches text to any object.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the terminology of databases, the UUID identifying an entity is a <em>primary key<\/em>. A UUID in the role of a reference pointer is a <em>foreign key<\/em>. Every <em>type<\/em> in Eventful Stories functions as a separate database table, though it is not implemented as one.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When the <em>Person<\/em> UUID record is not in the <em>Subject Evidence <\/em>in the local Evidence Module, it is an external reference. The identity of an external reference is found by querying an external source for the <em>Identity.Name.Person<\/em> of &#8220;George Washington&#8221; say. The value of the <em>who<\/em> field, George Washington&#8217;s <em>Person<\/em> UUID, will be returned if found.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This example assumes that the two  communicating Evidence Modules have compatible type definitions for <em>Person<\/em> and <em>Identity<\/em>. If they didn&#8217;t, an intermediate mapping between type systems would be required.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>type :&gt; Location         &lt;&lt;Abstract root for a location&gt;&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The <em>Location<\/em> type is the abstract root for all location values.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Layers of super-type attributes<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>type :&gt; Event            &lt;&lt;Root type for any event&gt;&gt;\n    when :: Time         &lt;&lt;When the event occurred&gt;&gt;\n    where :: -&gt; Location &lt;&lt;Where the event occurred&gt;&gt;\ntype Event :&gt; Begin      &lt;&lt;Abstract root for a beginning&gt;&gt;\ntype Event :&gt; End        &lt;&lt;Abstract root for an ending&gt;&gt;\ntype Event.Begin :&gt; Life &lt;&lt;Abstract root for a birth&gt;&gt;\ntype Event.End :&gt; Life   &lt;&lt;Abstract root for a death&gt;&gt;\ntype Event.Begin.Life :&gt; Person &lt;&lt;A person's birth&gt;&gt;\n    who :: -&gt; Person     &lt;&lt;Who was born&gt;&gt;\ntype Event.End.Life :&gt; Person   &lt;&lt;A person's death&gt;&gt;\n    who :: -&gt; Person     &lt;&lt;Who died&gt;&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The <em>Event<\/em> type states that all events have data fields defining <em>when<\/em> and <em>where<\/em> the event occurred. These attributes are components of the base <em>Event<\/em> type. Every sub-type having <em>Event<\/em> in its super-type hierarchy also has the <em>when<\/em> and <em>where<\/em> attributes as a property of the super-type relation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Sub-types add layers of every more specific information on the base. Here, a distinction between a beginning event and an ending event is expressed with the two types <em>Event.Begin<\/em> and <em>Event.End<\/em>. These types have no attributes of their own. Rather, they refine the concept of <em>Event<\/em> by creating two sub-categories.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Beginnings and endings could refer to all sorts of things: the run of a play in a theater, a work day, a lightning flash, and so on. The next level of refinement in this example is to specify beginning and ending of a life with one more layer of specification, <em>Life<\/em>: <em>Event.Begin.Life<\/em>, and <em>Event.End.Life<\/em>. No new attributes are added because these events could be about a pet, or a person, or a tree.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Adding the last refinement of <em>Person<\/em> to create types <em>Event.Begin.Life.Person<\/em> (birth) and <em>Event.End.Life.Perso<\/em>n (death) requires one more attribute to say <em>who<\/em> was born or died.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There are now three attributes needed to specify these final person-specific events: <em>when<\/em>, <em>where<\/em> and <em>who<\/em>. The attributes of any level in the hierarchy and all the attributes in types along the super-type path towards <em>Object<\/em> are fields required for a complete definition.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Collection types<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Collection types are available for attribute values.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>type :&gt; SampleCollection &lt;&lt;Show the syntax for collections&gt;&gt;\n    single :: Time       &lt;&lt;One time value&gt;&gt;\n    set :: {Time}        &lt;&lt;Set of times (unordered, no duplicates)&gt;&gt;\n    list :: &#91;Time]       &lt;&lt;List of times (ordered)&gt;&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">A set consists of zero or more values of one type, <em>Time<\/em> here.<br>There are no duplicate values in a set, and it is unordered.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A list is a collection of of zero or more values of one type, <em>Time<\/em> here. The elements are ordered and may be any value of the indicated type.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Type definition closing<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>end types<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Queries and presentations<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">As introduced in the examples of this site, simple structures can produce very rich and informative displays of evidence if the data needed exists and is organized for the purpose.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Putting the definitions of all <em>Event<\/em> types involving a <em>Person<\/em> together with the abstract identification of a <em>Person<\/em> (UUID) enables a researcher to ask about anyone:<\/p>\n\n\n\n<p class=\"has-text-align-center is-style-default has-accent-3-color has-text-color has-link-color wp-elements-1 wp-block-paragraph\">list all the events involving person A in time order<\/p>\n\n\n\n<p class=\"has-text-align-center is-style-default has-accent-3-color has-text-color has-link-color wp-elements-2 wp-block-paragraph\">make an animated map of the travels of person A<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Imagine being able to do that.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Type-safe Database I\/O<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Eventful Stories software has been written in Haskell (a programming language). The implementation of Eventful Stories is type-safe throughout, including all data read and written to the database. Set or list values are serialized to the database as either a Haskell <em>Data.Set<\/em> or <em>Data.List<\/em> respectively. The Persistent and  Esqueleto libraries are used for all database I\/O. The ensure type-safety to and from the database. Currently supported databases are SQLite and PostgreSQL.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Type Context Consistency Rules<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Some self-consistency rules govern the definition of a type context. In this list, the term &#8220;entity&#8221; has been substituted for the key word &#8220;type&#8221; as used in the type context definition to avoid ambiguity.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The full entity name is the concatenation separated by  &#8220;.&#8221; of its super-type full name and the type label of the entity<\/li>\n\n\n\n<li>Full entity names are unique across all root, primitive, and entity definitions<\/li>\n\n\n\n<li>Root and primitive types have no super type<\/li>\n\n\n\n<li>Every entity has exactly one super-type<\/li>\n\n\n\n<li>The super-type for every entity must defined within its own type context (self-consistency)<\/li>\n\n\n\n<li>The type labels among its immediate sub-types for any root or entity must form a set (no duplicates)<\/li>\n\n\n\n<li>No cycle of super-type references is permitted for any entity (prevented by requiring the termination of super-types at root)<\/li>\n\n\n\n<li>The attribute key names for an entity form a set (no duplicates)<\/li>\n\n\n\n<li>No attribute cycle following type definitions for non-reference target types (transitive closure).<\/li>\n\n\n\n<li>The set of attribute key names for an entity are made up of its own attribute key names and the union of the attribute key names of its super-types.<\/li>\n\n\n\n<li>The set of attribute key names for any entity across its super-types must be unique<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Full Text of Type Context Definition<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The following text is the type context definition discussed above as a continuous text block:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>begin header\n\nauthor = &lt;&lt;G Baran&gt;&gt;\nauthor_email = &lt;&lt;info@eventfulstories.info&gt;&gt;\ndate = &lt;&lt;2025-07-29&gt;&gt;\ntitle = &lt;&lt;Example: A Type Context Sampler&gt;&gt;\nform = &lt;&lt;Text&gt;&gt;\nlanguage = &lt;&lt;English&gt;&gt;\ncontent = &lt;&lt;Just enough to introduce\nthe key elements of\nEventful Stories types and values.\n&gt;&gt;\n\nend header\n\nbegin types\n\nroot Object &lt;&lt;Base element of all types&gt;&gt;\n\nprimitive Int  &lt;&lt;Int64&gt;&gt;\nprimitive Text &lt;&lt;UTF8 text&gt;&gt;\nprimitive Blob &lt;&lt;Binary large object&gt;&gt;\n\ntype :&gt; Person           &lt;&lt;Abstract root for a Person&gt;&gt;\n\ntype :&gt; Time             &lt;&lt;Abstract root for an expression of time&gt;&gt;\ntype Time :&gt; Date        &lt;&lt;A date on a calendar&gt;&gt;\n    year  :: Int         &lt;&lt;Year&gt;&gt;\n    month :: Text        &lt;&lt;Month name&gt;&gt;\n    day   :: Int         &lt;&lt;Day of month&gt;&gt;\ntype Time :&gt; Instant     &lt;&lt;Abstract root for an instant of time&gt;&gt;\ntype Time.Instant :&gt; UTC &lt;&lt;Universal coordinated time&gt;&gt;\n    utc :: Blob          &lt;&lt;An expression of universal time&gt;&gt;\n\ntype :&gt; TimePeriod       &lt;&lt;A difference between two times&gt;&gt;\n    tbegin :: Time       &lt;&lt;Beginning time of a TimePeriod&gt;&gt;\n    tend   :: Time       &lt;&lt;Ending time of a TimePeriod&gt;&gt;\n\ntype :&gt; Identity         &lt;&lt;A form of identity of an individual.&gt;&gt;\ntype Identity :&gt; UUID    &lt;&lt;A binary unique identifier for any Object.&gt;&gt;\n    uuid :: Blob         &lt;&lt;The binary expression of the UUID&gt;&gt;\ntype Identity :&gt; Name    &lt;&lt;Any name&gt;&gt;\n    name :: Text         &lt;&lt;The name of the individual&gt;&gt;\ntype Identity.Name :&gt; Person &lt;&lt;A person's name&gt;&gt;\n    who :: -&gt; Person     &lt;&lt;Whose name&gt;&gt;\n\ntype :&gt; Location         &lt;&lt;Abstract root for a location&gt;&gt;\n\ntype :&gt; Event            &lt;&lt;Root type for any event&gt;&gt;\n    when :: Time         &lt;&lt;When the event occurred&gt;&gt;\n    where :: -&gt; Location &lt;&lt;Where the event occurred&gt;&gt;\ntype Event :&gt; Begin      &lt;&lt;Abstract root for a beginning&gt;&gt;\ntype Event :&gt; End        &lt;&lt;Abstract root for an ending&gt;&gt;\ntype Event.Begin :&gt; Life &lt;&lt;Abstract root for a birth&gt;&gt;\ntype Event.End :&gt; Life   &lt;&lt;Abstract root for a death&gt;&gt;\ntype Event.Begin.Life :&gt; Person &lt;&lt;A person's birth&gt;&gt;\n    who :: -&gt; Person     &lt;&lt;Who was born&gt;&gt;\ntype Event.End.Life :&gt; Person   &lt;&lt;A person's death&gt;&gt;\n    who :: -&gt; Person     &lt;&lt;Who died&gt;&gt;\n\ntype :&gt; SampleCollection &lt;&lt;Show the syntax for collections&gt;&gt;\n    single :: Time       &lt;&lt;One time value&gt;&gt;\n    set :: {Time}        &lt;&lt;Set of times (unordered, no duplicates)&gt;&gt;\n    list :: &#91;Time]       &lt;&lt;List of times (ordered)&gt;&gt;\n\nend types<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Type Context Definition Tour In this section, a sample type context definition will be presented line-by-line to explain how the type context works. It has been checked for consistency by the compilation software and is known to be a self-consistent type system. Header section A header declaration opens the type context definition. Name-value pairs of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":185,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-372","page","type-page","status-publish","has-post-thumbnail","hentry"],"_links":{"self":[{"href":"https:\/\/www.eventfulstories.info\/index.php?rest_route=\/wp\/v2\/pages\/372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.eventfulstories.info\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.eventfulstories.info\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.eventfulstories.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.eventfulstories.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=372"}],"version-history":[{"count":13,"href":"https:\/\/www.eventfulstories.info\/index.php?rest_route=\/wp\/v2\/pages\/372\/revisions"}],"predecessor-version":[{"id":514,"href":"https:\/\/www.eventfulstories.info\/index.php?rest_route=\/wp\/v2\/pages\/372\/revisions\/514"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.eventfulstories.info\/index.php?rest_route=\/wp\/v2\/media\/185"}],"wp:attachment":[{"href":"https:\/\/www.eventfulstories.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}