Skip to content

Commit d07e9e3

Browse files
authored
Merge branch 'master-forge' into blueskyGephi
2 parents 9d4d0a7 + 8b2b659 commit d07e9e3

1,241 files changed

Lines changed: 149596 additions & 35 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/pr.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: PR
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master-forge
7+
8+
jobs:
9+
build_and_test:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v6
13+
- name: Set up JDK 17
14+
uses: actions/setup-java@v5
15+
with:
16+
java-version: '17'
17+
distribution: 'temurin'
18+
- name: Build project with Maven
19+
run: mvn -B package --file pom.xml

.github/workflows/release.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: release
2+
3+
on:
4+
push:
5+
branches: [ master-forge ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v6
12+
- name: Set up Maven Central Repository
13+
uses: actions/setup-java@v5
14+
with:
15+
java-version: '17'
16+
distribution: 'temurin'
17+
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
18+
gpg-passphrase: GPG_PASSPHRASE
19+
20+
- name: Get NBM Keystore
21+
run: |
22+
echo "${{ secrets.NBM_KEYSTORE }}" > keystore.ks.asc
23+
gpg -d --passphrase "${{ secrets.NBM_KEYSTORE_ENC_PASSPHRASE }}" --batch keystore.ks.asc > keystore.ks
24+
25+
- name: Build and publish package Linux
26+
run: mvn --batch-mode -Djava.awt.headless=true -Dkeystore.password=${{ secrets.KEYSTORE_PASSWD }} package -P release
27+
env:
28+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
29+
30+
- name: Configure Git user
31+
run: |
32+
git config --global user.email "github-action@users.noreply.github.com"
33+
git config --global user.name "GitHub Actions"
34+
35+
- name: Update autoupdate content on gh-pages
36+
run: mvn scm-publish:publish-scm -P release
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ fabric.properties
144144

145145
### Intellij Patch ###
146146
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
147+
.idea
147148

148149
*.iml
149150
.idea/
@@ -178,4 +179,4 @@ nbdist/
178179

179180
# End of https://www.gitignore.io/api/maven,eclipse,netbeans,intellij
180181

181-
.java-version
182+
.java-version

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "modules/OpenSeadragonPlugin/src/main/resources/org/gephi/plugins/openseadragon"]
2+
path = modules/OpenSeadragonPlugin/src/main/resources/org/gephi/plugins/openseadragon
3+
url = https://github.com/totetmatt/gephi-openseadragon-plugin-frontend.git

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ To debug Gephi with your plugin, right click on the `gephi-plugins` project and
9595

9696
To run Gephi with your plugin pre-installed when you click `Run`, create a `Maven` run configuration and enter `org.gephi:gephi-maven-plugin:run` in the command field. The working directory is simply the current project directory.
9797

98-
To debug Gephi with your plugin, create a `Remote` configuration and switch the `Debugger mode` option to `Listen`. Then create a `Maven` run configuration like abobe but add `-Drun.params.debug="-J-Xdebug -J-Xnoagent -J-Xrunjdwp:transport=dt_socket,suspend=n,server=n,address=5005"` into the `Runner` > `VM Options` field. Then, go to the `Run` menu and first run debug with the remote configuration and then only run debug with the Maven configuration.
98+
To debug Gephi with your plugin, create a `Remote` configuration and switch the `Debugger mode` option to `Listen`. Then create a `Maven` run configuration like above but add `-Drun.params.debug="-J-Xdebug -J-Xnoagent -J-Xrunjdwp:transport=dt_socket,suspend=n,server=n,address=5005"` into the `Runner` > `VM Options` field. Then, go to the `Run` menu and first run debug with the remote configuration and then only run debug with the Maven configuration.
9999

100100
When you make changes to your plugin and want to run Gephi with the changes, make sure to build the `gephi-plugins` root module, and not only your module. Otherwise, your changes won't be reflected.
101101

