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

# rdfGetElementType(3)

Returns the type of the specified element.

## NAME

rdfGetElementType - Returns the type of the specified element.

## SYNOPSIS

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

**int rdfGetElementType(RdfElement \*element);**

## PARAMETERS

- **element**

  The element.

## DESCRIPTION

Returns the type of the specified element.

## RETURNS

RDF\_BAG if the property is an \<RDF:Bag\>.

RDF\_SEQ if the property is an \<RDF:Seq\>.

RDF\_ALT if the property is an \<RDF:Alt\>.

RDF\_DESC if the property is an \<RDF:Description\>.

0 if the property is a normal property.

\-1 if the property was not found.

## SEE ALSO

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