Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Amit Suryavanshi
    @amitTheSongadya_twitter
    assign variable to relation in cypher like -[r:ACTED_IN] and use that variable in return clause like return tom, tomHanksMovie, r, try this
    @amosbird ^
    Amos Bird
    @amosbird
    thanks
    @amitTheSongadya_twitter hmm, it doesn't work
    still shows :directed
    Amit Suryavanshi
    @amitTheSongadya_twitter
    kindly paste the cypher
    Amos Bird
    @amosbird
    MATCH (tom:Person {name: "Tom Hanks"})-[r:ACTED_IN]->(tomHanksMovies) RETURN tom,tomHanksMovies,r
    Amit Suryavanshi
    @amitTheSongadya_twitter
    It shows up in graph but not in table view
    actual cypher won't return you directed relation, its just the way ghaph is rendered, it shows in there
    Amos Bird
    @amosbird
    ok, thanks
    though it might be problematic if there are tons of edges

    what does the

    "low": 59,
                "high": 0

    mean?

    in the raw output
    Amos Bird
    @amosbird

    hmm, cypher queries are confusing

    MATCH (cust:Customer)-[:PURCHASED]->(:Order)-[o:ORDERS]->(p:Product),
          (p)-[:PART_OF]->(c:Category {categoryName:"Produce"})
    RETURN DISTINCT cust.contactName as CustomerName, SUM(o.quantity) AS TotalProductsPurchased

    does it do implicit group by cust.contactName?

    jdevillard
    @jdevillard
    Hello all, I'm starting to work on graph database (very powerfull) to check if it's work for my use case. I would like to use this type of database to map all the components (BackEnd, Service, Cluster, Package) of my SaaS application to be able to see quickly dependencies for the differents components. I've started with the Movies app to understand the basic and I'm now starting to create my graph but I need help for the modelisation. The aim is to be able to indicate in the graph that Component X of version 1.0.1 is available and is deployed on Platform A and B but not platform C (which has Component X with version 1.0.0) so I would like to identify new package available and which platform is not up to date (with consistency on the db) but don't really know how to modelise corretly label, relation etc.. for this case. Sorry for this long intro and question and thanks a lot for your help :)
    Amit Suryavanshi
    @amitTheSongadya_twitter
    @jdevillard I would suggest you to go through https://neo4j.com/developer/data-modeling/ , then come up with your model then community can help you with any issues you face.
    jdevillard
    @jdevillard
    thnaks @amitTheSongadya_twitter , will take a look a go back if necessary !
    Karina
    @pilusonoka

    Hello! I am trying to setup my playground database from here https://github.com/tategallery/collection. I've already setup an artist collection (easy one) and now i am struggling with relation creation on load. Is it possible somehow to create a link in the same time when you create a new node?

    LOAD CSV FROM 'https://raw.githubusercontent.com/tategallery/collection/master/artwork_data.csv' AS line CREATE (:Art {id: line[0], accession_number: line[1], artistId: line[4], title: line[5], medium: line[7], creditLine: line[8], year: line[9], width: line[12], height: line[13], depth: line[14], units: line[15], thumbnailUrl: line[18], url: line[19]}) + somehow relation to an artist (by id)

    Aleksei Tcelishchev
    @casualuser
    greetings one!
    I tried to import existing data from mysql into neo4j and now looking for a way to generate models on base of this data for neomodel in my django
    any suggestions about how to implement this?
    Vikram Singh
    @tweets_vikram_twitter
    hello
    thepartisan101
    @thepartisan101
    Hi everyone! I'm trying to connect Neo4j to Gephi to modify the viualization of the network graph, anyone here has some experience or could point to a good tutorial?
    doofin
    @doofin
    Hi , is it possible to match on multiple types of node ?
    in this algorithm CALL algo.pageRank( 'MATCH (p:Page) RETURN id(p) as id', 'MATCH (p1:Page)-[:Link]->(p2:Page) RETURN id(p1) as source, id(p2) as target', {graph:'cypher', iterations:5, write: true} )
    can i write sth like 'MATCH (p:Page) AND (p:Page2) RETURN id(p) as id'
    Lorenzo Gabriele
    @lolgab
    Hi all, I'm batch importing data from a JSON file with a Scala program I'm writing. Is there a way to speedup a query like this? I tried to use apoc.periodic.iterate but I don't know how to distribute the queries as parameters to the procedure... I have to import 4M json objects to scan and, with this approach it takes ~4 days to complete (80ms per object)...
    I have a json with:
    {
      "id": "article id",
      "authors": ["author 1", "author 2"]
    }
    UNWIND $authors as authorName
    WITH DISTINCT authorName
    MERGE (author: Author {name: authorName})
    MERGE (article: Article {id: $article})
    MERGE (author)-[r:WRITES]->(article)
    garanews
    @garanews
    Hello, I need to save numpy packbits arrays in neo4j . it seems that the only way to store data is assign it to a property of a node, but I am not able to do it...
    garanews
    @garanews
    at the moment the best approach in py2neo is:
    >>> import numpy as np
    >>> from py2neo import Graph
    >>> graph = Graph(..)
    >>> a
    array([  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
             0,   0,   0,   8,   0,   0,   0,   0,   4,   0,   0,   0,   0,
             0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
             0,   0,   0,   0,   0,   0,   0,   0,   0,  64,   0,   0,   0,
             0,   0,   0,   0,   0,   0,   0,   0,   0,   8,   0,   8,   0,
             0,  64,   0,   0,   0,   0,   0, 128,   0,   0,   0,   0,   0,
             0,   2,   0,   2,   1,   8,   0,   0,  48,   0,   0,  32,   8,
             0,  12,  19,  65,   0,   9,  17, 192,  64,   0,  16,   4,   0,
           136,  68,   0,   3,  64,   2,   0,   0,  12,   0,  64,  65,  53,
           174, 109,  16, 126, 148, 245, 236, 202, 121, 250, 127], dtype=uint8)
    
    >>> graph.data('MERGE (m:Pippo{ id:121413 }) set m.data = "%s" RETURN m' % str(base64.b64encode(a), 'utf-8'))
    [{'m': (af903e8:Pippo {data:"AAAAAAAAAAAAAAAAAAAAAAgAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAgACAAAQAAAAAAAgAAAAAAAAAIAAgEIAAAwAAAgCAAME0EACRHAQAAQBACIRAADQAIAAAwAQEE1rm0QfpT17Mp5+n8=",id:121413})}]
    
    >>> c = graph.data('MATCH (m:Pippo) where m.id=121413 RETURN m')
    
    >>> np.frombuffer(base64.b64decode(c[0]['m']['data']), dtype=np.uint8)
    array([  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
             0,   0,   0,   8,   0,   0,   0,   0,   4,   0,   0,   0,   0,
             0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
             0,   0,   0,   0,   0,   0,   0,   0,   0,  64,   0,   0,   0,
             0,   0,   0,   0,   0,   0,   0,   0,   0,   8,   0,   8,   0,
             0,  64,   0,   0,   0,   0,   0, 128,   0,   0,   0,   0,   0,
             0,   2,   0,   2,   1,   8,   0,   0,  48,   0,   0,  32,   8,
             0,  12,  19,  65,   0,   9,  17, 192,  64,   0,  16,   4,   0,
           136,  68,   0,   3,  64,   2,   0,   0,  12,   0,  64,  65,  53,
           174, 109,  16, 126, 148, 245, 236, 202, 121, 250, 127], dtype=uint8)
    Mingsterism
    @mingsterism
    hi all.
    i'm trying to model a series of events in neo4j.
    these events can happen sequentially or asynchronously (parallel splits)
    so: event1 - > event2 -> event3 & event4 -> event5
    event1 needs to be completed before event2 can be started
    any ideas? thanks
    leehericks
    @leehericks
    (e1:Event)-[:NEXT_EVENT]->(e2:Event)
    ?
    (e1:Event)-[:NEXT_EVENT]->(e3:Event)
    Now e2 and e3 happen in parallel after e1
    realfiretiger
    @realfiretiger
    Hello, Is this the place to ask a question about the neo4j-java-driver?
    Code that was working with version 1.0.5 now fails with 1.7.2 with org.neo4j.driver.v1.exceptions.UntrustedServerException: Server provides no product identifier. Maybe someone has an ideea of the issue? Or can point me to a sample app.
    realfiretiger
    @realfiretiger
    The server version was the issue.
    mmnebulae
    @mmnebulae
    Hi, I'm having a problem while setting up triggers in neo4j- I want to trigger an event in way that when the start_date of a node changes -the start_dates of its related nodes are updated automatically? My present code looks something like this-
    CALL apoc.trigger.add( 'update_date', 'UNWIND apoc.trigger.propertiesByKey({assignedNodeProperties},"start_date") as prop WITH prop.node as n match (n)-[:precedes_fs]->(m) SET n.end_date = apoc.date.format(n.start_date + n.duration, "d", "dd/MM/yyyy"), m.start_date = apoc.date.format(n.end_date + 1, "d", "dd/MM/yyyy")', {phase:'after'});
    but the query is taking too long to execute -no result at all- the query keeps spinning in neo4j browser and nothing in debug log. Any suggestions are appreciated
    my query looks something like this
    match(n) where n.wbs="1.3" set n.start_date="2019/03/15"
    Boris Sitsker
    @borick
    I have a database where I'm exporting using apoc. using 3.5.0.3 of apoc and neo4j 3.5.4. using 'CALL apoc.export.csv.query(...)' - the headers are output in an order different from the resultset but i'm struggling to reproduce it in 3.5.5 on an isolated example locally :(
    Boris Sitsker
    @borick
    downloaded 3.5.4 locally, same thing. very strange
    (as in cannot reproduce it)
    Boris Sitsker
    @borick
    confirmed now it's only an issue with the enterprise edition! thanks for reading :)
    Rob
    @rtruxal
    Hey there - I'm trying to stand up a web application based on Neo4j (with a flask backend & neovis.js frontend.)
    The app works when I run it locally, but I'm running into cross-origin problems with neovis.js while trying to connect remotely.
    has anyone run into this before? I'm trying to determine a the best approach to replace embedding bolt://mydomain.com:7687 directly into Javascript.
    Chris Watson
    @watzon
    Is this place at all active?
    leehericks
    @leehericks
    No, use the Neo4j Slack channel