New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import data from a jtable to the overview of gephi #1857

Closed
RobertoPazMartinez opened this Issue Nov 28, 2017 · 9 comments

Comments

Projects
None yet
2 participants
@RobertoPazMartinez

RobertoPazMartinez commented Nov 28, 2017

Current Behavior

I make a plugin where I add a panel that makes a query to the database and the data it brings me, placed them in a table (jtable de java), what I want to do is to be able to select one or several records in the table and send them to the overview of gephi, if this is possible or someone has done something similar could help me please thanks greetings

  • Version used: Gephi 0.9.2
  • Operating System: Linux
@eduramiba

This comment has been minimized.

Show comment
Hide comment
@eduramiba

eduramiba Nov 28, 2017

Member

Hi,
Gephi already has support for importing data from several databases (File - Import database...). If your database is not in the list, a DatabaseImporter plugin can be created.

If you still need to do it from the jtable, you will need to use some custom code that directly appends data to the Graph via GraphController. Example: https://github.com/gephi/gephi-toolkit-demos/blob/master/src/main/java/org/gephi/toolkit/demos/ManualGraph.java

Member

eduramiba commented Nov 28, 2017

Hi,
Gephi already has support for importing data from several databases (File - Import database...). If your database is not in the list, a DatabaseImporter plugin can be created.

If you still need to do it from the jtable, you will need to use some custom code that directly appends data to the Graph via GraphController. Example: https://github.com/gephi/gephi-toolkit-demos/blob/master/src/main/java/org/gephi/toolkit/demos/ManualGraph.java

@RobertoPazMartinez

This comment has been minimized.

Show comment
Hide comment
@RobertoPazMartinez

RobertoPazMartinez Nov 28, 2017

Hi, thanks for the example, I have a problem the plugin that I am developing does not recognize the libraries that I need to use the import

import org.gephi.graph.api.*;
import org.gephi.project.api.ProjectController;
import org.gephi.project.api.Workspace;
import org.openide.util.Lookup;

How can I make use of the gephi libraries?

Thank's

RobertoPazMartinez commented Nov 28, 2017

Hi, thanks for the example, I have a problem the plugin that I am developing does not recognize the libraries that I need to use the import

import org.gephi.graph.api.*;
import org.gephi.project.api.ProjectController;
import org.gephi.project.api.Workspace;
import org.openide.util.Lookup;

How can I make use of the gephi libraries?

Thank's

@eduramiba

This comment has been minimized.

Show comment
Hide comment
@eduramiba

eduramiba Nov 28, 2017

Member

Are you developing the plugin based on instructions at https://github.com/gephi/gephi-plugins ?
You will need to add necessary dependencies to your module's pom.xml. Some examples: https://github.com/gephi/gephi-plugins/tree/master-forge/modules

Member

eduramiba commented Nov 28, 2017

Are you developing the plugin based on instructions at https://github.com/gephi/gephi-plugins ?
You will need to add necessary dependencies to your module's pom.xml. Some examples: https://github.com/gephi/gephi-plugins/tree/master-forge/modules

@eduramiba

This comment has been minimized.

Show comment
Hide comment
@eduramiba

eduramiba Nov 29, 2017

Member

Did it work?

Member

eduramiba commented Nov 29, 2017

Did it work?

@RobertoPazMartinez

This comment has been minimized.

Show comment
Hide comment
@RobertoPazMartinez

RobertoPazMartinez Nov 29, 2017

I already added the dependencies, but I still can not find a way to send the records of my table to the gephi workspace, Thank's

RobertoPazMartinez commented Nov 29, 2017

I already added the dependencies, but I still can not find a way to send the records of my table to the gephi workspace, Thank's

@eduramiba

This comment has been minimized.

Show comment
Hide comment
@RobertoPazMartinez

This comment has been minimized.

Show comment
Hide comment
@RobertoPazMartinez

RobertoPazMartinez Nov 30, 2017

Do you know where I find the code of the module to add node that has the gephi

RobertoPazMartinez commented Nov 30, 2017

Do you know where I find the code of the module to add node that has the gephi

@RobertoPazMartinez

This comment has been minimized.

Show comment
Hide comment
@RobertoPazMartinez

RobertoPazMartinez Dec 1, 2017

I already found the code but i have a problem with the .getGraphModel

RobertoPazMartinez commented Dec 1, 2017

I already found the code but i have a problem with the .getGraphModel

@eduramiba

This comment has been minimized.

Show comment
Hide comment
@eduramiba

eduramiba Dec 1, 2017

Member

What is the problem?

Member

eduramiba commented Dec 1, 2017

What is the problem?

@eduramiba eduramiba closed this Dec 1, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment