Changeset 105 for Dev/trunk/classes/QuestionRDFWriter.php
- Timestamp:
- 09/19/11 13:06:37 (14 years ago)
- Location:
- Dev/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk
- Property svn:ignore
-
old new 1 data 1 2 nbproject
-
- Property svn:ignore
-
Dev/trunk/classes/QuestionRDFWriter.php
r85 r105 24 24 } 25 25 26 public function createQuestion($qTitle,$qDescription,$qType,$q ID,$qCode,$qCategory,$qAnswers)26 public function createQuestion($qTitle,$qDescription,$qType,$qCode,$qCategory,$qAnswers) 27 27 { 28 $resourceQuestion = new Resource(QUESTION.'/'.$q ID);28 $resourceQuestion = new Resource(QUESTION.'/'.$qCode); 29 29 30 30 $resourceQuestionType = new Resource(QUESTION); … … 43 43 $resourceQuestionType = new Literal($qType); 44 44 $this->model->add(new Statement($resourceQuestion,$predicateQType,$resourceQuestionType)); 45 46 $predicateUniqueID = new Resource(UID);47 $questionUID = new Literal($qID);48 $this->model->add(new Statement($resourceQuestion,$predicateUniqueID,$questionUID));49 45 50 46 $predicateQCode = new Resource(QCODE);
Note: See TracChangeset
for help on using the changeset viewer.