Noosphere Tables



Noosphere Tables

1 acl_default_uid_seq

  • val [int(11) NOT NULL AUTO_INCREMENT]: acl_default unique ID counter sequenceMathworldPlanetmath.

2 acl_default

This table stores each user’s default ACL rules. These rules are applied to that user’s objects when new objects are created. This table is virtually the same as the ACL table, which makes sense: you can think of its function as having some of its rows copied to the ACL table upon object creation events.

  • uid [int(11) NOT NULL AUTO_INCREMENT]: unique ID of row

  • userid [int(11) NOT NULL default '0']: user who owns this ACL entry.

  • _write [tinyint(4) NOT NULL default '0']: write flag.

  • _read [tinyint(4) NOT NULL default '1']: read flag.

  • _acl [tinyint(4) NOT NULL default '0']: can change ACL flag.

  • subjectid [int(11) NOT NULL default '0']: subject (user or group) ID this entry pertains to.

  • user_or_group [char(1) NOT NULL default 'u']: is the above ID a user or group.

  • default_or_normal [char(1) NOT NULL default 'n'] is this a normal (specific) rule or a default rule for when no specific rule is found?

3 acl_uid_seq

  • val [int(11) NOT NULL auto_increment] counter for unique IDs in acl table.

4 acl

This table stores access control rules. Every Noosphere object has associated to it one or more entries in this table which describe who has what permissions to read the object, write to it, or control access to it (change ACLs).

  • uid [int(11) NOT NULL default '0']: Unique ID of this rule.

  • user_or_group [char(1) default 'u']: Does this rule pertain to access by a user (u) or a group (g)?

  • _write [int(11) default '0']: Flag describing write access.

  • _read [int(11) default '1']: Flag describing read access.

  • objectid [int(11) NOT NULL default '0']: Identifier of object to which access rule applies.

  • subjectid [int(11) NOT NULL default '0']: Identifier of user or group who is being granted access.

  • _acl [int(11) default '0']: Flag describing permission to control access.

  • tbl [varchar(16) NOT NULL default '']: Table in which the object to which the rule applies resides (also can be thought of as object type).

  • default_or_normal [char(1) default 'n']: Is this a default rule or a normal rule? Default rules apply when no specific rule is found (group ID or user ID of the accessing user does not match anything).

5 actions_uid_seq

  • val [int(11) NOT NULL auto_increment]: unique ID counter for ’actions’ table.

6 actions

This table exists to keep track of user actions such as voting in polls. Each action gets a separate entry in the table so as to make it possible to do things like ensure that no one votes twice.

  • created [timestamp(14) NOT NULL]: Date of action.

  • uid [int(11) NOT NULL default '0']: Unique numerical identifier of action.

  • userid [int(11) default NULL]: Identifier of the user performing the action.

  • score [int(11) NOT NULL default '0']: Score change conferred by action (can be zero if not applicable).

  • data [text]: Any text data that went with the action (can be a descriptive message).

  • type [int(11) NOT NULL default '0']: Type of action – ‘1’ is voting for example (the only action type yet defined; lookup is stored in the main config in the code.)

  • objectid [int(11) default NULL]: Identifier of the object on which the action was performed if applicable.

7 authors

This table documents the authors of an object (anyone who has written to an object will be in here). There is a separate entry for each combinationMathworldPlanetmathPlanetmath of author and object.

  • tbl [varchar(16) NOT NULL default '']: Table in which the object authored is to be found.

  • ts [datetime default NULL]: The date on which the author made the most recent edit.

  • userid [int(11) NOT NULL default '0']: The user number of the author.

  • objectid [int(11) NOT NULL default '0']: Identifier of the object authored within its table.

8 blacklist_uid_seq

  • textbfval [int(11) NOT NULL auto_increment]: Unique ID counter for the blacklist entries.

9 blacklist

The blacklist is a list of perl regular expressionMathworldPlanetmath masks which are checked against the email address of each new user. When there is a match, the user’s application is rejected. This can be used to prevent attacks where one person creates many accounts, each with an email address that fits a regularPlanetmathPlanetmathPlanetmath pattern.

  • textbfuid [int(11) NOT NULL default '0']: Numerical identifier for record.

  • textbfmask [varchar(128) NOT NULL default '']: Regular expression describing some addresses to be blocked.

10 books_uid_seq

  • textbfval [int(11) NOT NULL auto_increment]: Unique ID counter for the books table.

