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

# rdfGetElementResource(3)

Returns an element's resource.

## NAME

rdfGetElementResource - Returns an element's resource.

## SYNOPSIS

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

**char \*rdfGetElementResource(RdfElement \*element);**

## PARAMETERS

- The element containing the resource.

  ## DESCRIPTION

Returns the specified element's resource.

## RETURNS

The element's resource. This must be freed when no longer in use.

If the element does not have a resource, this will return NULL.

## SEE ALSO

[rdfGetElementNamespace(3)](/man/rdfGetElementNamespace/3.md), [rdfGetElementPropertyName(3)](/man/rdfGetElementPropertyName/3.md), rdfGetElementSchema(3), [rdfGetElementType(3)](/man/rdfGetElementType/3.md), [rdfGetElementValue(3)](/man/rdfGetElementValue/3.md), [rdfSetElementResource(3)](/man/rdfSetElementResource/3.md), [rdfSetElementValue(3)](/man/rdfSetElementValue/3.md)
