All Projects → BaseXdb → Basex

BaseXdb / Basex

Licence: bsd-3-clause
BaseX Main Repository.

Programming Languages

java
68154 projects - #9 most used programming language

Labels

Projects that are alternatives of or similar to Basex

Xquery
Extract data or evaluate value from HTML/XML documents using XPath
Stars: ✭ 155 (-69.9%)
Mutual labels:  xml, xpath
Ono
A sensible way to deal with XML & HTML for iOS & macOS
Stars: ✭ 2,599 (+404.66%)
Mutual labels:  xml, xpath
Jquery Xpath
jQuery XPath plugin (with full XPath 2.0 language support)
Stars: ✭ 173 (-66.41%)
Mutual labels:  xml, xpath
Camaro
camaro is an utility to transform XML to JSON, using Node.js binding to native XML parser pugixml, one of the fastest XML parser around.
Stars: ✭ 438 (-14.95%)
Mutual labels:  xml, xpath
Exist
eXist Native XML Database and Application Platform
Stars: ✭ 294 (-42.91%)
Mutual labels:  xml, xpath
Markup
A Swift package for working with HTML, XML, and other markup languages, based on libxml2.
Stars: ✭ 93 (-81.94%)
Mutual labels:  xml, xpath
Pugixml
Light-weight, simple and fast XML parser for C++ with XPath support
Stars: ✭ 2,809 (+445.44%)
Mutual labels:  xml, xpath
Xml
XML without worries
Stars: ✭ 35 (-93.2%)
Mutual labels:  xml, xpath
XPathTools
A Visual Studio Extension which can run any XPath and XPath function; navigates through results at the click of a button. Can show and copy any XPath incl. XML namespaces, avoiding XML namespace induced headaches. Keeps track of the current XPath via the statusbar.
Stars: ✭ 40 (-92.23%)
Mutual labels:  xml, xpath
XPath2.Net
Lightweight XPath2 for .NET
Stars: ✭ 26 (-94.95%)
Mutual labels:  xml, xpath
Internettools
XPath/XQuery 3.1 interpreter for Pascal with compatibility modes for XPath 2.0/XQuery 1.0/3.0, custom and JSONiq extensions, XML/HTML parsers and classes for HTTP/S requests
Stars: ✭ 82 (-84.08%)
Mutual labels:  xml, xpath
Xidel
Command line tool to download and extract data from HTML/XML pages or JSON-APIs, using CSS, XPath 3.0, XQuery 3.0, JSONiq or pattern matching. It can also create new or transformed XML/HTML/JSON documents.
Stars: ✭ 335 (-34.95%)
Mutual labels:  xml, xpath
Xqerl
Erlang XQuery 3.1 Processor
Stars: ✭ 44 (-91.46%)
Mutual labels:  xml, xpath
Graphquery
GraphQuery is a query language and execution engine tied to any backend service.
Stars: ✭ 112 (-78.25%)
Mutual labels:  xml, xpath
Xom
XOM™ is a new XML object model. It is an open source (LGPL), tree-based API for processing XML with Java that strives for correctness, simplicity, and performance, in that order.
Stars: ✭ 38 (-92.62%)
Mutual labels:  xml, xpath
Xmlquery
xmlquery is Golang XPath package for XML query.
Stars: ✭ 209 (-59.42%)
Mutual labels:  xml, xpath
Fuzi
A fast & lightweight XML & HTML parser in Swift with XPath & CSS support
Stars: ✭ 894 (+73.59%)
Mutual labels:  xml, xpath
Amazon Mobile Sentiment Analysis
Opinion mining of Mobile reviews on Amazon platform
Stars: ✭ 19 (-96.31%)
Mutual labels:  xml, xpath
Meeseeks
An Elixir library for parsing and extracting data from HTML and XML with CSS or XPath selectors.
Stars: ✭ 252 (-51.07%)
Mutual labels:  xml, xpath
Fluentdom
A fluent api for working with XML in PHP
Stars: ✭ 327 (-36.5%)
Mutual labels:  xml, xpath

Introduction

Welcome to the BaseX open source project. We are interested in your feedback:

  • Please send new suggestions and bug reports to our basex-talk mailing list.
  • Confirmed bugs and feature requests are discussed in our issue tracker.
  • We invite you to contribute to our Documentation.

Compiling BaseX

