Last change
on this file since 16 was
16,
checked in by basvannuland, 14 years ago
|
little work on the ontology
|
File size:
962 bytes
|
Rev | Line | |
---|
[14] | 1 | <?php
|
---|
| 2 | require 'classes/master.php';
|
---|
[12] | 3 |
|
---|
[14] | 4 | require 'rdfConstants.php';
|
---|
[12] | 5 |
|
---|
[14] | 6 | // Include RAP Library to write RDF files
|
---|
| 7 | define("RDFAPI_INCLUDE_DIR", "rdfapi/");
|
---|
| 8 | include(RDFAPI_INCLUDE_DIR . "RDFAPI.php");
|
---|
| 9 |
|
---|
[12] | 10 | $surveyRDFWriter = new SurveyRDFWriter();
|
---|
| 11 |
|
---|
| 12 | $sTitle = $_POST['surveyTitle'];
|
---|
| 13 |
|
---|
| 14 | $surveyRDFWriter->createSurvey($sTitle,$_POST['surveyDescription']);
|
---|
| 15 |
|
---|
| 16 | $done = $surveyRDFWriter->saveSurvey($sTitle);
|
---|
| 17 |
|
---|
[14] | 18 | echo 'Done<br/><br/>';
|
---|
[12] | 19 |
|
---|
[14] | 20 | $surveyRDFReader = new SurveyRDFReader();
|
---|
[12] | 21 |
|
---|
[14] | 22 | $surveyRDFReader->loadSurvey($sTitle);
|
---|
[12] | 23 |
|
---|
[14] | 24 | $result = $surveyRDFReader->readSurveyTitle();
|
---|
[12] | 25 |
|
---|
| 26 | foreach($result as $line){
|
---|
[16] | 27 | $value = $line['?title'];
|
---|
[12] | 28 | if($value != "")
|
---|
| 29 | echo $value->toString()."<br/>";
|
---|
| 30 | else
|
---|
| 31 | echo "undbound<br/>";
|
---|
| 32 | }
|
---|
| 33 |
|
---|
[14] | 34 | $result2 = $surveyRDFReader->readSurveyDescription();
|
---|
[12] | 35 |
|
---|
| 36 | foreach($result2 as $line){
|
---|
[16] | 37 | $value = $line['?description'];
|
---|
[12] | 38 | if($value != "")
|
---|
| 39 | echo $value->toString()."<br/>";
|
---|
| 40 | else
|
---|
| 41 | echo "undbound<br/>";
|
---|
| 42 | }
|
---|
| 43 |
|
---|
| 44 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.