Ignore:
Timestamp:
07/22/11 17:28:23 (14 years ago)
Author:
basvannuland
Message:

added database readers and writers for application info and facilitator info

possible to store survey application and creator info

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/classes/SurveyRDFWriter.php

    r31 r40  
    4242                $surveyDescription = new Literal($sDescription);
    4343                $this->model->add(new Statement($this->resourceSurvey,$predicateDescription,$surveyDescription));               
     44        }
     45       
     46        public function setUserData($userID)
     47        {                               
     48                $resourceUser = new Resource(USER . '/' . $userID);
     49                               
     50                $predicateCreator = new Resource(CREATOR);
     51                $this->model->add(new Statement($this->resourceSurvey,$predicateCreator,$resourceUser));
     52        }
     53       
     54        public function setApplicationData($applicationID)
     55        {
     56                $resourceApplication = new Resource(APPLICATION . '/' . $userID);
     57                               
     58                $predicatePartOf = new Resource(PART_OF);
     59                $this->model->add(new Statement($this->resourceSurvey,$predicatePartOf,$resourceApplication));
    4460        }
    4561       
Note: See TracChangeset for help on using the changeset viewer.