forked from gephi/gephi-plugins
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master-forge' into blueskyGephi
- Loading branch information
Showing
1,240 changed files
with
149,714 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: PR | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master-forge | ||
|
||
jobs: | ||
build_and_test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '11' | ||
distribution: 'temurin' | ||
- name: Build project with Maven | ||
run: mvn -B package --file pom.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: release | ||
|
||
on: | ||
push: | ||
branches: [ master-forge ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Maven Central Repository | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '11' | ||
distribution: 'temurin' | ||
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} | ||
gpg-passphrase: GPG_PASSPHRASE | ||
|
||
- name: Get NBM Keystore | ||
run: | | ||
echo "${{ secrets.NBM_KEYSTORE }}" > keystore.ks.asc | ||
gpg -d --passphrase "${{ secrets.NBM_KEYSTORE_ENC_PASSPHRASE }}" --batch keystore.ks.asc > keystore.ks | ||
- name: Build and publish package Linux | ||
run: mvn --batch-mode -Djava.awt.headless=true -Dkeystore.password=${{ secrets.KEYSTORE_PASSWD }} package -P release | ||
env: | ||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | ||
|
||
- name: Configure Git user | ||
run: | | ||
git config --global user.email "github-action@users.noreply.github.com" | ||
git config --global user.name "GitHub Actions" | ||
- name: Update autoupdate content on gh-pages | ||
run: mvn scm-publish:publish-scm -P release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "modules/OpenSeadragonPlugin/src/main/resources/org/gephi/plugins/openseadragon"] | ||
path = modules/OpenSeadragonPlugin/src/main/resources/org/gephi/plugins/openseadragon | ||
url = https://github.com/totetmatt/gephi-openseadragon-plugin-frontend.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
## AgensGraph Plugin | ||
|
||
This README supports Markdown, see [syntax](https://help.github.com/articles/markdown-basics/) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<artifactId>gephi-plugin-parent</artifactId> | ||
<groupId>org.gephi</groupId> | ||
<version>0.10.0</version> | ||
</parent> | ||
|
||
<groupId>bitnine-global</groupId> | ||
<artifactId>agensgraph-plugin</artifactId> | ||
<version>1.0.0</version> | ||
<packaging>nbm</packaging> | ||
|
||
<name>AgensGraph Plugin</name> | ||
|
||
<dependencies> | ||
<!-- Insert dependencies here --> | ||
<dependency> | ||
<groupId>org.gephi</groupId> | ||
<artifactId>db-drivers</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.gephi</groupId> | ||
<artifactId>io-importer-api</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.gephi</groupId> | ||
<artifactId>ui-utils</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.netbeans.api</groupId> | ||
<artifactId>org-openide-windows</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.netbeans.api</groupId> | ||
<artifactId>org-openide-util</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.netbeans.api</groupId> | ||
<artifactId>org-openide-filesystems</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.netbeans.api</groupId> | ||
<artifactId>org-openide-util-lookup</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.netbeans.api</groupId> | ||
<artifactId>org-openide-dialogs</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.netbeans.api</groupId> | ||
<artifactId>org-openide-modules</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.netbeans.api</groupId> | ||
<artifactId>org-openide-util-ui</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.netbeans.api</groupId> | ||
<artifactId>org-openide-awt</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.netbeans.api</groupId> | ||
<artifactId>org-netbeans-api-progress-nb</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.netbeans.api</groupId> | ||
<artifactId>org-netbeans-api-progress</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.netbeans.api</groupId> | ||
<artifactId>org-netbeans-api-annotations-common</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.netbeans.api</groupId> | ||
<artifactId>org-openide-nodes</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>net.bitnine</groupId> | ||
<artifactId>agensgraph-jdbc</artifactId> | ||
<version>1.3.2</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.netbeans.api</groupId> | ||
<artifactId>org-netbeans-modules-settings</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.gephi</groupId> | ||
<artifactId>io-importer-plugin</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.gephi</groupId> | ||
<artifactId>graph-api</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.gephi</groupId> | ||
<artifactId>project-api</artifactId> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.netbeans.utilities</groupId> | ||
<artifactId>nbm-maven-plugin</artifactId> | ||
<configuration> | ||
<licenseName>Apache 2.0</licenseName> | ||
<author>Dehowe Feng</author> | ||
<authorEmail></authorEmail> | ||
<authorUrl></authorUrl> | ||
<sourceCodeUrl>https://github.com/bitnine-oss/gephi-plugins/tree/agensgraph-plugin</sourceCodeUrl> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
<properties> | ||
<maven.compiler.source>1.7</maven.compiler.source> | ||
<maven.compiler.target>1.7</maven.compiler.target> | ||
</properties> | ||
</project> | ||
|
||
|
85 changes: 85 additions & 0 deletions
85
modules/AgensGraphPlugin/src/main/java/org/bitnine/importer/AgensGraphDatabaseImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
package org.bitnine.importer; | ||
|
||
import org.gephi.io.importer.api.AbstractDatabase; | ||
import org.gephi.io.importer.api.PropertiesAssociations.EdgeProperties; | ||
import org.gephi.io.importer.api.PropertiesAssociations.NodeProperties; | ||
|
||
/** | ||
* | ||
* @author dehowefeng | ||
*/ | ||
public class AgensGraphDatabaseImpl extends AbstractDatabase{ | ||
|
||
private String nodeQuery; | ||
private String edgeQuery; | ||
private String nodeAttributesQuery; | ||
private String edgeAttributesQuery; | ||
private String graphPath; | ||
|
||
public AgensGraphDatabaseImpl() { | ||
|
||
//Default node associations | ||
properties.addNodePropertyAssociation(NodeProperties.ID, "id"); | ||
properties.addNodePropertyAssociation(NodeProperties.LABEL, "label"); | ||
properties.addNodePropertyAssociation(NodeProperties.X, "x"); | ||
properties.addNodePropertyAssociation(NodeProperties.Y, "y"); | ||
properties.addNodePropertyAssociation(NodeProperties.SIZE, "size"); | ||
properties.addNodePropertyAssociation(NodeProperties.COLOR, "color"); | ||
properties.addNodePropertyAssociation(NodeProperties.START, "start"); | ||
properties.addNodePropertyAssociation(NodeProperties.END, "end"); | ||
properties.addNodePropertyAssociation(NodeProperties.START, "start_open"); | ||
properties.addNodePropertyAssociation(NodeProperties.END_OPEN, "end_open"); | ||
|
||
//Default edge associations | ||
properties.addEdgePropertyAssociation(EdgeProperties.ID, "id"); | ||
properties.addEdgePropertyAssociation(EdgeProperties.SOURCE, "source"); | ||
properties.addEdgePropertyAssociation(EdgeProperties.TARGET, "target"); | ||
properties.addEdgePropertyAssociation(EdgeProperties.LABEL, "label"); | ||
properties.addEdgePropertyAssociation(EdgeProperties.WEIGHT, "weight"); | ||
properties.addNodePropertyAssociation(NodeProperties.COLOR, "color"); | ||
properties.addEdgePropertyAssociation(EdgeProperties.START, "start"); | ||
properties.addEdgePropertyAssociation(EdgeProperties.END, "end"); | ||
properties.addEdgePropertyAssociation(EdgeProperties.START, "start_open"); | ||
properties.addEdgePropertyAssociation(EdgeProperties.END_OPEN, "end_open"); | ||
} | ||
|
||
public String getGraphPath() { | ||
return graphPath; | ||
} | ||
|
||
public void setGraphPath(String graphPath) { | ||
this.graphPath = graphPath; | ||
} | ||
|
||
public String getEdgeAttributesQuery() { | ||
return edgeAttributesQuery; | ||
} | ||
|
||
public void setEdgeAttributesQuery(String edgeAttributesQuery) { | ||
this.edgeAttributesQuery = edgeAttributesQuery; | ||
} | ||
|
||
public String getEdgeQuery() { | ||
return edgeQuery; | ||
} | ||
|
||
public void setEdgeQuery(String edgeQuery) { | ||
this.edgeQuery = edgeQuery; | ||
} | ||
|
||
public String getNodeAttributesQuery() { | ||
return nodeAttributesQuery; | ||
} | ||
|
||
public void setNodeAttributesQuery(String nodeAttributesQuery) { | ||
this.nodeAttributesQuery = nodeAttributesQuery; | ||
} | ||
|
||
public String getNodeQuery() { | ||
return nodeQuery; | ||
} | ||
|
||
public void setNodeQuery(String nodeQuery) { | ||
this.nodeQuery = nodeQuery; | ||
} | ||
} |
Oops, something went wrong.