11 books

This table stores the content of the books sectionPlanetmathPlanetmath of PM.

  • rights [text]: Copyright terms for book.

  • authors [varchar(255) default NULL]: Author(s) of book.

  • msc [varchar(16) default NULL]: MSC number(s) describing subject of book.

  • uid [int(11) NOT NULL default '0']: Numerical identifier for record.

  • userid [int(11) NOT NULL default '0']: Number of user who made this record.

  • data [text]: Description of book.

  • urls [text]: URL’s for links to copy of book.

  • comments [varchar(128) default NULL]: Comments about book.

  • modified [datetime default NULL]: Date record was last modified.

  • created [datetime default NULL]: Date record was added to books section.

  • keywords [varchar(128) default '']: Keywords for use in search.

  • hits [int(11) default '0']: How many times record has been accessed.

  • loc [varchar(32) default NULL]: Library of Congress catalogue number.

  • isbn [varchar(32) default NULL]: ISBN number for book.

  • title [varchar(255) NOT NULL default '']: Title of book.

12 cache

The cache table is the structureMathworldPlanetmath necessary to maintain an accurate cache. It works like this: The table starts off empty. A user requests an object from browsing PlanetMath. The request is served by a perl function which checks the cache table for the ’name’. If the name is not present, it then calls a procedure which generates the page to the cache directory and proper sub directories (based on the namespace id string). In the meantime, the entry in the database is still ”0” for invalid, but ”1” for build. this means all subsequent requests will end up waiting and rechecking the database every (some interval) for valid to go to ”1”, at which point the page will be served from the cache location. when the page is doing being built, build goes to 0 and valid goes to 1.

The ’rrequests’ column tallies the outstanding render requests, and re-renders are prioritized to the objects with the most requests.

Note: If the object is not in the table, this is essentially equivalentMathworldPlanetmathPlanetmathPlanetmathPlanetmath to a value of ”0” for valid, except after the object goes valid, It should always have an entry in the table. This will not hold if the entire cache table is cleared—which is never normally done, but should be safe and can be used to “reset” the system if necessary.

  • build [int(11) default '0']: 1 if object is being built, 0 if not.

  • objectid [int(11) NOT NULL default '0']: Identifier of objects stored in cache.

  • tbl [varchar(16) default NULL]: Table in which object being cached resides (can be thought of as object type).

  • valid [int(11) default '0']: 1 if valid in cache, 0 if not

  • bad [int default 0]: The object can be marked “bad” if it will not render; in which case the system will ignore it and output a special message when an attempt to display it is made. As of now, this flag can only be set through the database, as there is no front-end provision for it.

  • rrequests [int(11) default '0']: Number of re-render requests outstanding; used to prioritize rendering.

  • method [char(3) default NULL]: Rendering “method”—“l2h”, “png”, “src” for now—potentially other in the future (such as MathML, which could be encoded as “mml”).

  • touched [datetime default NULL]: When the the cache entry was last modified; used to determine which entries have “timed out” rendering.

13 catlinks

This table stores intra-category scheme links. These are interpreted as directed links, going from a to b (or left-hand to right-hand).

  • nsb [int(11) default NULL]: Namespace ’a’ (left-hand side). The Namespace is a particular category scheme.

  • nsa [int(11) default NULL]: Namespace ’b’ (right-hand side).

  • a [int(11) default NULL]: Left-hand category (by ID).

  • b [int(11) default NULL]: Right-hand category.

14 classification

This table describes how objects such as encyclopaedia entries and books are classified. Note that each record describes the assignment of a single classification number to a given object so there may be multipleMathworldPlanetmathPlanetmath records pertaining to the same object if it is assigned multiple categories.

  • ns [varchar(16) NOT NULL default '']: Table describing the classification scheme (namespace).

  • tbl [varchar(32) NOT NULL default '']: Table in which object being classified is found.

  • ord [int(11) default NULL]: In case of multiple categories, this specifies the place (ordinalMathworldPlanetmathPlanetmath value) in the list of category codes.

  • nsid [int(11) default NULL]: Namespace (scheme) ID.

  • catid [int(11) NOT NULL default '0']: Identifier of the classification code within the table describing the classification scheme.

  • objectid [int(11) NOT NULL default '0']: Numerical identifier of object being classified within its table.

15 collab_uid_seq

  • val [int(11) NOT NULL auto_increment]: Unique ID counter for collab objects table.

