model
[ class tree: model ] [ index: model ] [ all elements ]

Class: RDF_Resource

Source Location: /RDF-0.2.0/RDF/Resource.php

Class Overview

RDF_Object
   |
   --RDF_Node
      |
      --RDF_Resource

An abstract RDF node.


Author(s):

Version:

  • V0.7

Variables

Methods


Child classes:

RDF_BlankNode
An abstract RDF node.

Inherited Variables

Inherited Methods

Class: RDF_Object

RDF_Object::factory()
RDF_Object::toString()
Serializes a object into a string

Class Details

[line 23]
An abstract RDF node.

Can either be resource, literal or blank node. Node is used in some comparisons like is_a($obj, 'RDF_Node'), meaning is $obj a resource, blank node or literal.



[ Top ]


Class Variables

$uri =

[line 31]

URIref to the resource
  • Access: protected

Type:   string


[ Top ]



Method Detail

equals   [line 114]

boolean equals( object resource $that)

Checks if the resource equals another resource.

Two resources are equal, if they have the same URI

  • Access: public

Overridden in child classes as:

RDF_BlankNode::equals()
Checks if two blank nodes are equal.

Parameters:

object resource   $that   — 

[ Top ]

factory   [line 40]

void factory( string $namespace_or_uri, [string $localName = null])

Takes an URI or a namespace/localname combination
  • Access: public

Overridden in child classes as:

RDF_BlankNode::factory()
You can supply a label or You supply a model and a unique ID is gernerated

Overrides RDF_Object::factory() (parent method not documented)

Parameters:

string   $namespace_or_uri   — 
string   $localName   — 

[ Top ]

getLabel   [line 68]

string getLabel( )

Returns the label of the resource, which is the URI of the resource.
  • Access: public

Overridden in child classes as:

RDF_BlankNode::getLabel()
Returns the ID of the blank node.

[ Top ]

getLocalName   [line 90]

string getLocalName( )

Returns the local name of the resource.
  • Access: public

[ Top ]

getNamespace   [line 79]

string getNamespace( )

Returns the namespace of the resource. May return null.
  • Access: public

[ Top ]

getURI   [line 57]

string getURI( )

Returns the URI of the resource.
  • Access: public

[ Top ]

toString   [line 101]

string toString( )

Dumps resource.
  • Access: public

Overridden in child classes as:

RDF_BlankNode::toString()
Dumps bNode.

Overrides RDF_Object::toString() (Serializes a object into a string)
[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:39:29 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.