- 操作 ID
actions.intent.GET_QUOTATION
- 说明
- 引用特定作者或创意作品的名言。
- 示例查询
- JSON-LD 示例
-
[ { "exampleValues": [ { "@context": "https://pending.schema.org", "@type": "Quotation", "inLanguage": { "identifier": "jpn" }, "isPartOf": { "name": "Long Walk to Freedom" }, "keywords": "inspirational", "spokenByCharacter": { "name": "Nelson Mandela" }, "temporalCoverage": "2000-01-01T03:00:00/2099-12-12T23:59:59" } ], "name": "quotation", "schemaType": [ "https://pending.schema.org/Quotation" ] } ]
获取报价
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eThe \u003ccode\u003eactions.intent.GET_QUOTATION\u003c/code\u003e Action ID is used to request quotations from a specific author or work.\u003c/p\u003e\n"],["\u003cp\u003eUsers can trigger this action with simple queries like "Get a quote" or "Hear a quote from [author's name]".\u003c/p\u003e\n"],["\u003cp\u003eThis action utilizes JSON-LD to provide structured data about the requested quotation, including author, work, language, and keywords.\u003c/p\u003e\n"],["\u003cp\u003eThe JSON-LD sample demonstrates how properties like \u003ccode\u003espokenByCharacter\u003c/code\u003e, \u003ccode\u003eisPartOf\u003c/code\u003e, and \u003ccode\u003etemporalCoverage\u003c/code\u003e can be used to specify details about the desired quotation.\u003c/p\u003e\n"]]],["The core content describes the `actions.intent.GET_QUOTATION` action, which retrieves a quote from an author or creative work. Users can request quotes generally or from specific individuals like Abraham Lincoln. The JSON-LD sample illustrates a quotation's structure, including author (e.g., Nelson Mandela), source work (e.g., \"Long Walk to Freedom\"), language, keywords, and time period. The structure also include the name and schema type of the action, and an example.\n"],null,["# Get a quotation\n\nAction ID\n: `actions.intent.GET_QUOTATION`\n\nDescription\n: Get a quotation from a particular author or creative work.\n\nExample queries\n:\n\n #### en-US\n\n - Get a quote.\n - Hear a quote from Abraham Lincoln.\n\nJSON-LD sample\n:\n\n ```carbon\n [\n {\n \"exampleValues\": [\n {\n \"@context\": \"https://pending.schema.org\",\n \"@type\": \"Quotation\",\n \"inLanguage\": {\n \"identifier\": \"jpn\"\n },\n \"isPartOf\": {\n \"name\": \"Long Walk to Freedom\"\n },\n \"keywords\": \"inspirational\",\n \"spokenByCharacter\": {\n \"name\": \"Nelson Mandela\"\n },\n \"temporalCoverage\": \"2000-01-01T03:00:00/2099-12-12T23:59:59\"\n }\n ],\n \"name\": \"quotation\",\n \"schemaType\": [\n \"https://pending.schema.org/Quotation\"\n ]\n }\n ]\n ```"]]