Semantic MediaWiki and related extensions
|
Public Member Functions | |
clear () | |
serializeDeclaration ( $uri, $typename) | |
serializeExpData (ExpData $expData) | |
flushContent () | |
Public Member Functions inherited from SMW\Exporter\Serializer\Serializer | |
__construct () | |
clear () | |
startSerialization () | |
finishSerialization () | |
serializeDeclarations () | |
serializeDeclaration ( $uri, $typename) | |
serializeExpData (ExpData $data) | |
flushContent () | |
Protected Member Functions | |
serializeHeader () | |
serializeFooter () | |
serializeNamespace ( $shortname, $uri) | |
serializeNestedExpData (ExpData $expData, $indent) | |
serializeExpLiteral (ExpNsResource $expResourceProperty, ExpLiteral $expLiteral, $indent) | |
serializeExpResource (ExpNsResource $expResourceProperty, ExpResource $expResource, $indent, $isClassTypeProp) | |
serializeExpCollection (ExpNsResource $expResourceProperty, array $collection, $indent, $isClassTypeProp) | |
makeValueEntityString ( $string) | |
makeAttributeValueString ( $string) | |
Protected Member Functions inherited from SMW\Exporter\Serializer\Serializer | |
serializeHeader () | |
serializeFooter () | |
serializeNamespaces () | |
serializeNamespace ( $shortname, $uri) | |
requireNamespace ( $nsshort, $nsuri) | |
requireDeclaration (ExpResource $resource, $decltype) | |
recordDeclarationTypes (ExpData $expData) | |
declarationDone (ExpResource $element, int $typeflag) | |
isOWLClassTypeProperty (ExpNsResource $property) | |
Protected Attributes | |
$namespace_block_started | |
$namespaces_are_global | |
Protected Attributes inherited from SMW\Exporter\Serializer\Serializer | |
$pre_ns_buffer | |
$post_ns_buffer | |
$decl_todo | |
$decl_done | |
$extra_namespaces | |
$global_namespaces | |
Class for serializing exported data (encoded as ExpData object) in RDF/XML.
GNU GPL v2+
SMW\Exporter\Serializer\RDFXMLSerializer::clear | ( | ) |
SMW\Exporter\Serializer\RDFXMLSerializer::flushContent | ( | ) |
|
protected |
Escape a string as required for using it in XML attribute values.
$string | string to be escaped |
|
protected |
Escape a string in the special form that is required for values in DTD entity declarations in XML. Namely, this require the percent sign to be replaced.
$string | string to be escaped |
SMW\Exporter\Serializer\RDFXMLSerializer::serializeDeclaration | ( | $uri, | |
$typename | |||
) |
|
protected |
Add a serialization of the given ExpResource to the output, assuming that an opening property tag is alerady there.
$expResourceProperty | ExpNsResource the property to use |
$expResource | array of (ExpResource or ExpData) |
$indent | string specifying a prefix for indentation (usually a sequence of tabs) |
$isClassTypeProp | boolean whether the resource must be declared as a class |
The $isClassTypeProp parameter is not properly taken into account.
Individual resources are not serialised properly.
SMW\Exporter\Serializer\RDFXMLSerializer::serializeExpData | ( | ExpData | $expData | ) |
|
protected |
Add to the output a serialization of a property assignment where an ExpLiteral is the object. It is assumed that a suitable subject block has already been openend.
$expResourceProperty | ExpNsResource the property to use |
$expLiteral | ExpLiteral the data value to use |
$indent | string specifying a prefix for indentation (usually a sequence of tabs) |
|
protected |
Add to the output a serialization of a property assignment where an ExpResource is the object. It is assumed that a suitable subject block has already been openend.
$expResourceProperty | ExpNsResource the property to use |
$expResource | ExpResource the data value to use |
$indent | string specifying a prefix for indentation (usually a sequence of tabs) |
$isClassTypeProp | boolean whether the resource must be declared as a class |
|
protected |
|
protected |
|
protected |
|
protected |
Serialize the given ExpData object, possibly recursively with increased indentation.
$expData | ExpData containing the data to be serialised. |
$indent | string specifying a prefix for indentation (usually a sequence of tabs) |
|
protected |
True if the $pre_ns_buffer contains the beginning of a namespace declaration block to which further declarations for the current context can be appended.
|
protected |
True if the namespaces that are added at the current serialization stage become global, i.e. remain available for all later contexts. This is the case in RDF/XML only as long as the header has not been streamed to the client (reflected herein by calling flushContent()). Later, namespaces can only be added locally to individual elements, thus requiring them to be re-added multiple times if used in many elements.