-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modeling Cypher Queries in C# #399
Comments
Errr, you need to at least show what you've tried in C#. Your first query is pretty simple, start by breaking it down into small bits. You can tell by using Try your first query, write what you do here and we'll take it from there. |
Hi! Thanks for the comment. //For Popular Wish Listed Books
Is the translation way off? Also, can you elaborate on how to use DebugQueryText? Is this with the Neo4j desktop interface? |
Ahh sorry - missed that. What errors are you getting,
You can check the First off - what you're returning. I would create a class called
And then change my query so it looks like this:
Typically, I will separate the creation of the Query from the execution of it, to allow me to run Unit tests against it:
With a test something like this:
|
Thanks again for your help. In the same vein then, with Jaccard Indexing, I would create a new class
And the query, according to the "Using Custom Text in Return Clauses" of the Wiki, would look like:
Can you elaborate why "JaccardRecommendations = Return.As<JaccardRec(...)" gives an error message? Or perhaps is this C# translation erroneous? I hope I'm not asking too much. |
You're returning
But your Does the below cypher match what you expect the output to be?
|
Greetings,
Really new at this so hopefully I am posting in the right forum. I am working on a Book Club Application for a class project utilizing the Neo4j database and C# client.
The application should recommend books to users based on Popularity Ranking (the number of times a book is wish listed or in user library) and Jaccard Indexing.
I am struggling with modeling the Neo4j Cypher queries in C# despite going over the Cypher examples and similar Stack Overflow answers. In short, how would I model the following Cypher recommendation algorithms in C#?
The Neo4j cyphers are as follows:
//Popularity Indexing (show popular wish listed books or popular books that users are reading)
//For Jaccard Indexing based on User's Wish List
//For Jaccard Indexing based on Books in User's Library
Based on the cypher examples, I attempted to supply custom Cypher text; our buggy C# translations looks like this:
//For Popular Wish Listed Books
//For Popular Books in User Library
//For Book recommendations based on User's Library with a Jaccard Index > 0.2
Unfortunately I am inexperienced with C#. I would appreciate any assistance or advice anyone can offer. Thank you.
The text was updated successfully, but these errors were encountered: