如何交叉引用 Weaviate 中的另一件事?
我尝试了下面的代码,但收到一条错误消息(也在下面)
weaviateObj = {
"class": "Article",
"schema": {
"articleTitle": articlemeta.title,
"publisherId": articlemeta.publisherId,
"digitalObjectIdentifier": articlemeta.digitalObjectIdentifier,
"publishedInJournal": {
"beacon" : WEAVIATE_URL + "/v1/things/" + journaluuid
}
}
}
r = runREST(WEAVIATE_URL + "/v1/things", weaviateObj, 0, "POST")
错误:
{
"error": [
{
"message": "invalid thing: invalid cref: reference must be an array, but got a map: map[string]interface {}{\"beacon\":\"http://localhost:8080/v1/things/7d60395e-db76-4401-9994-692ce0f5b10d\"}"
}
]
}