Research Log of Web Science Students

Computer Science is not simply programming

Posts Tagged ‘xml

XML draft and Sending of Scores

with 2 comments

MyMathventures, WEdGE, Pitch Paradise, KineSpell2 and I discussed what we should do with our XML. We’ve decided to separate the necessary game info as needed by the PSPortal group from the game data. We’ve commented all optional tags so that PSPortal can distinguish the differences between games. MyMathVentures also finished the sending of xml data to the portal, thus, we can reuse this module for all our games.

* Note that all optional tags can be omitted by other games.

<WSG_EDUGAME name=" " version = " ">
        <GAME_NAME> gameName </GAME_NAME>
        <VERSION> game_version </VERSION>
	<PLAYER>
                <USERNAME> userName </USERNAME>
                <FULL_NAME> name </FULL_NAME> // optional tag
                <SCHOOL> playerSchool </SCHOOL> // optional tag
                <EMAIL_ADDRESS> emailAddress </EMAIL_ADDRESS> // optional tag
	</PLAYER>
	<ASSESSMENT>
		<GAME_INFO>
			<DATE_PLAYED>
				<DATE>month/day/year</DATE>
				<TIME_PLAYED>hh:mm:ss</TIME_PLAYED>
			</DATE_PLAYED>
			<CATEGORY>category</CATEGORY>
			<TIME>
				<TOTAL_GAME_TIME> hh:mm:ss </TOTAL_GAME_TIME>
				<AVERAGE_TIME_PER_LEVEL> hh:mm:ss </AVERAGE_TIME_PER_LEVEL> // optional tag
 			        <AVERAGE_TIME_PER_QUESTION> hh:mm:ss </AVERAGE_TIME_PER_QUESTION>	// optional tag
			</TIME>

                        <GAME_LEVEL name="easy"> // if there are no levels, we can use the tag <GAME_LEVEL>
                                              // which automatically sets the name="default"
			          <NO_OF_CORRECT_ITEMS> numCorrectItems </NO_OF_CORRECT_ITEMS>
		 	          <TOTAL_GAME_SCORE> gameScore </TOTAL_GAME_SCORE>
                        </GAME_LEVEL>
		</GAME_INFO>
		<GAME_DATA>
			<GAME_LEVEL name="easy"> //default tag means "default"
				<CORRECT_ITEMS>
					<ITEM>
						<QUESTION_ID> qId </QUESTION_ID>
						<ANSWER> answer </ANSWER>
						<TOTAL_TIME_ANSWERED> hh:mm:ss <TOTAL_TIME_ANSWERED>  // optional tag
						<NUMBER_OF_TRIES> numTries </NUMBER_OF_TRIES> // optional tag
					</ITEM>
				</CORRECT_ITEMS>
				<INCORRECT_ITEMS>
					<ITEM>
						<QUESTION_ID> qId </QUESTION_ID>
						<C_ANSWER> corAnswer </C_ANSWER>
						<P_ANSWER> playerAnswer </P_ANSWER> // optional tag
						<TOTAL_TIME_ANSWERED> hh:mm:ss <TOTAL_TIME_ANSWERED>  // optional tag
						<NUMBER_OF_TRIES> numTries </NUMBER_OF_TRIES> // optional tag
					</ITEM>
				</INCORRECT_ITEMS>
			</GAME_LEVEL>
		</GAME_DATA>
	</ASSESSMENT>
</WSG_EDUGAME></code>

Written by rururu

March 11, 2010 at 10:52 pm

Posted in Augmented Reality

Tagged with

XML Changes

with 4 comments

Before our party, Sir Rom and Ma’am Weng reminded us of our XML task.
So, right there and then, we tried accomplishing what can be accomplished before the party begins. Haha. 🙂

So here are the changes. 🙂

First we addressed Sir Rom’s comments.

1. Teacher tag:

<TEACHER> Name_Of_Teacher </TEACHER> 

2. Modify ‘Date_Played’ tag to include the name and version of the game and the time it was played:

 <DATE_PLAYED>
 <DATE> Month/Day/Year </DATE>
 <TIME_PLAYED> hh:mm:ss </TIME_PLAYED>
 <NAME> Game_Name </NAME>
 <VERSION> Game_Version </VERSION>
 </DATE_PLAYED>
 

