Dear Kamal,

Thank you for the answer.

Pardon my incompetence if I somehow misunderstood, but what I see in your 
example is Cypher queries, which isn't problematic (I could solve my needs 
by using CASE, but FOREACH also seems working, thanks).

The problem I'm having is rather whereas this can be done with neo4j-import 
(or neo4j-admin). Because, without that, neo4j-import would be limited to 
very simple DBs as we can't reproduce Cypher scripts with it.

If I'm mistaken and it's possible to be done, any pointer on how to would 
be awesome.

Sincerely,
farid


On Friday, August 4, 2017 at 6:32:45 AM UTC+9, Kamal Murthy wrote:
>
> Hi Farid,
>
> Item # 2: For my understanding, this still a simple relation between 2 
> different nodes. What I mean by more complex graph is something that can be 
> done in Cypher, such as some "if/else" comparisons, etc.
>
> You can use FOREACH construct to create nodes based on some conditions. 
> This is similar to "if/else".
> I use this a lot and you can check the code in my blog: 
> https://neo4j.com/blog/neo4j-call-detail-records-analytics/.
>
> Let me know if this helps.
>
> -Kamal
>
>
>
> On Thursday, August 3, 2017 at 1:34:38 AM UTC-7, Farid wrote:
>>
>> Dear Michael,
>>
>> Thanks for the answer.
>>
>>
>> 1) It's already deprecated, yet I can't find any documentation nor real 
>>>> examples using its successor: neo4j-admin import
>>>>
>>> neo4j-admin import has built in help, but it's mostly just a different 
>>> script around the neo4j-import code.
>>>
>>
>> That's the complain, it's very much Linux like, where some documentation 
>> can be found on the help, but nothing on the website, and no tutorials.
>> For people used to the tool and have been working with it for long, that 
>> documentation does make sense, but for people new to the technology, it's 
>> too abstract and confusing (and I have 20 years+ of dev experience).
>>
>>
>> 2) Even current documentation is limited to a very simple 2 nodes types 
>>>> and a simple relation between them, can't find how to use a more complex 
>>>> graph.
>>>>
>>> here is some other documentation: 
>>>
>>> https://neo4j.com/developer/guide-import-csv/#_super_fast_batch_importer_for_huge_datasets
>>> https://neo4j.com/blog/import-10m-stack-overflow-questions/
>>>
>>
>> Thanks for the links, that I've seen as well as some other use case.
>> For my understanding, this still a simple relation between 2 different 
>> nodes. What I mean by more complex graph is something that can be done in 
>> Cypher, such as some "if/else" comparisons, etc.
>>
>> I'll give it another shot, even if it means duplicating the data or so 
>> (cases when multipl ids are present, for example, a "Content" can have 
>> "Creator ID", "Category ID", "Size ID", so being able to match with more 
>> than 2 nodes at a time would be awesome)
>>   
>>
>> 3) Import is supported only on an empty database, so there is no way to 
>>>> use it to import a batch of data into existing database, or create a 
>>>> complex graph by importing nodes and more complex relations.
>>>>
>>> Yes, this is currently a limitation, but it is meant to be accomodated 
>>> in the future.
>>>
>>
>> Thanks, that's a great news, hopefully it's a near future, as it's highly 
>> important when needing to work with high frequency data that needs to be 
>> imported in batches.
>>
>> Sincerely,
>> Farid
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to