add_take_relation


Description:

public void add_take_relation (string property_uri, owned Resource resource)

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](nrl-ontology.html#nrl:maxCardinality).

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.add_uri], although in this function the URI will depend on the identifier set on resource. This function takes ownership of resource.

Parameters:

this

the `TrackerResource`

property_uri

a string identifying the property to modify

resource

the property object