leifeld / dna Goto Github PK
View Code? Open in Web Editor NEWDiscourse Network Analyzer (DNA)
Discourse Network Analyzer (DNA)
A problem occurs when trying to run rDNA on MacOs 10.5 or 10.6. It is possible to compile, install and load the package in R, but executing the dna.gui() command fails. The error messages are "Apple AWT Java VM was loaded on first thread -- can't start AWT." and "Error in .jnew("dna/Dna") : java.lang.NoClassDefFoundError: dna/Dna". However, DNA (without the R package rDNA) works well on MacOS.
Update: The problem is apparently caused by the fact that java.awt.Color (and possibly other AWT or Swing classes) are loaded in the main thread (i.e., in the very first thread that is started). A possible solution could be to start a new thread for the rest of DNA immediately after starting the main class of DNA (or any class associated with the DNA JAR file).
First submitted: 2011-03-17
Create an export filter for Gephi .gfx files. Possibly also for longitudinal data? Check what the longitudinal data requirements look like. If an event-based export (= time stamps) is not possible, perhaps with a time window approach as in the SONIA export function?
First submitted: 2011-02-18
DNA 1.29: The longer an article text, the slower DNA gets. This is related to a function which adds yellow background color to the statement text. For long texts, this procedure takes a very long time. Computing time required for these operations seems to be non-linearly related to the article length. For long documents, DNA thus appears as if it crashed.
Note: The problem may get better with the new database format planned for version 2.0.
The bug was reported by Gabriela Couto and Myanna Lahsen.
First submitted: 2012-05-09
What steps will reproduce the problem?
run dna.network() on a large .dna file several times in a row (perhaps 10 times)
What is the expected output? What do you see instead?
expected: should import the data correctly into R; instead: gets slower and then crashes with an error message after a couple of rounds
What version of the product are you using? On what operating system?
1.23 through 1.28
Please provide any additional information below:
seems to be a memory or garbage collection issue
First submitted: 2011-10-16
DNA 1.29: Regex terms are saved correctly, but they are not inserted into the regex highlighter component when a file is opened.
The bug was reported by Christopher Schulz.
First submitted: 2012-09-23
Number of actors (without any further remark) is reported to the command line when exporting time series statistics to a CSV file. This should not happen.
First submitted: 2011-07-26
As of version 1.25, it is only possible to apply one statement filter at a time (e.g., only filter by category or organization or agreement, etc.). It should be possible, for example, to list all statements matching a certain organization, person, category AND agreement pattern at the same time.
First submitted: 2011-03-27
Use colors and attributes for Commetrix export.
First submitted: 2011-02-18
In the network export window and also in rDNA, the user should be able to decide whether to export the name of the person or organization or to export the alias from the attribute manager.
First submitted: 2011-02-18
Implement UCINET .DL file import filter in rDNA.
First submitted: 2011-02-18
Problem: Users can enter quotation marks and possibly other characters that disturb some of the output export formats.
Solution: Forbid quotation marks in the person, organization and category field in the GUI.
First submitted: 2011-02-18
DNA 1.29: When invisible escape characters or HTML tags are present, the text portion that is highlighted in the text is displayed correctly, but it is shifted by one or more characters in the statement panel in the side bar. The same problem occurs when exporting a list of statements.
The bug report was submitted by Christopher Schulz along with a reproducible .dna file.
First submitted: 2012-09-23
What steps will reproduce the problem?
What is the expected output? What do you see instead?
Displays lots of exceptions for most advanced functions.
What version of the product are you using? On what operating system?
1.27
First submitted: 2011-09-12
Implement a function which creates automatic backups of the current .dna file every n minutes, where n can be set somewhere in the options. Ask before saving because saving takes a couple of seconds and may distract the user.
First submitted: 2011-02-18
Hi
Thanks for this great tool. We have just started using it and it seemed to be the one we where looking for.
One problem though, we are analyzing Hebrew text - right to left data, and the copied text is aligned to the wrong side.
We would really appreciate if you can add a check-box to mark the text as right to left and change the alignment.
Thanks
Jonathan
In ImportHTMLWebpageTag.java add buffering-symbol when importing documents (e.g. a list of 4 links takes about 10 seconds).
In DateExtractor.java add support for different locales.
At the moment, only statement tags (i.e., with the four variables person, organization, category and agreement) can be attached to text portions. The software might benefit from allowing more flexible tags, possibly custom tags created by the user. One possibility could be just to add another tag type called "annotation" or "comment", which just has a free form text field. But it could be nice to be able to infer the relations between three or four category types, for example. It would also be good to have the option of establishing direct ties within a category. The problem is quite complex because it affects the data structure in DNA, the XML file structure, the GUI and also the export functions.
First submitted: 2011-02-18
In ImportHTMLWebpageTag.java / ImportHTML.java / ImportWebpage.java add error messages if the chosen xml-elements cannot be found in the corresponding document/webpage. This could be similar to the warning message that was added in 2.0 alpha 8 for the date extraction.
e.g.:
try{
String title = file.select(titleElement).text();
}
catch(NullPointerException e) {
String message = "\n Date not extractable.\nUse 'set date manually'-option.";
JOptionPane.showMessageDialog(new JFrame(), message, "Warning", JOptionPane.ERROR_MESSAGE);
}
When opening or saving files, the default folder is the home folder. It would be more convenient if the default folder was the folder from which DNA was started, or the last folder that was used.
First submitted: 2011-03-22
Replacing the XML data format contained in the .dna files by a binary database like H2 or SQLite would have several advantages:
speed
possibly an undo/redo function
possibly compression
better data integrity due to foreign keys
binary blobs can be integrated (possibly useful for future extensions)
crash prevention: changes are directly saved to disk
less redundancy due to foreign keys and queries.
First submitted: 2011-12-04
DNA 1.29: There should be an export function for Pajek .NET files. Exporting .DL files and converting them to .NET files in Ucinet does not work for non-Western languages because Ucinet does not support Unicode.
First submitted: 2012-08-07
What steps will reproduce the problem?
1. Open a DNA file
2. Change the actor type of some organizations
3. Save the file
4. Close the DNA file
What is the expected output? What do you see instead?
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at dna.ActorManager$6.valueChanged(ActorManager.java:234) at javax.swing.JList.fireSelectionValueChanged(JList.java:1782) at javax.swing.JList$ListSelectionHandler.valueChanged(JList.java:1796) at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:184) at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:164) at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:211) at javax.swing.DefaultListSelectionModel.removeIndexInterval(DefaultListSelectionModel.java:677) at javax.swing.plaf.basic.BasicListUI$Handler.intervalRemoved(BasicListUI.java:2597) at javax.swing.AbstractListModel.fireIntervalRemoved(AbstractListModel.java:178) at javax.swing.DefaultListModel.removeAllElements(DefaultListModel.java:402) at dna.DnaContainer.clear(DnaContainer.java:35) at dna.Dna.clearSpace(Dna.java:1019) at dna.Dna.closeDnaFile(Dna.java:1007) at dna.Dna.access$1(Dna.java:989) at dna.Dna$14.actionPerformed(Dna.java:1290)
What version of the product are you using? On what operating system?
1.25, Ubuntu 10.10
First submitted: 2011-03-22
In the network export window, there is a panel for custom options. However, some algorithms do not have any custom options. But if these algorithms are activated, the custom options panel is not emptied.
First submitted: 2011-02-18
What steps will reproduce the problem?
library(rDNA)
dna.init("dna-1.28.jar")
current.data <- "2011-03-22.dna"
aff.109.no <- dna.network(
current.data,
algorithm="affiliation",
agreement="no",
include.isolates=TRUE,
start.date="03.01.2005",
stop.date="02.01.2007",
exclude.categories=c(
"CO2 legislation will not hurt the economy.",
"Cap and trade is the solution.",
"Emissions legislation should regulate CO2."
),
invert.categories=TRUE
)
What is the expected output? What do you see instead?
expected: should export properly; actual output: "Creating matrix object... Fehler in .jcall(export, "[[D", "matrixObject") :
java.lang.IndexOutOfBoundsException: Index: 5, Size: 5"
What version of the product are you using? On what operating system?
1.28
First submitted: 2011-10-05
When people use the XML import format to import massive loads of articles, there may be double spaces, escape sequences, question marks, quotation marks, angle brackets or other strange symbols which can corrupt the XML format or the import process. Avoid this by filtering out these characters whenever a file is opened.
First submitted: 2011-02-18
What steps will reproduce the problem?
What is the expected output? What do you see instead?
expected: should export properly; actual output: "statement frequency cannot be determined for actor xy", then NullPointerException in line 2681 of the export class.
What version of the product are you using? On what operating system?
1.28
First submitted: 2011-10-05
When trying to export dynamic networks, be that in Commetrix SQL or SoNIA format, the "Calculating" window appears and stays there, animated, forever. I have to terminate/kill the corresponding java process 'manually' using top (Ubuntu) or Task Manager (Windows). This happens with:
I have the following terminal output under Ubuntu:
Exception in thread "Thread-0" java.lang.NullPointerException
at dna.ExportWindow$FileExporter.run(ExportWindow.java:1424)
at java.lang.Thread.run(Thread.java:745)
The Commetrix export algorithm should work for two-mode affiliation networks, too.
First submitted: 2011-02-18
When closing DNA, the program asks whether the file should be saved. Yes, no, or cancel. When pressing 'cancel', DNA is closed nevertheless. This should not happen.
First submitted: 2011-04-07
Add a rename-button for variables in the Statement-Type-Edior.
It would be cool if the statement frequency of each actor was included as a node attribute when exporting to a .graphml file for visone. The statement frequency should capture how often (including repetitions/duplicates) an actor refers to the concepts selected for export in total during the specified time period.
First submitted: 2011-07-26
There should be a function which can auto-detect statements in the text. Perhaps via artificial neural networks? Or perhaps via wisdom of the crowds? Reading in large text corpora and training the software? Or semantic parsing? Or simply a regex search with user-defined terms? Or an online community of user-defined terms?
First submitted: 2011-02-18
Show colors of actors in the network export exclude lists.
First submitted: 2011-02-18
In ImportWebpage.java add a warning if no internet connection is present when trying to parse an URL.
In the network export window, one should be able to select actors based on their type. For instance, there could be another exclude or include list, or a combo box. Make sure the feature is also implemented in rDNA.
First submitted: 2011-02-18
What steps will reproduce the problem?
What is the expected output? What do you see instead?
should export to a graphML file, but displays nullpointer exception instead
What version of the product are you using? On what operating system?
1.27
Please provide any additional information below:
reported by Sarah Burridge, UMN
First submitted: 2011-09-15
There should be an undo/redo function, especially for editing the contents of statements, but if possible also for other actions, such as inserting, renaming or removing articles, or inserting/deleting statements, or editing actor attributes.
First submitted: 2011-03-28
There is a text saying "(paste the contents of the article here by highlighting this text and replacing it using Ctrl-V)" in the New Article window. It would be nicer if this text was in light gray and if it disappeared automatically as soon as the text pane grabbed focus.
First submitted: 2011-02-18
The bottom bar is only accessible from the "Extras" menu. Switching between the different panels in the bottom bar is also only possible via the menu. There should be buttons inside the panels which can close the bottom bar or show the next panel.
First submitted: 2011-02-18
There could be a function for collaborative editing with several research assistants at the same time. For example, the file is distributed to several people, and each article and statement tag have an attribute which saves the current user and the date and time of the modification. The could be a function which can automatically merge the file later on.
Or, alternatively, the software could establish an online connection to a server where a file with the current category and actor set is located. Users could propose new categories or actors in real time, so there would be no conflicts.
First submitted: 2011-02-18
In DateExtractor.java figure out how to handle "am" or "pm" mentions.
DNA 1.29: Statement popup windows are placed at a fixed position at the bottom of the text panel if they are activated from the statement sidebar. They sometimes cover the statement text, which is inconvenient. The popup window should be placed somewhere else where it does not cover the text, or the text should be centered at the page.
The issue was reported by Myanna Lahsen.
First submitted: 2012-06-04
Modify color-change-button in the Statement-Type-Edior for statement types so that it functions as a rename-button as well.
Speed up computations by optimizing the export function (especially congruence networks and the time window algorithm are slow).
First submitted: 2011-03-27
Add a function to rDNA which can import binary UCINET .##d and .##h files. There should be a parameter that indicates whether the result should be a matrix or a network object.
First submitted: 2011-02-18
Problem: When very long person, organization, or category entries have been encoded, the statement popup window becomes very wide and sometimes extends beyond the borders of the screen. Usually, having such long codes is a bad idea in the first place. However, a future release should take care of that and should either restrict the length of the entries to a certain maximum length or only display the first 200 characters or so in the list. Reported by Christofer Edling.
First submitted: 2012-11-13
Use colors and attributes for SONIA export.
First submitted: 2011-02-18
There should be an option in the network export window and also in rDNA which lets the user constrain the set of actors and/or concepts by their frequency. For example, only include those categories in the export which occur at least ten times in the whole time period or in the whole file. Or export only those actors who make at least five statements (or five different statements, alternatively).
First submitted: 2011-02-18
The user can enter attributes for persons and organizations in the attribute manager (available when clicking on "Show persons [organizations] in bottom bar" in the "Extras" menu). In the second column of the table, the user can select among the colored actor types specified in the list next to the table. However, when a type is removed from this list, it is still available in the drop-down list of the second table column. When removing an item from the list on the right, it should also be removed from the drop-down list.
First submitted: 2011-02-18
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.