Page MenuHomePhabricator

GIFT format
Open, LowestPublicFeature

Description

Author: jsalsman

Description:
The GIFT format[1] and extensions[2] for assessment content[3] should be supported along with Quiz table format[4]. Ideally we should be able to import from and export to both.[5]

[1] http://docs.moodle.org/en/GIFT_format

[2] http://microformats.org/wiki/gift-syntax#Extensions

[3] http://strategy.wikimedia.org/wiki/Proposal:Assessment_content

[4] http://en.wikiversity.org/wiki/Help:Quiz

[5] http://www.mediawiki.org/wiki/Extension_talk:Quiz#GIFT_format_and_Quiz_tables.3F


Version: unspecified
Severity: enhancement
URL: http://microformats.org/wiki/gift-syntax

Details

Reference
bz22475

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 10:57 PM
bzimport set Reference to bz22475.
bzimport added a subscriber: Unknown Object (MLST).

I plan to work on this in the next days for WMUK. I plan to add an "format=gift" attribute to the quiz tag to allow the GIFT format.

charles.r.matthews wrote:

Because of other priorities on quizzes, WMUK is now not likely to want Kelson to work on this in the near future.

Can we close then this feature request?

jsalsman wrote:

I would prefer it be kept open. GIFT is the most widely used interoperable quiz question format, with tens of thousands of Moodle installations using it for assessment import and export.

charles.r.matthews wrote:

I agree with the thought that GIFT import into the extension might be useful.

To explain the current position from the WMUK angle takes rather more comment, however. Basically we are now working on another format: call it J format, since it is based on JSON. For a system under development, J format is being preferred to expanding GIFT format in an ad hoc way, to add further question types.

Some existing code translates a significant part of GIFT into J format (and other code translates back). That means that if J format could be imported into the Quiz extension, GIFT format also could be imported (given a bit more work). I can't yet give an opinion whether we would want to do that for the current project (working name Wikisoba, some details are at https://wikimedia.org.uk/wiki/Wikisoba_project).

If the way that project is set up requires use of MediaWiki in the repository aspect, then I would expect to come back to this bug. In any case the use of GIFT internally in the project is as a human-readable form of syntax. We probably will be expanding GIFT to do that.

There was a GSoC 2010 proposal for this task.

https://en.wikiversity.org/wiki/Google/Summer_of_Code_2010_Proposal:_GIFT_Conversion

Do we want to recycle that into a GSoC 2015 project?

Here is a gift to qti converter https://github.com/csev/gift2qti (PHP). Even if we are not interested in QTI format, the gift parser may be instructive.

It's very new, but I started a PEG.js grammar for GIFT (parses GIFT and returns questions in the form of JavaScript objects). Could it be useful here? See the repo at https://github.com/fuhrmanator/GIFT-grammar-PEG.js

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:02 AM
Aklapper removed a subscriber: wikibugs-l-list.