Method
TrackerResourceadd_relation
Declaration [src]
void
tracker_resource_add_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.
This method is meant for 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 method produces similar RDF to tracker_resource_add_uri(),
although in this function the URI will depend on the identifier
set on resource.
Parameters
property_uri-
Type:
const char*A string identifying the property to modify.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. resource-
Type:
TrackerResourceThe property object.
The data is owned by the caller of the function.