This modification entails that we change the ‘Game’ tag.
Therefore, we just decided that it be changed to ‘Game_Info’

<GAME_INFO> </GAME_INFO>

3. Modify ‘Question’ tag to ‘Question_ID’:

<QUESTION_ID> Question_ID </QUESTION_ID>

4. Hash data to avoid tampering: We consulted Ma’am Weng about this.

Then to further modify the XML, we listed the unique features of each game.
Here is the actual notes we gathered:

KineSpell
: clues/hints <visual, etc.>
: category
: number of tries/lives
: **time: per word at buo

Augmented
: level
: tries/lives
: **time: kung gaano katagal brinowse ung marker, saka buong game

Pitch Paradise/EEG
: levels
: **time: per level

MMVHS: time: buong game
MMVJR: time: per tanong at buong game

Having those, here are the additions to the XML.

To support Kinespell’s Category feature, this tag is added inside ‘Game_Info’:

<GAME_CATEGORY> Category </GAME_CATEGORY>

Lastly, the ‘Time’ tag now looks like this:

<TIME>
<AVERAGE_TIME_PER_LEVEL> hh:mm:ss </AVERAGE_TIME_PER_LEVEL>
<AVERAGE_TIME_PER_QUESTION> hh:mm:ss </AVERAGE_TIME_PER_QUESTION>
<WHOLE_GAME_TIME> hh:mm:ss </WHOLE_GAME_TIME>
</TIME>

Therefore, the whole XML now looks like this:


<WSG_EDUGAME name = "">
 <PLAYER>
 <NAME> Player_Name </NAME>
 <SCHOOL> Player_School </SCHOOL>
 <EMAIL_ADDRESS> Email_Address </EMAIL_ADDRESS>
 <TEACHER> Name_Of_Teacher </TEACHER>
 <ASSESSMENT>
 <GAME_INFO>
 <GAME_CATEGORY> Category </GAME_CATEGORY>
 <DATE_PLAYED>
 <DATE> Month/Day/Year </DATE>
 <TIME_PLAYED> hh:mm:ss </TIME_PLAYED>
 <NAME> Game_Name </NAME>
 <VERSION> Game_Version </VERSION>
</DATE_PLAYED>
 <TIME>
 <AVERAGE_TIME_PER_LEVEL> hh:mm:ss </AVERAGE_TIME_PER_LEVEL>
 <AVERAGE_TIME_PER_QUESTION> hh:mm:ss </AVERAGE_TIME_PER_QUESTION>
 <WHOLE_GAME_TIME> hh:mm:ss </WHOLE_GAME_TIME>
 </TIME>
 <NO_OF_CORRECT_ITEMS> Number_Of_Correct_Items </NO_OF_CORRECT_ITEMS>
 <NO_OF_INCORRECT_ITEMS> Number_Of_Incorrect_Items </NO_OF_INCORRECT_ITEMS>
 <CORRECT_ITEMS>
 <ITEM>
 <QUESTION_ID> Question_ID </QUESTION_ID>
 <ANSWER> Answer </ANSWER>
 </ITEM>
 </CORRECT_ITEMS>
 <INCORRECT_ITEMS>
 <ITEM>
 <QUESTION_ID> Question_ID </QUESTION_ID>
 <ANSWER> Answer </ANSWER>
 </ITEM>
 </INCORRECT_ITEMS>
 </GAME_INFO>
 </ASSESSMENT>
 </PLAYER>
</WSG_EDUGAME>

Written by Angelica Gomez

December 18, 2009 at 6:07 am

Posted in MyMathVentures

Tagged with ,

XML-ing

with 4 comments

We attempted to start making the XML for the assessment of our game. We intend to show it to other game-based groups so that we could make any necessary changes.


<WSG_EDUGAME name = "">

<PLAYER>

<NAME> Player_Name </NAME>

<SCHOOL> Player_School </SCHOOL>

<EMAIL_ADDRESS> Email_Address </EMAIL_ADDRESS>

<ASSESSMENT>

<GAME>

<NAME> Game_Name </NAME>

<DATE_PLAYED> Month Day, Year </DATE_PLAYED>

<TIME_FINISHED> Minutes:Second </TIME_FINISHED>

