Skip to content

Conversation

@hbruch
Copy link

@hbruch hbruch commented Jul 17, 2014

Fix for issue 46: Added neo4j_node_label property column of type list_string

mbastian and others added 30 commits September 1, 2011 19:55
…distribution of ConnectedComponents and Modularity.
mbastian and others added 25 commits March 25, 2012 11:45
update Gephi Plugin portal link
Added lucene and neo4j-index for Schema Index dependency
Added Transactions around the Neo4jDelegateProviderImpl operations

TODO Still Error in Gephi Runtime

I have zero knowledge of Gephi internals and no experience with Netbeans so I'm lost here.

Seems to be that the `value` in one of the AttributeValueImpl is not a Long (Node-Id) but a String
probably somewhere the origin wrongly set as DELEGATE

from AttributeValueImpl.getValue()
````
            } else if (AttributeUtilsImpl.getDefault().isNodeColumn(column)) {
                result = attributeValueDelegateProvider.getNodeAttributeValue(value, column);
            } else {
````

Exception:

````
SEVERE:
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long
	at org.gephi.neo4j.plugin.impl.Neo4jDelegateProviderImpl.getNodeAttributeValue(Neo4jDelegateProviderImpl.java:38)
	at org.gephi.data.attributes.AttributeValueImpl.getValue(AttributeValueImpl.java:81)
	at org.gephi.data.attributes.AttributeValueImpl.equals(AttributeValueImpl.java:103)
	at org.gephi.data.attributes.AttributeRowImpl.setValue(AttributeRowImpl.java:153)
	at org.gephi.data.attributes.AttributeRowImpl.setValue(AttributeRowImpl.java:141)
	at org.gephi.data.attributes.AttributeRowImpl.setValue(AttributeRowImpl.java:128)
	at org.gephi.data.attributes.AttributeRowImpl.setValue(AttributeRowImpl.java:110)
	at org.gephi.neo4j.plugin.impl.GraphModelImportConverter.fillGephiNodeDataWithNeoNodeData(GraphModelImportConverter.java:161)
	at org.gephi.neo4j.plugin.impl.GraphModelImportConverter.createGephiNodeFromNeoNode(GraphModelImportConverter.java:136)
	at org.gephi.neo4j.plugin.impl.Neo4jImporterImpl.processNode(Neo4jImporterImpl.java:180)
	at org.gephi.neo4j.plugin.impl.Neo4jImporterImpl.importNodes(Neo4jImporterImpl.java:174)
	at org.gephi.neo4j.plugin.impl.Neo4jImporterImpl.importGraph(Neo4jImporterImpl.java:152)
	at org.gephi.neo4j.plugin.impl.Neo4jImporterImpl.doImport(Neo4jImporterImpl.java:136)
	at org.gephi.neo4j.plugin.impl.Neo4jImporterImpl.importDatabase(Neo4jImporterImpl.java:130)
	at org.gephi.neo4j.plugin.impl.Neo4jImporterImpl.importDatabase(Neo4jImporterImpl.java:76)
	at org.gephi.desktop.neo4j.Neo4jMenuAction$FullImportMenuAction$1.run(Neo4jMenuAction.java:252)
[catch] at org.gephi.utils.longtask.api.LongTaskExecutor$RunningLongTask.run(LongTaskExecutor.java:251)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:744)
````
upgrade to Neo4j 2.0.1

Tested and working fine after the 2 additional commits.
Note: it's necessary to have latest Gephi 0.8.2 updates to fix an old Gephi bug.
@romanseidl
Copy link

It works but the field seems to be some kind of non-regular field. Neither can I use it to partition the data nor is it exported when e.g. saving the data to graphml

@hbruch
Copy link
Author

hbruch commented Jul 29, 2014

Thanks for checking this out! I created Node labels as a field of type stringlist, as a node may have multiple labels. Currently, Fields of Type stringlist are not that well supported (see this forum thread as well).
In the meanwhile, you could go to the data laboratory and use the option "Copy data to other column" and select a simple string column (e.g. Label) as target column, which could be used for partitioning. Note, that this way different combinations of Labels would be mapped to different partitions...
Concerning the save issue I'll have to look into it...

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants