Beispiel #1
0
 /**
  * Writes the RDF serialization of the Model including ALL inferable 
  * triples as HTML table.
  *
  * @access	public 
  */
 function writeAsHtmlTable()
 {
     // Import Package Utility
     include_once RDFAPI_INCLUDE_DIR . PACKAGE_UTILITY;
     RDFUtil::writeHTMLTable($this->getMemModel());
 }
Beispiel #2
0
         }
         $comment_string .= "Object = " . $_POST['query_object'] . "<BR>";
     }
     // Execute query and display what has been done
     $model = $model->find($query_subj, $query_pred, $query_obj);
     echo $comment_string;
 }
 //  Reify the model if checked in submitted form
 if (isset($_POST['reify']) and $_POST['reify'] == "1") {
     $model =& $model->reify();
     echo "<BR><BR><h3>Your original model has been refied.</h3><BR>";
 }
 // Output Triples as Table if checked in submitted form
 if ($_POST['view_triple'] == "1") {
     echo "<BR><BR><h3>View input as HTML table:</h3><BR>";
     RDFUtil::writeHTMLTable($model);
     echo "<P>";
 }
 //serialize model to RDF with default configuration if checked in submitted form
 if ($_POST['serialize'] == '1') {
     // Create Serializer
     $ser = new RDFSerializer();
     $msg_string = '';
     if (isset($_POST['serial_attributes']) and $_POST['serial_attributes'] == '1') {
         $ser->configUseAttributes(TRUE);
         $msg_string .= 'Use Attributes ';
     }
     if (isset($_POST['serial_entities']) and $_POST['serial_entities'] == '1') {
         $ser->configUseEntities(TRUE);
         $msg_string .= 'Use XML Entities ';
     }
Beispiel #3
0
 /**
  * Write the RDF serialization of the DbModel as HTML table.
  *
  * @access	public
  */
 function writeAsHtmlTable()
 {
     include_once RDFAPI_INCLUDE_DIR . PACKAGE_UTILITY;
     $memModel =& $this->getMemModel();
     RDFUtil::writeHTMLTable($memModel);
 }