[ Expand All ] [ Collapse All ] - [ Properties (0) ] [ Methods (12) ] - [ Legend ]

RDFUtil Class v. V0.9.1

Object
RDFUtil

Class: RDFUtil ----------------------------------------------------------------------------------

Useful utility methods. Static class.

<BR><BR>History:<UL> <LI>12-06-2004 : improved namespace handling in function writeAsHTMLTable() added ( tobias.gauss@web.de )</LI> <LI>09-10-2004 : added support for OWL and infered statements</LI> <LI>11-18-2003 : Function writeAsHtmlTable() htmlspecialchars & nl2br for displaying literals added.</LI> <LI>04-23-2003 : Chunk_split() removed from writeHTMLTable</LI> <LI>12-04-2002 : Added support for "rdf:datatype" in writeHTMLTable</LI> <LI>10-03-2002 : Green coloring for RDF_SCHEMA nodes added to writeHTMLTable</LI> <LI>09-10-2002 : First version of this class.</LI>

</UL>

AuthorChris Bizer <chris@bizer.de>, Daniel Westphal
Properties implemented by RDFUtil

RDFUtil has no properties.

Methods implemented by RDFUtil
private method chooseColor

PHPobject chooseColor(unknown $node)

Chooses a node color. Used by RDFUtil::writeHTMLTable()

Arguments

Return

Resource

public method createOrd

PHPobject createOrd(integer $num)

Creates ordinal RDF resource out of an integer.

Arguments

Return

Resource

public method escapeValue

PHPstring escapeValue(string $textValue)

Escapes < > and &

Arguments

public method getLocalName

PHPstring getLocalName(unknown $resource)

Delivers the Localname (without the namespace prefix) out of the URI of a Resource.

Arguments

public method getNamespace

PHPstring getNamespace(unknown $resource)

Extracts the namespace prefix out of the URI of a Resource.

Arguments

private method getNamespaceEnd

PHPgetNamespaceEnd(string $uri)

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

Arguments

private method getNodeTypeName

PHPobject getNodeTypeName(unknown $node)

Get Node Type. Used by RDFUtil::writeHTMLTable()

Arguments

Return

Resource

public method getOrd

PHPinteger getOrd(unknown $resource)

Converts an ordinal RDF resource to an integer. e.g. Resource(RDF:_1) => 1

Arguments

public method guessName

PHPstring guessName(string $uri)

Delivers the name out of the URI (without the namespace prefix).

Arguments

public method guessNamespace

PHPstring guessNamespace(string $uri)

Extracts the namespace prefix out of a URI.

Arguments

public method isRDF

PHPboolean isRDF(unknown $resource)

Tests if the URI of a resource belongs to the RDF syntax/model namespace.

Arguments

public method writeHTMLTable

PHPwriteHTMLTable(unknown $model)

Prints a MemModel as HTML table. You can change the colors in the configuration file.

Arguments

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