Configuration

There are three sub-menus under MetaStudio's menu Configuration as follows:

  • Server Location: is used to set addresses of the MetaCamp and DataStore servers. The addresses should be completed URLs, e.g. http://www.metacamp.cn/metacamp/ for MetaCamp server and http://www.metacamp.cn/datastore/ for DataStore server. The trailing slash of the address is a must.
  • MetaCamp Account: is used to set account id and password to the MetaCamp and DataStore servers. If they have been set, the user is relieved from typing into the id and password every time when he starts the MetaStudio. It should be paid attention that the account is not that for logging onto this site. Instead, it is for logging onto the MetaCamp service, which is sent back by the MetaSeeker Self-Serving Console when the user applies for the service.
  • Preferences: In current release, there are only two preferences, i.e. Global Positioning and Clue Positioning, which denote the format of the XPath expressions to locate DOM nodes. Global Positioning is for the MetaStudio and stored in the configuration file locally; while Clue Positioning is for all clues loaded onto the Clue Editor work board and stored in the data schema file. When a new data schema is newly created, Clue Positioning takes the same value as Global Positioning. If the data schema is loaded from the MetaCamp server, Clue Positioning's value is changed to that stored in the loaded file. There are the following options for the two preferences:
    • absolute: DOM nodes are located with a absolute XPath expression which is a completed path containing all path steps from the topmost node, i.e. HTML, down to this node. Obviously, this approach is prone to failure when the page structure is changed.
    • both: The XPath expression to locate a DOM node is constructed from path steps beginning from the node having attributes class or id down to this node. The MetaStudio always tries to find the nearest node having the attributes class or id.
    • id preferred: The XPath expression to locate a DOM node is constructed from path steps beginning from the node having attributes class or id down to this node. The MetaStudio firstly tries to find the nearest node having the attribute id. If it doesn't, it tries to find the nearest node having class the second time. This operation is set by default.
    • class preferred: The XPath expression to locate a DOM node is constructed from path steps beginning from the node having attributes class or id down to this node. The MetaStudio firstly tries to find the nearest node having the attribute class. If it doesn't, it tries to find the nearest node having id the second time.
    • id only: The XPath expression to locate a DOM node is constructed from path steps beginning from the node having attribute id down to this node.
    • class only: The XPath expression to locate a DOM node is constructed from path steps beginning from the node having attribute class down to this node.