Changes

Jump to navigation Jump to search
235 bytes removed ,  15:03, 19 March 2018
This page is part of the [[Getting Started]] Section.
The BaseX homepage gives you a [http://basex.org/products/gui visual impression] of the graphical user interface (GUI) of BaseX, and an [http://www.youtube.com/watch?v=xILHKGPGaJ4&hd=1 introductory video] is available, which presents some of its interactive features.
=Startup=
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 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 full releases (in the {{Code|etc}} directory) 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 the database will be created.
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 harddiskdisk, it can be supplied as database input in the above dialog.
=Input Bar=
=Text Editor=
The powerful built-in text editor can be used to write and edit is a helpful tool for writing [[XQuery]] code (simple queries, modules), that spans multiple lines or files. It can also be used to edit XML documents, [[Commands#Basics|Command Scripts]], and any other textual files:
* XQuery and XML files will be '''parsed''' with each key click, and '''errors''' will be highlighted.
* XQuery and command scripts can be '''executed''' by clicking on the green triangle.
* XQuery, XML and JavaScript will be '''syntax highlightedSyntax highlighting'''.* is available for XQuery and , XML will automatically '''parsed''' with each key click, JSON and '''errors''' will be highlightedJavaScript files.
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 clicking on the files. The project directory can be changed by clicking on as well; the button with the three dots <code>...</code> most recent directories will be kept in the upper left corner of the project view panelhistory.
Since {{Version|8All XQuery files in the project directory will be parsed in the background.4}}, erroneous Buggy XQuery modules, and all queries files importing these modules, will be highlightedmarked red. Highlighting With the text fields on top, you can be disabled in the GUI preferences dialoginteractively search for file names and contents.
=Realtime Options=
[[Image:InfoView.png|thumb|Info View]]
'''Query Info'''
:Helpful for analyzing the query plans of your XQuery expressions. It also displays information on the compilation and evaluation of queries.
</td></tr></table>
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu