---
name: "rdfBagAddValue"
section: "3"
platform: "linux"
package: "libgnurdf-dev"
version: "0.3.0-3"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/rdfBagAddValue"
---

# rdfBagAddValue(3)

Adds a property to the bag container.

## NAME

rdfBagAddValue - Adds a property to the bag container.

## SYNOPSIS

**#include \<gnurdf.h\>**

**RdfElement \*rdfBagAddValue(RdfBag \*bag, const char \*property,** **RdfNamespace \*ns, const char \*value, RdfElement \*element);**

## PARAMETERS

- **bag**

  The bag container.

- **property**

  The property's name.

- **ns**

  The property's namespace.

- **value**

  The value of the property, if not NULL.

- **element**

  The property's element, if not NULL.

## DESCRIPTION

Adds a property to the bag container.

## RETURNS

The new element.

## SEE ALSO

[rdfAltAddValue(3)](/rdfAltAddValue/3.md), [rdfCreateAlt(3)](/rdfCreateAlt/3.md), [rdfCreateBag(3)](/rdfCreateBag/3.md), [rdfCreateSeq(3)](/rdfCreateSeq/3.md), [rdfSeqAddValue(3)](/rdfSeqAddValue/3.md)
