Hi,
You can still use a named graph that spans these collections.
However, feeding it via document operations means that you have to maintain
the integrity of the graph - i.e. not to create dangling edges.

Cheers,
Willi

Am Fr., 17. Jan. 2020 um 11:56 Uhr schrieb lych4o <[email protected]>:

> I'm using arangoDB tinkerpop-provider in JAVA. If I load the collections
> with arangoimp, it would be a collection in the database without attached
> to a general graph in arangoDB graph module. So that I could not use a
> graph name to cite these collections together.
> To be more specific, if I use arangoimp, I would do something like this:
>
> arangoimport --file "data.jsonl" --type jsonl --collection users 
> --server.database "myDB"
>
>
> This command would load the users collection into "myDB". Whereas in graph
> module under arangosh, I would operate a graph like this:
>
> arangosh> var graph_module = require("@arangodb/general-graph");
> arangosh> var graph = graph_module._create("myGraph");
> arangosh> graph._addVertexCollection("shop");
>
>
> Or this to load a existing graph:
>
> arangosh> graph = graph_module._graph("social");
>
>
> Also, in tinkerpop java provider I need to provide a *graph name *to
> indicate a general graph:
>
> ArangoDBConfigurationBuilder builder = new ArangoDBConfigurationBuilder();
> builder.graph("modern").arangoUser("username").arangoPassword("password").
>        withEdgeCollection("e").withVertexCollection("v").configureEdge("e", 
> "v", "v");
> Graph graph = GraphFactory.open(builder.build());
>
>
>
> So the main gap between use collections and graph module is the *graph
> name* part.
> I wonder if there is some way to transfer a set of collections to a graph
> so that I could operate in graph module or some other ways.
>
> 在 2020年1月17日星期五 UTC+8下午6:00:03,Wilfried Gösgens写道:
>>
>>
>> Please Note that in ArangoDB Vertices are regular documents, and Edges
>> are basically Documents with `_from` and `_to` attributes.
>>
>> So whatever representation your graph comes in, you need to break it down
>> to this.
>>
>> Cheers,
>> Willi
>>
>> On Friday, January 17, 2020 at 10:57:09 AM UTC+1, Wilfried Gösgens wrote:
>>>
>>> Please have a look at ArangoImport:
>>> https://www.arangodb.com/docs/stable/programs-arangoimport.html
>>>
>>> If you prefer to roll your own, you can use the bulk document API:
>>>
>>> https://www.arangodb.com/docs/stable/http/document-working-with-documents.html#bulk-document-operations
>>>
>>> Cheers,
>>> Willi
>>>
>>> On Friday, January 17, 2020 at 6:55:19 AM UTC+1, lych4o wrote:
>>>>
>>>> According to the docs, I could only find ways to load data in
>>>> collection/document ways.
>>>>
>>> --
> You received this message because you are subscribed to the Google Groups
> "ArangoDB" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/arangodb/76ef273e-4f83-401e-96e5-8fd90ef3fb34%40googlegroups.com
> <https://groups.google.com/d/msgid/arangodb/76ef273e-4f83-401e-96e5-8fd90ef3fb34%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"ArangoDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/arangodb/CACOvXe2WGZw%2BUj%3DrDQ9O1aj17A1%2By7POkHP_gF0bRwp6m2bTRA%40mail.gmail.com.

Reply via email to