An RDF seralizer.
Seralizes models to RDF syntax. It supports the xml:base, xml:lang, rdf:datatype and rdf:nodeID directive. You can choose between different output syntaxes by using the configuration methods or changing the configuration default values in constants.php. This class is based on the java class edu.unika.aifb.rdf.api.syntax.RDFSerializer by Boris Motik.
Located in /syntax/RdfSerializer.php (line 23)
Object | --RdfSerializer
Adds a new prefix/namespace combination.
Serializer congiguration: Sort Model Flag if the serializer should sort the model by subject before serializing.
TRUE makes the RDF code more compact. TRUE is default. Default can be changed in constants.php.
Serializer congiguration: Use Attributes Flag if the serializer should serialize triples as XML attributes where possible.
TRUE makes the RDF code more compact. FALSE is default. Default can be changed in constants.php.
Serializer congiguration: Use Entities Flag if the serializer should use entities for URIs.
TRUE makes the RDF code more compact. FALSE is default. Default can be changed in constants.php.
Serializer congiguration: Use Qnames Flag if the serializer should use qualified names for RDF reserved words.
TRUE makes the RDF code more compact. TRUE is default. Default can be changed in constants.php.
Serializer congiguration: Use XML Declaration Flag if the serializer should start documents with the xml declaration <?xml version="1.0" encoding="UTF-8" ?>.
TRUE is default. Default can be changed in constants.php.
Serializes a model and saves it into a file.
Returns FALSE if the model couldn't be saved to the file.
Serializes a model to RDF syntax.
RDF syntax can be changed by config_use_attributes($boolean), config_use_entities($boolean), config_sort_model($boolean). NOTE: There is only one default namespace allowed within an XML document. Therefore if SER_RDF_QNAMES in constants.php is set to FALSE and you pass another $xml_default_namespace as parameter, the model will be serialized as if SER_RDF_QNAMES were set to TRUE.
Inherited From Object
Object::toString()
Documentation generated on Fri, 1 Jun 2007 16:50:50 +0200 by phpDocumentor 1.3.2