Common Knowledge
"Common Knowledge" is a feature on many LibraryThing pages, allowing members to add metadata to the system, divided by language. Technologically, it is a fielded wiki.
Awards
Filename: ckinfo_bookaward.xml
Sample Feed: ckinfo_bookaward_small.xml
Contents and Purpose
This is a feed of awards information for works.
Example
<commonknowledge>
<item>
<key>4-41004604-eng</key>
<language>English</language>
<type>bookaward</type>
<text>Australian Prime Minister's Literary Award</text>
<status>1</status>
<descriptionlist>
<description>
<language>eng</language>
<text>
The Australian Prime Minister's Literary Awards
(PMLA) were announced at the end of 2007 by the
incoming Rudd Ministry following the 2007 election.
They are administered by the Minister for the
Arts. The awards were designed as "a new initiative
celebrating the contribution of Australian
literature to the nation's cultural and intellectual
life." The awards are held annually and provide a
tax-free prize of A$100,000 in each category, making
it Australia's richest literary award in total, and
among the richest literary prizes in the world. The
award is given in the four categories of fiction,
non-fiction, young adult and children's fiction, as
selected by three judging panels. "The awards are
open to works written by Australian citizens and
permanent residents. Authors, publishers and
literary agents are eligible to enter works, first
published in the calendar year prior to the awards."
</text>
</description>
</descriptionlist>
<worklist>
<work order="2012">
<workcode>11833546</workcode>
<text>
Australian Prime Minister's Literary Award (Australian History, 2012)
</text>
<displaytext>
Australian Prime Minister's Literary Award<br>
</displaytext>
<position>
Australian History, 2012
</position>
<position_simple>2012</position_simple>
<order>2012</order>
</work>
...
</worklist>
</item>
</commonknowledge>
Elements and Attributes
<commonknowledge>
is the top-level
element.
<item>
(repeated) is an award, as defined as a given unique combination of the award-string and language.<key>
(required) a unique code for the item. A code like 4-41004604-eng means "award" plus "id 41004604" plus "English." There is no numerical key.<language>
(required) is the language of award entry (see "Language abbreviations" in the Introduction).<type>
(required) is always "bookaward".<text>
(required) the name of the award itself.<descriptionlist>
(optional) is a container for<description>
elements.<description>
(repeatable), a member-written award description.<language>
(required) is the language of award description (see "Language abbreviations" in the Introduction).- Note Too many of these languages are incorrect, mostly from users pasting descriptions from the English version. In the future we shall add a Bayesian filter on these languages, to narrow down which are correct and which incorrect.
<text>
(required) is the text of the award description.
<worklist>
(required) is a container for<work>
elements.<work>
(repeatable) is a work that belongs to the award.order="0001"
attr is a zero-filled numerical order in which the works should be displayed. Also given in<order>
.<workcode>
(required) is the work id, or workcode, of the work.<text>
(required) is the line as entered by LibraryThing members.<displaytext>
(required) is the name of the award for this work.<position>
(required) describes the role of the work within the award. Typical values are "1", "2", "3", "book 1", "2015", "sequel", etc.<position_simple>
(required) is any number in the position. This turns "book 1" into 1.<order>
(required) is a zero-filled numerical order in which the works should be displayed.
Note
How members work the position and order elements deserves some exploration.
All ordering is done with the material in the parentheses. Usually that's simple, like
<text>A Sleuthing Sisters Mystery (Book 1)</text>
which becomes
<displaytext>A Sleuthing Sisters Mystery</displaytext></p>
<position>Book 1</position></p>
<position_simple>1</position_simple></p>
Other times members use a pipe to separate the "displayed" or "human readable" position from the way it should be ordered. In the case of
<text>A Sleuthing Sisters Mystery (9|Omnibus 1 - 3)</text>
members have decided to sort the omnibus to the end of the list, position 9.
<displaytext>A Sleuthing Sisters Mystery</displaytext></p>
<position>Omnibus 1 - 3</position></p>
<position_simple>Omnibus 1 - 3</position_simple></p>
<order>0009</order></p>
There are too many possible series positions and relationships to make a hard rule, but members generally sort series by their order, with omnibuses and box sets at the end.
Characters
Filename: ckinfo_characters.xml
Sample Feed: ckinfo_characters_small.xml
Contents and Purpose
This is a feed of character information for works.
The format of the characters feed is identical to that of the "Award" feed.
Example
<commonknowledge>
<item>
<key>3-6832160-eng</key>
<language>English</language>
<type>characters</type>
<text>"Bird Eye" Bob</text>
<status>0</status>
<worklist>
<work order="0001">
<workcode>5645151</workcode>
<text>"Bird Eye" Bob</text>
<displaytext>"Bird Eye" Bob</displaytext>
<order>0001</order>
</work>
</worklist>
</item>
</commonknowledge>
Places
Filename: ckinfo_places.xml
Sample Feed: ckinfo_places_small.xml
Contents and Purpose
This is a feed of place information for works.
The format of the places feed is identical to that of the "Award" feed, except that places never have descriptions.
Example
<commonknowledge>
<item>
<key>2-16962475-eng</key>
<language>English</language>
<type>places</type>
<text>Avonlea</text>
<status>0</status>
<worklist>
<work order="0001">
<workcode>8182</workcode>
<text>Avonlea</text>
<displaytext>Avonlea</displaytext>
<order>0001</order>
</work>
...
</worklist>
</item>
</commonknowledge>
Quotes
Filename: worktoquotes.xml
Sample Feed: worktoquotes_small.xml
Contents and Purpose
Contains all quotes from works entered by users/members. Each <work>
contains one or more <quote>
tags.
Quotes are of three types—first words, last words or "words from somewhere in the middle." All three types may repeat—even first and last words—as members will sometimes provide first words from both the introduction and the main text, etc.
Example
<worktoquotes>
<work workcode="39">
<quote>
<type>firstwords</type>
<langcode>eng</langcode>
<language>English</language>
<text>
<![CDATA[
There was once a Velveteen Rabbit, and in the beginning
he was really splendid.
]]>
</text>
</quote>
<quote>
<type>quotation</type>
<langcode>eng</langcode>
<language>English</language>
<text>
<![CDATA[
When a child loves you for a long, long time, not just
to play with, but REALLY loves you, then you become Real.
]]>
</text>
</quote>
<quote>
<type>lastwords</type>
<langcode>eng</langcode>
<language>English</language>
<text>
<![CDATA[
But he never knew that it really was his own Bunny,
come back to look at the child who had first helped him
to be Real.
]]>
</text>
</quote>
</work>
</worktoquotes>
Elements and Attributes
<worktoquotes>
is the top-level element.
<work>
(repeated) is the work in question. It has the required element:workcode="N"
attr (required) is the work id, or workcode.<quote>
(repeated) a container for the quote.<type>
(required) is firstwords, lastwords or quotation (i.e., from anywhere in the middle).<languagecode>
is the language of the quote (see "Language abbreviations" in the Introduction).<language>
is the language, in its English name. Why not?<text>
is the text of the quotation.