Class Resource

Description

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.

  • access: public
  • author: Chris Bizer <chris@bizer.de>
  • version: $Id: Resource.html,v 1.15 2006/06/26 12:34:20 tgauss Exp $

Located in /model/Resource.php (line 24)

Object
   |
   --Node
      |
      --Resource
Direct descendents
Class Description
BlankNode An RDF blank node.
ResResource An RDF Resource.
Variable Summary
string $uri
Method Summary
Resource Resource (string $namespace_or_uri, [string $localName = NULL])
boolean equals (object resource $that)
string getLabel ()
string getLocalName ()
string getNamespace ()
string getURI ()
string toString ()
Variables
string $uri (line 31)

URIref to the resource

  • access: private
Methods
Constructor Resource (line 42)

Constructor Takes an URI or a namespace/localname combination

  • access: public
Resource Resource (string $namespace_or_uri, [string $localName = NULL])
  • string $namespace_or_uri
  • string $localName
equals (line 110)

Checks if the resource equals another resource.

Two resources are equal, if they have the same URI

  • access: public
boolean equals (object resource $that)
  • object resource $that

Redefined in descendants as:
getLabel (line 65)

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

  • access: public
string getLabel ()

Redefined in descendants as:
getLocalName (line 86)

Returns the local name of the resource.

  • access: public
string getLocalName ()
getNamespace (line 74)

Returns the namespace of the resource. May return null.

  • access: public
string getNamespace ()
getURI (line 56)

Returns the URI of the resource.

  • access: public
string getURI ()
toString (line 98)

Dumps resource.

  • access: public
string toString ()

Redefinition of:
Object::toString()
Serializes a object into a string

Redefined in descendants as:

Inherited Methods

Inherited From Object

Object::toString()

Documentation generated on Mon, 26 Jun 2006 14:26:10 +0200 by phpDocumentor 1.3.0RC6