An RDF Resource.
Resource instances, when created, are associated with a specific model. They support a range of methods, such as getProperty() and addProperty() which will access or modify that model. This enables the programmer to write code in a compact and easy style.
Located in /resModel/ResResource.php (line 22)
Object | --Node | --Resource | --ResResource
Class | Description |
---|---|
OntResource | Provides a common super-type for all of the abstractions in this ontology representation package. |
ResContainer | An RDF Container. |
ResList | Implementation of an rdf:Collection (rdf:List) Provides a convenience encapsulation for lists formed from chains of RDF statements arranged to form a head/tail cons-cell structure. |
ResProperty | An RDF Property. |
Constructor You can supply a uri
Add a property to this resource.
A statement with this resource as the subject, p as the predicate and o as the object is added to the model associated with this resource.
Checks if the resource equals another resource.
Two resources are equal, if they have the same URI
Get the reference to the assocoated model.
Answer some statement (this, p, O) in the associated model.
If there are several such statements, any one of them may be returned. If no such statements exist, null is returned.
Determine whether this resource has any values for a given property.
List all the values with the property p as statements in an array.
Delete all the statements with predicate p for this resource from its associated model.
Delete all the properties for this resource from the associated model.
Sets the reference to the assocoated model.
Set whether this resource is an anonymous resource
Inherited From Resource
Resource::Resource()
Resource::equals()
Resource::getLabel()
Resource::getLocalName()
Resource::getNamespace()
Resource::getURI()
Resource::toString()
Inherited From Object
Object::toString()
Documentation generated on Fri, 1 Jun 2007 16:51:38 +0200 by phpDocumentor 1.3.2