Class Index | File Index

Classes


Built-In Namespace _global_

Method Summary
Method Attributes Method Name and Description
 
defragment($environment, $node)
Split an IRI on "#" and return the first half
 
find_xpath($environment, $xpath, $xmlliteral, $index)
Searches an XMLLiteral for an XPath.
 
lc($environment, $node)
Convert a literal to minuscule
 
ltrim($environment, $node)
Strip leading whitespace
 
oid($environment)
Generate an OID
 
oid_uri($environment)
Generate an OID, and format as a URI
 
preg_replace($environment, $needle, $replacement, $haystack, $modes)
Replace all matches for a given expression within a string.
 
rand($environment, $upper, $lower)
Generate a random number
 
rtrim($environment, $node)
Strip trailing whitespace
 
skolem($environment, $node, $scheme)
Names blank nodes.
 
sprintf($environment, $pattern)
Interpolate values into a string pattern
 
str_replace($environment, $needle, $replacement, $haystack)
Replace all occurances of a given string within another.
 
trim($environment, $node)
Strip leading and trailing whitespace
 
uc($environment, $node)
Convert a literal to majuscule
 
uuid($environment)
Generate a UUID
 
uuid_uri($environment)
Generate a UUID, and format as a URI
Method Detail
{NamedNode} defragment($environment, $node)
Split an IRI on "#" and return the first half
Defined in: util.js.
Parameters:
{RDFEnvironment} $environment
The environment
{NamedNode} $node
The URI to split
Returns:
The first part of the URI

{Literal} find_xpath($environment, $xpath, $xmlliteral, $index)
Searches an XMLLiteral for an XPath.
Defined in: util.js.
Parameters:
{RDFEnvironment} $environment
The environment
{Literal} $xpath
The path to search for
{Literal} $xmlliteral
The literal to search within
{Literal} $index
If multiple matches found, which to return. Defaults to 0.
Returns:
An XMLLiteral or plain literal

{Literal} lc($environment, $node)
Convert a literal to minuscule
Defined in: util.js.
Parameters:
{RDFEnvironment} $environment
The environment
{Literal} $node
The literal to be lowercased
Returns:
A lowercase literal

{Literal} ltrim($environment, $node)
Strip leading whitespace
Defined in: util.js.
Parameters:
{RDFEnvironment} $environment
The environment
{Literal} $node
The literal to be trimmed
Returns:
A literal

{Literal} oid($environment)
Generate an OID
Defined in: util.js.
Parameters:
{RDFEnvironment} $environment
The environment
Returns:
A literal

{NamedNode} oid_uri($environment)
Generate an OID, and format as a URI
Defined in: util.js.
Parameters:
{RDFEnvironment} $environment
The environment
Returns:
A named node (URI)

{Literal} preg_replace($environment, $needle, $replacement, $haystack, $modes)
Replace all matches for a given expression within a string.
Defined in: util.js.
Parameters:
{RDFEnvironment} $environment
The environment
{Literal} $needle
The regular expression to search for
{Literal} $replacement
The string with which to replace matches
{Literal} $haystack
The literal to search within
{Literal} $modes
Defaults to "g"
Returns:
The $haystack literal with all substrings matching $needle replaced

{Literal} rand($environment, $upper, $lower)
Generate a random number
Defined in: util.js.
Parameters:
{RDFEnvironment} $environment
The environment
{Literal} $upper
The upper bound
{Literal} $lower
The lower bound (optional, defaults to 0)
Returns:
A literal with same datatype as $upper.

{Literal} rtrim($environment, $node)
Strip trailing whitespace
Defined in: util.js.
Parameters:
{RDFEnvironment} $environment
The environment
{Literal} $node
The literal to be trimmed
Returns:
A literal

{RDFNode} skolem($environment, $node, $scheme)
Names blank nodes. Given a node, if it's named or a literal, returns as is. If blank, returns a URI for the node. Idempotent for any particular RDFEnvironment. That is, within an execution, given the same blank node multiple times will always return the same URI.
Defined in: util.js.
Parameters:
{RDFEnvironment} $environment
The environment
{RDFNode} $node
The node to name
{Literal} $scheme
"OID" or "UUID" (default). Optional.
Returns:
A named node or literal

{Literal} sprintf($environment, $pattern)
Interpolate values into a string pattern
Defined in: util.js.
Parameters:
{RDFEnvironment} $environment
The environment
{Literal} $pattern
The pattern into which values should be interpolated
Returns:
A literal

{Literal} str_replace($environment, $needle, $replacement, $haystack)
Replace all occurances of a given string within another.
Defined in: util.js.
Parameters:
{RDFEnvironment} $environment
The environment
{Literal} $needle
The string to search for
{Literal} $replacement
The string with which to replace matches
{Literal} $haystack
The literal to search within
Returns:
The $haystack literal with all instances of $needle replaced

{Literal} trim($environment, $node)
Strip leading and trailing whitespace
Defined in: util.js.
Parameters:
{RDFEnvironment} $environment
The environment
{Literal} $node
The literal to be trimmed
Returns:
A literal

{Literal} uc($environment, $node)
Convert a literal to majuscule
Defined in: util.js.
Parameters:
{RDFEnvironment} $environment
The environment
{Literal} $node
The literal to be uppercased
Returns:
An uppercase literal

{Literal} uuid($environment)
Generate a UUID
Defined in: util.js.
Parameters:
{RDFEnvironment} $environment
The environment
Returns:
A literal

{NamedNode} uuid_uri($environment)
Generate a UUID, and format as a URI
Defined in: util.js.
Parameters:
{RDFEnvironment} $environment
The environment
Returns:
A named node (URI)

Documentation generated by JsDoc Toolkit 2.3.2 on Tue Jan 04 2011 16:34:53 GMT-0000 (GMT)