File Types

Currently the "lang_de" folder contains 3 different types of files:

     -  *.xml
     -  *.prot
     -  *.pro
     -  ps-*.prot and ps-*.pro

[Note that the "lang_en" folder may not contain all file types yet.]

*.xml

The .xml files hold phrases broken down into components (adjectives, nouns, verbs, etc.); these are read from the files into the database. The standard .xml file is called "facts.xml"; this file contains all entries that are stored in the GUI.

*.prot

The .prot files are plain text files and, if found in the folder "lang_de" or "lang_en", are converted by FreeHAL into .xml files. In order to process large amounts of data, it is better and faster to store the entries in a text file with the .prot extension.

Upon startup, FreeHAL looks up the "lang_de" or "lang_en" folder, trying to locate .prot files. If one is found, it automatically converts it into a .xml file, with the same name as the original .prot file. If a .prot file remains in the lang_de folder, it will not be converted the next time around, since a file already exists with the same name and the .xml extension.

The t in ".prot" stands for Template.

*.pro

The .pro file format has been replaced by the XML files in Spring 2011.

ps-*.prot and ps-*.pro

The ps-*.prot files are used to teach FreeHAL pure facts. In a ps-*.prot file you do not need to describe the facts in full. For example, you do not need to write:

     -  "A blackbird is a bird"
     -  "A starling is a bird"

in full, instead it is sufficient to name the file "ps-Bird.prot" and then to only enter:
     -  "Blackbird"
     -  "Starling"

FreeHAL will then produce a "ps-Bird.xml" file from the "ps-Bird.prot" file.

All "ps_xxx.xx" files are saved in a subfolder called ps_dateien (i.e., "ps files").

Back to Documentation
    

Comments

About   Supporters   Social Networks
Copyright © 2006 - 2011
Tobias Schulz and Contributors

The FreeHAL Software is distributed under the GNU GPL v3 license.

The FreeHAL Website (freehal.org and freehal.net) is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
  Members from SETI.Germany and Planet 3DNow! are sponsoring one of our servers.

 
Elton Chung from ReactOS donates a BOINC download mirror.


I don't want to see social networks at freehal.org! Buchmessen
More information: our partners | funds | expenses and donors