数学求解器 (MathSolver) 结构化数据

为帮助学生、老师和其他人求解数学题,您可以使用结构化数据表示数学题类型并链接到关于特定数学题的分步讲解。以下示例展示了数学求解器在 Google 搜索结果中的可能显示效果(实际外观可能会有所不同):

数学求解器富媒体搜索结果示例

How to add structured data

Structured data is a standardized format for providing information about a page and classifying the page content. If you're new to structured data, you can learn more about how structured data works.

Here's an overview of how to build, test, and release structured data.

  1. Add the required properties. Based on the format you're using, learn where to insert structured data on the page.
  2. Follow the guidelines.
  3. Validate your code using the Rich Results Test and fix any critical errors. Consider also fixing any non-critical issues that may be flagged in the tool, as they can help improve the quality of your structured data (however, this isn't necessary to be eligible for rich results).
  4. Deploy a few pages that include your structured data and use the URL Inspection tool to test how Google sees the page. Be sure that your page is accessible to Google and not blocked by a robots.txt file, the noindex tag, or login requirements. If the page looks okay, you can ask Google to recrawl your URLs.
  5. To keep Google informed of future changes, we recommend that you submit a sitemap. You can automate this with the Search Console Sitemap API.

示例

一项求解器操作

下面是一个包含一项求解器操作的数学求解器首页示例,该求解器可解多项式方程和求导题,提供英语和西班牙语版本。


<html>
<head>
<title>An awesome math solver</title>
</head>
<body>
<script type="application/ld+json">
[
  {
    "@context": "https://schema.org",
    "@type": ["MathSolver", "LearningResource"],
    "name": "An awesome math solver",
    "url": "https://www.mathdomain.com/",
    "usageInfo": "https://www.mathdomain.com/privacy",
    "inLanguage": "en",
    "potentialAction": [{
      "@type": "SolveMathAction",
      "target": "https://mathdomain.com/solve?q={math_expression_string}",
      "mathExpression-input": "required name=math_expression_string",
      "eduQuestionType": ["Polynomial Equation","Derivative"]
     }],
    "learningResourceType": "Math solver"
  },
  {
    "@context": "https://schema.org",
    "@type": ["MathSolver", "LearningResource"],
    "name": "Un solucionador de matemáticas increíble",
    "url": "https://es.mathdomain.com/",
    "usageInfo": "https://es.mathdomain.com/privacy",
    "inLanguage": "es",
    "potentialAction": [{
      "@type": "SolveMathAction",
      "target": "https://es.mathdomain.com/solve?q={math_expression_string}",
      "mathExpression-input": "required name=math_expression_string",
      "eduQuestionType": ["Polynomial Equation","Derivative"]
     }],
    "learningResourceType": "Math solver"
  }
]
</script>
</body>
</html>

两项求解器操作

下面是一个包含两个求解器端点的数学求解器首页示例:一个端点可以解多项式方程,另一个端点可以解三角方程。该求解器仅提供英语版本。


<html>
<head>
<title>An awesome math solver</title>
</head>
<body>
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": ["MathSolver", "LearningResource"],
  "name": "An awesome math solver",
  "url": "https://www.mathdomain.com/",
  "usageInfo": "https://www.mathdomain.com/privacy",
  "inLanguage": "en",
  "potentialAction": [{
     "@type": "SolveMathAction",
     "target": "https://mathdomain.com/solve?q={math_expression_string}",
     "mathExpression-input": "required name=math_expression_string",
     "eduQuestionType": "Polynomial Equation"
   },
   {
     "@type": "SolveMathAction",
     "target": "https://mathdomain.com/trig?q={math_expression_string}",
     "mathExpression-input": "required name=math_expression_string",
     "eduQuestionType": "Trigonometric Equation"
   }],
  "learningResourceType": "Math solver"
}
</script>
</body>
</html>

指南

若想让您的网页可显示为数学求解器富媒体搜索结果,您必须遵循以下指南:

技术指南

  • MathSolver 结构化数据添加到您网站的首页。
  • 确保 Googlebot 能够高效抓取您的网站
  • 如果您在不同网址下托管了同一数学求解器的多个相同副本,请在网页的每个副本中使用规范网址
  • 我们不允许将数学求解器完全隐藏在登录机制或付费墙后面。用户从 Google 上的功能导航到您的网站后,必须能够访问初始问题的解法和分步讲解。其他内容可要求用户登录后才能访问或隐藏在付费墙后面。

内容指南

