Changes

Jump to navigation Jump to search
282 bytes added ,  12:11, 21 January 2019
no edit summary
This tutorial is part of the [[Getting Started]] Section.
It describes how to access BaseX from the [http://www.oxygenxml.com oXygen XML Editor].
Currently, there are two variants alternatives how to use BaseX in oXygen:
* Resources in BaseX [[databases]] can be opened and modified.
* XPath/XQuery 1.0 expressions can be run by the [[Query|query processor]] of BaseX.
* '''Note:''' BaseX itself is a highly compliant XQuery 3.1 processor. The restriction to XQuery 1.0 arises from the XQJ Interface which is used to establish the connection between oXygen and BaseX. We strongly recommend encourage you to use the [[Graphical_User_Interface#Text_Editor|XML editor ]] integrated into the BaseX GUI to edit and query your XML data!<br/><br/>
=Access Database Resources=
===Preparations===
* First# Download one of the [http://basex.org/download BaseX distributions] (ZIP, start EXE).# Start BaseX (see [[Startup]]).# Create a BaseX database, if necessary (see [[Databases]]).# Start the BaseX [[WebDAV]] service.
===Configuration===
# Go In oXygen, go to menu ''Options'' → ''Preferences'' → ''Data Sources''.# In the Connections panel (in the lower area half of the screen), click the ''New'' button ({{Code|+}}).# Enter "BaseX-WebDAV" as connection name.# Select "WebDAV(S)FTP" in the Data Source combo dropdown box.# Fill in the appropriate connection details. Below, the default values are shownas follows:#* Set the WebDAV/FTP URL to <code><nowiki>http://localhost:8984/webdav</nowiki></code>.#* Set the user name to <code>admin</code>.#* Set the password to <code>admin</code>.# Now press ''OK'', and your Data Source is ready for use.
[[File:Oxygen-WebDAV-1.png]]
You can then access the your database files file(s) via the Data Source Explorer: ''Windows'' → ''Show View'' → ''Data Source Explorer''.
[[File:Oxygen-WebDAV-2.png]]
===Preparations===
# Download one of the complete [http://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#BaseX Server|BaseX Server]] instance.
===Configure Data Source===
administrator, editor
162

edits

Navigation menu