SPARQL 主题预测示例 - Amazon Neptune
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

SPARQL 主题预测示例

主题预测在给定谓语和对象的情况下预测主题。

例如,以下查询预测谁(类型为 foaf:User)将观看给定的电影:

SELECT * WHERE { ?input (a foaf:Movie) . SERVICE neptune-ml:inference { neptune-ml:config neptune-ml:modelType 'SUBJECT_PREDICTION' ; neptune-ml:input ?input ; neptune-ml:predicate <http://aws.amazon.com/neptune/csv2rdf/object_Property/rated> ; neptune-ml:output ?output ; neptune-ml:outputClass <http://aws.amazon.com/neptune/csv2rdf/class/User> ; } }