Changes

Jump to navigation Jump to search
737 bytes added ,  22:39, 9 October 2016
no edit summary
First of all, launch a GUI instance of BaseX. Depending on your operating system, double click on the '''BaseX GUI''' start icon or run the <code>basexgui</code> script. Beside that, some more [[Startup#BaseX GUI|startup options]] are available.
==Create Database==
Select ''Database'' → ''New'' and browse to an XML document of your choice. As an example, you can start with the {{Code|factbook.xml}} document, which contains statistical information on the worlds' countries. It is included in our official releases and can also be [http://files.basex.org/xml/factbook.xml downloaded] (1.3 MB). If you type nothing in the input field, an empty database will be created. Next, choose the ''OK'' button, and BaseX will create a database that you can visually explore and query.
If no XML document is available, the [[#Text Editor|Text Editor]] can also be used to create an initial XML document. After saving the entered XML document to harddisk, it can be specified supplied as database input in the above dialog.
=Realtime OptionsInput Bar=
Via On top of the main window, you can find an input bar. The attached dropdown menu provides three modes: ''Options'Find''' menu, you can change how queries are executed '''XQuery''' and visualized'''Command''':
* '''Realtime Execution''': If realtime execution is enabled, your searches and queries will be executed with each key click and the results will be instantly shown.* '''Realtime Filtering''': If enabled, all visualizations will be limited to the actual results in realtime. If this feature is disabled, the query results are highlighted in the visualizations and can be explicitly filtered with the 'Filter' button.[[CategoryImage:GUIInputBar.png|Input Bar]]
=Input Bar= The main window of the GUI has an input bar, which provides three modes: '''Find''', '''XQuery''' and '''Command'''. The upcoming example queries can all be used with an instance of the <code>factbook</code> database:
==Find==
|}
==CommandsCommand==
In the '''Command''' mode, [[Commands|BaseX Commands]] can be entered and executed. Just try the following examples:
=Text Editor=
The powerful text editor can be used to type in write and edit [[XQuery]] expressionscode (simple queries, modules), XML documents, [[Commands#Basics|Command Scripts]], XML documents, or and any other text files. Query textual files : * XQuery and XML documents command scripts can be started '''executed''' by clicking on the green triangle. They * XQuery, XML and JavaScript will be '''syntax highlighted'''.* XQuery and XML will automatically '''parsed ''' with each key click, and '''errors ''' will be highlighted. Various  Numerous [[Shortcuts|keyboard shortcuts]] are available to speed up editing and debugging. ==Project View== The Project View is attached to the editor panel. It displays all files of the current project directory in a tree structure. Files can be renamed and deleted by right-clicks on the files. The project directory can be changed by clicking on the button with the three dots <code>...</code> in the upper left corner of the project view panel. Erroneous XQuery modules, and all queries importing these modules, will be highlighted. Highlighting can be disabled in the GUI preferences dialog. =Realtime Options= Via the ''Options'' menu, you can change how queries are executed and visualized: * '''Realtime Execution''': If realtime execution is enabled, your searches and queries will be executed with each key click and the results will be instantly shown.* '''Realtime Filtering''': If enabled, all visualizations will be limited to the actual results in realtime. If this feature is disabled, the query results are highlighted in the visualizations and can be explicitly filtered with the 'Filter' button.
=Visualizations=
=Changelog=
 
;Version 8.4
 
* Added: highlighting of erroneous XQuery modules in the project view.
;Version 8.0
* Updated: support for dark look and feels; support for JTatto library
 
[[Category:Beginner]]
[[Category:GUI]]
[[Category:XQuery]]
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu