Source for file test_SerializerOptions.php
Documentation is available at test_SerializerOptions.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<title>Test Serializer Options</title>
require_once 'RDF/Model/Memory.php';
// Filename of an RDf document
// Create a new Model_Memory
// Load and parse document
// Output model as HTML table
$model->writeAsHtmlTable ();
// Create Serializer and serialize model to RDF with default configuration
echo "<p><textarea cols='110' rows='20'>" . $rdf . "</textarea>";
// Serialize model to RDF using attributes
$ser->configUseAttributes (true );
echo "<p><textarea cols='110' rows='20'>" . $rdf . "</textarea>";
$ser->configUseAttributes (false );
// Serialize model to RDF using entities
$ser->configUseEntities (true );
echo "<p><textarea cols='110' rows='30'>" . $rdf . "</textarea>";
$ser->configUseEntities (false );
Documentation generated on Mon, 11 Mar 2019 15:39:30 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|