PHP | addLabel(unknown $label, string $language) |
---|
Adds a label to this resource
Arguments
PHP | boolean equals(unknown $that) |
---|
Checks if the resource equals another resource. Two resources are equal, if they have the same URI
Arguments
PHP | getDefiningModel(boolean $includeSubClasses, boolean $includeProperties, boolean $includeInstances) |
---|
Arguments
PHP | string getLabelForLanguage(string $language) |
---|
Returns the label for a language. If no label is available for the language in this resource return NULL.
Arguments
Return
The label attached to this resource or NULL.
PHP | getLiteralPropertyValue(unknown $property, unknown $language, unknown $datatype) |
---|
Arguments
PHP | rdfsmodel getModel() |
---|
Get the model which the resource belongs to.
Return
Model the Resource belongs to
PHP | getPropertyValue(unknown $property, string $class) |
---|
Arguments
PHP | boolean isOfType(rdfresource $type) |
---|
Checks if this resource is of a specific type.
Arguments
PHP | string listComments(unknown $language) |
---|
Returns an array of comments of this resource indexed by their language
Arguments
Return
comment of the resource
PHP | array listDifferentFrom() |
---|
Returns an array of RDFSResources declared to be "owl:differentFrom" this resource.
Return
An array of RDFSResources.
PHP | array listLabels(unknown $language) |
---|
Returns the labels of this resource
Arguments
Return
of labels attached to this resource
PHP | array listLabelsPlain(string $prefix, string $suffix) |
---|
TODO: Beschreibung
Arguments
Return
of labels attached to this resource
PHP | listLiteralPropertyValues(rdfsresource $property, string $language, string $datatype) |
---|
Returns literal property values of this resource and property $property which macht the given language and datatype (NULL matches arbitrary ones).
Arguments
PHP | listLiteralPropertyValuesPlain(unknown $property, unknown $language, unknown $datatype) |
---|
Arguments
PHP | array listPropertyValues(rdfsresource $property, string $class) |
---|
Returns an array of nodes (resources or literals) which are values of the property $property for this resource.
Arguments
The class which the values should be instances of.
Return
An array of nodes which occur as property values.
PHP | listPropertyValuesObject(unknown $property, string $class) |
---|
Arguments
PHP | listPropertyValuesSymmetric(unknown $property, string $class) |
---|
Arguments
PHP | listPropertyValuesTransitive(unknown $property, string $class, array $done) |
---|
Arguments
PHP | array listSameAs() |
---|
Returns an array of RDFSResources declared to be "owl:sameAs" this resource.
Return
An array of RDFSResources.
PHP | 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.
PHP | boolean rename(string $newuri) |
---|
Renames this resource.
Arguments
New name URI for this resource
Return
If $newuri is an existing URI return false, else rename this resource an return true
PHP | setComment(unknown $comment, string $language) |
---|
Sets the comment for this resource
Arguments
PHP | setDifferentFrom(array $values) |
---|
Declares the RDFSResources in $values to be "owl:differentFrom" as this resource.
Arguments
Array of RDFSResources.
PHP | setLabel(unknown $label, unknown $language) |
---|
Sets the label of this resource in specified language
Arguments
PHP | 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.
Arguments
The property to be set.
The value of the property.
PHP | setPropertyValues(rdfsresource $property, array $values, unknown $language, unknown $datatype, unknown $newLang, unknown $newDtype) |
---|
function removePropertyValues($property,$language=false,$datatype=NULL) { $this->setPropertyValues($property,array(),$language,$datatype); }
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.
Arguments
The property to be set.
PHP | setPropertyValuesObject(unknown $property, array $values) |
---|
Arguments
PHP | setPropertyValuesSymmetric(unknown $property, array $values) |
---|
Arguments
PHP | setSameAs(array $values) |
---|
Declares the RDFSResources in $values to be "owl:sameAs" as this resource.
Arguments
Array of RDFSResources.
PHP | boolean type(rdfresource $type, boolean $bool) |
---|
Sets or unsets the type of this resource. If only one parameter is given the present type of this resource will be returned.
Arguments
If bool isset to true the type will be set, else it will be unset.