Class DefaultRDFSResource

(line 11)

Description

Resource
   |
   --DefaultRDFSResource

Located in File: /rdfsapi/resource.php

RDFSResource


Classes extended from DefaultRDFSResource:
RDFSResource

Class Variables

Summary:
mixed $model

$model (line 15)

Data type : mixed

A reference to the RDFSModel this resource belongs to.

Class Constants

Summary:

Method Detail

Summary:
DefaultRDFSResource DefaultRDFSResource (string $uri,  &$model, [ $expandNS = true], RDFSModel $model)
void addLabel ($language $label, [$label $language = ''])
void definingModels ()
boolean equals (object resource $that)
void getComment ([ $language = NULL])
void getDBId ()
void getDefiningModel ([ $includeSubClasses = false], [ $includeProperties = false], [ $includeInstances = false])
void getLabel ()
string getLabelForLanguage ([string $language = ''])
void getLiteralPropertyValue ( $property, [ $language = NULL], [ $datatype = NULL])
void getLocalName ()
void getPropertyValue ( $property, [ $class = NULL])
void getType ()
void hasPropertyValue ( $property, [ $value = NULL])
void hasPropertyValueTransitive ( $property,  $value)
void isBlankNode ()
void isImported ()
boolean isOfType (RDFResource $type)
array listClasses ()
string listComments ([ $language = NULL])
array listLabels ([ $language = NULL])
array listLabelsPlain ([string $prefix = ''], [string $suffix = ''])
array listLists ()
void listLiteralPropertyValues (RDFSResource $property, [string $language = NULL], [string $datatype = NULL])
void listLiteralPropertyValuesPlain ( $property, [ $language = NULL], [ $datatype = NULL])
array listPropertyValues ([RDFSResource $property = NULL], [string $class = NULL])
void listPropertyValuesObject ( $property, [ $class = NULL])
void listPropertyValuesSymmetric ( &$property, [ $class = NULL])
void listPropertyValuesTransitive ( $property, [ $class = NULL], [ $done = array()])
array listSameAs ()
void remove ()
void removePropertyValues ( $property)
void removeType (RDFResource $type)
boolean rename (string $newuri, [ $checkIfNewuriExists = true])
void setClass ( $classes, RDFSClass $class)
void setComment ($comment $comment, [ $language = ''])
void setDifferentFrom (array $values)
void setLabel ($label $label, [$language $language = NULL])
void setPropertyValue (RDFSResource $property, Node $value)
void setPropertyValues (RDFSResource $property, [ $values = array()], [ $language = NULL], [ $datatype = NULL], [ $newLang = NULL], [ $newDtype = NULL], Node $value, boolean $valuesAreLiterals)
void setPropertyValuesObject ( $property, [ $values = array()])
void setPropertyValuesSymmetric ( $property, [ $values = array()])
void setSameAs (array $values)
void setType (RDFResource $type)
boolean type ([RDFResource $type = NULL], [boolean $bool = NULL])

Constructor DefaultRDFSResource (line 24)

DefaultRDFSResource DefaultRDFSResource( string $uri, &$model, [ $expandNS = true], RDFSModel $model)

Constructor

Parameters

  • string $uri:
  • RDFSModel $model:
  • &$model:
  • $expandNS:

Info

Method addLabel (line 111)

void addLabel( $language $label, [$label $language = ''])

Adds a label to this resource

Parameters

  • $language $label:
  • $label $language:

Info

Method definingModels (line 309)

void definingModels( )

Info

Method equals (line 506)

boolean equals( object resource $that)

Checks if the resource equals another resource.

Two resources are equal, if they have the same URI

Parameters

  • object resource $that:

Info

  • access - public

Method getClass (line 547)

RDFSClass getClass( )

Returns an RDFSClass this instance is an instance of.

Info

  • return - A class this instance is an instrance of.

Method getComment (line 93)

void getComment( [ $language = NULL])

Parameters

  • $language:

Info

Method getDBId (line 82)

void getDBId( )

Info

Method getDefiningModel (line 513)

void getDefiningModel( [ $includeSubClasses = false], [ $includeProperties = false], [ $includeInstances = false])

Parameters

  • $includeSubClasses:
  • $includeProperties:
  • $includeInstances:

Info

Method getLabel (line 43)

void getLabel( )

Info

Method getLabelForLanguage (line 155)

string getLabelForLanguage( [string $language = ''])

Returns the label for a language. If no label is available for the language in this resource return NULL.

Parameters

  • string $language:

Info

  • return - The label attached to this resource or NULL.

Method getLiteralPropertyValue (line 378)

void getLiteralPropertyValue( $property, [ $language = NULL], [ $datatype = NULL])

Parameters

  • $property:
  • $language:
  • $datatype:

Info

Method getLocalName (line 56)

void getLocalName( )

Info

Method getLocalNameFast (line 46)

void getLocalNameFast( )

Info

Method getModel (line 79)

RDFSModel getModel( )

Get the model which the resource belongs to.

Info

  • return - Model the Resource belongs to

Method getPropertyValue (line 329)

void getPropertyValue( $property, [ $class = NULL])

Parameters

  • $property:
  • $class:

Info

Method getType (line 269)

void getType( )

Info

Method hasPropertyValue (line 332)

void hasPropertyValue( $property, [ $value = NULL])

Parameters

  • $property:
  • $value:

Info

Method hasPropertyValueTransitive (line 354)

void hasPropertyValueTransitive( $property, $value)

Parameters

  • $property:
  • $value:

Info

Method isBlankNode (line 38)

void isBlankNode( )

Info

Method isImported (line 313)

void isImported( )

Info

Method isOfType (line 246)

boolean isOfType( RDFResource $type)

Checks if this resource is of a specific type.

Parameters

  • RDFResource $type:

Info

Method listClasses (line 539)

array listClasses( )

Returns an array of all classes for the given instance.

Each class will be an RDFSClass.

Info

  • return - Array of all classes for the given instance.

Method listComments (line 90)

string listComments( [ $language = NULL])

Returns an array of comments of this resource indexed by their language

Parameters

  • $language:

Info

  • return - comment of the resource

Method listDifferentFrom (line 183)

array listDifferentFrom( )

Returns an array of RDFSResources declared to be "owl:differentFrom" this resource.

Info

  • return - An array of RDFSResources.

Method listLabels (line 132)

array listLabels( [ $language = NULL])

Returns the labels of this resource

Parameters

  • $language:

Info

  • return - of labels attached to this resource

Method listLabelsPlain (line 142)

array listLabelsPlain( [string $prefix = ''], [string $suffix = ''])

TODO: Beschreibung

Parameters

  • string $prefix:
  • string $suffix:

Info

  • return - of labels attached to this resource

Method listLists (line 565)

array listLists( )

Returns a list of nodes representing lists the resource is part of

Info

  • return - List of nodes representing lists the resource is part of

Method listLiteralPropertyValues (line 369)

void listLiteralPropertyValues( RDFSResource $property, [string $language = NULL], [string $datatype = NULL])

Returns literal property values of this resource and property $property which macht the given language and datatype (NULL matches arbitrary ones).

Parameters

  • RDFSResource $property:
  • string $language:
  • string $datatype:

Info

Method listLiteralPropertyValuesPlain (line 381)

void listLiteralPropertyValuesPlain( $property, [ $language = NULL], [ $datatype = NULL])

Parameters

  • $property:
  • $language:
  • $datatype:

Info

Method listPropertyValues (line 326)

array listPropertyValues( [RDFSResource $property = NULL], [string $class = NULL])

Returns an array of nodes (resources or literals) which are values of the property $property for this resource.

Parameters

  • RDFSResource $property:
  • string $class: The class which the values should be instances of.

Info

  • return - An array of nodes which occur as property values.

Method listPropertyValuesObject (line 338)

void listPropertyValuesObject( $property, [ $class = NULL])

Parameters

  • $property:
  • $class:

Info

Method listPropertyValuesSymmetric (line 341)

void listPropertyValuesSymmetric( &$property, [ $class = NULL])

Parameters

  • &$property:
  • $class:

Info

Method listPropertyValuesTransitive (line 347)

void listPropertyValuesTransitive( $property, [ $class = NULL], [ $done = array()])

Parameters

  • $property:
  • $class:
  • $done:

Info

Method listSameAs (line 165)

array listSameAs( )

Returns an array of RDFSResources declared to be "owl:sameAs" this resource.

Info

  • return - An array of RDFSResources.

Method remove (line 203)

void remove( )

Removes this resource from the ontology by deleting any statements that refer to it. If this resource is a property, this method will not remove instances of the property from the model.

Info

Method removePropertyValues (line 399)

void removePropertyValues( $property)

Parameters

  • $property:

Info

Method removeType (line 286)

void removeType( RDFResource $type)

Removes the type of this resource.

Parameters

  • RDFResource $type:

Info

Method rename (line 296)

boolean rename( string $newuri, [ $checkIfNewuriExists = true])

Renames this resource.

Parameters

  • string $newuri: New name URI for this resource
  • $checkIfNewuriExists:

Info

  • return - If $newuri is an existing URI return false, else rename this resource an return true

Method setClass (line 557)

void setClass( $classes, RDFSClass $class)

Sets this instance to be an instance of $class.

Parameters

  • RDFSClass $class: The new RDFSClass for the instance.
  • $classes:

Info

Method setComment (line 101)

void setComment( $comment $comment, [ $language = ''])

Sets the comment for this resource

Parameters

  • $comment $comment:
  • $language:

Info

Method setDifferentFrom (line 193)

void setDifferentFrom( array $values)

Declares the RDFSResources in $values to be "owl:differentFrom" as this resource.

Parameters

  • array $values: Array of RDFSResources.

Info

Method setLabel (line 121)

void setLabel( $label $label, [$language $language = NULL])

Sets the label of this resource in specified language

Parameters

  • $label $label:
  • $language $language:

Info

Method setPropertyValue (line 396)

void setPropertyValue( RDFSResource $property, Node $value)

Removes all property values of $property which do not have the value $value. If a property value with value $value does not already exist it will be added.

Parameters

  • RDFSResource $property: The property to be set.
  • Node $value: The value of the property.

Info

Method setPropertyValues (line 415)

void setPropertyValues( RDFSResource $property, [ $values = array()], [ $language = NULL], [ $datatype = NULL], [ $newLang = NULL], [ $newDtype = NULL], Node $value, boolean $valuesAreLiterals)

Removes all property values of $property which do not have a value included in $values. If a value included in $values does not already exist (as property value) it will be added.

Parameters

  • RDFSResource $property: The property to be set.
  • Node $value: The value of the property.
  • boolean $valuesAreLiterals:
  • $values:
  • $language:
  • $datatype:
  • $newLang:
  • $newDtype:

Info

Method setPropertyValuesObject (line 470)

void setPropertyValuesObject( $property, [ $values = array()])

Parameters

  • $property:
  • $values:

Info

Method setPropertyValuesSymmetric (line 484)

void setPropertyValuesSymmetric( $property, [ $values = array()])

Parameters

  • $property:
  • $values:

Info

Method setSameAs (line 174)

void setSameAs( array $values)

Declares the RDFSResources in $values to be "owl:sameAs" as this resource.

Parameters

  • array $values: Array of RDFSResources.

Info

Method setType (line 277)

void setType( RDFResource $type)

Sets the type of this resource.

Parameters

  • RDFResource $type:

Info

Method type (line 259)

boolean type( [RDFResource $type = NULL], [boolean $bool = NULL])

Sets or unsets the type of this resource. If only one parameter is given the present type of this resource will be returned.

Parameters

  • RDFResource $type:
  • boolean $bool: If bool isset to true the type will be set, else it will be unset.

Info

Inherited Variables

Inherited Class Variable Summary

Inherited Methods

Inherited Method Summary


Documentation generated on Tue, 07 Nov 2006 13:07:12 +0100 by phpDocumentor 1.3.0