Git Product home page Git Product logo

Comments (7)

joowani avatar joowani commented on May 26, 2024

Hi @afidegnum,

Could you post your code snippet please? I will need more context.

Thanks,
Joohwan

from python-arango.

afidegnum avatar afidegnum commented on May 26, 2024

ok, let me explain more in details,

here is an example of a taxonomy list based, on the questions i asked few days ago.

here is my graph structure
edge catof is a hirarchical edge which fetch children from parents. (taxonomy)
{"_from":"taxonomy/5254567","_to":"taxonomy/5257887"
{"_from":"taxonomy/5246912","_to":"taxonomy/5256129"}
{"_from":"taxonomy/5251175","_to":"taxonomy/5245634"}
{"_from":"taxonomy/5255451","_to":"taxonomy/5256990"}

and product catalogs catalogs with edge belong_to
{"_from":"catalogs/5377977","_to":"taxonomy/5254882"}
{"_from":"catalogs/5352582","_to":"taxonomy/5254882"}
{"_from":"catalogs/5347646","_to":"taxonomy/5254882"}

using python arango, i was stuck in the middle, so i resorted in aql, which also ended up in error.

what i need to do is fetch the parent taxonomy who do not have edge relations. and traverse taxonomy parent to the corresponding product.

that's the situation i m facing.

from python-arango.

joowani avatar joowani commented on May 26, 2024

Have you tried Graph.traverse? What was the problem you were having with python-arango before you tried AQL? As for the AQL query itself I'm not an expert in the field so you are better off asking the ArangoDB peeps.

from python-arango.

afidegnum avatar afidegnum commented on May 26, 2024

yes. i had a look at the traverse feature of python-arango with this example

# Traverse the graph in outbound direction, breath-first
traversal_results = schedule.traverse(
    start_vertex='profs/michelle',
    direction='outbound',
    strategy='bfs',
    edge_uniqueness='global',
    vertex_uniqueness='global',
)
print(traversal_results)

but what of traversing from documents collections linked by edges?

from python-arango.

joowani avatar joowani commented on May 26, 2024

Sorry I don't understand your question re: but what of traversing from documents collections linked by edges? Could you rephrase it?

Also regarding this:

what i need to do is fetch the parent taxonomy who do not have edge relations. and traverse taxonomy parent to the corresponding product.

Could you also give me a concrete example of what result you expect from what input (using a category from the CSV for example)? Thanks.

from python-arango.

afidegnum avatar afidegnum commented on May 26, 2024

hi @joowani i have posted the question on Stack Overflow, can you please assist there?

from python-arango.

joowani avatar joowani commented on May 26, 2024

Hi @afidegnum, ok I will check it out. Closing this one out.

from python-arango.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.