modules/AgensGraphPlugin/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
## AgensGraph Plugin
2+
3+
This README supports Markdown, see [syntax](https://help.github.com/articles/markdown-basics/)
4+

modules/AgensGraphPlugin/pom.xml

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<parent>
5+
<artifactId>gephi-plugin-parent</artifactId>
6+
<groupId>org.gephi</groupId>
7+
<version>0.11.1</version>
8+
</parent>
9+
10+
<groupId>bitnine-global</groupId>
11+
<artifactId>agensgraph-plugin</artifactId>
12+
<version>1.0.0</version>
13+
<packaging>nbm</packaging>
14+
15+
<name>AgensGraph Plugin</name>
16+
17+
<dependencies>
18+
<!-- Insert dependencies here -->
19+
<dependency>
20+
<groupId>org.gephi</groupId>
21+
<artifactId>db-drivers</artifactId>
22+
</dependency>
23+
<dependency>
24+
<groupId>org.gephi</groupId>
25+
<artifactId>io-importer-api</artifactId>
26+
</dependency>
27+
<dependency>
28+
<groupId>org.gephi</groupId>
29+
<artifactId>ui-utils</artifactId>
30+
</dependency>
31+
<dependency>
32+
<groupId>org.netbeans.api</groupId>
33+
<artifactId>org-openide-windows</artifactId>
34+
</dependency>
35+
<dependency>
36+
<groupId>org.netbeans.api</groupId>
37+
<artifactId>org-openide-util</artifactId>
38+
</dependency>
39+
<dependency>
40+
<groupId>org.netbeans.api</groupId>
41+
<artifactId>org-openide-filesystems</artifactId>
42+
</dependency>
43+
<dependency>
44+
<groupId>org.netbeans.api</groupId>
45+
<artifactId>org-openide-util-lookup</artifactId>
46+
</dependency>
47+
<dependency>
48+
<groupId>org.netbeans.api</groupId>
49+
<artifactId>org-openide-dialogs</artifactId>
50+
</dependency>
51+
<dependency>
52+
<groupId>org.netbeans.api</groupId>
53+
<artifactId>org-openide-modules</artifactId>
54+
</dependency>
55+
<dependency>
56+
<groupId>org.netbeans.api</groupId>
57+
<artifactId>org-openide-util-ui</artifactId>
58+
</dependency>
59+
<dependency>
60+
<groupId>org.netbeans.api</groupId>
61+
<artifactId>org-openide-awt</artifactId>
62+
</dependency>
63+
<dependency>
64+
<groupId>org.netbeans.api</groupId>
65+
<artifactId>org-netbeans-api-progress-nb</artifactId>
66+
</dependency>
67+
<dependency>
68+
<groupId>org.netbeans.api</groupId>
69+
<artifactId>org-netbeans-api-progress</artifactId>
70+
</dependency>
71+
<dependency>
72+
<groupId>org.netbeans.api</groupId>
73+
<artifactId>org-netbeans-api-annotations-common</artifactId>
74+
</dependency>
75+
<dependency>
76+
<groupId>org.netbeans.api</groupId>
77+
<artifactId>org-openide-nodes</artifactId>
78+
</dependency>
79+
<dependency>
80+
<groupId>net.bitnine</groupId>
81+
<artifactId>agensgraph-jdbc</artifactId>
82+
<version>1.3.2</version>
83+
</dependency>
84+
<dependency>
85+
<groupId>org.netbeans.api</groupId>
86+
<artifactId>org-netbeans-modules-settings</artifactId>
87+
</dependency>
88+
<dependency>
89+
<groupId>org.gephi</groupId>
90+
<artifactId>io-importer-plugin</artifactId>
91+
</dependency>
92+
<dependency>
93+
<groupId>org.gephi</groupId>
94+
<artifactId>graph-api</artifactId>
95+
</dependency>
96+
<dependency>
97+
<groupId>org.gephi</groupId>
98+
<artifactId>project-api</artifactId>
99+
</dependency>
100+
</dependencies>
101+
102+
<build>
103+
<plugins>
104+
<plugin>
105+
<groupId>org.apache.netbeans.utilities</groupId>
106+
<artifactId>nbm-maven-plugin</artifactId>
107+
<configuration>
108+
<licenseName>Apache 2.0</licenseName>
109+
<author>Dehowe Feng</author>
110+
<authorEmail></authorEmail>
111+
<authorUrl></authorUrl>
112+
<sourceCodeUrl>https://github.com/bitnine-oss/gephi-plugins/tree/agensgraph-plugin</sourceCodeUrl>
113+
</configuration>
114+
</plugin>
115+
</plugins>
116+
</build>
117+
<properties>
118+
<maven.compiler.source>1.7</maven.compiler.source>
119+
<maven.compiler.target>1.7</maven.compiler.target>
120+
</properties>
121+
</project>
122+
123+
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
package org.bitnine.importer;
2+
3+
import org.gephi.io.importer.api.AbstractDatabase;
4+
import org.gephi.io.importer.api.PropertiesAssociations.EdgeProperties;
5+
import org.gephi.io.importer.api.PropertiesAssociations.NodeProperties;
6+
7+
/**
8+
*
9+
* @author dehowefeng
10+
*/
11+
public class AgensGraphDatabaseImpl extends AbstractDatabase{
12+
13+
private String nodeQuery;
14+
private String edgeQuery;
15+
private String nodeAttributesQuery;
16+
private String edgeAttributesQuery;
17+
private String graphPath;
18+
19+
public AgensGraphDatabaseImpl() {
20+
21+
//Default node associations
22+
properties.addNodePropertyAssociation(NodeProperties.ID, "id");
23+
properties.addNodePropertyAssociation(NodeProperties.LABEL, "label");
24+
properties.addNodePropertyAssociation(NodeProperties.X, "x");
25+
properties.addNodePropertyAssociation(NodeProperties.Y, "y");
26+
properties.addNodePropertyAssociation(NodeProperties.SIZE, "size");
27+
properties.addNodePropertyAssociation(NodeProperties.COLOR, "color");
28+
properties.addNodePropertyAssociation(NodeProperties.START, "start");
29+
properties.addNodePropertyAssociation(NodeProperties.END, "end");
30+
properties.addNodePropertyAssociation(NodeProperties.START, "start_open");
31+
properties.addNodePropertyAssociation(NodeProperties.END_OPEN, "end_open");
32+
33+
//Default edge associations
34+
properties.addEdgePropertyAssociation(EdgeProperties.ID, "id");
35+
properties.addEdgePropertyAssociation(EdgeProperties.SOURCE, "source");
36+
properties.addEdgePropertyAssociation(EdgeProperties.TARGET, "target");
37+
properties.addEdgePropertyAssociation(EdgeProperties.LABEL, "label");
38+
properties.addEdgePropertyAssociation(EdgeProperties.WEIGHT, "weight");
39+
properties.addNodePropertyAssociation(NodeProperties.COLOR, "color");
40+
properties.addEdgePropertyAssociation(EdgeProperties.START, "start");
41+
properties.addEdgePropertyAssociation(EdgeProperties.END, "end");
42+
properties.addEdgePropertyAssociation(EdgeProperties.START, "start_open");
43+
properties.addEdgePropertyAssociation(EdgeProperties.END_OPEN, "end_open");
44+
}
45+
46+
public String getGraphPath() {
47+
return graphPath;
48+
}
49+
50+
public void setGraphPath(String graphPath) {
51+
this.graphPath = graphPath;
52+
}
53+
54+
public String getEdgeAttributesQuery() {
55+
return edgeAttributesQuery;
56+
}
57+
58+
public void setEdgeAttributesQuery(String edgeAttributesQuery) {
59+
this.edgeAttributesQuery = edgeAttributesQuery;
60+
}
61+
62+
public String getEdgeQuery() {
63+
return edgeQuery;
64+
}
65+
66+
public void setEdgeQuery(String edgeQuery) {
67+
this.edgeQuery = edgeQuery;
68+
}
69+
70+
public String getNodeAttributesQuery() {
71+
return nodeAttributesQuery;
72+
}
73+
74+
public void setNodeAttributesQuery(String nodeAttributesQuery) {
75+
this.nodeAttributesQuery = nodeAttributesQuery;
76+
}
77+
78+
public String getNodeQuery() {
79+
return nodeQuery;
80+
}
81+
82+
public void setNodeQuery(String nodeQuery) {
83+
this.nodeQuery = nodeQuery;
84+
}
85+
}

0 commit comments

Comments
 (0)