I present one possible installation of MML Query engine locally.
First you have to download (from
http://merak.pb.bialystok.pl/mmlquery/downloads/):
- kernel.tgz ,
- present.tgz,
- 4.76.959.tgz - current database for MML Query
Untar all these files in directory e.g. MMLQ. We will install MML Query in directory: megrez, on the path: /home/user_name/
####### Change directory below if necessary
require '/home/user_name/megrez/kernel/directories.pl';
#######
- Create a directory named: 'query' inside directory 'megrez'.
- Move untar-ed database directory '4.76.959' into: 'megrez/query'.
- Create symbolic link inside: 'megrez/query', i.e.
ln -s 4.76.959 current
- Add symbolic link to: 'megrez/kernel/mmlquery' in your executables.
That's it.
You can run mmlquery in shell top level by typing:
mmlquery
Once it runs, you should receive something similar to:
retel@lxultra9:/data0/retel/megrez$ mmlquery
MML Query, version 1.3.03, Copyright (c) 2001-2004, Grzegorz Bancerek
Standard presentation
mmlquery>
To check if the current database is properly linked, type for instance the following query:
list of func from article NAT_1;
You should received the following:
mmlquery> list of func from article NAT_1;
QUERY: 'list of func from article NAT_1'
2 element(s)
NAT_1:func 1
NAT_1:func 2
mmlquery>
This means everything works fine.
By the way, you can use mmlquery engine on the emacs side (if you want to work locally, there is also an option to send queries into a remote server and view the answers through a web-browser).
To do that:
- you have to to install GAB (http://merak.pb.bialystok.pl/mmlquery/downloads/gab-4.76.959.tgz), and define properly a path to the unpacked GABs while customising Mizar Mode.
- you have to set up properly the Mizar MMLQuery group while customising Mizar Mode.
- from Menu, select Mizar -> MML Query -> Query window (or just press C-c C-q in a .miz buffer)
- insert again e.g. "list of func from article NAT_1", and press C-c RET (if you press C-c C-c instead, your query will be sent to the web version instead, and the result will appear in a browser - this is the standard way for people who do not have MML Query installed locally)
--
JosefUrban - 05 Mar 2007
Topic revision: r2 - 2007-03-22 - 16:39:45 -
JosefUrban