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>
|
RDFUtil has no properties.
chooseColor| PHP | object chooseColor(unknown $node) |
|---|
Chooses a node color. Used by RDFUtil::writeHTMLTable()
Arguments
Return
Resource
createOrd| PHP | object createOrd(integer $num) |
|---|
Creates ordinal RDF resource out of an integer.
Arguments
Return
Resource
getLocalName| PHP | string getLocalName(unknown $resource) |
|---|
Delivers the Localname (without the namespace prefix) out of the URI of a Resource.
Arguments
getNamespace| PHP | string getNamespace(unknown $resource) |
|---|
Extracts the namespace prefix out of the URI of a Resource.
Arguments
getNamespaceEnd| PHP | getNamespaceEnd(string $uri) |
|---|
Position of the namespace end Method looks for # : and /
Arguments
getNodeTypeName| PHP | object getNodeTypeName(unknown $node) |
|---|
Get Node Type. Used by RDFUtil::writeHTMLTable()
Arguments
Return
Resource
getOrd| PHP | integer getOrd(unknown $resource) |
|---|
Converts an ordinal RDF resource to an integer. e.g. Resource(RDF:_1) => 1
Arguments
guessName| PHP | string guessName(string $uri) |
|---|
Delivers the name out of the URI (without the namespace prefix).
Arguments
isRDF| PHP | boolean isRDF(unknown $resource) |
|---|
Tests if the URI of a resource belongs to the RDF syntax/model namespace.
Arguments
writeHTMLTable| PHP | writeHTMLTable(unknown $model) |
|---|
Prints a MemModel as HTML table. You can change the colors in the configuration file.
Arguments