[Neo4j] Set reference node through REST API

2011-08-27 Thread Javier de la Rosa
Hi all,

As far I know, the REST API always returns a reference node. But in
case of I delete it, there's no option to set it again through REST
API. I read in this list that you could do this in Java like next:
  graph.delete();
  newRoot = neo4j.createNode();
  neo4j.setReferenceNode(newRoot);

But I don't know the way to do this using the REST API. Even if I
don't delete it anything, I would have to be able to set the reference
node to a node of my preference.

I know that was discussed previously, but is the reference node really needed?

Regards.

-- 
Javier de la Rosa
http://versae.es
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Set reference node through REST API

2011-08-27 Thread Rick Bullotta
No, it isn't needed.  It is very helpful as an "attachment point" for other 
nodes and point of entry for traversals, but it isn't required.

-Original Message-
From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On 
Behalf Of Javier de la Rosa
Sent: Saturday, August 27, 2011 12:14 PM
To: Neo user discussions
Subject: [Neo4j] Set reference node through REST API

Hi all,

As far I know, the REST API always returns a reference node. But in
case of I delete it, there's no option to set it again through REST
API. I read in this list that you could do this in Java like next:
  graph.delete();
  newRoot = neo4j.createNode();
  neo4j.setReferenceNode(newRoot);

But I don't know the way to do this using the REST API. Even if I
don't delete it anything, I would have to be able to set the reference
node to a node of my preference.

I know that was discussed previously, but is the reference node really needed?

Regards.

-- 
Javier de la Rosa
http://versae.es
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] Loading WordNet 3.0 RDF into Neo4j?

