Dgraph query:why can only find one attribute

there is my dataset:

_:韩红 <中文名> "韩红" .
_:韩红 <别名> "央金卓玛" .
_:韩红 <国籍> "中国" .
_:韩红 <民族> "藏族" .
_:韩红 <星座> "天秤座" .
_:韩红 <血型> "A型" .
_:韩红 <出生地> "西藏自治区昌都市" .
_:韩红 <出生日期> "1971年9月26日" .
_:韩红 <职业> "歌手" .
_:韩红 <毕业院校> "中国人民解放军艺术学院" .
_:韩红 <代表作品> "天路" .
_:韩红 <代表作品> "天亮了" .
_:韩红 <代表作品> "来吧" .
_:韩红 <代表作品> "家乡" .
_:韩红 <代表作品> "那片海" .
_:韩红 <代表作品> "美丽的神话" .
_:韩红 <代表作品> "青藏高原" .
_:韩红 <代表作品> "醒了" .
_:韩红 <代表作品> "一个人" .
_:韩红 <代表作品> "天之大" .
_:韩红 <主要成就> "中歌榜最佳女歌手" .
_:韩红 <主要成就> "CCTVMTV音乐盛典最佳女歌手" .
_:韩红 <主要成就> "全球华语榜中榜最受欢迎女歌手" .
_:韩红 <主要成就> "东方风云榜亚洲风云歌手大奖" .
_:韩红 <主要成就> "我是歌手第三季歌王" .
_:韩红 <现单位> "华录百纳娱乐公司" .
_:韩红 <原单位> "中国人民解放军空军政治部文工团" .
_:韩红 <前男友> "李延亮" .
_:韩红 <义女> "陆敏雪" .
_:韩红 <好友> _:葛优 .
_:韩红 <好友> _:赵薇 .


when i run the query,but i only find one<主要成就>
what’s the reason?

Is it a list? I think it should be a list in your schema.

It is quite hard to understand for sure what is happening, with Chinese characters.

主要成就和代表作品需要在schema中设置为list类型,这样才能存储多个值。普通的属性只能存一个值。
schema定义可参考

<代表作品>: [string] @index(exact) .
2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.