- prepare data
{
set{
<_:alice> <身高> "180" .
<_:tom> <喜欢> <_:alice> .
}
}
and it returns
"data": {
"code": "Success",
"message": "Done",
"uids": {
"alice": "0x1f21ed",
"tom": "0x1f21ee"
}
}
then ,check the tom’s predicate
{
tom_predicate(func: uid(0x1f21ee)){
_predicate_
}
}
it returns
"data": {
"tom_predicate": [
{
"_predicate_": [
"喜欢"
]
}
]
},
I want to use it in a query.
{
tom_expand(func: uid(0x1f21ee)){
expand(_all_){
expand(_all_)
}
}
}
it returns
"data": {
"tom_expand": [
{
"喜欢": [
{
"身高": "180"
}
]
}
]
}
from now on ,It all works.
The true question is
I can’t write a query like this:
{
alice_height(func: uid(0x1f21ed)){
身高
}
}
it returns an error
while lexing { alice_height(func: uid(0x1f21ed)){ 身高 } }: Unrecognized character in lexText: U+8EAB '身'