JDK 1.8 and JUnit are currently required to compile the complete sources of the main project. If you are using another environment than Eclipse or don't have JUnit installed, just delete the test packages inside the project and rebuild the project.

Please take a look at the Maven documentation for information on how to use Maven.

You can launch the following classes, which are all placed in the basex-core directory and the org.basex main package:

BaseX        : console mode
BaseXServer  : server instance, waiting for requests
BaseXClient  : console mode, interacting with the server
BaseXGUI     : graphical user interface

Moreover, try -h to list the available command line options. For example, you can use BaseX to process XQuery expressions without entering the console.

Using Eclipse

BaseX is being developed with the Eclipse environment. Some style guidelines are integrated in the sources of BaseX; they are being embedded as soon as you open the project.

Running BaseX

The following steps can be performed to start BaseX with Eclipse:

  • Press Run -> Run...
  • Create a new Java Application launch configuration
  • Select basex as Project
  • Choose a Main class (e.g., org.basex.BaseXGUI)
  • Launch the project via Run

Adding Checkstyle

Some additional Checkstyle guidelines are defined in the project:

  • Open Eclipse
  • Press Help -> Install new Software...
  • Press Search for new features to install
  • Enter the URL: http://eclipse-cs.sourceforge.net/update
  • Follow the installation procedure and restart Eclipse

Using Git

The code base of BaseX can be accessed via GitHub.

Docker Image

Docker images for versions 9.x

The BaseX server is also available as automated build basex/basexhttp on the Docker Hub, providing both release and nightly builds. All images are automatically rebuild if Docker provides updated base images.

To start a BaseX container based on the latest development release publishing the BaseX server and HTTP ports 1984 and 8984 and bind-mounting your user's basex/data directory, run:

docker run -d \
    --name basexhttp \
    --publish 1984:1984 \
    --publish 8984:8984 \
    --volume "$HOME/basex/data":/srv/basex/data \
    basex/basexhttp:latest

Once the container is running, you can connect to its REST, RESTXQ and WebDAV services.

You can use the BaseX client to connect to the database in the container:

docker exec -ti basexhttp basexclient

The container directories /srv/basex/data, /srv/basex/repo and /srv/basex/webapp are persisted as volumes, which means they cannot be preinitialized in the application image.

You can bind-mount each of them to directories in your work environment:

docker run -d \
    --name basexhttp \
    --publish 1984:1984 \
    --publish 8984:8984 \
    --volume "$HOME/basex/data":/srv/basex/data \
    --volume "$HOME/basex/repo":/srv/basex/repo \
    --volume "$HOME/basex/webapp":/srv/basex/webapp \
    basex/basexhttp:latest

BaseX runs as user basex with fixed user ID 1984. Your data directory needs to have write permission for this user in order to store data and manage databases.

If you want to add your own application, create an image FROM basex/basexhttp:[tag] with [tag] being the BaseX version you're developing against. Usually, you will add your application code to /srv/basex/webapp and modules to /srv/basex/repo.

If you are in the cloned directory of the BaseX git repository, you can include the DBA application in the running container :

docker run -d \
	--name basexhttp \
	--publish 1984:1984 \
	--publish 8984:8984 \
	--volume "$HOME/basex/data":/srv/basex/data \
	--volume "$(pwd)/basex-api/src/main/webapp":/srv/basex/webapp \
  basex/basexhttp:latest

Docker images for versions 8.x

Up to version 8.x, BaseX used directories BaseXData, BaseXRepo and BaseXWeb, typically in your home directory.

If you are using a Docker image for version 8.x (e.g. 8.5) the mount path in the container is slightly different:

    docker run -ti \
        --name basexhttp \
        --publish 1984:1984 \
        --publish 8984:8984 \
        --volume ~/BaseXData:/srv/BaseXData \
        basex/basexhttp:8.5

If you prefer the DBA web interface, this can also be linked against your server container:

docker run -d \
    --name basex-dba \
    --publish 18984:8984 \
    --link basexhttp:basexhttp \
    basex/dba

If you want to add your own application, create an image FROM basex/basexhttp:[tag] with [tag] being the BaseX version you're developing against. Usually, you will add your application code to /srv/BaseXWeb and modules to /srv/BaseXRepo. BaseXData is persisted as a volume, which means it cannot be preinitialized in the application image.

Further information

For further information on using the Docker image, refer to the BaseX Docker documentation.

Best regards Your BaseX Team

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].