AgensBrowser Guide
Copyright Notice
Copyright © 2017-2021, Bitnine Inc. All Rights Reserved.
Restricted Rights Legend
PostgreSQL is Copyright © 1996-2021 by the PostgreSQL Global Development Group.
Postgres95 is Copyright © 1994-5 by the Regents of the University of California.
AgensGraph is Copyright © 2017-2021 by Bitnine Inc.
Permission to use, copy, modify, and distribute this software and its documentation for any purpose, without fee, and without a written agreement is hereby granted, provided that the above copyright notice and this paragraph and the following two paragraphs appear in all copies.
IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN ”AS-IS” BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
Trademarks
AgensGraph® is a registered trademark of Bitnine Global Inc. Other products, titles or services may be registered trademarks of their respective companies.
Open Source Software Notice
Some modules or files of this product are subject to the terms of the following licenses. : OpenSSL, RSA Data Security, Inc., AgensGraph Commercial License, Jean-loup Gailly and Mark Adler, Paul Hsieh’s hash.
Information of technical documentation
Title : AgensBrowser Guide
Published date : 08 11, 2021
S/W version : AgensBrowser 2.1
Technical documentation version : v1.0
Introduction
AgensBrowser is
AgensBrowser is a web browser providing a user interface for management of AgensGraph. The status of each component of AgensGraph DB can be monitored and controlled through AgensBrowser.
Its main features include:
- Support for RESTful-API
- Provision of meta information and automatic refresh
- Creating and deleting labels
- Input, execution, storage of Cypher and ANSI-SQL
- Project Load/Save/Delete
- Graph navigation tool, styling, summary functions
- Import/export of Graphson and image export
- Retrieval of the query history
- LiveShare For Report
System Requirements
The system environment required to run AgensBrowser is as follows:
Server
- OS : Windows 8 or higher, OS X 10 or higher, All kinds of Linux/Unix OSes
- Memory : 8GB or more
- Java version : 1.8
- OS : Windows 8 or higher, OS X 10 or higher, All kinds of Linux/Unix OSes
Client
- Browsers : Javascript ES6 Browsers (Chrome, Firefox, Edge, Safari etc.)
- • Internet Explorer not supported
- Browsers : Javascript ES6 Browsers (Chrome, Firefox, Edge, Safari etc.)
Installation
Environment Setting
Install Java 1.8
Install AgensGraph (AgensGraph v1.3 or later)
- Install DB for AgensBrowser management
- Create an AgensBrowser Admin account
- Install DB for AgensBrowser management
Prepare binary
-browser-web-2.1 agens
Installation and Startup
Unzip and check the installation files.
- agens-browser-web-2.1.jar
- agens-config.yml
- agens-browser-web-2.1.jar
Modify .yml file.
Open agens-config.yml and modify the connection information in consideration of the actual user environment. You are then connected to the graph via graph_path specified in the yml file; the login account should be the owner of graph_path. graph_path specified at service startup cannot be changed.
- server
- port : AgensBrowser web server port
- port : AgensBrowser web server port
- logging
- config : Sets the logs of AgensBrowser. This generates logs by date in the logs directory under the current folder
- config : Sets the logs of AgensBrowser. This generates logs by date in the logs directory under the current folder
- agens
- api :
- query_timeout: Sets query timeout (Default: 600000, 10Min)
- query_timeout: Sets query timeout (Default: 600000, 10Min)
- jwt :
- expiration : Sets client connection expiration time (Default: 43200, 12H)
- expiration : Sets client connection expiration time (Default: 43200, 12H)
- inner :
- url : Used to store the query logs and projects in a file “agens-db.db” under the current folder
(Regenerated with initial data if deleted)
- url : Used to store the query logs and projects in a file “agens-db.db” under the current folder
- outer :
url
– IP: IP of the database server
– Port: Port of the database server
– Database: Name of the database to connect tograph_path: Graph name created in AgensGraph
username: User name of the database to connect to
password: User password of the database to connect to
max_rows : max_rows: The maximum number of rows to return (1000 or less is recommended)
- client :
guest-key: Public key needed when using the saved project for reporting.
ex) http://192.168.0.56:8084/#/report/agens/1130
animation-enabled: Whether to enable animation when the client’s graph layout is used.
title-shown : title-shown: Whether the nodevertex title should be displayed when the client outputs the graph
(It is recommended to set it False by default; if set to True, the rendering performance will degrade)
context path to "/" by setting an empty string ## config server:8085 -- AgensBrowser Web server port port: logging: :logback-agens.xml config: classpath spring: pid:file: agensbrowser.pid main:-mode: "off" banner resources:cache: 3600 period: static-locations: classpath:/META-INF/resources/,classpath:/resources/, \ /static/,classpath:/public/ classpath: servlet: multipart: ## MULTIPART (MultipartProperties)true # Enable multipart uploads enabled: file-size-threshold: 2KB # Threshold after which files are written to disk. max-file-size: 200MB # Max file size. max-request-size: 215MB # Max Request Size agens: api:-path: /api basequery-timeout: 600000 # 1000 ms = 1 sec -- Timeout 10 min jwt:header: Authorization # not used secret: agensBrowserKey43200 # unit: sec (12 Hour = 43200 sec) expiration: inner: datasource: driverClassName: org.h2.Driver:h2:file:./agens-h2;DB_CLOSE_DELAY=-1;MODE=MySQL url: jdbc username: sapassword: outer: datasource: driverClassName: org.postgresql.Driver:postgresql://127.0.0.1:5432/agens?ApplicationName=AgensBrowser url: jdbc graph_path: bitnine username: agenspassword: agens max-rows: 1000 -- The maximum no. of rows to return file: -dir: ./downloads # for image file, etc.. download-dir: ./uploads # for Graphson, Graphml, etc.. (not yet support EXCEL) upload client:mode: prod # mode : dev or prod -key: agens # url middle-value for report output guest-- Public key needed when using the saved project for reporting -enabled: true # to use animation at applying layout animation-- Whether animation is applied when client's graph layout is used. title-shown: false # to show node title by default -- Whether the title of the nodevertex is printed when the client's graph is output. -- (Rendering performance degrades if set to True, False is recommended by default) product:-web name: AgensBrowser2.1 version: -msg: AgensBrowser web v2.1 -- hello message hello
- api :
- Create an executable file.
Enter the following in the text file and save it with an extension .sh (unix) or .bat (windows).
(e.g. agens-browser.sh / agens-browser.bat)
```sql
java -jar agens-browser-web-2.1.jar --spring.config.name=agens-config
```
Run the service.
{} $ sh agens-browser.sh -- linux $ agens-browser.bat -- windows
Verify the service execution.
Login
Automatic login is made as a token-based authentication using AgensGraph account (ID/PW) specified in config file. The database access account should be the admin account.
To connect to AgensBrowser, enter URL in the address bar of your web browser with the following format.
//DB_SERVER_IP_ADDRESS:WEB_SERVER_PORT/index.html http:
The following is an example of using a local database and a web server port 8085:
//localhost:8085/index.html http:
Logout
If you exit the browser window, you will be logged out. You can set the client connection expiration time by setting expiration in config file.
Screen Layout
If the login is successful, it redirects you to the main screen as shown below. The main screen shows the information about database connection and meta graph(schema graph) and contains available menu (functions) provided by AgensBrowser.
The main screen is divided into two areas:
Menu Area (①)
Provides the main menu for each group of the functions used in AgensBrowser. You may select a function provided by AgensBrowser from the menu area and move to a specific submenu and/or the corresponding screen.Each menu icon is described in the table below:
Icon Description To check the connection and metagraph information. To create PL/Python functions and check the list. To run Query Editor, Query Output, Graph Visualization, Project Save etc. To check the query logs. To refer to the AgensBrowser manual. Main Area (②)
The work space that provides control/monitoring information of the tasks performed through the menu.