[ Expand All ] [ Collapse All ] - [ Properties (8) ] [ Methods (9) ] - [ Legend ]

N3Serializer Class

Object
N3Serializer

Properties implemented by N3Serializer
public method anon

public method debug

public method done

keeps track of already serialized resources

public method model

public method prefixes

public method res

public method resourcetext

public method resourcetext_taken

Methods implemented by N3Serializer
public method addNSPrefix

PHPaddNSPrefix(unknown $ns, unknown $prefix)

Adds a new namespace prefix to use. Unknown namespaces will become ns0, ns1 etc.

Arguments

private method doNamespaces

PHPdoNamespaces(array $n)

Makes ns0, ns1 etc. prefixes for unknown prefixes. Outputs

Arguments

private method doResource

PHPdoResource(unknown $r)

Fill in $resourcetext for a single resource. Will recurse into Objects of triples, but should never look ? (really?)

Arguments

private method doURI

PHPvoid doURI(unknown $r, unknown $out)

Format a single URI

Arguments

private method fixAnon

PHPvoid fixAnon(unknown $t, string $a)

Fix the resourcetext for a blanknode where the _: construct was used

Arguments

constructor N3Serializer

PHPN3Serializer()

Constructor

private method reset

PHPreset()

==================== Private Methods from here ====================

Readies this object for serializing another model

public method saveAs

PHPboolean saveAs(unknown $model, string $filename)

Serializes a model and saves it into a file. Returns FALSE if the model couldn't be saved to the file.

Arguments

public method serialize

PHPstring serialize(unknown $m)

Serializes a model to N3 syntax.

Arguments

Generated by PHPEdit - Copyright © 1999-2004 - Sébastien Hordeaux - WaterProof SARL