addLabel| PHP | addLabel(unknown $label, string $language) |
|---|
Adds a label to this resource
Arguments
equals| PHP | boolean equals(unknown $that) |
|---|
Checks if the resource equals another resource. Two resources are equal, if they have the same URI
Arguments
getDefiningModel| PHP | getDefiningModel(boolean $includeSubClasses, boolean $includeProperties, boolean $includeInstances) |
|---|
Arguments
getLabelForLanguage| 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.
getLiteralPropertyValue| PHP | getLiteralPropertyValue(unknown $property, unknown $language, unknown $datatype) |
|---|
Arguments
getModel| PHP | rdfsmodel getModel() |
|---|
Get the model which the resource belongs to.
Return
Model the Resource belongs to
getPropertyValue| PHP | getPropertyValue(unknown $property, string $class) |
|---|
Arguments
isOfType| PHP | boolean isOfType(rdfresource $type) |
|---|
Checks if this resource is of a specific type.
Arguments
listComments| PHP | string listComments(unknown $language) |
|---|
Returns an array of comments of this resource indexed by their language
Arguments
Return
comment of the resource
listDifferentFrom| PHP | array listDifferentFrom() |
|---|
Returns an array of RDFSResources declared to be "owl:differentFrom" this resource.
Return
An array of RDFSResources.
listLabels| PHP | array listLabels(unknown $language) |
|---|
Returns the labels of this resource
Arguments
Return
of labels attached to this resource
listLabelsPlain| PHP | array listLabelsPlain(string $prefix, string $suffix) |
|---|
TODO: Beschreibung
Arguments
Return
of labels attached to this resource
listLiteralPropertyValues| 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
listLiteralPropertyValuesPlain| PHP | listLiteralPropertyValuesPlain(unknown $property, unknown $language, unknown $datatype) |
|---|
Arguments
listPropertyValues| 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.
listPropertyValuesObject| PHP | listPropertyValuesObject(unknown $property, string $class) |
|---|
Arguments
listPropertyValuesSymmetric| PHP | listPropertyValuesSymmetric(unknown $property, string $class) |
|---|
Arguments
listPropertyValuesTransitive| PHP | listPropertyValuesTransitive(unknown $property, string $class, array $done) |
|---|
Arguments
listSameAs| PHP | array listSameAs() |
|---|
Returns an array of RDFSResources declared to be "owl:sameAs" this resource.
Return
An array of RDFSResources.
remove| 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.
rename| 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
setComment| PHP | setComment(unknown $comment, string $language) |
|---|
Sets the comment for this resource
Arguments
setDifferentFrom| PHP | setDifferentFrom(array $values) |
|---|
Declares the RDFSResources in $values to be "owl:differentFrom" as this resource.
Arguments
Array of RDFSResources.
setLabel| PHP | setLabel(unknown $label, unknown $language) |
|---|
Sets the label of this resource in specified language
Arguments
setPropertyValue| 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.
setPropertyValues| 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.
setPropertyValuesObject| PHP | setPropertyValuesObject(unknown $property, array $values) |
|---|
Arguments
setPropertyValuesSymmetric| PHP | setPropertyValuesSymmetric(unknown $property, array $values) |
|---|
Arguments
setSameAs| PHP | setSameAs(array $values) |
|---|
Declares the RDFSResources in $values to be "owl:sameAs" as this resource.
Arguments
Array of RDFSResources.
type| 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.