我们之所以制定这些数学求解器内容指南,是为了确保我们的用户能够找到相关的学习资源。如果我们发现内容违反这些政策,将采取适当措施,这可能包括采取人工处置措施并将您的网页从 Google 上的数学求解器功能中移除。

  • 我们不允许将宣传内容伪装成数学求解器,例如由第三方(如联属营销计划)发布的内容。
  • 通过此功能呈现数学求解器时,您将对其准确性和质量负责。在质量审核流程中,如果我们发现一定数量的不准确数据,则根据不准确的程度,可能会从该功能中移除您的求解器,直到问题得到解决为止。适用范围:
    • 求解器能够求解的数学题类型的准确性。
    • 求解器声明可以求解的数学题的解法准确性。

结构化数据类型定义

要使您的内容能够显示为富媒体搜索结果,您必须为其添加必需属性。您还可以添加建议的属性,以便向结构化数据添加更多信息,进而提供更好的用户体验。

MathSolver

MathSolver 是一款工具,可以为学生、老师和其他人列出求解步骤,从而帮助他们求解数学题。请在网站的首页上使用 MathSolver 结构化数据。

如需了解 MathSolver 的完整定义,请访问 schema.org/MathSolver

Google 支持的属性如下:

必需的属性
potentialAction

SolveMathAction

该操作会转到数学表达式的数学解释(例如求解步骤或图表)。

{
"@type": "MathSolver",
"potentialAction": [{
  "@type": "SolveMathAction",
  "target": "https://mathdomain.com/solve?q={math_expression_string}",
  "mathExpression-input": "required name=math_expression_string",
  "eduQuestionType": "Polynomial Equation"
  }]
}
potentialAction.mathExpression-input

Text

Google 发送到您网站的数学表达式(例如:x^2-3x=0)的占位符。然后,您可以“求解”该数学表达式,这可能涉及简化、转换或求解特定变量。此表达式可以采用多种格式(例如:LaTeX、Ascii-Math,或者您可以使用键盘输入的数学表达式)。

对于某些问题类型,math_expression_string 会指明问题类型和问题类型的参数。以下是一些更复杂的问题类型示例,以便您可以正确预测和解析这些问题。

求导

Google 会发送以下两种格式之一的 math_expression_string

  • (math_expression)'
  • d/dvariable math_expression

Examples:

  • (x^2+x)'
  • d/dx (x^2+x)
  • d/dy y^2+y

Integrals

Google will send a math_expression_string in one of two forms:

  • \int math_expression
  • \int_{from}^{to} math_expression

示例:

  • \int x^2+x
  • \int_{0}^{2} x^2+x

求极限

Google 会发送以下两种格式之一的 math_expression_string

  • \lim math_expression
  • \lim_{variable\rightarrowvalue} math_expression

示例:

  • \lim_{x\rightarrow0} sin(x)/x
  • \lim_{y\rightarrow\infty} sin(y)/y
  • \lim sin(x)/x
url

URL

MathSolver 的网址。

usageInfo

URL

数学题求解网站的隐私权政策。

{
  "@type": "MathSolver",
  "usageInfo": "https://www.mathdomain.com/privacy"
}
potentialAction.target

EntryPoint

操作的网址目标入口点。potentialAction.target 属性接受字符串来表示该操作求解的数学表达式。

{
"@type": "MathSolver",
"potentialAction": [{
  "@type": "SolveMathAction",
  "target": "https://mathdomain.com/solve?q={math_expression_string}"
  }]
}
建议的属性
inLanguage

Text

数学题求解网站支持的语言。如需查看可用语言的列表,请参阅此表

{
  "@type": "MathSolver",
  "inLanguage": "es"
}
assesses

数学题类型定义Text 列表

通过 HowTo 求解的数学题类型。如果除了 MathSolver 标记之外,您还使用 HowTo 标记,请使用 assesses 属性。

{
  "@type": "MathSolver",
  "assesses": "Polynomial Equation"
}
potentialAction.eduQuestionType

数学题类型定义Text 列表

能够通过 potentialAction.target 属性求解的数学题类型。

{
  "@type": "SolveMathAction",
  "eduQuestionType": "Polynomial Equation"
}

LearningResource

LearningResource 表明标记对象是可帮助学生、老师和其他人开展教育学习的资源。请在网站的首页上使用 LearningResource

如需了解 LearningResource 的完整定义,请访问 schema.org/LearningResource

Google 支持的属性如下:

必需的属性
learningResourceType

Text

此学习资源的类型。请使用以下固定值:Math Solver

{
  "@type": ["MathSolver", "LearningResource"],
  "learningResourceType": "Math Solver"
}

数学题类型定义

MathSolver 附有提供特定数学题讲解的 HowTo 时,请将以下数学题类型列表用作 MathSolver.potentialActioneduQuestionTypeMathSolverassesses 字段。

下表显示了一些您可以添加注释的问题类型的示例:

示例数学题类型(此列表仅举例说明,并不包含所有情况)
Absolute Value Equation

