[ Expand All ] [ Collapse All ] - [ Properties (1) ] [ Methods (7) ] - [ Legend ]

Resource Class v. V0.9.1

Object
Node
Resource

Class: Resource ----------------------------------------------------------------------------------

An RDF resource. Every RDF resource must have a URIref. URIrefs are treated as logical constants, i.e. as names which denote something (the things are called 'resources', but no assumptions are made about the nature of resources.) Many RDF resources are pieces of vocabulary. They typically have a namespace and a local name. In this case, a URI is composed as a concatenation of the namespace and the local name.

<BR><BR>History:<UL> <LI>11-09-2003 : Fixed bug in equals() < radol@gmx.de ></LI> <LI>09-30-2002 : Fixed bug in getNamespace() and getLocalName().</LI> <LI>09-10-2002 : First version of this class.</LI> </UL>

AuthorChris Bizer
Properties implemented by Resource
private method uri

URIref to the resource

Methods implemented by Resource
public method equals

PHPboolean equals(unknown $that)

Checks if the resource equals another resource. Two resources are equal, if they have the same URI

Arguments

public method getLabel

PHPstring getLabel()

Returns the label of the resource, which is the URI of the resource.

public method getLocalName

PHPstring getLocalName()

Returns the local name of the resource.

public method getNamespace

PHPstring getNamespace()

Returns the namespace of the resource. May return null.

public method getURI

PHPstring getURI()

Returns the URI of the resource.

constructor Resource

PHPResource(string $namespace_or_uri, string $localName)

Constructor Takes an URI or a namespace/localname combination

Arguments

public method toString

PHPstring toString()

Dumps resource.

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