Changes

Jump to navigation Jump to search
112 bytes added ,  17:00, 16 May 2022
no edit summary
This page is part of the [[Getting Started]] Section. BaseX comes with a graphical user interface which that offers you great tools for managing, querying and visualizing your (XML) dataand write complex applications in XQuery.
=Startup=
Some additional [[Command-Line_Options#GUI|command-line options]] are available.
Please note It is worth mentioning that the standalone client must not be used if you perform parallel (concurrent) read and write operations on your databases. See [[Startup#Concurrent Operations|Concurrent Operations]] for more details.
=Introduction=
The BaseX GUI window is divided into various bars and panels. At the top of the BaseX window, the menu bar resides. It houses all important features of the BaseX GUI. Use the ''Database'' menu to [[Graphical_User_Interface#Database Management|create and manage your XML databases]]. The ''Editor'' menu gives you access to a variety of tools and options for working with files. The ''View'' menu lets you toggle between the bars and panels described below. The ''VizualizationVisualization'' menu offers you a comprehensive set of data representations that will help you to understand your data even better. Use the ''Options'' menu to set your preferences regarding realtime real-time execution, colors, fonts , and packages.
[[File:Basex-menu-bar.png|600px]]
The BaseX GUI is a great place for creating and managing your XML databases.
To '''create a new database''', select ''Database'' → ''New'' from the menu and browse to an XML document of your choice. You can start with the {{Code|factbook.xml}} document, which contains statistical information on the worlds' countries. It is included in the {{Code|etc}} directory of our [httphttps://basex.org/download full distributions] ( ZIP Package and Windows Installer) or can be downloaded [httphttps://files.basex.org/xml/factbook.xml here] (1.3 MB). In the ''Create Database'' dialog, specify the path to your input file and the name of the new database. If you leave the input file field empty, an empty database will be created. Click the ''OK'' button to create the database.
'''Note:''' You can also use the GUI's [[Graphical_User_Interface#Editor|editor]] to create and edit your own XML document. Just specify it as input file for the creation of a new database after saving the document to disk.
** Create and manage text, attribute, token and full-text indexes. Customize indexes by specifying language, stemming, case-sensitivity and diacritics settings or include a stop word list.
* With the ''Export'' item, you can serialize your database into a whole range of different output formats, including XML, JSON and CSV.
* The ''Close'' item closes the database. Currently An open databases are database is closed automatically as soon as another database is opened.
'''Note:''' You can also access the menu options ''New'', ''Open & Manage'', ''Properties'' and ''Close'' from BaseX's Buttons bar.
=Editor=
BaseX's The built-in editor of BaseX is a powerful tool which allows you to create and edit text documents (XML, JSON and any other kind of text document, JavaScript, …), write and run XQuery files and modules, assemble [[Commands#Basics|Command Scripts]] and develop [[RESTXQ]] applications:
* The editor offers '''Syntax highlighting''' for XML, XQuery, JSON and JavaScript files.
* XQuery, XML and JSON files will be '''parsed''' in realtime real-time and '''errors''' will be highlighted.
* XQuery code and command scripts can be '''executed''' (via Ctrl Enter or by clicking on the green triangle).
All XQuery files in the project directory will be parsed in the background. Buggy XQuery modules, and files importing these modules, will be marked red. With the text fields on top, you can interactively search for file names and contents.
 
If a directory contains a {{Code|.ignore}} file, its files and contents will be ignored.
=Input Bar=
<table cellpadding="0" cellspacing="10"><tr><td valign="top" width="50%">
[[Image:Result.png|thumb|Result View200px]]
'''Result''' (''View'' menu)
:Displays query results and other textual output (e.g. , content of the currently open database). Query results can be saved in a file.
</td><td valign="top" width="50%">
[[Image:InfoView.png|thumb|Info View200px]]
'''Info''' (''View'' menu)
:Helpful for analyzing the query plans of your XQuery expressions. It also displays information on the compilation and evaluation of queries.
</td></tr><tr><td valign="top" width="50%">
[[Image:Map.png|thumb|Map View200px]]
'''Map'''
:Displays all data in a [httphttps://en.wikipedia.org/wiki/Treemap TreeMap]. All nodes of the XML document are represented as rectangles, filling the complete area. You can choose different layout algorithms in the Menu ''Options'' → ''Map Layout''.
</td><td valign="top" width="50%">
[[Image:Tree.png|thumb|Tree View200px]]
'''Tree'''
:Displays all XML nodes in a top -down tree with edges and nodes. You can change some settings of the Tree in the Menu ''Options'' → ''Tree Options''.
</td></tr><tr><td valign="top" width="50%">
[[Image:Folder.png|thumb|Folder View200px]]
'''Folder'''
:Displays all nodes in an Explorer-like folder view. Nodes can be expanded or closed by clicking on the arrows.
</td><td valign="top" width="50%">
[[Image:Scatterplot.png|thumb|Scatterplot View200px]]
'''Plot'''
:Displays all nodes in a scatterplotscatter plot, which is particularly helpful if you want to explore analyze your data. Three drop down dropdown menus allow custom axis assignments.
</td></tr><tr><td valign="top" width="50%">
[[Image:Table.png|thumb|The Table View200px]]
'''Table'''
:Comes in handy if your data is highly regular. It displays all nodes in a table with rows and columns. Different assignments can be chosen by clicking on the arrow in the right upper corner.
</td><td valign="top" width="50%">
[[Image:Explorer.png|thumb|Explorer View200px]]
'''Explorer'''
</td></tr></table>
=Realtime Real-time Options=
In the ''Options'' menu, you can change how queries are executed and visualized:
* '''Realtime Real-time Execution''': If realtime real-time execution is enabled, your searches and queries will be executed with each key click and the results will be instantly shown.* '''Realtime Real-time Filtering''': If enabled, all visualizations will be limited to the actual results in realtimereal-time. If this feature is disabled, the query results are highlighted in the visualizations and can be explicitly filtered with the 'Filter' button.
=Look and Feel=
<table>
<tr>
<tdvalign="top">
By default, the Look and Feel of your operating system will be used in the GUI.
In the ''Preferences'' dialog, you can choose from additional window themes.
=Changelog=
 
;Version 9.3
* Updated: Project View: ignore directories with {{Code|.ignore}} file
;Version 9.1
 
* Added: Project View, set XML document as context.
;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 JTattoo library
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu