This is an automated email from the ASF dual-hosted git repository.
lixueclaire pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-graphar.git
The following commit(s) were added to refs/heads/main by this push:
new 90ef8b6c feat(doc): Complete yml file description for labeled data
(#655)
90ef8b6c is described below
commit 90ef8b6cac6742152a76e00384ac5d8cd32e51e6
Author: Elssky <[email protected]>
AuthorDate: Mon Nov 18 18:40:58 2024 +0800
feat(doc): Complete yml file description for labeled data (#655)
---
docs/libraries/cpp/getting-started.md | 32 ++++++++++++++++++++++++++++++--
1 file changed, 30 insertions(+), 2 deletions(-)
diff --git a/docs/libraries/cpp/getting-started.md
b/docs/libraries/cpp/getting-started.md
index c2c433fd..d1458dff 100644
--- a/docs/libraries/cpp/getting-started.md
+++ b/docs/libraries/cpp/getting-started.md
@@ -287,10 +287,38 @@ id|:LABEL|name|url
0|company;public|Kam_Air|http://dbpedia.org/resource/Kam_Air
1|company|Balkh_Airlines|http://dbpedia.org/resource/Balkh_Airlines
2|company|Khyber_Afghan_Airlines|http://dbpedia.org/resource/Khyber_Afghan_Airlines
-
+...
+1575|university|Paktia_University|http://dbpedia.org/resource/Paktia_University
```
+At the beginning, we need to add label information into the `yml` file of
vertex. For this example, it should be as follows.
+
+```yml
+# organisation.vertex.yml
+
+type: organisation
+chunk_size: 4096
+prefix: vertex/organisation/
+# add the label infos
+labels:
+ - university
+ - company
+ - public
+property_groups:
+ - file_type: parquet
+ properties:
+ - name: name
+ data_type: string
+ is_primary: false
+ - name: url
+ data_type: string
+ is_primary: false
+ - name: id
+ data_type: int64
+ is_primary: true
+version: gar/v1
-When you have the data ready, you can read the file into `arrow::Table` by
using arrow IO function.
+```
+When you have the data ready, you can read the file into `arrow::Table` by
using arrow I/O function.
``` cpp
arrow::csv::ReadOptions read_options{};
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]