MCPcopy Index your code
hub / github.com/BaseXdb/basex

github.com/BaseXdb/basex @12.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release 12.4 ↗ · + Follow
18,110 symbols 73,827 edges 2,297 files 11,586 documented · 64%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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

The code base of BaseX can be accessed on [GitHub]: https://github.com/BaseXdb/basex

JDK 17 and JUnit are currently required to compile the complete sources of the main project. Our default IDE is Eclipse.

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 RunRun...
  • 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

Best regards, have fun,

Your BaseX Team

Extension points exported contracts — how you extend this code

PasswordReader (Interface)
Reads a password from a specified source (e.g., command line or GUI). @author BaseX Team, BSD License @author Christian [11 …
basex-core/src/main/java/org/basex/core/parse/PasswordReader.java
WebText (Interface)
This class assembles texts which are used in the Web classes. @author BaseX Team, BSD License @author Christian Gruen
basex-api/src/main/java/org/basex/http/web/WebText.java
Fallback (Interface)
Fallback function for encoding problems. [13 implementers]
basex-core/src/main/java/org/basex/io/out/PrintOutput.java
BXXMLDBText (Interface)
This class organizes textual information for the XMLDB API. @author BaseX Team, BSD License @author Christian Gruen
basex-api/src/main/java/org/basex/api/xmldb/BXXMLDBText.java
QueryConsumer (Interface)
Function that consumes results. @author BaseX Team, BSD License @author Christian Gruen @param the type of the inpu [72 …
basex-core/src/main/java/org/basex/query/QueryConsumer.java
QueryBiFunction (Interface)
Function that raises query exceptions. @author BaseX Team, BSD License @author Christian Gruen @param the type of t [41 …
basex-core/src/main/java/org/basex/query/QueryBiFunction.java
QuerySupplier (Interface)
Function that supplies results. @author BaseX Team, BSD License @author Christian Gruen @param the type of results [242 …
basex-core/src/main/java/org/basex/query/QuerySupplier.java

Core symbols most depended-on inside this repo

args
called by 6593
basex-core/src/main/java/org/basex/query/func/AFunction.java
add
called by 2668
basex-core/src/main/java/org/basex/query/util/hash/ItemSet.java
arg
called by 1509
basex-core/src/main/java/org/basex/query/expr/Arr.java
get
called by 1487
basex-core/src/main/java/org/basex/query/expr/CalcOpt.java
token
called by 1095
basex-core/src/main/java/org/basex/index/query/IndexSearch.java
empty
called by 915
basex-core/src/main/java/org/basex/core/Sandbox.java
size
called by 912
basex-core/src/main/java/org/basex/query/util/fingertree/Node.java
append
called by 820
basex-core/src/main/java/org/basex/query/util/fingertree/NodeLike.java

Shape

Method 15,069
Class 2,319
Function 556
Enum 97
Interface 69

Languages

Java96%
TypeScript3%
C#1%
Python1%
PHP1%
Ruby1%

Modules by API surface

basex-api/src/main/webapp/dba/static/codemirror/codemirror.js466 symbols
basex-core/src/test/java/org/basex/query/ast/RewritingsTest.java222 symbols
basex-core/src/main/java/org/basex/query/QueryParser.java182 symbols
basex-core/src/test/java/org/basex/query/func/FnModuleTest.java127 symbols
basex-core/src/test/java/org/basex/query/up/UpdateTest.java123 symbols
basex-core/src/main/java/org/basex/gui/text/TextPanel.java119 symbols
basex-core/src/test/java/org/basex/query/NamespaceTest.java73 symbols
basex-core/src/main/java/org/basex/gui/text/TextEditor.java62 symbols
basex-core/src/main/java/org/basex/query/expr/ParseExpr.java56 symbols
basex-core/src/test/java/org/basex/server/SessionTest.java55 symbols
basex-core/src/main/java/org/basex/util/Token.java54 symbols
basex-core/src/main/java/org/basex/query/func/StandardFunc.java54 symbols

For agents

$ claude mcp add basex \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact