数据同步在本体和回写之间

huangapple go评论68阅读模式
英文:

Data sync between ontology and writeback

问题

同步在写回和本体数据集之间是如何工作的。我们使用 TypeScript 函数更新写回数据集。在大多数情况下,更新是成功的,但在少数情况下却无法正常工作。

我已经构建了整个流水线,但问题仍然存在。每天它都在获取旧数据。

英文:

how sync works in between writeback and ontology dataset.
we are updating writeback dataset using typescript function. in most of the cases it is taking update but in few cases its not working.

I have build whole pipeline, but problem remains same. everyday it is taking old data.

答案1

得分: 0

简而言之:您需要构建写回数据集,以查看从本体传播到写回数据集的更改。

详情

一些建议:

  • 后备数据集定义了一个对象类型的结构,其行变为对象实例。
  • 一旦您使用对象实例填充了对象类型,默认情况下,这些实例是只读的。
  • 一旦您在此对象类型上启用“编辑”/“写回”,并根据您设置的配置,您将能够通过API和/或通过Foundry Action(其本身可能调用Foundry Function)创建/编辑/删除/ ... 对象。
  • 写回数据集是一个数据集,每次构建时都会将一个对象类型实例的当前状态写为行。

因此,尝试猜测您所处的情况:

  • 您的对象已准备就绪,并启用了编辑/写回。
  • 您触发了运行函数的操作,该函数创建或编辑对象。
  • 您查看数据集,但其中不包含刚刚进行的编辑。

在这种情况下,您的编辑在对象中是“存在的”(例如,您可以使用对象浏览器确认),您需要构建写回数据集,以便将对象的当前状态写为行。

这个其他问题也可能有用。

英文:

In short (best-guess): You need to build the writeback-dataset to see the changes propagated from the ontology to the writeback-dataset.

Details

A few notes:

  • A backing dataset is what defines one object types's structure, and its rows becomes object instances
  • Once you have an object type populated with object instances, by default, those are read only.
  • Once you enable "edits"/"writeback" on this object type, and depending on the configuration you set, you will be able to create/edit/delete/... objects via API or/and via Foundry Action (which itself might call a Foundry Function).
  • A writeback dataset is a dataset that writes the current state of one object type's instances as rows, whenever it builds.

So, trying to guess the case you are in:

  • Your object is ready and has edits/writeback enabled.
  • You trigger an Action that runs a Function, which creates or edits objects
  • You look at the dataset and it does not contain the edits you just made

In this case, your edits are "present" in the objects (you can confirm that by using object explorer for instance), and you need to build the writeback-dataset in order for the current state of the objects to be written as rows.

This other question might be useful as well.

huangapple
  • 本文由 发表于 2023年2月24日 14:53:58
  • 转载请务必保留本文链接:https://go.coder-hub.com/75553400.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定