Skip to content

Commit e29140b

Browse files
authored
Issue #2740 SolveMathAction and MathSolver (#2752)
* Create issue-2740.ttl #2740 * Update issue-2740.ttl * Create issue-2740-examples.txt #2740 * Update issue-2740.ttl * Update issue-2636.ttl add eduQuestionType as property of SolveMathAction #2740
1 parent 0dde626 commit e29140b

File tree

3 files changed

+68
-1
lines changed

3 files changed

+68
-1
lines changed

data/ext/pending/issue-2636.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
:eduQuestionType a rdf:Property ;
66
rdfs:label "eduQuestionType" ;
77
:category "issue-2636" ;
8-
:domainIncludes :Question ;
8+
:domainIncludes :Question, :SolveMathAction ;
99
:isPartOf <http://pending.schema.org> ;
1010
:rangeIncludes :Text ;
1111
:source <https://github.com/schemaorg/schemaorg/issues/2636> ;
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
TYPES: SolveMathAction, MathSolver
2+
3+
PRE-MARKUP:
4+
5+
Direct users to a leaf page when solving math problems. The leaf page may contain a step by step walkthrough of the problem and a solution.
6+
7+
MICRODATA:
8+
9+
<!-- JSONLD only example -->
10+
11+
RDFA:
12+
13+
<!-- JSONLD only example -->
14+
15+
JSON:
16+
17+
<script type="application/ld+json">
18+
{
19+
"@context": "https://schema.org",
20+
"@type": "MathSolver",
21+
"url": "https://www.mathdomain.com/",
22+
"potentialAction": [{
23+
"@type": "SolveMathAction",
24+
"target": "https://mathdomain.com/solve?q={math_expression_string}",
25+
"mathExpression-input": "required name=math_expression_string",
26+
"eduQuestionType": “Polynomial Equations”,
27+
},
28+
{
29+
"@type": "SolveMathAction",
30+
"target": "https://mathdomain.com/graph?q={math_expression_string}",
31+
"mathExpression-input": "required name=math_expression_string",
32+
"eduQuestionType": “Graphing”,
33+
}]
34+
}
35+
36+
37+
</script>

data/ext/pending/issue-2740.ttl

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
@prefix : <http://schema.org/> .
2+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
3+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
4+
5+
:SolveMathAction a rdfs:Class ;
6+
rdfs:label "SolveMathAction" ;
7+
:category "issue-2740" ;
8+
:isPartOf <http://pending.schema.org> ;
9+
:source <https://github.com/schemaorg/schemaorg/issues/2740> ;
10+
rdfs:comment "The action that takes in a math expression and directs users to a page potentially capable of solving/simplifying that expression." ;
11+
rdfs:subClassOf :Action .
12+
13+
:MathSolver a rdfs:Class ;
14+
rdfs:label "MathSolver" ;
15+
:category "issue-2740" ;
16+
:isPartOf <http://pending.schema.org> ;
17+
:source <https://github.com/schemaorg/schemaorg/issues/2740> ;
18+
rdfs:comment "A math solver which is capable of solving a subset of mathematical problems." ;
19+
rdfs:subClassOf :CreativeWork .
20+
21+
:mathExpression a rdf:Property ;
22+
rdfs:label "mathExpression" ;
23+
:category "issue-2740" ;
24+
:domainIncludes :GovernmentService,
25+
:Legislation ;
26+
:isPartOf <http://pending.schema.org> ;
27+
:rangeIncludes :SolveMathAction,
28+
:Text ;
29+
:source <https://github.com/schemaorg/schemaorg/issues/2740> ;
30+
rdfs:comment "A mathematical expression (e.g. “x^2-3x=0”) that may be solved for a specific variable, simplified, or transformed. This can take many formats, e.g. LaTeX, Ascii-Math, or math as you would write with a keyboard." .

0 commit comments

Comments
 (0)