2011-08-27 Thread espeed
Has anyone here loaded WordNet 3.0 (http://wordnet.princeton.edu/) into Neo4j
or have pointers for doing so?

WordNet 2.0 is in RDF form (http://www.w3.org/2006/03/wn/wn20/) as well as
3.0 (http://semanticweb.cs.vu.nl/lod/wn30/).

What's the best way to load/convert RDF data into Neo4j?

Thanks!

- James

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Loading-WordNet-3-0-RDF-into-Neo4j-tp3289356p3289356.html
Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] neo4j 1.4.1 Examples

2011-08-27 Thread ayla
I have just downloaded neo4j 1.4.1 and started with the server examples.  The
example code seems to not have been updated for 1.4.1 as the interfaces have
changed.  This is confusing for self-learning.  Would the forum recommend
returning to the earlier version for self-learning or is there a new version
of the examples?

Just curious.

Thanks.

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/neo4j-1-4-1-Examples-tp3289429p3289429.html
Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Loading WordNet 3.0 RDF into Neo4j?

2011-08-27 Thread Peter Neubauer
I would try the blueprints rdf importer. look at my github home
(peterneubauer) for a project to import rdf from dbpedia which should
work for any rdf.

On 8/27/11, espeed  wrote:
> Has anyone here loaded WordNet 3.0 (http://wordnet.princeton.edu/) into
> Neo4j
> or have pointers for doing so?
>
> WordNet 2.0 is in RDF form (http://www.w3.org/2006/03/wn/wn20/) as well as
> 3.0 (http://semanticweb.cs.vu.nl/lod/wn30/).
>
> What's the best way to load/convert RDF data into Neo4j?
>
> Thanks!
>
> - James
>
> --
> View this message in context:
> http://neo4j-community-discussions.438527.n3.nabble.com/Loading-WordNet-3-0-RDF-into-Neo4j-tp3289356p3289356.html
> Sent from the Neo4j Community Discussions mailing list archive at
> Nabble.com.
> ___
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>

-- 
Sent from Gmail for mobile | mobile.google.com
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] Delete all contents in graph?

2011-08-27 Thread etc1
Is there a function to delete all contents in the graph?

Raffi

___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Delete all contents in graph?

2011-08-27 Thread Peter Neubauer
Raffi,
you can do something like
https://github.com/neo4j/community/blob/master/kernel/src/test/java/org/neo4j/test/ImpermanentGraphDatabase.java#L203,
basically walking all nodes and deleting the relationships, and delete the
nodes after that.

Would that work?

Otherwise, simple shutdown the DB, delete the database dir and start it
again.

Cheers,

/peter neubauer

GTalk:  neubauer.peter
Skype   peter.neubauer
Phone   +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter  http://twitter.com/peterneubauer

http://www.neo4j.org   - Your high performance graph database.
http://startupbootcamp.org/- Ă–resund - Innovation happens HERE.
http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.


On Sun, Aug 28, 2011 at 12:11 AM, etc1  wrote:

> Is there a function to delete all contents in the graph?
>
> Raffi
>
> ___
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user



Re: [Neo4j] neo4j 1.4.1 Examples

2011-08-27 Thread Peter Neubauer
Hi there,
what discrepancies are you experiencing? The server-examples project is part
of https://github.com/neo4j/community and thus should be in synch with the
release it is in ...

Cheers,

/peter neubauer

GTalk:  neubauer.peter
Skype   peter.neubauer
Phone   +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter  http://twitter.com/peterneubauer

http://www.neo4j.org   - Your high performance graph database.
http://startupbootcamp.org/- Ă–resund - Innovation happens HERE.
http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.


On Sat, Aug 27, 2011 at 8:13 PM, ayla  wrote:

> I have just downloaded neo4j 1.4.1 and started with the server examples.
>  The
> example code seems to not have been updated for 1.4.1 as the interfaces
> have
> changed.  This is confusing for self-learning.  Would the forum recommend
> returning to the earlier version for self-learning or is there a new
> version
> of the examples?
>
> Just curious.
>
> Thanks.
>
> --
> View this message in context:
> http://neo4j-community-discussions.438527.n3.nabble.com/neo4j-1-4-1-Examples-tp3289429p3289429.html
> Sent from the Neo4j Community Discussions mailing list archive at
> Nabble.com.
> ___
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] BatchInserterIndex and ValueContext[]

2011-08-27 Thread Benjamin Gehrels
Hi Peter,

 > Could you provide a test and maybe fix it (fork on
 > GIThub)? Would be awesome!

No problem, I'll send you a pull request tonight.

I still have one question that already had come to my mind while testing 
my own app: Have you ever thought of implementing a GraphDatabaseService 
backed by a main memory store? This could be really usefull for unit 
testing, so you don't have to do things like cleaning up your 
environment after each test. Just shut down the graph database service 
and everyting is in a well defined, clean state again.

Best regards,
Benjamin
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] BatchInserterIndex and ValueContext[]

2011-08-27 Thread Peter Neubauer
Ben,
great, will merge it in as soon as you send in the CLA, see
http://wiki.neo4j.org/content/About_Contributor_License_Agreement

For testing, we normally use the ImpermanentGraphDatabase which does exactly
this. It's not in RAM, but does the cleanup :)

/peter

On Sun, Aug 28, 2011 at 12:51 AM, Benjamin Gehrels <
neo4j-mailingl...@gehrels.info> wrote:

> Hi Peter,
>
>  > Could you provide a test and maybe fix it (fork on
>  > GIThub)? Would be awesome!
>
> No problem, I'll send you a pull request tonight.
>
> I still have one question that already had come to my mind while testing
> my own app: Have you ever thought of implementing a GraphDatabaseService
> backed by a main memory store? This could be really usefull for unit
> testing, so you don't have to do things like cleaning up your
> environment after each test. Just shut down the graph database service
> and everyting is in a well defined, clean state again.
>
> Best regards,
> Benjamin
> ___
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] Cypher with sequenced relationships return empty

2011-08-27 Thread noppanit
Hi All,

This is my graph, 

Notifications --[Contains]-- Notification --[Message_To]-- User

start n=(6), user=(9) match (n)-[:Contains]-(x)-[:Message_To]-(user) return
x 

But when I run this cypher I got nothing back, so I'm not sure if I'm
missing nothing obvious?

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Cypher-with-sequenced-relationships-return-empty-tp3289960p3289960.html
Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] BatchInserterIndex and ValueContext[]

2011-08-27 Thread Benjamin Gehrels
> great, will merge it in as soon as you send in the CLA, see
> http://wiki.neo4j.org/content/About_Contributor_License_Agreement

pull request and CLA are crawling through the sea cables to sweden right 
now.

> For testing, we normally use the ImpermanentGraphDatabase which does exactly
> this. It's not in RAM, but does the cleanup :)

That one looks cool, maybe it's possible to move it from src/test/java 
to src/main/java so it will be included into the distribution jars and 
can be used outside the neo4j build infrastructure?
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] Neo4j .Net Api - Indexing

2011-08-27 Thread Romiko Derbynew
Hi Guys,

I have written a blog on using our .Net Api for indexes in .Net, so any .Net 
dudes out there might want to give it a bash, look forward hearing feedback.

http://romikoderbynew.com/2011/08/28/lucene-full-text-indexing-with-neo4j/

Cheers

___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user