Glad that dump worked for you, we should probably note that for people on the 
graph-gist howto page.

I think those are issues and should be at least recorded as non-working.

I guess your next project is then a AS3/Haxe driver?

Good Luck,

Cheers

Michael

Am 31.01.2014 um 12:08 schrieb Brennan Kinney <[email protected]>:

> I'm not sure if they're issues, I was trying to treat maps/collections and 
> loops from what I'm used to in a programming language. Since Cypher is a 
> query language and focused on the graph, manipulating data with nested 
> collections and maps rather than graph data is probably not a design goal? 
> I'll add the issues to github with examples if you think it'd be appropriate. 
> My use for them was only to reduce time writing in Cypher to populate the 
> database due to my lack of native support in my language(AS3/Haxe).
> 
> The dataset will only be a few people though they are tied to events and time 
> intervals throughout a day with quite a few relationships between the nodes. 
> I think I can reduce it further for the question, the dump command is great, 
> cheers :)
> 
> On Friday, 31 January 2014 23:12:35 UTC+13, Michael Hunger wrote:
> Hi Brennan,
> 
> you don't have to provide a huge dataset, everything from 5 to 75 nodes is 
> sufficient.
> 
> The GraphGist is not a full fledged app it is to discuss and document a graph 
> model with _some_ sample data and more importantly sensible query use-cases.
> 
> So it should be good if you type them out.
> 
> Or you can use the neo4j shell and the "dump" command (available from here: 
> http://localhost:7474/webadmin/#/console/ or via bin/neo4j-shell) to dump the 
> content of your database into a single cypher create statement,
> that you can use for the setup.
> 
> Can you raise the non-working things with map / collection / foreach in 
> cypher as neo4j github issues (github.com/neo4j/neo4j/issues) with a quick 
> example (probably after your submission).
> 
> HTH
> 
> Cheers
> 
> Michael
> 
> Am 31.01.2014 um 11:07 schrieb Brennan Kinney <[email protected]>:
> 
>> My choice in programming language doesn't have a driver for Neo4j and the 
>> REST api support is only GET and POST. I've just been learning Cypher and 
>> Neo4j with the Neo4j Browser for the past week.
>> 
>> I'm wanting to ask a question on StackOverflow linking to a GraphGist. I 
>> thought I'd provide a Cypher query to generate sample data though it will 
>> take a long time to type out manually. Is there another way I can provide 
>> working sample data? I thought I might be able to shorten the queries with 
>> loops/variables, though through experimenting ways of iterating through data 
>> is limiting as is working with collections of strings or literal maps.
>> 
>> I cannot access keys from maps stored in collections? collection[0].key, I 
>> haven't tried but assume collections within collections can't be accessed by 
>> collection[0][0] either?
>> Literal maps can only access one level, if I have a map that stores another 
>> map as a value I'm unable to access that ones keys? map.key.key 
>> {key:{key:"value"}} as map
>> Literal maps cannot have key names from other sources eg {map.key:"value"} 
>> or {collection[0]:"value} where the key and collection hold strings.
>> 
>> FOREACH is limited with what I can do within it and referring to anything 
>> that happened within the FOREACH after is not possible? I could perhaps 
>> create temporary nodes/relationships with properties, then delete those 
>> nodes when no longer needed.
>> 
>> If I won't have any issues with being limited to only GET and POST with REST 
>> I might have an easier time populating the database. If so is there still a 
>> way to provide the sample data to use with GraphGist?
>> 
>> -- 
>> 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/groups/opt_out.
> 
> 
> -- 
> 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/groups/opt_out.

-- 
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/groups/opt_out.

Reply via email to