set_relation


Description:

public void set_relation (string property_uri, Resource resource)

Sets a resource property as a `TrackerResource`.

Replaces any previous value.

This method applies to properties with a [rdfs:range](rdf-ontology.html#rdfs:range) that points to a non-literal class (i.e. a subclass of [rdfs:Resource](rdf-ontology.html#rdfs:Resource)).

This function produces similar RDF to [method@Resource.set_uri], although in this function the URI will depend on the identifier set on resource.

Parameters:

this

the `TrackerResource`

property_uri

a string identifying the property to modify

resource

the property object