Class DefaultRDFSClass

(line 11)

Description

Resource
   |
   --DefaultRDFSResource
      |
      --RDFSResource
         |
         --DefaultRDFSClass

Located in File: /rdfsapi/class.php

Class that represents an RDFS ontology node characterising a class description.


Classes extended from DefaultRDFSClass:
Class that represents an RDFS ontology node characterising a class description.

Class Variables

Summary:

Class Constants

Summary:

Method Detail

Summary:
void addInstance (String $instance)
boolean addProperty (RDFSProperty $property)
void countInstancePropertyValues ( $property, [ $resourcesOnly = true], [ $minDistinctValues = 0])
RDFSInstance findInstance ([array $properties = array()], [string $compare = 'exact'])
Array findInstances ([array $properties = array()], [string $compare = 'exact'], [int $start = 0], [int $count = 0], [int $erg = 0])
array findInstancesRecursive ([array $properties = array()], [string $compare = 'exact'], [ $start = 0], [ $count = 0], [ $erg = 0])
RDFSInstance getInstance (string $uri)
void getSuperClass ()
boolean isSubClassOf (RDFSClass $class)
void isSuperClassRecursive ( $class)
array listInheritedProperties ([ $includeAnnotationProperties = false])
void listInstanceLabels ( $language)
void listInstancePropertyValues ($property $property, [ $resourcesOnly = true])
Array listInstances ([int $start = 0], [int $count = 0], [int $erg = 0])
Array listInstancesRecursive ([int $start = 0], [int $count = 0], [int $erg = 0])
Array listProperties ()
array listSubClasses ()
array listSuperClasses ()
void removeInstance (String $instance)
void removeInstances ()
boolean removeProperty (RDFSProperty $property)
void setProperties (array $properties)
void setSubClasses ( $values, array $subclasses)
void setSuperClasses ( $values, array $superclasses)

Method addInstance (line 539)

void addInstance( String $instance)

Create new instance

Parameters

  • String $instance: Local name of instance to create.

Info

Method addProperty (line 277)

boolean addProperty( RDFSProperty $property)

Add this class to the domain of the property.

Parameters

Info

  • return - Returns false if property does not exist.

Method addSubClass (line 527)

RDFSClass addSubClass( RDFSClass $subclass)

Add a sub-class of this class. If the subclass is a URI instead of a RDFSClass object - the subclass will first be created.

Parameters

  • RDFSClass $subclass: A class that is a sub-class of this class.

Info

  • return - The class created.

Method countInstancePropertyValues (line 224)

void countInstancePropertyValues( $property, [ $resourcesOnly = true], [ $minDistinctValues = 0])

Parameters

  • $property:
  • $resourcesOnly:
  • $minDistinctValues:

Info

Method countInstances (line 302)

int countInstances( )

Overridden in child classes as:

Returns the number of instances of this class.

Info

  • return - Number of instances for this class.

Method countInstancesOfSubclasses (line 310)

int countInstancesOfSubclasses( )

Returns the number of instances of this class and its sub-classes.

Info

  • return - Number of instances for this class and its sub-classes.

Method countInstancesRecursive (line 334)

int countInstancesRecursive( )

Returns the number of instances of this class and all its sub-classes.

Info

  • return - Number of instances of this class and all its sub-classes.

Method countSubClasses (line 18)

int countSubClasses( )

Returns number of all classes that are declared to be sub-classes of this class.

Info

  • return - Number of all declared sub-classes of this class.

Method countSubClassesRecursive (line 26)

int countSubClassesRecursive( )

Returns number of all classes this class is super-class for.

Info

  • return - Number of all sub-classes of this class.

Method findInstance (line 484)

RDFSInstance findInstance( [array $properties = array()], [string $compare = 'exact'])

Return one individual in the model that has this class among its types. If an array of PropertyURI=>Value is given, only individuals with the specified property values will be returned.

Parameters

  • array $properties: Array of PropertyURI=>Value pairs.
  • string $compare: Comparision method to be used - default is exact match.

Info

  • return - object.

Method findInstances (line 422)

Array findInstances( [array $properties = array()], [string $compare = 'exact'], [int $start = 0], [int $count = 0], [int $erg = 0])

Overridden in child classes as:

RDFSClass::findInstances()

Return an array of individuals in the model that have this class among their types. If an array of PropertyURI=>Value is given, only individuals with the specified property values will be returned.

Parameters

  • array $properties: Array of PropertyURI=>Value pairs.
  • string $compare: Comparision method to be used - default is exact match.
  • int $start: Return results starting with this row number.
  • int $count: Maximum number of records to return.
  • int $erg: Variable passed by reference which will be set to the overall number of records.

Info

  • return - of RDFSInstance objects.

Method findInstancesRecursive (line 498)

array findInstancesRecursive( [array $properties = array()], [string $compare = 'exact'], [ $start = 0], [ $count = 0], [ $erg = 0])

