Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 2636 create PracticeProblem schema #2642

Closed
wants to merge 9 commits into from
@@ -0,0 +1,58 @@
TYPES: PracticeProblem, problemType, hasPart, assesses, about, educationalAlignment

PRE-MARKUP:

PracticeProblem is an interactive problem testing knowledge, skills, or abilities; can contain multiple questions with answers.

MICRODATA:

<!-- JSON-LD example only -->

RDFA:

<!-- JSON-LD example only -->

JSON:


<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "PracticeProblem",
"url": "https://www.ixl.com/math/grade-5/multiplying-fractions-by-whole-numbers-choose-the-model",
"educationalAlignment": [
{
"@type": "AlignmentObject",
"alignmentType": "educationalSubject",
"targetName": "Mathematics"
},
{
"@type": "AlignmentObject",
"alignmentType": "educationalLevel",
"targetName": "Fifth grade"
}
],
"about": "Fractions",
"practiceProblemType": "MultipleChoicePracticeProblem",
"assesses": "Multiplying fractions by whole numbers",
"hasPart": {
"@type": "Question",
"name": "Choose the model",
"text": "Which model represents the product $$4 * \frac{2}{3}$$?",
"suggestedAnswer": [
{
"@type": "Answer",
"@id": "answer_1",
"image": "https://www.ixl.com/math/…image1.png",
"url": "https://www.ixl.com/math/…image1.png"
},
{
"@type": "Answer",
"@id": "answer_2",
"image": "https://www.ixl.com/math/…image2.png",
"url": "https://www.ixl.com/math/…image2.png"
}
],
"acceptedAnswer": "someosoe#answer_1"
}
}
@@ -0,0 +1,20 @@
@prefix : <http://schema.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

:PracticeProblem a rdfs:Class ;
rdfs:label "PracticeProblem" ;
:category "issue-2636" ;
:isPartOf <http://pending.schema.org> ;
:source <https://github.com/schemaorg/schemaorg/issues/2636> ;
rdfs:comment "PracticeProblem: An interactive problem testing knowledge, skills, or abilities." ;
rdfs:subClassOf :Quiz .

:problemType a rdf:Property ;
rdfs:label "problemType" ;
:category "issue-2636" ;
:domainIncludes :PracticeProblem ;
:isPartOf <http://pending.schema.org> ;
:rangeIncludes :Text ;
:source <https://github.com/schemaorg/schemaorg/issues/2636> ;
rdfs:comment "The format of the practice problem being given." .
ProTip! Use n and p to navigate between commits in a pull request.