issue 2636: Create eduQuestionType for questions that act as practice problems#2663
issue 2636: Create eduQuestionType for questions that act as practice problems#2663danbri merged 15 commits intoschemaorg:mainfrom
Conversation
update to merge with schema.org
merge master changes into fork
merge updates from master
merge master from schema.org
Create PracticeProblem type with properties hasPart and problemType; add hasPart as property to Quiz and Course types.
Tested in http://www.easyrdf.org/converter Line 25 ended with "," instead of ";"
Fixed some minor wording, and removed leading whitespace.
add example for PracticeProblem
update to new schema for issue 2636 (discussion on issue page)
Example of quiz with a question that is a learning resource type of Practice Problem.
update e.g. in description
update eduQuestionType
| "@type": "Answer", | ||
| "@id": "http://example.org/fractions/practice-problem#answer_2", | ||
| "encodingFormat": "text/html", | ||
| "text": "<img src=\"www.test.com/practice-problems-fractions/…image2.png\" alt=\"Answer 2\" />" |
There was a problem hiding this comment.
What is this terrifying thing? :)
HTML inside a JSON(-LD) "text" field, itself likely already inside HTML via <script>. If the goal is to work out how to put small pieces of HTML inside Schema.org graphs, that seems a reasonable goal, but I don't think this combination of /encodingFormat and /text really work. The /text field isn't a good place for complex computer formats. Sorry if I missed this when we talked through this proposal recently.
There was a problem hiding this comment.
There are various ways we could put chunks of HTML inside the schema.org graph datamodel:
- items in the graph could have an /asHTML property pointing to an instance of the existing /WebPageElement type, and then the actual markup could be a /rawHTMLText property from that (or similar names)
- alternatively, just have /rawHTMLText on items in the graph, like the /Answer (this would be simpler than trying to pair /encodingFormat and /text)
/cc @vholland @rvguha
There was a problem hiding this comment.
Do you need the HTML inside the graph when the JSON-LD is inside the HTML? You have a fragment id there, why not put the answer in the HTML wrapped in <div id="answer_2"></div> That's what we did for K12-OCX (there are analagous examples at the end)
There was a problem hiding this comment.
@philbarker this is the approach used around SpeakableSpecification. It can be made to work but it is difficult in environments that parse triples out of pages and lose touch with the original context.
There was a problem hiding this comment.
Ok, talking to @lucy-kind and colleagues, we'll retract this bit of the example for now and come up with another idiom
Fixed quoting of quotes using quote-quote-quote quotes
| "@type": "Answer", | ||
| "@id": "http://example.org/fractions/practice-problem#answer_2", | ||
| "encodingFormat": "text/html", | ||
| "text": "<img src=\"www.test.com/practice-problems-fractions/…image2.png\" alt=\"Answer 2\" />" |
There was a problem hiding this comment.
@philbarker this is the approach used around SpeakableSpecification. It can be made to work but it is difficult in environments that parse triples out of pages and lose touch with the original context.
| "@type": "Answer", | ||
| "@id": "http://example.org/fractions/practice-problem#answer_2", | ||
| "encodingFormat": "text/html", | ||
| "text": "<img src=\"www.test.com/practice-problems-fractions/…image2.png\" alt=\"Answer 2\" />" |
There was a problem hiding this comment.
Ok, talking to @lucy-kind and colleagues, we'll retract this bit of the example for now and come up with another idiom
Removing the example for now - will reformulate https://gist.github.com/danbri/6373de64dd9820a25aba0d6dd52799b0 has a snapshot
|
ok, after discussion - example removed for now. I put a copy in https://gist.github.com/danbri/6373de64dd9820a25aba0d6dd52799b0 so the discussion makes sense to subsequent readers. |
Update issue 2636 (see discussion on issue)