Entity Relationship Change Model: Difference between revisions

From Adam Colton
Jump to navigation Jump to search
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
The Entity Change model is one that I am working on for text generation. Entities are anything that would be a noun. Changes are applied to them. Both entities and changes are stored as key-value pairs. The end structure is highly functional. I believe that at some point, higher level objects will be need, perhaps narration or 'text shaders' but I'm trying to get something basic working now.
The Entity Change model is one that I am working on for text generation. Entities are anything that would be a noun. Relationships, while still a noun, define the graph between the entities. Changes are applied to entities and relationships. All three are stored as key-value pairs. The end structure is highly functional. I believe that at some point, higher level objects will be need, perhaps narration or 'text shaders' but I'm trying to get something basic working now.


== Entity Types ==
== Entity Types ==
Line 9: Line 9:
** Vehicle
** Vehicle
* Location
* Location
* Relationship


The entities will form a graph with relationships forming the links. Perhaps on that basis relationships should be a first-class citizen.  
The entities will form a graph with relationships forming the links.
 
== Relationships ==
* Object
* Subject
* Attributes
 
For now, relationships all an object and a subject. All entities have an object and subject link. A relationship can also be a subject.
 
=== Relationship Types ===
 
* Social
* Possession
* Positional
* Emotional


== Change ==
== Change ==
A change is the set of attributes that change (and what they change to) and a duration over which the change happens. The duration can be instant.
A change is the set of attributes that change (and what they change to) and a duration over which the change happens. The duration can be instant. Perhaps it should have a cause too?


Currently this is takes a single target. Eventually it needs to take a second (actor, subject) and finally it needs to able to link to a prepositional phrase. This is for ternary verbs like 'gave' - Jack gave Jill the ball - which can be converted to a binary verb with a preposition Jack gave the ball to Jill.


[[Category:Code]]
[[Category:Code]]

Latest revision as of 17:00, 26 April 2013

The Entity Change model is one that I am working on for text generation. Entities are anything that would be a noun. Relationships, while still a noun, define the graph between the entities. Changes are applied to entities and relationships. All three are stored as key-value pairs. The end structure is highly functional. I believe that at some point, higher level objects will be need, perhaps narration or 'text shaders' but I'm trying to get something basic working now.

Entity Types

  • Living
    • Self-Aware
    • Animal
  • Prop
    • Clothing
    • Vehicle
  • Location

The entities will form a graph with relationships forming the links.

Relationships

  • Object
  • Subject
  • Attributes

For now, relationships all an object and a subject. All entities have an object and subject link. A relationship can also be a subject.

Relationship Types

  • Social
  • Possession
  • Positional
  • Emotional

Change

A change is the set of attributes that change (and what they change to) and a duration over which the change happens. The duration can be instant. Perhaps it should have a cause too?

Currently this is takes a single target. Eventually it needs to take a second (actor, subject) and finally it needs to able to link to a prepositional phrase. This is for ternary verbs like 'gave' - Jack gave Jill the ball - which can be converted to a binary verb with a preposition Jack gave the ball to Jill.