如何在运行时检索 Marklogic 实体定义
How to retrieve Marklogic entity definition at Runtime
在 运行 时是否有任何 functions/API 可用于 extract/retrieve 实体定义?
有人可以帮我提供信息并提供任何文档链接吗?
实体模型 JSON 或 XML 描述符通常加载到 http://marklogic.com/entity-services/models
集合中的内容数据库中。
这使得可以将 cts.collectionQuery()
与 cts.search()
或 JSearch 结合使用来搜索实体模型描述符。
此外,通常将实体模型描述符的 TDE 加载到模式数据库中,以投影 JSON 或 XML 文档中的语义三元组。
这使得使用 op.fromSPARQL() 或 sem.sparql() 对模型执行 SPARQL 查询成为可能。有关详细信息,请参阅:
https://docs.marklogic.com/guide/entity-services/search#id_53854
https://docs.marklogic.com/guide/entity-services/search#id_27381
https://docs.marklogic.com/op.fromSPARQL
https://docs.marklogic.com/sem.sparql
希望对您有所帮助,
在 运行 时是否有任何 functions/API 可用于 extract/retrieve 实体定义?
有人可以帮我提供信息并提供任何文档链接吗?
实体模型 JSON 或 XML 描述符通常加载到 http://marklogic.com/entity-services/models
集合中的内容数据库中。
这使得可以将 cts.collectionQuery()
与 cts.search()
或 JSearch 结合使用来搜索实体模型描述符。
此外,通常将实体模型描述符的 TDE 加载到模式数据库中,以投影 JSON 或 XML 文档中的语义三元组。
这使得使用 op.fromSPARQL() 或 sem.sparql() 对模型执行 SPARQL 查询成为可能。有关详细信息,请参阅:
https://docs.marklogic.com/guide/entity-services/search#id_53854
https://docs.marklogic.com/guide/entity-services/search#id_27381
https://docs.marklogic.com/op.fromSPARQL
https://docs.marklogic.com/sem.sparql
希望对您有所帮助,