[add] drone
							
								
								
									
										10
									
								
								.drone.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						| 
						 | 
					@ -0,0 +1,10 @@
 | 
				
			||||||
 | 
					---
 | 
				
			||||||
 | 
					kind: pipeline
 | 
				
			||||||
 | 
					type: docker
 | 
				
			||||||
 | 
					name: default
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					steps:
 | 
				
			||||||
 | 
					- name: run
 | 
				
			||||||
 | 
					  image: quodatum/basexhttp:BaseX951
 | 
				
			||||||
 | 
					  commands:
 | 
				
			||||||
 | 
					  - echo done drone
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
WARNING=DO NOT MODIFY THIS FILE IF YOU DON'T UNDERSTAND
 | 
					WARNING=DO NOT MODIFY THIS FILE IF YOU DON'T UNDERSTAND
 | 
				
			||||||
defaultDestination=C\:/Program Files (x86)/basex/webapp
 | 
					defaultDestination=C\:/Users/andy/basex.home/webapp
 | 
				
			||||||
defaultVariables=
 | 
					defaultVariables=
 | 
				
			||||||
eclipse.preferences.version=1
 | 
					eclipse.preferences.version=1
 | 
				
			||||||
includeTeamPrivateFiles=false
 | 
					includeTeamPrivateFiles=false
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										15
									
								
								Dockerfile
									
										
									
									
									
										Normal file
									
								
							
							
						
						| 
						 | 
					@ -0,0 +1,15 @@
 | 
				
			||||||
 | 
					# docker file to create graphxq
 | 
				
			||||||
 | 
					# @created 2021-04
 | 
				
			||||||
 | 
					# author="Andy Bunce"
 | 
				
			||||||
 | 
					FROM quodatum/basexhttp
 | 
				
			||||||
 | 
					USER root
 | 
				
			||||||
 | 
					RUN apt-get update && apt-get install -y  graphviz
 | 
				
			||||||
 | 
					COPY  ./src/webapp/ /srv/basex/webapp/
 | 
				
			||||||
 | 
					COPY  ./src/repo/ /srv/basex/repo/
 | 
				
			||||||
 | 
					COPY  ./src/custom /srv/basex/lib/custom
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					USER 1000
 | 
				
			||||||
 | 
					WORKDIR /srv
 | 
				
			||||||
 | 
					EXPOSE 8984
 | 
				
			||||||
 | 
					# Run BaseX HTTP server by default
 | 
				
			||||||
 | 
					CMD ["/srv/basex/bin/basexhttp"]
 | 
				
			||||||
							
								
								
									
										14
									
								
								README.md
									
										
									
									
									
								
							
							
						
						| 
						 | 
					@ -1,13 +1,21 @@
 | 
				
			||||||
# graphxq 
 | 
					# graphxq 
 | 
				
			||||||
An interface to Graphviz for BaseX 8.0
 | 
					An interface to Graphviz for BaseX 9.5+
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Local Install
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Install
 | 
					 | 
				
			||||||
copy the contents of the `src` folder to your `webapp` folder
 | 
					copy the contents of the `src` folder to your `webapp` folder
 | 
				
			||||||
## Requires
 | 
					### Requires
 | 
				
			||||||
 
 | 
					 
 | 
				
			||||||
1. Graphviz intallation with `dot` on the path
 | 
					1. Graphviz intallation with `dot` on the path
 | 
				
			||||||
1. restxq default config with (static)
 | 
					1. restxq default config with (static)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Docker
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					docker build --tag=graphxq .
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					docker run -p 8999:8984 graphxq
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
## other
 | 
					## other
 | 
				
			||||||
 | 
					
 | 
				
			||||||
* includes dotML 
 | 
					* includes dotML 
 | 
				
			||||||
* BaseX RestXQ interface
 | 
					* BaseX RestXQ interface
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										
											BIN
										
									
								
								src/custom/saxon9he-9.1.5.jar
									
										
									
									
									
										Normal file
									
								
							
							
						
						| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
<package abbrev="graphxq" name="https://github.com/apb2006/graphxq"
 | 
					<package abbrev="graphxq" name="https://github.com/apb2006/graphxq"
 | 
				
			||||||
	version="0.7.2" spec="1.0" xmlns="http://expath.org/ns/pkg">
 | 
						version="0.8.0" spec="1.0" xmlns="http://expath.org/ns/pkg">
 | 
				
			||||||
	<title>Graphxq</title>
 | 
						<title>Graphxq</title>
 | 
				
			||||||
	<dependency name="twitter-bootstrap" version="3.3.6" />
 | 
						<dependency name="twitter-bootstrap" version="3.3.6" />
 | 
				
			||||||
	<dependency name="svg-pan-zoom" version="3.2.8" />
 | 
						<dependency name="svg-pan-zoom" version="3.2.8" />
 | 
				
			||||||
| 
		 Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB  | 
| 
						 | 
					@ -12,6 +12,7 @@ import module namespace dotml = 'http://www.martin-loetzsch.de/DOTML' at "dotml.
 | 
				
			||||||
import module namespace dotui = 'apb.graphxq.dotui' at "dotui.xqm";
 | 
					import module namespace dotui = 'apb.graphxq.dotui' at "dotui.xqm";
 | 
				
			||||||
import module namespace txq = 'quodatum.txq' at "lib/txq.xqm";
 | 
					import module namespace txq = 'quodatum.txq' at "lib/txq.xqm";
 | 
				
			||||||
import module namespace request = "http://exquery.org/ns/request";
 | 
					import module namespace request = "http://exquery.org/ns/request";
 | 
				
			||||||
 | 
					import module namespace web = 'http://basex.org/modules/web';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
declare namespace svg= "http://www.w3.org/2000/svg";
 | 
					declare namespace svg= "http://www.w3.org/2000/svg";
 | 
				
			||||||
declare namespace restxq = 'http://exquery.org/ns/restxq';
 | 
					declare namespace restxq = 'http://exquery.org/ns/restxq';
 | 
				
			||||||
| 
						 | 
					@ -19,6 +20,7 @@ declare namespace restxq = 'http://exquery.org/ns/restxq';
 | 
				
			||||||
(:~ shared page wrapper :)
 | 
					(:~ shared page wrapper :)
 | 
				
			||||||
declare variable $grxq:layout:=fn:resolve-uri("views/layout.xq");
 | 
					declare variable $grxq:layout:=fn:resolve-uri("views/layout.xq");
 | 
				
			||||||
declare variable $grxq:version as xs:string:=fn:doc("expath-pkg.xml")/*/@version/fn:string();
 | 
					declare variable $grxq:version as xs:string:=fn:doc("expath-pkg.xml")/*/@version/fn:string();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(:~
 | 
					(:~
 | 
				
			||||||
: Home page for app
 | 
					: Home page for app
 | 
				
			||||||
:)
 | 
					:)
 | 
				
			||||||
| 
						 | 
					@ -26,7 +28,7 @@ declare
 | 
				
			||||||
%restxq:GET %restxq:path("graphxq") 
 | 
					%restxq:GET %restxq:path("graphxq") 
 | 
				
			||||||
%output:method("html") %output:version("5.0")
 | 
					%output:method("html") %output:version("5.0")
 | 
				
			||||||
function home(){
 | 
					function home(){
 | 
				
			||||||
    <restxq:redirect>/graphxq/about</restxq:redirect>
 | 
					    web:redirect("/graphxq/about")
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(:~
 | 
					(:~
 | 
				
			||||||
| 
						 | 
					@ -30,16 +30,7 @@ declare  variable $active-link external :=function($_){$_};
 | 
				
			||||||
       
 | 
					       
 | 
				
			||||||
            <script src="/static/graphxq/svg-pan-zoom2.js"></script>
 | 
					            <script src="/static/graphxq/svg-pan-zoom2.js"></script>
 | 
				
			||||||
    <script type="text/javascript"><![CDATA[
 | 
					    <script type="text/javascript"><![CDATA[
 | 
				
			||||||
          var _gaq = _gaq || [];
 | 
					        // todo
 | 
				
			||||||
          _gaq.push(['_setAccount', 'UA-34544921-1']);
 | 
					 | 
				
			||||||
          _gaq.push(['_setDomainName', 'rhcloud.com']);
 | 
					 | 
				
			||||||
          _gaq.push(['_trackPageview']);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
          (function() {
 | 
					 | 
				
			||||||
            var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
 | 
					 | 
				
			||||||
            ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
 | 
					 | 
				
			||||||
            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 | 
					 | 
				
			||||||
          })();
 | 
					 | 
				
			||||||
        ]]></script>
 | 
					        ]]></script>
 | 
				
			||||||
	</head>
 | 
						</head>
 | 
				
			||||||
	<body class="{$bodyclass}">
 | 
						<body class="{$bodyclass}">
 | 
				
			||||||
| 
		 Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 7.6 KiB  | 
| 
		 Before Width: | Height: | Size: 880 B After Width: | Height: | Size: 880 B  | 
| 
		 Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB  | 
| 
		 Before Width: | Height: | Size: 880 B After Width: | Height: | Size: 880 B  | 
| 
		 Before Width: | Height: | Size: 880 B After Width: | Height: | Size: 880 B  | 
| 
		 Before Width: | Height: | Size: 985 B After Width: | Height: | Size: 985 B  | 
| 
		 Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 8.6 KiB  | 
| 
		 Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB  | 
| 
		 Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB  | 
| 
		 Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB  | 
| 
		 Before Width: | Height: | Size: 339 B After Width: | Height: | Size: 339 B  | 
| 
		 Before Width: | Height: | Size: 737 KiB After Width: | Height: | Size: 737 KiB  | 
| 
		 Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB  | 
| 
		 Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB  | 
| 
		 Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB  | 
| 
		 Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB  | 
| 
		 Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB  | 
| 
		 Before Width: | Height: | Size: 288 B After Width: | Height: | Size: 288 B  | 
| 
		 Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB  | 
| 
		 Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB  | 
| 
		 Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB  | 
| 
		 Before Width: | Height: | Size: 2 KiB After Width: | Height: | Size: 2 KiB  | 
| 
		 Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 7.1 KiB  |