[ Expand All ] [ Collapse All ] - [ Properties (1) ] [ Methods (44) ] - [ Legend ]

DefaultRDFSResource Class

Object
Node
Resource
DefaultRDFSResource

Properties implemented by DefaultRDFSResource
public method model

A reference to the RDFSModel this resource belongs to.

Methods implemented by DefaultRDFSResource
public method addLabel

PHPaddLabel(unknown $label, string $language)

Adds a label to this resource

Arguments

constructor DefaultRDFSResource

PHPDefaultRDFSResource(string $uri, rdfsmodel $model)

Constructor

Arguments

public method definingModels

PHPdefiningModels()

public method equals

PHPboolean equals(unknown $that)

Checks if the resource equals another resource. Two resources are equal, if they have the same URI

Arguments

public method getComment

PHPgetComment(unknown $language)

Arguments

public method getDefiningModel

PHPgetDefiningModel(boolean $includeSubClasses, boolean $includeProperties, boolean $includeInstances)

Arguments

public method getLabel

PHPgetLabel()

public method getLabelForLanguage

PHPstring 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.

public method getLiteralPropertyValue

PHPgetLiteralPropertyValue(unknown $property, unknown $language, unknown $datatype)

Arguments

public method getLocalName

PHPgetLocalName()

public method getLocalNameFast

PHPgetLocalNameFast()

public method getModel

PHPrdfsmodel getModel()

Get the model which the resource belongs to.

Return

Model the Resource belongs to

public method getPropertyValue

PHPgetPropertyValue(unknown $property, string $class)

Arguments

public method getType

PHPgetType()

public method hasPropertyValue

PHPhasPropertyValue(unknown $property, unknown $value)

Arguments

public method hasPropertyValueTransitive

PHPhasPropertyValueTransitive(unknown $property, unknown $value)

Arguments

public method isBlankNode

PHPisBlankNode()

public method isImported

PHPisImported()

public method isOfType

PHPboolean isOfType(rdfresource $type)

Checks if this resource is of a specific type.

Arguments

public method listComments

PHPstring listComments(unknown $language)

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

Arguments

Return

comment of the resource

public method listDifferentFrom

PHParray listDifferentFrom()

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

Return

An array of RDFSResources.

public method listLabels

PHParray listLabels(unknown $language)

Returns the labels of this resource

Arguments

Return

of labels attached to this resource

public method listLabelsPlain

PHParray listLabelsPlain(string $prefix, string $suffix)

TODO: Beschreibung

Arguments

Return

of labels attached to this resource

public method listLiteralPropertyValues

PHPlistLiteralPropertyValues(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

public method listLiteralPropertyValuesPlain

PHPlistLiteralPropertyValuesPlain(unknown $property, unknown $language, unknown $datatype)

Arguments

public method listPropertyValues

PHParray listPropertyValues(rdfsresource $property, string $class)

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

Arguments

Return

An array of nodes which occur as property values.

public method listPropertyValuesObject

PHPlistPropertyValuesObject(unknown $property, string $class)

Arguments

public method listPropertyValuesSymmetric

PHPlistPropertyValuesSymmetric(unknown $property, string $class)

Arguments

public method listPropertyValuesTransitive

PHPlistPropertyValuesTransitive(unknown $property, string $class, array $done)

Arguments

public method listSameAs

PHParray listSameAs()

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

Return

An array of RDFSResources.

public method remove

PHPvoid 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.

public method removePropertyValues

PHPremovePropertyValues(unknown $property)

Arguments

public method removeType

PHPremoveType(rdfresource $type)

Removes the type of this resource.

Arguments

public method rename

PHPboolean rename(string $newuri)

Renames this resource.

Arguments

Return

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

public method setComment

PHPsetComment(unknown $comment, string $language)

Sets the comment for this resource

Arguments

public method setDifferentFrom

PHPsetDifferentFrom(array $values)

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

Arguments

public method setLabel

PHPsetLabel(unknown $label, unknown $language)

Sets the label of this resource in specified language

Arguments

public method setPropertyValue

PHPsetPropertyValue(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

public method setPropertyValues

PHPsetPropertyValues(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

public method setPropertyValuesObject

PHPsetPropertyValuesObject(unknown $property, array $values)

Arguments

public method setPropertyValuesSymmetric

PHPsetPropertyValuesSymmetric(unknown $property, array $values)

Arguments

public method setSameAs

PHPsetSameAs(array $values)

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

Arguments

public method setType

PHPsetType(rdfresource $type)

Sets the type of this resource.

Arguments

public method type

PHPboolean 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

Generated by PHPEdit - Copyright © 1999-2004 - Sébastien Hordeaux - WaterProof SARL