Rev | Line | |
---|
[31] | 1 | <?php
|
---|
| 2 |
|
---|
| 3 | // Survey class as intermediate for storing data from the site to the RDF database
|
---|
| 4 | require 'rdfConstants.php';
|
---|
| 5 |
|
---|
| 6 | // Include RAP Library to write RDF files
|
---|
| 7 | define("RDFAPI_INCLUDE_DIR", "rdfapi/");
|
---|
| 8 | include(RDFAPI_INCLUDE_DIR . "RDFAPI.php");
|
---|
| 9 |
|
---|
| 10 |
|
---|
| 11 |
|
---|
| 12 | class SurveyAnswerDatabaseInterface
|
---|
| 13 | {
|
---|
| 14 | protected $surveyAnswerRDFWriter;
|
---|
| 15 | protected $surveyAnswerRDFReader;
|
---|
| 16 |
|
---|
| 17 |
|
---|
| 18 | public function __construct($surveyID=null)
|
---|
| 19 | {
|
---|
| 20 | if($surveyID == null)
|
---|
| 21 | $surveyUID = md5( uniqid(rand(), true) );
|
---|
| 22 | else
|
---|
| 23 | $surveyUID = $surveyID;
|
---|
| 24 |
|
---|
| 25 | $this->surveyAnswerRDFWriter = new SurveyAnswerRDFWriter($surveyUID);
|
---|
| 26 | $this->surveyAnswerRDFReader = new SurveyAnswerRDFReader($surveyUID);
|
---|
| 27 | }
|
---|
| 28 |
|
---|
| 29 |
|
---|
[33] | 30 | }
|
---|
[31] | 31 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.