Description
Resource
|
--DefaultRDFSResource
|
--RDFSResource
|
--DefaultRDFSClass
Located in File: /rdfsapi/class.php
Class that represents an RDFS ontology node characterising a class description.
- access: - public
- version: - $Id: class.php,v 1.95 2006/03/06 02:19:04 soerenauer Exp $
- copyright: - Copyright (c) 2004
- author: - Sören Auer <soeren@auer.cx>
Classes extended from DefaultRDFSClass:
- Class that represents an RDFS ontology node characterising a class description.
Method Detail
Summary:
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])
Array
listInstances
([
int $start =
0], [
int $count =
0], [
int $erg =
0])
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)
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
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
Info
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
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
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.
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