Changes

Jump to navigation Jump to search
90 bytes added ,  10:29, 3 August 2022
m
Text replacement - "8984" to "8080"
This tutorial is part of the [[Getting Started]] Section.
It describes how to access BaseX from the [httphttps://www.oxygenxml.com oXygen XML Editor].
Currently, there are two alternatives how to use BaseX in oXygen:
===Preparations===
# Download one of the [httphttps://basex.org/download BaseX distributions].
# Start BaseX (see [[Startup]]).
# Create a BaseX database, if necessary (see [[Databases]]).
# Select "WebDAV (S)FTP" in the Data Source dropdown box.
# Fill in the appropriate connection details as follows:
#* Set the WebDAV/FTP URL to <code><nowiki>http://localhost:89848080/webdav</nowiki></code>.#* Set the user name username to <code>admin</code>and enter your password.#* Set the password to <code>admin</code>: [[File:Oxygen-WebDAV-1.png]]
# Now press ''OK'', and your Data Source is ready for use.
[[File:Oxygen-WebDAV-1.png]] You can then access your database file(s) via the Data Source Explorer: ''WindowsWindow'' → ''Show View'' → ''Data Source Explorer''.
[[File:Oxygen-WebDAV-2.png]]
===Preparations===
# Download one of the complete [httphttps://basex.org/download BaseX distributions] (ZIP, EXE), if necessary.
# Start BaseX (see [[Startup]]). '''Note:''' Charles Foster's XQJ implementation provides a default (client/server) and a local driver. If you want to use the first flavor, you need to start a [[Startup#Server|BaseX Server]] instance.
#* {{Code|basex/lib/xqj2-0.2.0.jar}}
#* {{Code|basex/lib/basex-xqj-9.0.jar}}
#* {{Code|basex/basexBaseX.jar}}, if you want to use BaseX embedded
# Under "Driver class", choose the preferred driver class:
#* EmbeddedClient/server communication: {{Code|net.xqj.basex.BaseXXQDataSource}}#* Client/serverEmbedded use (standalone): {{Code|net.xqj.basex.local.BaseXXQDataSource}}
# Click ''OK''.
#* serverName: {{Code|localhost}}
#* user: {{Code|admin}}
#* password: {{Code|admin}}''your password''
# Click ''OK'' to complete the connection configuration.
# Click ''OK'' again to close the Preferences dialog.
# Enter a name for your transformation, e.g. "BaseX" like in the screenshot below.
# Specify an optional XML and XQuery URL.
#* If you would like to query the BaseX database you connected to via WebDAV, leave the ''XML URL'' field empty. To acces access your database, you can use the following function from the BaseX [[Database_Module|Database Module]] in your ''XQuery URL'' file:#: [[File:Oxygen-query-example.png]]
#* If you specify an XML document in the ''XML URL'' field, you can query its content using {{Code|.}} (dot operator) in your ''XQuery URL'' file.
# Choose "BaseX XQJ" as Transformer from the combo box.
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu