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

Class: RDF_BlankNode

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

Class Overview

RDF_Object
   |
   --RDF_Node
      |
      --RDF_Resource
         |
         --RDF_BlankNode

An abstract RDF node.


Author(s):

Version:

  • V0.7

Methods


Inherited Variables

Inherited Methods

Class: RDF_Resource

RDF_Resource::equals()
Checks if the resource equals another resource.
RDF_Resource::factory()
Takes an URI or a namespace/localname combination
RDF_Resource::getLabel()
Returns the label of the resource, which is the URI of the resource.
RDF_Resource::getLocalName()
Returns the local name of the resource.
RDF_Resource::getNamespace()
Returns the namespace of the resource. May return null.
RDF_Resource::getURI()
Returns the URI of the resource.
RDF_Resource::toString()
Dumps resource.

Class: RDF_Object

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

Class Details

[line 21]
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 ]


Method Detail

equals   [line 91]

boolean equals( object resource $that)

Checks if two blank nodes are equal.

Two blank nodes are equal, if they have the same temporary ID

  • Access: public

Overrides RDF_Resource::equals() (Checks if the resource equals another resource.)

Parameters:

object resource   $that   — 

[ Top ]

factory   [line 31]

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

You can supply a label or You supply a model and a unique ID is gernerated
  • Todo: nothing
  • Access: public

Overrides RDF_Resource::factory() (Takes an URI or a namespace/localname combination)

Parameters:

mixed   $namespace_or_uri_or_model   — 
string   $localName   — 

[ Top ]

getID   [line 56]

string getID( )

Returns the ID of the blank node.
  • Access: public

[ Top ]

getLabel   [line 67]

string getLabel( )

Returns the ID of the blank node.
  • Access: public

Overrides RDF_Resource::getLabel() (Returns the label of the resource, which is the URI of the resource.)
[ Top ]

toString   [line 78]

string toString( )

Dumps bNode.
  • Access: public

Overrides RDF_Resource::toString() (Dumps resource.)
[ Top ]


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