可以在特定字段中獲得值爲null的所有三元組嗎? 所有date_of_birth的人都等於null?Freebase MQL過濾器其中value == null?
[
"type": "/people/person",
"date_of_birth":null,
"name":null
]
可以在特定字段中獲得值爲null的所有三元組嗎? 所有date_of_birth的人都等於null?Freebase MQL過濾器其中value == null?
[
"type": "/people/person",
"date_of_birth":null,
"name":null
]
您需要使用"optional":"forbidden"指令:
[{
"type": "/people/person",
"date_of_birth": {
"value": null,
"optional": "forbidden"
},
"name": null,
"id": null
}]
(我加"id":null
使得Query Editor使可點擊鏈接)
注意查詢有一個默認"limit":100,
如果你想要更多的結果的話,添加一個明確的限制條款。如果超時,那麼你需要使用MQL cursor。
如果您需要處理大量結果,那麼未公開的信封參數「page」提供比「cursor」更大的靈活性,允許您隨意前進,後退或訪問頁面,而不僅僅是前進就像你可以用光標一樣。
「可選」:「禁止」子句是許多有用查詢的關鍵。 「!everything」==「nothing」等值只是其中最常見的一個。
Tom