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.

  • author: Chris Bizer <chris@bizer.de>
  • version: $Id: Resource.html 443 2007-06-01 16:25:38Z cax $
  • access: public

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

Object
   |
   --Node
      |
      --Resource
Direct descendents
Class Description
BlankNode An RDF blank node.
ResResource An RDF Resource.
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 ()
Methods
Constructor Resource (line 43)

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 111)

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 66)

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

  • access: public
string getLabel ()

Redefined in descendants as:
getLocalName (line 87)

Returns the local name of the resource.

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

Returns the namespace of the resource. May return null.

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

Returns the URI of the resource.

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

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 Fri, 1 Jun 2007 16:51:37 +0200 by phpDocumentor 1.3.2