You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@age.apache.org by "Munmud (via GitHub)" <gi...@apache.org> on 2023/06/07 04:11:43 UTC

[GitHub] [age] Munmud opened a new issue, #971: Is there any Good documentation how age load works

Munmud opened a new issue, #971:
URL: https://github.com/apache/age/issues/971

   Is there any documentation of [age load](https://github.com/apache/age/tree/master/src/backend/utils/load) ? I was going through the code any didn't found useful comments regardig how the algorithm works. Is there any good documentation regarding these function as below :
   - load_labels_from_file()
   - load_edges_from_file()


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [age] dukeofhazardz commented on issue #971: Is there any Good documentation how age load works

Posted by "dukeofhazardz (via GitHub)" <gi...@apache.org>.
dukeofhazardz commented on issue #971:
URL: https://github.com/apache/age/issues/971#issuecomment-1587769980

   @Munmud for a detailed documentation on the `age load` function and its usage, I recommend referring to the AGE manual. It provides comprehensive information on how the algorithm works. You can find the relevant documentation at the following link: [AGE Docs - Importing graph from files](https://age.apache.org/age-manual/master/intro/agload.html). It should provide you with the insights you're looking for.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [age] Zeesh-an commented on issue #971: Is there any Good documentation how age load works

Posted by "Zeesh-an (via GitHub)" <gi...@apache.org>.
Zeesh-an commented on issue #971:
URL: https://github.com/apache/age/issues/971#issuecomment-1588200899

   You can find the documentation [here](https://age.apache.org/age-manual/master/intro/agload.html). However, the link only explains usage of tool, you can refer the AGE manual for explanation of working of algorithm


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [age] humzakt commented on issue #971: Is there any Good documentation how age load works

Posted by "humzakt (via GitHub)" <gi...@apache.org>.
humzakt commented on issue #971:
URL: https://github.com/apache/age/issues/971#issuecomment-1588547831

   I would refer you to the detailed [documentation](https://age.apache.org/age-manual/master/intro/agload.html) for deeper insights on the function


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [age] muhammadshoaib commented on issue #971: Is there any Good documentation how age load works

Posted by "muhammadshoaib (via GitHub)" <gi...@apache.org>.
muhammadshoaib commented on issue #971:
URL: https://github.com/apache/age/issues/971#issuecomment-1581123933

   Hello, 
   
   Here is the documentation link for AGE LOAD. 
   
   https://age.apache.org/age-manual/master/intro/agload.html


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [age] Munmud closed issue #971: Is there any Good documentation how age load works

Posted by "Munmud (via GitHub)" <gi...@apache.org>.
Munmud closed issue #971: Is there any Good documentation how age load works
URL: https://github.com/apache/age/issues/971


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [age] Amr-Shams commented on issue #971: Is there any Good documentation how age load works

Posted by "Amr-Shams (via GitHub)" <gi...@apache.org>.
Amr-Shams commented on issue #971:
URL: https://github.com/apache/age/issues/971#issuecomment-1580180448

   parsing the data from the CSV file goes in a 
   
   
   ## 1. CSV file structure:
   
   ### First row: Header row describing the content of each column.
   ### Subsequent rows: Edge data with the following fields:
     1. Start node ID (integer)
     2. Start node label (string)
     3. End node ID (integer)
     4. End node label (string)
     5. Additional properties (optional)
   
   here is the detailed info about each function used
   **csv_edge_reader struct**: This structure holds the state of the CSV parser, including the fields, header, graph name, graph ID, object name, object ID, and other related information.
   
   **edge_field_cb()**: This is a callback function called for each field in the CSV file. It stores the field in the csv_edge_reader struct, reallocating memory as needed.
   
   **edge_row_cb()**: This is a callback function called for each row in the CSV file. If the row is the first row (header row), it stores the header information. For other rows, it processes the fields to extract start and end nodes, properties, and other edge-related information. It then calls insert_edge_simple() to insert the edge into the graph.
   
   **is_space() and is_term()**: These are utility functions used to customize the CSV parser's behavior when detecting space and line terminator characters, respectively.
   
   **create_edges_from_csv_file()**: This is the main function responsible for reading the CSV file and processing it using the CSV parser. It initializes the parser, reads the file in chunks, calls the appropriate callbacks (edge_field_cb() and edge_row_cb()), and cleans up memory after processing is comp
   
   
   I have read the code and I found this might be useful 
   the CSV file should follow these constraints:
   
   **Header row**: The CSV file must have a header row that describes the content of each column. The code assumes that the first row of the file is the header row.
   
   **Field values**: The start and end node IDs must be integers. The start and end node labels should be strings.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [age] TalhaMunir-JD commented on issue #971: Is there any Good documentation how age load works

Posted by "TalhaMunir-JD (via GitHub)" <gi...@apache.org>.
TalhaMunir-JD commented on issue #971:
URL: https://github.com/apache/age/issues/971#issuecomment-1587237960

   As shoaib and mrrcxs said you can view this [link](https://age.apache.org/age-manual/master/intro/agload.html) for detailed documentation of load_labels_from_file() and load_edges_from_file().
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [age] M4rcxs commented on issue #971: Is there any Good documentation how age load works

Posted by "M4rcxs (via GitHub)" <gi...@apache.org>.
M4rcxs commented on issue #971:
URL: https://github.com/apache/age/issues/971#issuecomment-1581698278

   you can reach it in: [AGE LOAD](https://age.apache.org/age-manual/master/intro/agload.html)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [age] titoausten commented on issue #971: Is there any Good documentation how age load works

Posted by "titoausten (via GitHub)" <gi...@apache.org>.
titoausten commented on issue #971:
URL: https://github.com/apache/age/issues/971#issuecomment-1580182370

   I dont think there is at this time. [This](https://age.apache.org/age-manual/master/intro/agload.html) on the documentation doesn't explain the algorithms just how to functions for age_load work.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org