16 collab

All data pertaining to collaboration objects is stored in this table with one record per collaboration object.

  • uid [int(11) NOT NULL default '0']: Numerical identifier of collaboration object.

  • version [int(11) default '1']: Version of object.

  • userid [int(11) NOT NULL default '0']: Number of owner of collaboration.

  • data [text]: Text of collaboration (completePlanetmathPlanetmathPlanetmathPlanetmathPlanetmathPlanetmath TeX document).

  • locktime [datetime default NULL]: If locked, the time when the lock was placed; otherwise empty.

  • modified [datetime default NULL]: Date the object was last modified.

  • published [tinyint(4) default '0']: Flag indication whether collaboration has been published.

  • _lock [int(11) default '0']: Flag indication whether collaboration is locked.

  • created [datetime default NULL]: Date collaboration was begun.

  • hits [int(11) default '0']: How many times it has been viewed.

  • sitedoc [tinyint(4) default '0']: Flag indication whether collaboration is site document.

  • title [varchar(255) NOT NULL default '']: Title of collaboration.

  • abstract [text]: Abstract of Collaboration document.

  • lockuser [int(11) default NULL]: If locked, ID of user who locked the collaboration. otherwise empty.

17 concepts_id_seq

  • val [int(11) NOT NULL auto_increment]: ConceptsMathworldPlanetmath unique ID counter.

18 concepts

This table lists all the concepts defined in the encyclopaedia.

  • istitle [int(11) NOT NULL default '0']: Indicating whether concept is defined in entry/object title.

  • isprimary [int(11) NOT NULL default '0']: Indicates whether is specified as a synonym in entry (’0’ value) or whether it is a main definition instance

  • name [varchar(255) NOT NULL default '']: Name of concept.

  • id [int(11) NOT NULL default '0']: Numerical identifier of concept.

  • objectid [int(11) NOT NULL default '0']: Number of entry in which concept is defined.

19 corrections_uid_seq

  • val [int(11) NOT NULL auto_increment]: Corrections table unique ID counter.

20 corrections

This table contains all corrections filed to entries.

  • closed [datetime default NULL]: If the correction is closed, the date on which it was closed, otherwise empty.

  • uid [int(11) NOT NULL default '0']: Numerical identifier of correction.

  • userid [int(11) NOT NULL default '0']: Number of user filing the correction.

  • data [text NOT NULL]: Text of correction.

  • objectid [int(11) NOT NULL default '0']: Number of entry to which correction is posted.

  • comment [text]: Optional comment by the user who closed the correction.

  • filed [datetime default NULL]: Date on which the correction was filed.

  • accepted [int(11) default NULL]: Indication whether the correction has been accepted (1) rejected (0), or retracted (2).

  • type [char(3) NOT NULL default '']: Type of correction.

  • title [varchar(128) default NULL]: Title of correction.

  • closedbyid [int(11) NOT NULL default '0']: number of user who closed the correction, blank is still open.

  • graceint [int(11) default NULL]: Grace interval: applied when calculating time till the correction becomes outstanding. This is applied when ownership changes.

21 corstat

This table is part of the reputations system plugin.

  • objectid [??????]: ??????

  • cnt [?????]: ??????

22 forums_uid_seq

  • val [int(11) NOT NULL auto_increment]: Forums unique ID counter.

23 forums

Each entry in this table describes a forum.

  • created [datetime default NULL]: Date forum was created.

  • uid [int(11) NOT NULL default '0']: Numerical identifier for forum.

  • userid [int(11) NOT NULL default '0']: ID of user who created the forum.

  • data [text NOT NULL]: Human-readable description of the forum.

  • title [varchar(128) NOT NULL default '']: Name of forum.

  • parentid [int(11) default NULL]: Parent forum (for hierarchy), if any.

  • modified [datetime default NULL]: Date forum was last modified.

24 group_members

This table describes membership in editor groups. Each record states that a certain user belongs to a certain froup.

  • userid [int(11) NOT NULL default '0']: Number of user.

  • groupid [int(11) NOT NULL default '0']: number of group to which user belongs.

25 groups_groupid_seq

  • val [int(11) NOT NULL auto_increment]: Group table unique identifier.

26 groups

This table lists all the editor groups in PM.

  • groupname [varchar(128) default NULL]: Name of group.

  • userid [int(11) NOT NULL default '0']: Number of user who founded the group.

  • groupid [int(11) NOT NULL default '0']: ID number of the group.

  • description [text]: Description of the group.

