syntax
[ class tree: syntax ] [ index: syntax ] [ all elements ]

Class: RDF_N3_Serializer

Source Location: /RDF_N3-0.2.0/RDF/N3/Serializer.php

Class Overview

RDF_Object
   |
   --RDF_N3_Serializer



Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 31]


[ Top ]


Class Variables

$anon =

[line 44]


Type:   mixed


[ Top ]

$debug =

[line 33]


Type:   mixed


[ Top ]

$done =

[line 37]


Type:   mixed


[ Top ]

$model =

[line 40]


Type:   mixed


[ Top ]

$prefixes =

[line 35]


Type:   mixed


[ Top ]

$res =

[line 42]


Type:   mixed


[ Top ]

$resourcetext =

[line 38]


Type:   mixed


[ Top ]

$resourcetext_taken =

[line 39]


Type:   mixed


[ Top ]



Method Detail

RDF_N3_Serializer (Constructor)   [line 49]

RDF_N3_Serializer RDF_N3_Serializer( )

  • Access: public

[ Top ]

addNSPrefix   [line 63]

void addNSPrefix( $ns, $prefix, string $s)

Adds a new namespace prefix to use.

Unknown namespaces will become ns0, ns1 etc.

  • Access: public

Parameters:

string   $s   — 
   $ns   — 
   $prefix   — 

[ Top ]

doNamespaces   [line 228]

void doNamespaces( &$n, array $n)

Makes ns0, ns1 etc. prefixes for unknown prefixes.

Outputs

  • Access: protected

Parameters:

array   $n   — 
   &$n   — 

[ Top ]

doResource   [line 255]

boolean doResource( &$r, object Resource $r)

Fill in $resourcetext for a single resource.

Will recurse into Objects of triples, but should never look ? (really?)

  • Access: protected

Parameters:

object Resource   $r   — 
   &$r   — 

[ Top ]

doURI   [line 365]

void doURI( &$r, &$out, string $s)

Format a single URI
  • Access: protected

Parameters:

string   $s   — 
   &$r   — 
   &$out   — 

[ Top ]

fixAnon   [line 387]

void fixAnon( $t, string $a, string $s)

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

Parameters:

string   $s   — 
string   $a   — 
   $t   — 

[ Top ]

reset   [line 201]

void reset( void 0)

Readies this object for serializing another model
  • Access: protected

Parameters:

void   0   — 

[ Top ]

saveAs   [line 177]

boolean saveAs( &$model, string $filename, object Model_Memory $model)

Serializes a model and saves it into a file.

Returns FALSE if the model couldn't be saved to the file.

  • Access: public

Parameters:

object Model_Memory   $model   — 
string   $filename   — 
   &$model   — 

[ Top ]

serialize   [line 75]

string &serialize( &$m, object Model $model)

Serializes a model to N3 syntax.
  • Access: public

Parameters:

object Model   $model   — 
   &$m   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:39:51 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.