Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Wasn't the whole concept of it that you can send it your own query the same way the app does and it'll return you the schema/data?
-
@JoshBent Ah, GraphQL is a query language that connects the server and the client. Neo4j is a graph database that uses Cypher Query Language to query the database. That in turn can be connected to the client using GraphQL ;)
-
bioDan61596y@ScriptCoded i second you!
MATCH (a:Developer {name: "@ScriptCoded"}-[:RANTS_AT]->()<-[:RANTED_AT]-(b:Developer {name: "@dfox"})-[:RANT_POST]->(thisrant)
RETURN thisrant.title -
dfox428276ySorry, missed this the first time around.
@ScriptCoded That data would be ok to play with, but depending on how I would put it together I would worry that somehow private data or something would be overlooked in any export. Let me see if there’s anything I can do.
In the meantime, let me know if you have any Neo4j questions. I’m happy to help and love helping people with it.
How are you liking it so far? -
@dfox No worries, it would be great fun to play around with :)
I've actually struggled with finding info about how to handle categories/tags. Say that I have a data set where I might have an infinite amount of categories, or tags, like devRant. Would it be best practice to keep track of them with labels or actual nodes representing the tags? I feel like nodes would be the way to go, but at the same time I'm guessing there might be some difference in performance.
Oh, and right, I'm enjoying it big time. It's a completely different way to think about when coming from SQL, but when you wrap your head around it it makes so much more sense than storing it in tabular form (in most cases). Also, having such an easy way to visualize data is pretty cool :) -
dfox428276y@ScriptCoded glad to hear it’s going well!
And that’s a great question. I’ve seen that data modeled in a few ways, but I think the way you described of having each tag be a node is the most common/effective for most use-cases.
For tags on devRant, we have a node for each tag and rants have relationships, ex HAS_TAG that goes from the rant node to each tag node. -
@dfox Gotcha, thanks :) So would you say labels should be strictly used for "static" classification? Like :Tag or :Rant?
-
dfox428276y@ScriptCoded yup, I think that’s exactly right. At least that’s how I have always used them.
Related Rants
@dfox I recently started playing around with Neo4j and find it really fun to work with. Would there be any way to get hold of parts of the devRant graph/graphs? Not private or secret stuff of course - only public parts of rants, tags and users. It would be fun to to play around with and analyze.
rant
neo4j
devrant