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

Class: RDF_Util

Source Location: /RDF-0.2.0/RDF/Util.php

Class Overview

RDF_Object
   |
   --RDF_Util

Useful utility methods.


Author(s):

Version:

  • V0.7

Methods


Inherited Variables

Inherited Methods

Class: RDF_Object

RDF_Object::factory()
RDF_Object::toString()
Serializes a object into a string

Class Details

[line 14]
Useful utility methods.

Static class.

  • Author: Chris Bizer <chris@bizer.de>, Daniel Westphal <dawe@gmx.de>
  • Version: V0.7
  • Access: public


[ Top ]


Method Detail

chooseColor   [line 211]

object Resource chooseColor( object Node $node)

Chooses a node color.

Used by RDF_Util::writeHTMLTable()

  • Access: protected

Parameters:

object Node   $node   — 

[ Top ]

createOrd   [line 144]

object Resource createOrd( Integer $num)

Creates ordinal RDF resource out of an integer.
  • Access: public

Parameters:

Integer   $num   — 

[ Top ]

escapeValue   [line 105]

String escapeValue( String $textValue)

Escapes < > and &
  • Access: public

Parameters:

String   $textValue   — 

[ Top ]

getLocalName   [line 60]

string getLocalName( Object $resource)

Delivers the Localname (without the namespace prefix) out of the URI of a Resource.
  • Access: public

Parameters:

Object   $resource   —  Resource $resource

[ Top ]

getNamespace   [line 48]

string getNamespace( Object $resource)

Extracts the namespace prefix out of the URI of a Resource.
  • Access: public

Parameters:

Object   $resource   —  Resource $resource

[ Top ]

getNamespaceEnd   [line 72]

void getNamespaceEnd( String $uri)

Position of the namespace end Method looks for # : and /
  • Access: protected

Parameters:

String   $uri   — 

[ Top ]

getNodeTypeName   [line 235]

object Resource getNodeTypeName( object Node $node)

Get Node Type.

Used by RDF_Util::writeHTMLTable()

  • Access: protected

Parameters:

object Node   $node   — 

[ Top ]

getOrd   [line 122]

Integer getOrd( object Resource $resource)

Converts an ordinal RDF resource to an integer.

e.g. Resource(RDF:_1) => 1

  • Access: public

Parameters:

object Resource   $resource   — 

[ Top ]

guessName   [line 36]

string guessName( String $uri)

Delivers the name out of the URI (without the namespace prefix).
  • Access: public

Parameters:

String   $uri   — 

[ Top ]

guessNamespace   [line 23]

string guessNamespace( String $uri)

Extracts the namespace prefix out of a URI.
  • Access: public

Parameters:

String   $uri   — 

[ Top ]

isRDF   [line 93]

boolean isRDF( Object $resource)

Tests if the URI of a resource belongs to the RDF syntax/model namespace.
  • Access: public

Parameters:

Object   $resource   —  Resource $resource

[ Top ]

writeHTMLTable   [line 156]

void writeHTMLTable( object Model_Memory &$model)

Prints a Model_Memory as HTML table.

You can change the colors in the configuration file.

  • Access: public

Parameters:

object Model_Memory   &$model   — 

[ Top ]


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