Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 Sparql 查询从 wordnet 中查找 Hypernym 关系? 我可以很容易地找到下位词关系,但我无法找到上位词关系。
以下是下义词关系的示例。
"SELECT ?hypo " + "WHERE {" + " wn20instances:synset-tank-noun-1 wn20schema:hyponymOf* ?hypo . " + "}";
简单地扭转关系对你有用吗?
反转属性的意义:
{ wn20instances:synset-tank-noun-1 (^wn20schema:hyponymOf)* ?hyper . }
或(颠倒主语/宾语)
{ ?hyper wn20schema:hyponymOf* wn20instances:synset-tank-noun-1 . }