<commit_before># Attribute Query Tutorial

###preparing for dataset 
you should RDF dataset that supports RDF attribute value.
For LUBM, we modify the dataset to add attribute triple .

**Modify  LUBM datasets to add attribute triple**

```
cd ${WUKONG_ROOT}/datagen
g++ -std=c++11 add_attribute.cpp -o add_attribute
mkdir nt_lubm_2
mv ~/uba1.7/uni*.nt nt_lubm_2/
./add_attribute nt_lubm_2 nt_lubm_2_attr
```
**Convert  Modified LUBM datasets to ID format**

```
./generate_data nt_lubm_2_attr  id_lubm_2
```


##  Config 
enable `global_enable_vattr`

```global_num_proxies			4
global_num_engines			16
global_input_folder			/home/datanfs/nfs0/rdfdata/id_lubm_2/
global_data_port_base		5500
global_ctrl_port_base		9576
global_memstore_size_gb		20
global_rdma_buf_size_mb		128
global_rdma_rbf_size_mb		32
global_use_rdma				1
global_rdma_threshold		300
global_mt_threshold			8
global_enable_caching		0
global_enable_workstealing	0
global_silent 				1<commit_msg>add datagen readme<commit_after># Attribute Query Tutorial

###preparing for dataset 
you should RDF dataset that supports RDF attribute value.
For LUBM, we modify the dataset to add attribute triple .

**Modify  LUBM datasets to add attribute triple**

```
cd ${WUKONG_ROOT}/datagen
g++ -std=c++11 add_attribute.cpp -o add_attribute
mkdir nt_lubm_2
mv ~/uba1.7/uni*.nt nt_lubm_2/
./add_attribute nt_lubm_2 nt_lubm_2_attr
```
**Convert  Modified LUBM datasets to ID format**

```
./generate_data nt_lubm_2_attr  id_lubm_2
```


##  Config 
enable `global_enable_vattr`

```
global_num_proxies			4
global_num_engines			16
global_input_folder			/home/datanfs/nfs0/rdfdata/id_lubm_2/
global_data_port_base		5500
global_ctrl_port_base		9576
global_memstore_size_gb		20
global_rdma_buf_size_mb		128
global_rdma_rbf_size_mb		32
global_use_rdma				1
global_rdma_threshold		300
global_mt_threshold			8
global_enable_caching		0
global_enable_workstealing	0
global_silent 				1
{'fraction_non_alphanumeric': 0.06846473029045644, 'fraction_numerical': 0.03941908713692946, 'mean_word_length': 5.345394736842105, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6181005', 'n_tokens_mistral': 838, 'n_tokens_neox': 763, 'n_words': 179}