How do I extract raw data from the neo4j examples? - neo4j

The neo4j example data does not work in the most recent version 2.1.2 of neo4j as documented here and here. They are built for 1.9 and apparently can only be upgraded to 2.0, not 2.1. Is there a way to extract the raw data as a csv or cypher file (with a bunch of CREATE statements) from either the tarballs (which contain a graph.db, which I do not understand) or the associated github repositories (which I also do not understand)?

It's up to us to update the datasets, thanks for pointing it out, I think we'll also put them into versioned subdirectories, so it is easier to see which version they are in.
In general for small enough datasets, you can use the neo4j-shell and the "dump" command to generate cypher statements.
Also in the neo4j browser you can actually download the query results as CSV.
I also wrote a set of helper tools for the neo4j shell that allows you to export and import data as csv, graphml and other formats.

Related

How can I upload database data to Neo4j?

Using an pan-genome building tool I've ended with a database in an unfamiliar format to me which in theory should be explorable by the Neo4j browser.
Nevertheless I can't seem to find any way to achieve so and any mention on how to do it in any bibliography besides the instructions of the manual provided by the author of said tool.
I've tried to do this using Neo4j community edition server (v. 3.5.3) with the example file same as the instructions suggest but it just doesn't seem to detect the database showing only the default one.
The mentioned part of the tutorial can be found here: https://www.bioinformatics.nl/pangenomics/manual/tutorial_part3/
So, copy the database content to the neo4j data folder. Once you have that, open the neo4j.conf file and set the following configuration:
dbms.default_database=chloroplast_DB
I am not exactly sure that is the database name, use the same name as is the database folder and then start the database.

Best way to migrate single project from Jira 5.0 to Jira 8?

I want to move a single project from a Jira 5.0 instance to a new Jira 8.0 instance being already used for other projects - so the process must not bring in configurations, workflows, etc. nor should alter existing projects.
I'm only interested in importing issues and related data:
title, description, etc (obviously)
attachments (images, files, whatever)
issue links
issue type (with mapping to new types in case they don't match)
... (other properties that I'm forgetting right now)
I've just started searching for the topic and already found several options - and it's not clear if they're all available to be, mosly due to the starting Jira version, they are:
Export to CSV and import to CSV
Export to XML
Import from JSON (though I've yet to find a JSON export)
Rest API
Import project from backup
... and surely others
Of course I'd like the most complete yet less error-prone method, though if resorting to the REST API will be the only way to be sure to import all I want, I'm ready to write a script / program.
So, what should I choose?
P.S.: I'm not sure if this fits this community, is there a more proper one?
The easiest way is to get csv export, get all attachments (jira_home/data/attachments). Then copy attachments to a new instance to jira_home/import. You'll need to edit export file to match names and paths of your attachments in order to import them successfully.
And last step is import csv to your Jira 8 instance.
I suggest trying this on dev/stage environment first because there are many small details that can affect import.
Some useful data is here:
https://confluence.atlassian.com/adminjiraserver/importing-data-from-csv-938847533.html

Neo4j Desktop - Difference between Database and File?

I'm new to Neo4j. I've just opened the Desktop application. Starting a Project, the dashboard lists "Add Database" and "Add File". If data is stored in a database then what's a file? I don't get what a file does. Off hand, when I click on each (either the sample database or the sample file) they open the database browser thing so this doesn't help to understand the difference either..
You would use Add File to reference a file with a Cypher query (or series of Cypher queries).
When you open a file that you've saved here, it will open the browser window (associated with the currently running Database) and paste the file contents into the query box.
So this is a more portable way to save important queries saved in files (such as already established scripts in Cypher) that you expect to run often or reuse/test across databases.
Add Database is used to create a new database instance (technically "dbms" would be the better term, since this doesn't have to do with multi-database features in Neo4j). You can select the version of Neo4j to use for the database, and configure and manage it as needed.

See images in SSMS?

I was browsing around and found this blog post:
http://erikej.blogspot.com/2010/04/version-3-of-exportsqlce-now-available.html
(It is for a great add in if you user SQL Server CE.)
On that post I saw an screen shot of SSMS with images in the results.
How is this done? I have images in my database (PNG files that are serialized via memory stream), but I just see numbers when I select the image column.
If you are asking how this is done, I'm not sure how it is implemented exactly. I know that you can create ssms plugins in visual studio, and I'm sure that there is a way to take a filestream object and decode it.
If you are looking for a way for you to do this besides the plugin you mentioned, there is a great freeware plugin I use. You can find a plugin ssmsboost at http://www.ssmsboost.com. This plugin has a community version and a pro version. The only difference between the two is that the community version needs to be renewed every 120 days. This plugin has a lot of nice features, but the one you're asking for is
SSMS Results Grid Visualizers:
Feature allows to export & view files or some big amounts of text or XML data from tables (like files from document storage of sharepoint services). Required data should be simply output to ResultsGrid. By right-clicking the cell with required value and selecting "Visualize As->.." you can tell to save data to file with predefined name and open it with custom or default application. No matter than SSMS truncates long data from VARBINARY/VARCHAR fields when outputing them to ResultsGrid: SSMSBoost works with internal storage of SSMS and extracts complete cell value. Below you can see how a picture from [LargePhoto] field of [Production].[ProductPhoto] table from [AdventureWorks] database is being visualized:
I'd like to recommend the MiniSQLQuery browser that is free and opensource to achieve this.
http://minisqlquery.codeplex.com/

Using Ruby-on-Rails, Sphinx or UltraSphinx and an HTML source (not a database)

The documentation states for sphinx-0.9.9-rc2:
The data to be indexed can generally come from very different sources: SQL
databases, plain text files, HTML files, mailboxes, and so on.
However, I can't find any documentation on setting up a a source besides SQL. The config file doesn't seem to indicate that the source can be anything but a database. Anyone have any helpful links for setting up sphinx with an HTML source?
Are you looking for the xmlpipe (now called xmlpipe2) feature on Sphinx? I've tried it out for XML files and it works just like it does for SQL.
I haven't tried out Sphinx with vanilla HTML files, so I'm guessing you'll need to parse your HTML file and create XML files with the attributes/fields that you want indexed and feed them to Sphinx using xmlpipe.
You can see here and here for more.
HTH

Resources