Return an array of individuals in the model that have this class or its sub-classes among their types. If an array of PropertyURI=>value pairs is given, only individuals with the specified property values will be returned.

Parameters

  • array $properties: Array of PropertyURI=>Value pairs.
  • string $compare: Comparision method to be used - default is exact match.
  • $start:
  • $count:
  • $erg:

Info

  • return - Array of RDFSInstance objects.

Method getInstance (line 514)

RDFSInstance getInstance( string $uri)

Return RDFSInstance object with specified URI.

If no RDFSInstance is found, return false.

Parameters

  • string $uri:

Info

  • return - or false.

Method getSuperClass (line 77)

void getSuperClass( )

Info

Method getSuperClassPath (line 80)

void getSuperClassPath( )

Info

Method isSubClassOf (line 53)

boolean isSubClassOf( RDFSClass $class)

Returns true if this class is a direct subclass of $class.

Parameters

  • RDFSClass $class: The class which this class should be sub-class of.

Info

Method isSuperClassRecursive (line 86)

void isSuperClassRecursive( $class)

Parameters

  • $class:

Info

Method listDirectProperties (line 128)

array listDirectProperties( )

Overridden in child classes as:

Returns an array of RDFSProperty objects directly attached to this class: i.e. the properties that have this class as domain.

Info

  • return - Array of RDFSProperty objects.

Method listInheritedAnnotationProperties (line 148)

void listInheritedAnnotationProperties( )

Info

Method listInheritedProperties (line 142)

array listInheritedProperties( [ $includeAnnotationProperties = false])

Returns an array of RDFSProperty objects inherited from super-classes to this class: i.e. the properties that have one of its super-classes as domain.

Parameters

  • $includeAnnotationProperties:

Info

  • return - Array of RDFSProperty objects.

Method listInstanceLabelLanguages (line 342)

array listInstanceLabelLanguages( )

Returns an array of all distinct label languages for instances of this class.

Info

  • return - All distinct label languages for instances of this class.

Method listInstanceLabelLanguagesRecursive (line 353)

void listInstanceLabelLanguagesRecursive( )

Info

Method listInstanceLabels (line 359)

void listInstanceLabels( $language)

Parameters

  • $language:

Info

Method listInstancePropertyValues (line 215)

void listInstancePropertyValues( $property $property, [ $resourcesOnly = true])

Lists all distinct values of $property assigned to instances of this class.

Parameters

  • $property $property:
  • $resourcesOnly:

Info

Method listInstances (line 389)

Array listInstances( [int $start = 0], [int $count = 0], [int $erg = 0])

Return an array of individuals in the model that have this class among their types.

Parameters

  • int $start: Return results starting with this row number.
  • int $count: Maximum number of records to return.
  • int $erg: Variable passed by reference which will be set to the overall number of records.

Info

  • return - of RDFSInstance objects.

Method listInstancesRecursive (line 402)

Array listInstancesRecursive( [int $start = 0], [int $count = 0], [int $erg = 0])

Return an array of individuals in the model that have this class or one of its sub-classes among their types.

Parameters

  • int $start: Return results starting with this row number.
  • int $count: Maximum number of records to return.
  • int $erg: Variable passed by reference which will be set to the overall number of records.

Info

  • return - of RDFSInstance objects.

Method listProperties (line 188)

Array listProperties( )

Returns an array of RDFSProperty objects inherited from super-classes or directly attached to this class: i.e. the properties that have this class, or optionally one of its super-classes, as domain.

Info

  • return - of RDFSProperty objects.

Method listPropertiesPlain (line 253)

Array listPropertiesPlain( )

Returns an array of local names of the RDFSProperty objects inherited from super-classes or directly attached to this class: i.e. the properties that have this class, or optionally one of its super-classes, as domain.

Info

  • return - of local names of RDFSProperty objects.

Method listPropertiesUsed (line 196)

array listPropertiesUsed( )

Overridden in child classes as:

Returns an array of property resource URIs which are set by instances of this class.

Info

  • return - Array of property resource URIs

Method listPropertiesUsedRecursive (line 203)

void listPropertiesUsedRecursive( )

Info

Method listSubClasses (line 35)

array listSubClasses( )

Returns all classes that are declared to be sub-classes of this class.

Info

  • return - All declared sub-classes of this class.

Method listSubClassesRecursive (line 61)

array listSubClassesRecursive( )

Returns all classes this class is super-class for.

Info

  • return - Array of all super-classes.

Method listSuperClasses (line 74)

array listSuperClasses( )

Overridden in child classes as:

Returns an array of all classes that are declared to be super-classes of this class. Each element of the array will be an RDFSClass.

Info

  • return - Array of all declared super-classes of this class.

Method listSuperClassesRecursive (line 97)

array listSuperClassesRecursive( )