27 hits

This table records individual access events to PM objects.

  • uid [int(11) NOT NULL auto_increment]: Numerical identifer of access event.

  • objectid [int(11) NOT NULL default '0']: Identifier of object being accessed.

  • tblid [int(11) NOT NULL default '0']: Numerical identifier of table in which object accessed resides (as per tdesc table).

  • at [timestamp(14) NOT NULL]: Time of access.

28 inv_dfs

Invalidation table – document frequencies.

The invalidation system maps word tuples to entries so that the system can invalidate (in terms of rendering cache) entries that may be effected by the additionPlanetmathPlanetmath or removal of terms to the corpus.

This table primarily keeps track of document frequencies – the number of documents (objects) a word or phrase appears in. This is used for determining whether even longer phrases (generated by adding one word to the current phrase) need to also be indexed. This is key in making this into an adaptive inverted index tracking tuples, not just single worlds.

  • id [int(11) NOT NULL]: The word or phrase ID.

  • word_or_phrase [tinyint(4) NOT NULL]: Whether this is a single word or phrase (tells us which table to look it up in).

  • count [tinyint(4) NOT NULL]: Document frequency count.

29 inv_idx

Main invalidation index of occurrences.

Note that unlike a search engine index, we do not bother tracking term frequency (the actual count of occurrences in the document). This is because we only care about whether the phrase occurs at all in the record (if so; we may need to invalidate the object; if not, then we can ignore it).

  • id [int(11) NOT NULL]: Word or phrase ID.

  • word_or_phrase [tinyint(4) NOT NULL]: Whether the current record is for a word or phrase (tells us what table to look it up in).

  • objectid [int(11) NOT NULL]: The object ID the word or phrase occurs in.

30 inv_phrases

Dictionary of invalidation index phrases (multi-word tuples).

  • id [mediumint(8) unsigned not null auto_increment]: Unique ID of this phrase.

  • phrase [char(255) not null]: The phrase itself (as a text string).

31 inv_words

Invalidation index words dictionary (as in single words; one-word “tuples”, which is just like a normal inverted index).

  • word [char(32) NOT NULL UNIQUE]: The word (human-readable text form).

  • id [mediumint unsigned not null auto_increment]: Unique identifier of the word.

32 lastmsg

This table contains the ID of the last message posted to a forum when last viewed by each user. This is used to determine if there have been new messages since last view.

  • objid [int(11) NOT NULL default '0']: The forum object ID.

  • tbl [varchar(32) NOT NULL default '']: Table of the forum object (always ’forums’ for now).

  • lastmsg [int(11) NOT NULL default '0']: Last-seen message ID.

  • userid [int(11) NOT NULL default '0']: User ID for this record.

33 lec_uid_seq

  • val [int(11) NOT NULL auto_increment]: Lectures/expositions unique ID counter.

34 lec

The contents of the Expositions (lectures) section of PM are stored in this table.

  • rights [varchar(255) default '']: Copyright terms for the exposition.

  • authors [varchar(255) default NULL]: Author(s) of the exposition.

  • msc [varchar(16) default NULL]: MSC number(s) describing the subject matter of the exposition.

  • uid [int(11) NOT NULL default '0']: Numerical identifier of record.

  • userid [int(11) NOT NULL default '0']: Number of user who added the record.

  • data [text NOT NULL]: Summary of exposition.

  • urls [text]: URL’s for links to exposition.

  • comments [varchar(128) default NULL]: Comments about exposition.

  • modified [datetime default NULL]: Date the record was last modified.

  • created [datetime default NULL]: Date the record was added to the Expositions section.

  • keywords [varchar(128) default '']: Keywords for search purposes.

  • hits [int(11) default '0']: How many times this has been accessed.

  • title [varchar(255) NOT NULL default '']: Title of the exposition.

35 links

This table records links between encyclopedia objects, which for the most part are automatically generated.

  • totbl [varchar(16) NOT NULL default '']: Table in which object to which link points resides (always ’objects’ for now, which is encyclopedia objects).

  • fromid [int(11) NOT NULL default '0']: Identifier of object from which link points.

  • toid [int(11) NOT NULL default '0']: Identifier of object to which link points.

  • fromtbl [varchar(16) NOT NULL default '']: Table in which object from which link points resides (also always ’objects’).

36 mail_uid_seq

  • val [int(11) NOT NULL auto_increment]: Noosphere mail unique ID counter.

37 mail

This table stores all the Noosphere internal mails sent between users.

  • body [text NOT NULL]: Text of letter.

  • userfrom [int(11) NOT NULL default '0']: Number of user sending the letter.

  • userto [int(11) NOT NULL default '0']: Number of user receiving the letter.

  • uid [:int(11) NOT NULL default '0'] Identifier for this particular letter.

  • subject [varchar(128) NOT NULL default '']: Subject heading of letter.

  • sent [datetime default NULL]: Date when letter was sent.

  • _read [int(11) default NULL]: Flag indicating whether letter was read by recipient.

38 messages_uid_seq

  • val [int(11) NOT NULL auto_increment]: Forum (and object-attached) messages unique ID counter.

39 messages

This table contains all messages posted to fora, entries, corrections and anywhere else one can post a message on PM.

  • visible [tinyint(4) not null default '1']: This flag may not be in use.

  • uid [int(11) NOT NULL default '0']: Unique identifier of message.

  • subject [varchar(128) default 'none']: Subject heading of message.

  • userid [int(11) NOT NULL default '0']: ID of user posting message.

  • objectid [int(11) NOT NULL default '0']: Identifier of object to which message is posted.

  • tbl [varchar(16) default NULL]: Table in which object to which message was posted is located.

  • created [datetime default NULL]: Date on which message was posted.

  • body [text]: Text of message.

  • threadid [int(11) default NULL]: Number of first message in thread to which message belongs; same as uid if message is directly posted to a forum or similar place as opposed to replying to another message (in other words, if this is the first message in the thread, then threadid = uid).

  • replyto [int(11) default '-1']: If message is a reply to some other message, the identifier of that message, otherwise -1.

40 msc

The local copy of the MSC resides in this table. Each record pertains to a specific category.

  • uid [int(11) NOT NULL default '0']: Internal Unique ID of this category.

  • id [varchar(6) NOT NULL default '']: Public unambiguous ’code’ for the category.

  • parent [varchar(6) default NULL]: Parent category of this category (if applicable).

  • comment [varchar(128) default NULL]: Description of the category.

41 nag

This table keeps track of automated nags for outstanding corrections.

  • lastnag [datetime default NULL]: Date of most recent automatically generated nag.

  • cid [int(11) default NULL]: Identifier of correction which is subject of nag.

42 news_uid_seq

  • val [int(11) NOT NULL auto_increment]: News items unique ID counter.

43 news

This table stores news items posted in the box on the home page (or in blog mode, scrolling down the whole front page).

  • uid [int(11) NOT NULL default '0']: Unique identifier of news item.

  • intro [text]: Lead-in ’teaser’ which shows up on the main page or which could be pulled as a description for an RSS feed or similar.

  • userid [int(11) NOT NULL default '0']: Number of user posting the news item.

  • modified [datetime default NULL]: Date the news item was last modified.

  • created [datetime default NULL]: Date the news item was posted.

  • body [text]: Main text of news item.

  • hits [int(11) default '0']: How many times this news item has been accessed.

  • title [varchar(128) NOT NULL default '']: Headline of news item.

44 notices_uid_seq

  • val [int(11) NOT NULL auto_increment]: Notices table unique ID counter.

45 notices

Notices sent to users are stored in this table. These record events like post replies, any posts to objects being watched, corrections, and so forth.

  • choice_action [text]: A menu of possible responses to the notice, if applicable (these are URLs encoded into the text field).

  • uid [int(11) NOT NULL default '0']: Unique ID of notice.

  • userid [int(11) NOT NULL default '0']: ID of user being notified

  • choice_default [int(11) default NULL]: Indication of which of the menu options is the default action which will happen should the recipient of the notice not chose an option within a certain time from when the notice was issued.

  • data [text]: Text description of notice

  • created [datetime default NULL]: Date of notice issue.

  • userfrom [int(11) default NULL]: ID of user who caused the action leading to the notice, if applicable.

  • viewed [int(11) default '0']: Flag indicating whether the notice has been viewed.

  • title [varchar(128) default NULL]: Title of notice.

  • choice_title [text]: A list of titles for the actions in the menu.

46 ns

Category namespaces (schemes) supported.

  • link [varchar(255) default NULL]: Link to web site which is the authority on this scheme.

  • shortdesc [varchar(64) NOT NULL default '']: Short descriptor of the scheme.

  • longdesc [varchar(255) NOT NULL default '']: Long description of the scheme.

  • name [varchar(16) NOT NULL default '']: Name of the scheme.

  • id [int(11) default NULL]: Unique ID for the scheme.

47 object_rating_all

This table is for the ratings/reputation subsystem and is not part of Noosphere proper.

  • userid [???????]: ???????

  • answer [???????]: ???????

  • weight [???????]: ???????

  • ratid [???????]: ???????

48 object_rating

This table is for the ratings/reputation subsystem and is not part of Noosphere proper.

  • uid [???????]: ???????

  • userid [???????]: ???????

  • value [???????]: ???????

49 objects_uid_seq

  • val [int(11) NOT NULL auto_increment]: Encyclopedia objects unique ID counter.

50 objects

Encyclopaedia entries are stored in this table. Each record corresponds to a particular entry. The generic-seeming name of the table is due to its origins as the first object table (before books, expositions, papers, etc.).

  • uid [int(11) NOT NULL default '0']: A numerical identifier unique to the entry.

  • title [varchar(255) NOT NULL default '']: The title of the entry.

  • type [int(11) NOT NULL default '0']: What type of entry is this, e.g. theorem, proof, definition… (the numerical codes for this field are defined in Config.pm)

  • parentid [int(11) default NULL]: If the entry happens to be attached to another entry, the unique numerical identifier or canonical name of that entry, otherwise blank.

  • userid [int(11) NOT NULL default '0']: The numerical identifier of the current owner of the entry.

  • self [int(11) default NULL]: Contains proof for self?

  • keywords [text]: A list of terms associated to the subject of the entry which to be used in searching separated by commas; note that synonyms should not be repeated in this list.

  • hits [int(11) default '0']: How many times the entry has been accessed.

  • synonyms [text]: A list of commonly-used terms synonymous with the titular concept of the entry.

  • defines [text]: A list of additional terms defined in the entry separated by commas; by default, the title is considered as being defined by the entry, so it need not be listed here.

  • linkpolicy [text]: The linking policy of the entry in question (modifies automatic linking behavior to the entry).

  • pronounce [varchar(255) default NULL]: Pronounciation guide for the title.

  • version [int(11) default NULL]: Number of current version (due to edit history).

  • preamble [text]: The TeX preamble for the entry. This contains definitions and instructions to load packages.

  • name [varchar(255) NOT NULL default '']: A unique canonical name which identifies the entry (the html page for the entry is derived from this).

  • data [text NOT NULL]: The TeX source for the entry. Note that this should not include instructions to begin and end the document, macro definitions, or instructions to include packages. Rather, the code specified here is combined with the preamble to produce a complete TeX file which is then processed to produce a viewable version of the entry.

  • modified [datetime default NULL]: Date on which the current version was made.

  • created [datetime default NULL]: Date on whhich the original version of the entry was added to the collectionMathworldPlanetmath.

  • related [text]: A list of canonical names of entries which discuss related material separated by commas.

51 objindex

This table lists various information for Noosphere objects (this table mostly exists to provide in one place metadata for searchable objects).

  • objectid [int(11) NOT NULL default '0']: Unique identifier of the object in its table.

  • tbl [varchar(16) NOT NULL default '']: Table in which object is located.

  • userid [int(11) NOT NULL default '0']: ID of user who owns the object.

  • ichar [char(1) default NULL]: First letter of object name for alphabetical listing.

  • type [int(11) NOT NULL default '1']: Whether this is a primary entry for the object, or a synonym or defines (2 and 3) for the same object.

  • source [varchar(16) default NULL]: Short name of digital library source originating this object (for provenance). See ’source’ table.

  • title [varchar(128) NOT NULL default '']: Title of object.

  • cname [varchar(128) NOT NULL default '']: Canonical name, where relevant.

52 objlinks

This table contains various sorts of administrative links (as opposed to user-facing definitional links) such as links from a request to the object requested.

  • uid [int(11) NOT NULL auto_increment]: Unique numerical identifier of this link.

  • srcid [varchar(32) NOT NULL default '']: Indentifier of source of link.

  • destid [varchar(32) NOT NULL default '']: Identifier of destination of link.

  • desttbl [varchar(32) NOT NULL default '']: Table in which destination resides.

  • srctbl [varchar(32) NOT NULL default '']: Table in which source resides.

  • note [varchar(128) default NULL]: ?????

53 ownerlog

This table documents changes of ownership of Noosphere objects. Each record corresponds to a single change of ownership of an object.

  • objectid [integer]: Numerical identifier of object whose ownership changed.

  • tbl [varchar(16)]: Table in which object in question resides.

  • ts [datetime]: Date on which ownership of object changed hands.

  • userid [integer]: User ID of former owner.

  • action [varchar(1)]: Why ownership changed — “o” for orphaning,“t” for transfer, “a” for abandon.

54 papers_uid_seq

  • val [int(11) NOT NULL auto_increment]: Counter for paper object unique IDs.

55 papers

The contents of the papers section of Noosphere are stored in this table.

  • rights [varchar(255) default '']: Copyright terms of paper.

  • authors [varchar(255) default NULL]: Author(s) of paper.

  • msc [varchar(16) default NULL]: MSC number(s) classifying subject of paper.

  • uid [int(11) NOT NULL default '0']: Number identifying record.

  • userid [int(11) NOT NULL default '0']: number of user who made the record.

  • data [text NOT NULL]: Abstract of paper.

  • comments [varchar(128) default NULL]: Comments about paper.

  • modified [datetime default NULL]: Date record was last modified.

  • created [datetime default NULL]: Date record was added to papers section.

  • keyword [varchar(128) default '']: Keywords for search purposes.

  • hits [int(11) default '0']: How many times this has been accessed.

  • title [varchar(255) NOT NULL default '']: Title of paper.

56 polls_uid_seq

  • val [int(11) NOT NULL auto_increment]: Counter yielding unique IDs for poll objects.

57 polls

This table contains the polls conducted on PM.

  • options [varchar(255) NOT NULL default '']: The list of possible responses to the poll separated by commas.

  • uid [int(11) NOT NULL default '0']: Numerical identifier of poll.

  • finish [datetime default NULL]: Date on which poll ends.

  • userid [int(11) NOT NULL default '0']: Number of user who made the poll.

  • title [varchar(128) NOT NULL default '']: Title of poll.

  • start [datetime default NULL]: Date on which poll starts.

58 relsuggest

This table exists to keep track of suggestions regarding reciprocal “related” links (the contents of “see also” fields when an object is viewed). When a related link is created, the owner of the destination object needs to receive a notice asking whether the reciprocal link should be created. When this happens, an entry is added to this table, so that the owner of that object is not asked again whenever the related list of that object is edited.

  • related [varchar(255) NOT NULL default '']: Canonical name of the related object under consideration.

  • objectid [int(11) NOT NULL default '0']: Object ID of the outgoing related link in question.

  • tbl [varchar(16) NOT NULL default '']: Table ID of the above object.

59 rendered_images

This table contains a cache of rendered equation images (for metadata such as titles, not entry content).

  • uid [int(11) NOT NULL auto_increment]: Unique ID of this image rendering.

  • align [varchar(10) default NULL]: HTML vertical alignment meta-information (extracted from latex2html).

  • variant [varchar(16) NOT NULL]: If this is a stylistic variant, which one (i.e. title colors, hyperlink, normal).

  • imagekey [varchar(128) NOT NULL]: Image key (derived from the equation TeX segment).

  • image [blob]: The rendered image itself (binary data).

60 requests_uid_seq

  • val [int(11) NOT NULL auto_increment]: Encyclopedia requests unique ID counter.

61 requests

This table stores the user requests for new encyclopaedia entries. Each entry documents a single request.

  • uid [int(11) NOT NULL default '0']: Unique ID of this entry.

  • closed [datetime default NULL]: Date on which the request was confirmed. (empty if unfilled or filled but unconfirmed.)

  • creatorid [int(11) NOT NULL default '0']: numerical id of the user making the request.

  • data [text]: The human-readable text of the request.

  • created [datetime default NULL]: Date on which the request was made.

  • title [varchar(128) NOT NULL default '']: Title of the request.

  • fulfilled [datetime default NULL]: Date on which the request was filled.

  • fulfillerid [int(11) default NULL]: Number identifying the owner of the entry fulfilling the request.

62 score

This table contains a detailed accounting of how users’ scores change. Each record corresponds to a particular event in which a user gains (or loses) points.

  • delta [int(11) NOT NULL default '0']: Number of points awarded (or forfeited).

  • uid [int(11) NOT NULL auto_increment]: Numerical identifier specific to this table.

  • userid [int(11) NOT NULL default '0']: User whose score changed.

  • occured [timestamp(14) NOT NULL]: Date on which the event happened.

