Method
TrackerResourceadd_take_relation
Declaration [src]
void
tracker_resource_add_take_relation (
TrackerResource* self,
const char* property_uri,
TrackerResource* resource
)
Description [src]
Adds a resource property as a TrackerResource. Previous values for the same property are kept.
Takes ownership on the given resource.
This method is meant to RDF properties allowing multiple values, see nrl:maxCardinality.
This method applies to properties with a rdfs:range that points to a non-literal class (i.e. a subclass of rdfs:Resource).
This function produces similar RDF to tracker_resource_add_uri(),
although in this function the URI will depend on the identifier
set on resource. This function takes ownership of resource.
Parameters
property_uri |
const char* |
A string identifying the property to modify. |
|
| The data is owned by the caller of the function. | |
| The string is a NUL terminated UTF-8 string. | |
resource |
TrackerResource |
The property object. |
|
| The instance takes ownership of the data, and is responsible for freeing it. |