Returns an array of RDFSCLass objects which are a superclass of this class or one of its superclasses.

Info

  • return - Array of RDFSClasses.

Method removeInstance (line 555)

void removeInstance( String $instance)

Removes a instance.

TODO: redundant?/broken?

Parameters

  • String $instance: Local name of instance to create.

Info

Method removeInstances (line 565)

void removeInstances( )

Deletes all instances of this class.

Info

Method removeProperty (line 290)

boolean removeProperty( RDFSProperty $property)

Remove the property from this class.

Parameters

Info

  • return - Returns false if property does not exist.

Method setProperties (line 267)

void setProperties( array $properties)

Add this class to the domain of the properties and remove it from all others.

FIXME - seems to be broken

Parameters

  • array $properties: Array of RDFSProperties.

Info

Method setSubClasses (line 44)

void setSubClasses( $values, array $subclasses)

Sets the direct subclasses of this class.

Parameters

  • array $subclasses: Array of RDFSClass objects, resource URIs or local names.
  • $values:

Info

Method setSuperClasses (line 110)

void setSuperClasses( $values, array $superclasses)

Sets the super classes of this class.

Parameters

  • array $superclasses: Array of RDFSClass objects, resource URIs or local names.
  • $values:

Info

Inherited Variables

Inherited Class Variable Summary

Inherited From Class DefaultRDFSResource

DefaultRDFSResource::$model - A reference to the RDFSModel this resource belongs to.

Inherited Methods

Inherited Method Summary

Inherited From Class DefaultRDFSResource

DefaultRDFSResource::DefaultRDFSResource() - Constructor

DefaultRDFSResource::addLabel() - Adds a label to this resource

DefaultRDFSResource::definingModels() -

DefaultRDFSResource::equals() - Checks if the resource equals another resource.

DefaultRDFSResource::getClass() - Returns an RDFSClass this instance is an instance of.

DefaultRDFSResource::getComment() -

DefaultRDFSResource::getDBId() -

DefaultRDFSResource::getDefiningModel() -

DefaultRDFSResource::getLabel() -

DefaultRDFSResource::getLabelForLanguage() - Returns the label for a language. If no label is available for the language in this resource return NULL.

DefaultRDFSResource::getLiteralPropertyValue() -

DefaultRDFSResource::getLocalName() -

DefaultRDFSResource::getLocalNameFast() -

DefaultRDFSResource::getModel() - Get the model which the resource belongs to.

DefaultRDFSResource::getPropertyValue() -

DefaultRDFSResource::getType() -

DefaultRDFSResource::hasPropertyValue() -

DefaultRDFSResource::hasPropertyValueTransitive() -

DefaultRDFSResource::isBlankNode() -

DefaultRDFSResource::isImported() -

DefaultRDFSResource::isOfType() - Checks if this resource is of a specific type.

DefaultRDFSResource::listClasses() - Returns an array of all classes for the given instance.

DefaultRDFSResource::listComments() - Returns an array of comments of this resource indexed by their language

DefaultRDFSResource::listDifferentFrom() - Returns an array of RDFSResources declared to be "owl:differentFrom" this resource.

DefaultRDFSResource::listLabels() - Returns the labels of this resource

DefaultRDFSResource::listLabelsPlain() - TODO: Beschreibung

DefaultRDFSResource::listLists() - Returns a list of nodes representing lists the resource is part of

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

DefaultRDFSResource::listLiteralPropertyValuesPlain() -

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

DefaultRDFSResource::listPropertyValuesObject() -

DefaultRDFSResource::listPropertyValuesSymmetric() -

DefaultRDFSResource::listPropertyValuesTransitive() -

DefaultRDFSResource::listSameAs() - Returns an array of RDFSResources declared to be "owl:sameAs" this resource.

DefaultRDFSResource::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.

DefaultRDFSResource::removePropertyValues() -

DefaultRDFSResource::removeType() - Removes the type of this resource.

DefaultRDFSResource::rename() - Renames this resource.

DefaultRDFSResource::setClass() - Sets this instance to be an instance of $class.

DefaultRDFSResource::setComment() - Sets the comment for this resource

DefaultRDFSResource::setDifferentFrom() - Declares the RDFSResources in $values to be "owl:differentFrom" as this resource.

DefaultRDFSResource::setLabel() - Sets the label of this resource in specified language

DefaultRDFSResource::setPropertyValue() - 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.

DefaultRDFSResource::setPropertyValues() - 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.

DefaultRDFSResource::setPropertyValuesObject() -

DefaultRDFSResource::setPropertyValuesSymmetric() -

DefaultRDFSResource::setSameAs() - Declares the RDFSResources in $values to be "owl:sameAs" as this resource.

DefaultRDFSResource::setType() - Sets the type of this resource.

DefaultRDFSResource::type() - Sets or unsets the type of this resource. If only one parameter is given the present type of this resource will be returned.



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