---
name: "rdfGetElementType"
section: "3"
platform: "linux"
package: "libgnurdf-dev"
version: "0.3.0-3"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/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)](/rdfGetElementNamespace/3.md), [rdfGetElementPropertyName(3)](/rdfGetElementPropertyName/3.md), [rdfGetElementResource(3)](/rdfGetElementResource/3.md), rdfGetElementSchema(3), [rdfGetElementValue(3)](/rdfGetElementValue/3.md), [rdfSetElementResource(3)](/rdfSetElementResource/3.md), [rdfSetElementValue(3)](/rdfSetElementValue/3.md)
