Class SimpleRdfResource

(line 13)

Description

SimpleRdfNode
   |
   --SimpleRdfResource

Located in File: /simplerdfresource.php

For terms of use see LICENSE.txt in this distribution.


Class Variables

Summary:

Class Constants

Summary:

Method Detail

Summary:
string getNodeId ()
string getUri ()
string getValue ()
SimpleRdfResource isOfType (mixed $types, mixed $type)
bool setNodeId (string $nodeId)
bool setUri (string $uri)

Method getNodeId (line 95)

string getNodeId( )

Get the nodeID of this resource (@rdf:nodeID)

Info

  • return - nodeID of the resource (@rdf:nodeID)
  • access - public

Method getUri (line 53)

string getUri( )

Get the URI of this resource (@rdf:about)

Info

  • return - URI of the resource (@rdf:about)
  • access - public

Method getValue (line 63)

string getValue( )

Overrides : SimpleRdfNode::getValue() This method should return URI or Literal value.

Alias to getUri()

Info

  • access - public

Method isOfType (line 111)

SimpleRdfResource isOfType( mixed $types, mixed $type)

Is current resource of given type? If the argument is array then return TRUE if the resource is type at least of one of given types.

Examples: $object->isOfType(NS_RDF.'Bag'); $object->isOfType(array(NS_RDF.'Seq', NS_RDF.'Bag', NS_RDF.'Alt', NS_RDF.'List'));

Parameters

  • mixed $type: string rdf:type URI or SimpleRdfResource object representing type, use array of mixed for multiple search.

Info

  • return - representing the first matching style or NULL if is not of specified types...
  • access - public

Method setNodeId (line 74)

bool setNodeId( string $nodeId)

Set the nodeID of this resource.

Parameters

  • string $nodeId: nodeID of the resource (@rdf:nodeID)

Info

  • return - TRUE on success.
  • access - public

Method setUri (line 33)

bool setUri( string $uri)

Set the URI of this resource.

Parameters

  • string $uri: URI of the resource (@rdf:about)

Info

  • return - TRUE on success.
  • access - public

Inherited Variables

Inherited Class Variable Summary

Inherited Methods

Inherited Method Summary

Inherited From Class SimpleRdfNode

SimpleRdfNode::getValue() - This method should return URI or Literal value.



Documentation generated on Fri, 19 Nov 2004 09:11:16 +0100 by phpDocumentor 1.3.0RC3