Repeating Quads Structure on tagtalking dev blog

About: Quads Database for tagtalking

Here is the structure of the quads database that worked quite well …
 
source: data structure

CREATE TABLE `quads` (
  `context` varchar(255) NOT NULL,
  `subject` varchar(255) NOT NULL,
  `verbseq` char(10) NOT NULL,
  `verb` varchar(100) NOT NULL,
  `objectseq` char(10) NOT NULL,
  `object` varchar(5000) NOT NULL,
  `objecttype` tinytext NOT NULL,
  `id` int(11) NOT NULL auto_increment,
  `by` tinytext NOT NULL,
  `changeDate` datetime NOT NULL,
  `ip` char(20) NOT NULL,
  `protect` tinytext NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `context` (`context`,`subject`,`verbseq`,`verb`),
  KEY `subject` (`subject`,`verbseq`,`verb`,`objectseq`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=221 ;
 
Each quad is supposed to be unique (there may only be one one) for each context+subject+verb+objectseq.  That will be enforced by the update code.
 ( what if someone updates the page_definitions directly with a duplicate ?) 
In most cases the quads are unique for context+subject+verb because in most cases objectseq is blank; but there needs to be multiples on things like page_definitions right_column, see bozo directory.

Tags

  1. item 12957
  2. quads
  3. dev
  4. tagtalking.net
  5. unique keys

See Also

  1. Thought An Event is something that the news reports on with 42 viewings related by tag "quads".
  2. Thought Getting a new emoticon at fastblogit with 34 viewings related by tag "dev".
  3. Thought Thinking Domain Quads with 13 viewings related by tag "quads".
  4. Thought about: Open Mic with 6 viewings related by tag "tagtalking.net".
  5. Thought Automating Selling on Amazon with 4 viewings related by tag "dev".
  6. Thought Why quads? Quads vs RDF with 4 viewings related by tag "quads".
  7. Thought The CSS font-size statement does not work on the MacAir in Chrome with 4 viewings related by tag "dev".
  8. Thought Linking fastblogit tags to other sites with 4 viewings related by tag "dev".
  9. Thought Quads with 3 viewings related by tag "quads".
  10. Thought mentography of items with 3 viewings related by tag "quads".
  11. Thought The Mentography of Rights with 3 viewings related by tag "quads".
  12. Thought Everything ? with 3 viewings related by tag "quads".
  13. Thought A sustainable fastblogit with 2 viewings related by tag "dev".
  14. Thought upload from computer to cartoon stopped working with 1 viewings related by tag "dev".
  15. Thought SQL for selecting triples inside of one field. with 1 viewings related by tag "dev".
  16. Thought A Gremlin on your items ? with 1 viewings related by tag "dev".
  17. Thought [title (18144)] with 1 viewings related by tag "dev".
  18. Thought items vs quads gives us forms with 0 viewings related by tag "quads".
  19. Thought Google SEO for speaktomecatalog.com with 0 viewings related by tag "dev".
  20. Thought Simplifying URLs with 0 viewings related by tag "dev".
  21. Thought dynamic cartoons with 0 viewings related by tag "dev".
  22. Thought Replacing live search with 0 viewings related by tag "dev".
  23. Thought Building stufftalks.com with 0 viewings related by tag "dev".
  24. Thought tagtalking feeds with 0 viewings related by tag "tagtalking.net".
  25. Thought form vs data with 0 viewings related by tag "quads".
  26. Thought Rooms and People ... Tags and Names with 0 viewings related by tag "tagtalking.net".
  27. Thought Revision of our catalog request form with 0 viewings related by tag "dev".
  28. Thought Follow dev here with 0 viewings related by tag "dev".
  29. Thought quads table in the database with 0 viewings related by tag "quads".
  30. Thought Eliminating the large shopping cart ...... with 0 viewings related by tag "dev".
  31. Thought Making Cool URLs with 0 viewings related by tag "dev".
  32. Thought [title (18273)] with 0 viewings related by tag "dev".
  33. Thought about: Seasons Greetings for Everyone with 0 viewings related by tag "tagtalking.net".
  34. Thought about: Development at tagtalking with 0 viewings related by tag "dev".
  35. Thought Quads Factoring with 0 viewings related by tag "quads".
  36. Thought The server crashed with 0 viewings related by tag "dev".
  37. Thought Showing a YouTube video demo at speaktomecatalog.com with 0 viewings related by tag "dev".
  38. Thought about: five years, building a culture, and handing it off. - laughing meme with 0 viewings related by tag "dev".
  39. Thought about: tvos for developers - apple developer with 0 viewings related by tag "dev".
  40. Thought Permalinks now have a facebook share button on them. with 0 viewings related by tag "dev".
  41. Thought about: d'artagnan's code - code and plugins for everyone with 0 viewings related by tag "dev".
  42. Thought about: Quick Say at tagtalking.net with 0 viewings related by tag "tagtalking.net".
  43. Thought about: Voice on the Go Inc. with 0 viewings related by tag "tagtalking.net".
  44. Thought [title (19071)] with 0 viewings related by tag "dev".
  45. Thought My Objectives for with 0 viewings related by tag "tagtalking.net".
  46. Thought Seriously considering developing tagtalking.net based upon ... with 0 viewings related by tag "dev".
  47. Thought Feedback with 0 viewings related by tag "tagtalking.net".
  48. Thought about: php html editor, rich text editor for php with 0 viewings related by tag "dev".
  49. Thought Pentals with 0 viewings related by tag "quads".
  50. Thought group quads project with 0 viewings related by tag "quads".