绝对值方程。例如:|x - 5| = 9

Algebra

可与其他数学题类型一起放置的通用数学题类型。例如:多项式方程、指数方程和根式表达式。

Arc Length

弧长题。例如:确定 x = 4 (3 + y)^2, 1 < y < 4 的长度。

Arithmetic

算术题。例如:求出 5 + 7 的总和。

Biquadratic Equation

双二次方程。例如:x^4 - x^2 - 2 = 0。

Calculus

可与其他数学题类型一起放置的通用数学题类型。例如:积分、求导和微分方程。

Characteristic Polynomial

求出 {{1,2,5}, {3,-1,1}, {1,2,3}} 的特征多项式。

Circle

与圆相关的数学题。例如:求出 x^2 + y^2 = 3 的半径。

Derivative

求出 5x^4 + 2x^3 + 4x - 2 的导数。

Differential Equation

微分方程题。例如:y+dy/dx=5x。

Distance

距离题。例如:求出 (6,-1) 与 (-3,2) 之间的距离。

Eigenvalue

特征值题。例如:求出矩阵 [[-6, 3], [4, 5]] 的特征值。

Eigenvector

特征向量题。例如:矩阵 [[-6, 3], [4, 5]] 的特征值为 [-7, 6],请求出矩阵的特征向量。

Ellipse

椭圆题。例如:求出 9x^2 x 4y^2 = 36 的 x 轴截距和 y 轴截距。

Exponential Equation

指数方程。例如:7^x = 9。

Function

多项式化简。例如:(x-5)^2 * (x+5)^2。

Function Composition

当 f(x)=x^2-2x、g(x)=2x-2 时,求 f(g(x))

Geometry

可与其他数学题类型一起放置的通用数学题类型。例如:圆、椭圆、抛物线、斜率。

Hyperbola

双曲线题。例如:求出 (x^2)/4 - (y^2)/5 = 1 的 x 轴截距。

Inflection Point

求出 f(x) = 1/2x^4 +x^3 - 6x^2 的拐点。

Integral

求出 sqrt (x^2 - y^2) 的积分。

Intercept

直线截距题。例如:求出直线 y = 10x - 5 的 x 轴截距。

Limit

极限题。例如:求出 x 无限接近 1 时,函数 (x^2-1)/(x-1) 的极限。

Line Equation

直线方程题。例如:求出经过点 (-7,-4) 和 (-2,-6) 的直线的方程。

Linear Algebra

可与其他数学题类型一起放置的通用数学题类型。例如:矩阵和特征多项式。

Linear Equation

线性方程。例如:4x - 3 = 2x + 9。

Linear Inequality

线性不等式。例如:5x - 6 > 3x - 8。

Logarithmic Equation

对数方程。例如:log(x) = log(100)。

Logarithmic Inequality

对数不等式。例如:log(x) > log(100)。

Matrix

求出 {{1,2,5}, {3,-1,1}, {1,2,3}} 的简化行阶梯形

Midpoint

中点题。例如:求出 (-3, 7) 和 (5, -2) 的中点。

Parabola

抛物线题。例如:求出 y2 - 4x - 4y = 0 的顶点。

Parallel

平行线题。例如:两条直线 (y = 10x + 5, y = 20x + 10) 是否平行?

Perpendicular

垂直判定题。例如:两条直线 (y = 10x + 5, y = 20x + 10) 是否垂直?

Polynomial Equation

多项式方程。例如:x^5 - 3x = 0。

Polynomial Expression

多项式表达式。例如:(x - 5)^4 * (x + 5)^2。

Polynomial Inequality

多项式不等式。例如:x^4 - x^2 - 6 > x^3 - 3x^2。

Quadratic Equation

二次方程。例如:x^2 - 3x - 4 = 0。

Quadratic Expression

二次表达式。例如:x^2 - 3x - 2。

Quadratic Inequality

二次不等式。例如:x^2 - x - 6 > x^2 - 3x。

Radical Equation

根式方程。例如:sqrt(x) - x = 0。

Radical Inequality

根式不等式。例如:sqrt(x) - x > 0。

Rational Equation

有理方程。例如:5/(x - 3) = 2/(x - 1)。

Rational Expression

有理表达式。例如:1/(x^3 + 4x^2 + 5x + 2)。

Rational Inequality

有理不等式。例如:5/(x - 3) > 2/(x - 1)。

Slope

斜率题。例如:求出 y = 10x + 5 的斜率。

Statistics

统计题。例如:求出一组数字 (3, 8, 2, 10) 的平均值。

System of Equations

方程组题。例如:求解 2x + 5y = 16;3x - 5y = - 1。

Trigonometry

求解 sin(t) + cos(t) = 1。