Diferencia entre revisiones de «Xogueteando con BaseX»
| Línea 47: | Línea 47: | ||
* [http://roble.pntic.mec.es/jcortijo/u7b.html XQuery] | * [http://roble.pntic.mec.es/jcortijo/u7b.html XQuery] | ||
* [https://basex.org/basex/xquery/ XQuery] | * [https://basex.org/basex/xquery/ XQuery] | ||
| + | * [https://docs.basex.org/wiki/Main_Page Main page for documentation] | ||
* [http://docs.basex.org/wiki/JSON Out-of-the-box support to convert XML to JSON and vice-versa.] | * [http://docs.basex.org/wiki/JSON Out-of-the-box support to convert XML to JSON and vice-versa.] | ||
* [http://docs.basex.org/wiki/XSLT BaseX gives developers full access to transform XML with XSLT 1.0 and XSLT 2.0 (via Saxon)] | * [http://docs.basex.org/wiki/XSLT BaseX gives developers full access to transform XML with XSLT 1.0 and XSLT 2.0 (via Saxon)] | ||
</div> | </div> | ||
| + | |||
| + | == BaseX introduction == | ||
| + | * [https://files.basex.org/publications/tutorials/BaseX%20for%20Newbies.pdf BaseX for Newbies - Tamara Marnell] | ||
| + | * BaseX for Dummies: [https://www.swennenhuis.nl/basexfordummies/BaseX_for_dummies.pdf Part I], [https://www.swennenhuis.nl/basexfordummies/basexfordummies.zip Part I (files)], [https://www.swennenhuis.nl/basexfordummies/BaseX_for_dummies_part_2.pdf Part II] - Paul Swennenhuis | ||
| + | * [http://www.ffzg.unizg.hr/klafil/dokuwiki/doku.php/z:basex-adv BaseX Adventures - Neven Jovanović] | ||
| + | * [https://www.learndb.com/databases/basex-tutorial-for-using-an-xml-native-database-management-system Tutorial. Using a native XMLDBS - Imed Bouchrika] | ||
| + | |||
| + | == Using GUI == | ||
| + | * [http://docs.basex.org/wiki/Graphical_User_Interface#Visualizations Highly Interactive Visualizations: Visually explore, analyze and browse XML data] | ||
| + | * [http://docs.basex.org/wiki/Graphical_User_Interface#Realtime_Options Realtime Execution: XQuery expressions may be executed as you type and the results are immediately visualized] | ||
| + | * [http://docs.basex.org/wiki/Graphical_User_Interface#Text_Editor XQuery, XML and Script Editor: syntax highlighting, various shortcuts and shows detailed error feedback for debugging your queries with every keystroke] | ||
| + | * [http://docs.basex.org/wiki/Graphical_User_Interface#Input_Bar Keyword Search allow Fast ad-hoc requests: Enter simple keywords to query the structure and contents of your XML documents.] | ||
| + | * [http://docs.basex.org/wiki/DBA Server Administration: Administrate the BaseX database server from a GUI] | ||
| + | * [XPath Suggestions: The editor offers a choice of possible location steps as you enter your query] | ||
| + | |||
| + | == Integrating IDE == | ||
| + | * [https://docs.basex.org/wiki/Integrating_oXygen Integrating oXygen] | ||
| + | * [https://docs.basex.org/wiki/Integrating_Eclipse Integrating Eclipse] | ||
| + | * [https://docs.basex.org/wiki/Integrating_IntelliJ_IDEA Integrating IntelliJ IDEA] | ||
Revisión del 20:23 23 ago 2022
Sumario
Introdución
baseX é un sistema xestor de bases de datos (SGBD) XML nativo co que é posible realizar consultas usando unha interfaz gráfica; así poderemos visualizar cómo está organizada a base de datos no referente a súa estrutura de etiquetas XML, e evaluaar expresións XPath/XQuery en tempo real .
Tratáse dunha contorna de sofware libre e gratuita independente da plataforma.
Instalación
A súa descarga ten varias posibilidades, dependendo da plataforma e o que desexemos instalar. Para unha sinxela instalación en contorna windows, o seu windows installer pode ser a opción máis axeitada.
E importante sinalar que é preciso Java 11 para instalar e executar BaseX.
Unha vez instalado a contorna xa poderemos proceder a crear a base de datos e explotar despois esa información.
Creando a base de datos
Declarararemos en BaseX os ficheiros XML que se utilizarán coma orixe de datos e o nome que se utilizará para cada un destes ficheiros na contorna de traballo.
Seleccionaremos Database / New... e na fiestra pulsaremos en Browse... para escoller o noso ficheiro XML.
Escoller a base de datos
Unha vez cargado, o seleccionaremos para poder traballar:
- Database / Open & Manage...
- Clic sobre o ficheiro XML
- Pulsamos o botón Open
Executando sentenza e visualizando resultado
Introducimos na interfaz a primera sentencia e observamos o resultado da mesma:
- Introducción da sentenza XQuery
- Execución da sentenza
- Resultado da sentencia (orden alfabético dos títulos dos libros)
Referencias
BaseX introduction
- BaseX for Newbies - Tamara Marnell
- BaseX for Dummies: Part I, Part I (files), Part II - Paul Swennenhuis
- BaseX Adventures - Neven Jovanović
- Tutorial. Using a native XMLDBS - Imed Bouchrika
Using GUI
- Highly Interactive Visualizations: Visually explore, analyze and browse XML data
- Realtime Execution: XQuery expressions may be executed as you type and the results are immediately visualized
- XQuery, XML and Script Editor: syntax highlighting, various shortcuts and shows detailed error feedback for debugging your queries with every keystroke
- Keyword Search allow Fast ad-hoc requests: Enter simple keywords to query the structure and contents of your XML documents.
- Server Administration: Administrate the BaseX database server from a GUI
- [XPath Suggestions: The editor offers a choice of possible location steps as you enter your query]