63 searchresults

This table temporarily stores basic information for search engine results (no matter whether it is the built-in search engine as originally the case, or an external search engine such as ESSEX or Lucene).

The ’ts’ (timestamp) field is used by a background process to determine whether to delete the search result.

  • objectid [int(11) NOT NULL default '0']: Unique ID of the result object.

  • tbl [varchar(16) NOT NULL default '']: Table of the result object.

  • ts [timestamp(14) NOT NULL]: Timestamp of the search.

  • token [int(11) NOT NULL default '0']: Unique token of the search.

  • rank [double NOT NULL default '0']: Numerical rank (assigned by the search engine itself, not Noosphere).

64 source

Digital library provenance sources of objects (for objects that have been imported).

  • uid [integer]: Unique ID of this source.

  • nickname [varchar(16)]: Short name of source.

  • url [varchar(255)]: Reference URL of source.

  • name [varchar(255)]: Full name of source.

65 storage

This table stores cached statistics (typically, statistics which require long-running queries to generate). It is the main table of the StatCache subsystem.

  • _key [varchar(64) NOT NULL default '']: Unique key of this statistic.

  • _val [text]: Current value of this statistic.

  • valid [int(11) default '1']: Is this statistic valid?

  • timeout [varchar(32) default NULL]: How long the statistic is valid for (or NULL for forever/until triggered by an pertinent event).

  • callback [varchar(32) default NULL]: Callback function that generates this statistic (function pointer).

  • lastupdate [varchar(32) default NULL]: When this statistic was last refreshed. Combined with timeout to determine invalidation.

66 tdesc

User-friendly titles for some Noosphere tables.

  • uid [int(11) default NULL]: Numerical identifier labeling rows of this table.

  • description [varchar(128) NOT NULL default '']: User-friendly name.

  • tname [varchar(32) NOT NULL default '']: Name which SQL recognizes.

67 users_rating

This belongs to the ratings/reputation module and is not part of Noosphere proper.

  • ranking [??????]:

  • value [??????]:

  • userid [??????]:

68 users_uid_seq

  • val [int(11) NOT NULL auto_increment]: User unique ID counter.

69 users

This table contains the records of all user accounts on PM.

  • forename [varchar(64) default '']: First Name

  • lastip [varchar(15)]: Last IP address from which this user logged in.

  • state [varchar(128) default '']: State where user is located

  • email [varchar(255) NOT NULL default '']: e-mail address of user

  • password [varchar(32) NOT NULL default '']: PM password

  • city [varchar(128) default '']: City in which user is located

  • prefs [text]: System-wide preferences set by user

  • bio [text]: Biography of user

  • country [varchar(128) default '']: Country where user is located

  • uid [int(11) NOT NULL default '0']: Unique number used to identify user throughout PM.

  • access [int(11) default '10']: Access level of user

  • active [int(11) default '1']: Flag indicating whether user is active

  • preamble [text]: Default TeX preamble for encyclopaedia entries added by the user.

  • last [datetime default NULL]: Last date on which the user did something while logged in.

  • score [int(11) default '0']: Score of the user

  • username [varchar(32) NOT NULL default '']: Screenname by which user is known.

  • joined [datetime default NULL]: Date on which user joined PM.

  • surname [varchar(64) default '']: Last name of user

  • homepage [varchar(255) default '']: Home web page of user

  • sig [text]: SignaturePlanetmathPlanetmathPlanetmath file appended to forum posts by user

70 watches

This table keeps track of watches placed on objects (most of which are placed by default as per the user’s settings).

  • uid [int(11) NOT NULL auto_increment]: Unique ID of this watch.

  • tbl [varchar(16) NOT NULL default '']: Table in which watched object is to be found.

  • objectid [int(11) NOT NULL default '0']: Numerical identifier specifying the watched object within its table.

  • userid [int(11) NOT NULL default '0']: The numerical identifier of the user watching the object.

Title Noosphere Tables
Canonical name NoosphereTables1
Date of creation 2013-03-11 19:36:34
Last modified on 2013-03-11 19:36:34
Owner rspuzio (6075)
Last modified by (0)
Numerical id 1
Author rspuzio (0)
Entry type Definition