Wiki database

Wiki database

A wiki-based database is a collection of wiki files that can be accessed using SQL-like commands. The first (and, as of 2006, the only) such system was designed and developed by Reliable Software as part of their P2P version-control system, Code Co-op, which features a Peer-to-peer wiki system.

Database

The database is implemented as a collection of wiki files (records) stored inside s, which play the role of tables. In a file-based P2P wiki, a namespace/table is implemented as a subdirectory of the main wiki directory.

The files (records) may contain any , but in order to be accessible through SQL commands, they must define some tuples, or property-value pairs. This is done by embedding a wiki table inside a record. The first column of this wiki table defines the names of properties, the second specifies their values. For instance, a record in the "Student" table (namespace) may contain the following wiki table:

NameChad Codewell
CoursesProgramming, Anger Management
which defines two properties, Name and Courses, and assigns values to them.

Queries

The properties defined inside records may be used to formulate SQL queries. For instance, the following query may be embedded in a wiki file (a query line starts with a question mark): ?SELECT Name FROM Student WHERE Courses CONTAINS "Anger Management" ORDER BY NameWhen the wiki file is displayed, the SELECT statement is expanded into a wiki table that lists the results of the query. In the above example, the result might look like this:

ID Name
Student:13 Chad Codewell
Student:18 Lewis Black
The ID column shows the name of the record (in a file-based system, this is the name of the file minus the extension .wiki). It also serves as a wiki link to the record. When the user clicks on it, the whole record is displayed like any other wiki file.

Forms

Wiki files may contain markup for displaying HTML forms. The target of a form (the "action" associated with the form) may be another wiki file. When the form is accepted, the target wiki file is displayed. The properties defined by the form can be accessed in the target file using the syntax [?propName] . In particular, the values from a form may be used in SQL queries in the target page.

A form may also be used to create new records. In that case, the target file would contain the INSERT command that creates a new record and fills its property table with specified values. For instance, continuing the above example, the target file may contain: ?INSERT INTO Student (Name = [?name] , Courses = [?courses] )where the values of the properties are set by a form that activats this file.


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • Wiki software — (also known as a wiki engine or wiki application) is collaborative software that runs a wiki, i.e., a website that allows users to create and collaboratively edit web pages via a web browser. A wiki system is usually a web application that runs… …   Wikipedia

  • Wiki — This article is about the type of website. For other uses, see Wiki (disambiguation). Edit summary redirects here, for edit summaries as used in Wikipedia see Help:Edit summary WikiNode redirects here, for the WikiNode of Wikipedia see… …   Wikipedia

  • Wiki — Un wiki o una wiki (del hawaiano wiki, «rápido»)[1] es un sitio web cuyas páginas pueden ser editadas por múltiples voluntarios a través del navegador web. Los usuarios pueden crear, modificar o borrar un mismo texto que comparten. Los textos o… …   Wikipedia Español

  • Database transaction — A transaction comprises a unit of work performed within a database management system (or similar system) against a database, and treated in a coherent and reliable way independent of other transactions. Transactions in a database environment have …   Wikipedia

  • Wiki application — A wiki application (also known as an application wiki ) is a web application that runs on a wiki. Description Wikis allow users to maintain unstructured content very quickly and easily. Wiki applications add structure to wiki content. Wiki… …   Wikipedia

  • wiki — (WEE.kee; WIK.ee) n. A collaborative web site that allows users to add, edit, and delete the site s content; the software that enables such collaboration. v. wiki prefix wiki suffix wikiing pp. wikify v. Example Citations: Another Internet site… …   New words

  • Database normalization — In the design of a relational database management system (RDBMS), the process of organizing data to minimize redundancy is called normalization. The goal of database normalization is to decompose relations with anomalies in order to produce… …   Wikipedia

  • Wiki sémantique — Un wiki sémantique est un wiki doté de fonctionnalités permettant de formaliser le sens des articles. Il permet de rajouter des informations sur les métadonnées des articles et de caractériser leurs relations. Il utilise pour cela une syntaxe de… …   Wikipédia en Français

  • Comparison of wiki software — The following tables compare general and technical information for a number of wiki software packages. Contents 1 General information 2 Target audience 3 Features 1 4 Features 2 …   Wikipedia

  • Comparison of relational database management systems — Programming language comparisons General comparison Basic syntax Basic instructions Arrays Associative arrays String operations …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”