Semantic MediaWiki and related extensions
|
Public Member Functions | |
__construct ( $sparqlMode=false) | |
clear () | |
flushSparqlPrefixes () | |
serializeDeclaration ( $uri, $typename) | |
serializeExpData (ExpData $expData) | |
Public Member Functions inherited from SMW\Exporter\Serializer\Serializer | |
__construct () | |
clear () | |
startSerialization () | |
finishSerialization () | |
serializeDeclarations () | |
serializeDeclaration ( $uri, $typename) | |
serializeExpData (ExpData $data) | |
flushContent () | |
Static Public Member Functions | |
static | reset () |
static | getTurtleNameForExpElement (ExpElement $expElement) |
Protected Member Functions | |
serializeHeader () | |
serializeFooter () | |
serializeNamespace ( $shortname, $uri) | |
serializeNestedExpData (ExpData $data, $indent) | |
serializeExpLiteral (ExpLiteral $element) | |
serializeExpResource (ExpResource $element) | |
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 | |
$subexpdata | |
$sparqlmode | |
$sparql_namespaces | |
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 Turtle syntax.
GNU GPL v2+
SMW\Exporter\Serializer\TurtleSerializer::__construct | ( | $sparqlMode = false | ) |
bool | $sparqlMode |
SMW\Exporter\Serializer\TurtleSerializer::clear | ( | ) |
SMW\Exporter\Serializer\TurtleSerializer::flushSparqlPrefixes | ( | ) |
Get an array of namespace prefixes used in SPARQL mode. Namespaces are not serialized among triples in SPARQL mode but are collected separately. This method returns the prefixes and empties the collected list afterwards.
|
static |
Get the Turtle serialization string for the given ExpElement. The method just computes a name, and does not serialize triples, so the parameter must be an ExpResource or ExpLiteral, no ExpData.
$expElement | ExpElement being ExpLiteral or ExpResource |
|
static |
SMW\Exporter\Serializer\TurtleSerializer::serializeDeclaration | ( | $uri, | |
$typename | |||
) |
SMW\Exporter\Serializer\TurtleSerializer::serializeExpData | ( | ExpData | $expData | ) |
|
protected |
|
protected |
|
protected |
|
protected |
Serialize the given ExpData object, possibly recursively with increased indentation.
$data | ExpData containing the data to be serialised. |
$indent | string specifying a prefix for indentation (usually a sequence of tabs) |