<NO_OF_CORRECT_ITEMS> Number_Of_Correct_Items </NO_OF_CORRECT_ITEMS>

<NO_OF_INCORRECT_ITEMS> Number_Of_Incorrect_Items </NO_OF_INCORRECT_ITEMS>

<CORRECT_ITEMS>

<ITEM>

<QUESTION> Question </QUESTION>

<ANSWER> Answer </ANSWER>

</ITEM>

</CORRECT_ITEMS>

<INCORRECT_ITEMS>

<ITEM>

<QUESTION> Question </QUESTION>

<ANSWER> Answer </ANSWER>

</ITEM>

</INCORRECT_ITEMS>

</GAME>

</ASSESSMENT>

</PLAYER>

</WSG_EDUGAME>

Written by Angelica Gomez

November 22, 2009 at 1:01 pm

Google Spreadsheet to XML Part 2

leave a comment »

This blog introduced me to Google Spreadsheets GADGETS and with this particular gadget made by Pamela Fox, I can have the XML equivalent of the Spreadsheet file.

Now. What next? Parsing!

Written by Daniela

October 9, 2009 at 10:18 am

Google Spreadsheet to XML

leave a comment »

Tweaking your game with Google Spreadsheets
“It turns out there is an XML feed from public Google spreadsheets.”
How to Convert a Google Spreadsheet into JSON, XML, and MySQL
So there are GADGETS in Google Spreadsheets?? Must maximize this tool! *Exploring Spreadsheet gadgets now*
Google Spreadsheet to XML Serializer

I’ve been looking for tools and tutorials about how can we convert our Google Spreadsheets file to XML so that we can extract the fields for Rubric Generation. Below are the most helpful sites I found:

Tweaking your game with Google Spreadsheets

“It turns out there is an XML feed from public Google spreadsheets.”

Google Spreadsheet to XML Serializer

Tutorial for .NET developers

How to Convert a Google Spreadsheet into JSON, XML, and MySQL

So there are GADGETS in Google Spreadsheets?? Must maximize this tool! *Exploring Spreadsheet gadgets now*

Written by Daniela

October 9, 2009 at 8:54 am

Posted in ProjectriX

Tagged with , ,

background

leave a comment »

backgroundFinally done with our background!:D After days of struggling in drawing different versions, and searching for ideas, my partner finally accepted the background I recently made. This would now serve us our background for all the pages.

Written by jamiepolloso

October 6, 2009 at 3:12 pm

Posted in BabyBook

Tagged with , , , ,

Projectrix Web services

with one comment

Since we are to create SOA services for Projectrix, we came up with our initial services.

For the rubrics we have:

getAllRubrics()

– This will pull the entire list of available rubrics in Projectrix

createRubric(RubricName, …)

– Possible arguments include (1) tags to categorize the rubric, and (2) the link of the Google Spreadsheet where the XML data for the rubric will be pulled from

copyRubric(RubricName)

– To duplicate a certain rubric

getRubric(RubricName)

– To view the rubric

deleteRubric(RubricName)

– To delete the rubric

searchRubric(Keyword)

– To search for a rubric; Keyword can be a tag or text that is part of the rubric

* Note that there will be no update/edit for rubrics since once it is published, it can no longer be modified.

On the other hand, we have the following for projects:

getAllProjects()

– Will pull the entire list of projects uploaded/listed in Projectrix

createProject(ProjectName, …)

– Possible arguments include (1) tags to classify projects, (2) links to Drop Box, YouTube, etc. depending on the type of media, (3) description of the project, (4) license type for the project (see following post on project licenses), etc.

getProject(ProjectName)

– Will pull a specific project from Projectrix

updateProject(ProjectName, …)

– Modifies the project; Includes all arguments included in the createProject() service

deleteProject(ProjectName)

Deletes the project; In consideration if we will be doing a hard or theoretical deletion

searchProject(Keyword)

– To search for a project; Keyword can be a tag or text that is part of the project description

On the assessment side, so far we have:

AssessProject(ProjectName, …)

– Possible argument is the scoring which is yet to be determined (e.g. sequence of numbers, a list, etc.)

The above services will include arguments for OAuth (around 6, according to Jeune), albeit unspecified.

Written by falloutkee

September 22, 2009 at 11:19 pm