# How to query by chinese predicate name after adding chinese rdf successfully?

**URL:** https://discuss.dgraph.io/t/how-to-query-by-chinese-predicate-name-after-adding-chinese-rdf-successfully/9962
**Category:** Users
**Tags:** dgraph
**Created:** [September 2, 2020, 8:50am UTC](https://discuss.dgraph.io/t/how-to-query-by-chinese-predicate-name-after-adding-chinese-rdf-successfully/9962 "2020-09-02T08:50:00Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![wwwjljj](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/wwwjljj/32/4670_2.png) [@wwwjljj](https://discuss.dgraph.io/u/wwwjljj)
#### Post date: [September 2, 2020, 8:50am UTC](https://discuss.dgraph.io/t/how-to-query-by-chinese-predicate-name-after-adding-chinese-rdf-successfully/9962/1 "2020-09-02T08:50:00Z")

</div>

hi，I have added chinese rdf in dgraph successfully as below , But the question is that I don’t know how to query chinese predicate from dgraph. can you help me to make it? many thanks.

add successfully :

 ![image](https://canada1.discourse-cdn.com/flex007/uploads/dgraph/original/2X/7/7fd7ddf99c33cef04c8cd93e349a9bb25283bc45.png)

query failed:

 ![image](https://canada1.discourse-cdn.com/flex007/uploads/dgraph/original/2X/3/3a0c6367bc190c11762a1198f86f260f64c754f8.png)

---

<div class="post-metadata">

### Author: ![rajas](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/rajas/32/4393_2.png) [@rajas](https://discuss.dgraph.io/u/rajas)
#### Post date: [September 2, 2020, 9:09am UTC](https://discuss.dgraph.io/t/how-to-query-by-chinese-predicate-name-after-adding-chinese-rdf-successfully/9962/2 "2020-09-02T09:09:31Z")

</div>

Hi @wwwjljj,

Can you try executing the query without ’ ’ inside has ?  
That is instead of `my(func: has('XYZ')) { ` , can you try `my(func: has(XYZ)) { `

I was able to query without ‘’ .

---

<div class="post-metadata">

### Author: ![aman-bansal](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/aman-bansal/32/4475_2.png) [@aman-bansal](https://discuss.dgraph.io/u/aman-bansal)
#### Post date: [September 2, 2020, 9:11am UTC](https://discuss.dgraph.io/t/how-to-query-by-chinese-predicate-name-after-adding-chinese-rdf-successfully/9962/3 "2020-09-02T09:11:31Z")

</div>

You can find more about i18n predicates [here](https://dgraph.io/docs/query-language/schema/#predicates-i18n).

---

<div class="post-metadata">

### Author: ![wwwjljj](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/wwwjljj/32/4670_2.png) [@wwwjljj](https://discuss.dgraph.io/u/wwwjljj)
#### Post date: [September 2, 2020, 9:32am UTC](https://discuss.dgraph.io/t/how-to-query-by-chinese-predicate-name-after-adding-chinese-rdf-successfully/9962/4 "2020-09-02T09:32:23Z")

</div>

I executed the query without ‘’ ,but it failed again.

 ![image](https://canada1.discourse-cdn.com/flex007/uploads/dgraph/original/2X/0/0f4bc79438ce77fa08fa2c0614e103ff450010b3.png)

---

<div class="post-metadata">

### Author: ![rajas](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/rajas/32/4393_2.png) [@rajas](https://discuss.dgraph.io/u/rajas)
#### Post date: [September 2, 2020, 9:43am UTC](https://discuss.dgraph.io/t/how-to-query-by-chinese-predicate-name-after-adding-chinese-rdf-successfully/9962/5 "2020-09-02T09:43:11Z")

</div>

I am sorry. I copied the wrong function which had worked.  
Can you try `my(func: has(<XYZ>)) {` ?

---

<div class="post-metadata">

### Author: ![wwwjljj](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/wwwjljj/32/4670_2.png) [@wwwjljj](https://discuss.dgraph.io/u/wwwjljj)
#### Post date: [September 2, 2020, 9:55am UTC](https://discuss.dgraph.io/t/how-to-query-by-chinese-predicate-name-after-adding-chinese-rdf-successfully/9962/6 "2020-09-02T09:55:02Z")

</div>

yes! It works. Thank you very much.

---

<div class="post-metadata">

### Author: ![wwwjljj](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/wwwjljj/32/4670_2.png) [@wwwjljj](https://discuss.dgraph.io/u/wwwjljj)
#### Post date: [September 2, 2020, 9:55am UTC](https://discuss.dgraph.io/t/how-to-query-by-chinese-predicate-name-after-adding-chinese-rdf-successfully/9962/7 "2020-09-02T09:55:52Z")

</div>

Thank you , it works for me too 😁
