Properties in the Open Dictionary
In a dictionary entry, there may be any number properties
associated with each URL. There are also properties associated with
each KEY (or synonyms group). See the dictionary submission info page for
examples of the syntax.
The eventual purpose of properties is to improve search
results at the Open Dictionary. For example, one will be able
specify the search to cover only "books", or only materials marked as
suitable for undergraduate students. Property-based searching is
planned for the next release of the Open Dictionary.
Below are the properties currently supported in the Open Dictionary
database:
URL Properties
- TTL (TITLE) - normally the title of the page addressed by the URL.
This property is filled in automatically by the server during
URL validation, so there is never any need to set it, unless you
want to override the site's title.
- DSC (DESCRIPTION) - a summary of the contents of the destination website.
If omitted, a sort of description is also generated automatically from the
first website page during URL validation. However, much better results are
obtained if you provide a description when submitting the URL.
- LVL (LEVEL) - the nominal educational level of the material at the URL. Numbers between 1 and 100 are encouraged.
- LV1 (MIN LEVEL) - the rough minimum level of education addressed by the content at the URL. This number should be 1 or greater. There is no default, and if omitted, there is no assumed minimum level for the URL.
- LV2 (MAX LEVEL) - the rough maximum level of education addressed by the content at the URL. This number should be greater than or equal to LV1, and not larger than 100.
Note that large "context hubs", or "concept home pages" will normally cover a large
range of educational levels. Typically, they will provide a list of links at the outset
which visitors can use to route themselves to the appropriate level for their interests.
- TYP (TYPE) - a type classification for the content at the URL. The type is presently
arbitrary, and any text is accepted in the dictionary file. Suggested types include:
KEY Properties
- REL (RELATED) - a related key. There can be any number of REL
statements associated with the same KEY. These are listed as "related
contexts" at the bottom of the definition page for the key. (They are
not considered to be "definitions" or "synonyms" --- only related.) If
the related key is specified without a path, then the path of the
current KEY is assumed.
- The PATH of a KEY is really a property of the KEY, although it may
be specified as part of the KEY, as shown in the
examples. If the PATH is specified
separately, it must appear before the KEY, rather than after it.
The following URL properties are maintained internally by the Open
Dictionary and cannot be set explicitly:
- Date - the date the URL was submitted to the Open Dictionary.
- Hits - an internal tally of the number of hits on the URL from the Open Dictionary.
- isNew - an internal 'new' designation based on the Date of submission.
- isPopular - an internal 'popularity' designation based on Hits.
- Rating - the average rating of the URL. (The initial rating may be set on submission.)
- Votes - the number of votes used in computing the average Rating.
- Owner - the email address of the person submitting the URL.
A dictionary file has the following structure:
KEY = [KEY1]
[KEY1 properties]
URL = [URL11]
[URL11 properties]
URL = [URL12]
[URL12 properties]
[KEY1 properties also ok here]
KEY = [KEY2]
[KEY2 properties]
URL = [URL21]
[URL21 properties]
URL = [URL22]
[URL22 properties]
...
Thus, a property is associated with the latest KEY or URL seen in the
dictionary file.
|