Main Page   File List   Globals  

description.h File Reference

Description functions. More...

#include <libgnurdf/types.h>

Go to the source code of this file.

Functions

RdfDescriptionrdfFirstDescription (RdfSchema *schema)
 Returns the first description in the schema. More...

RdfDescriptionrdfNextDescription (RdfDescription *desc)
 Returns the next description in the schema. More...

RdfDescriptionrdfAddDescription (RdfSchema *schema, const char *id, const char *about)
 Adds a description to the schema. More...

RdfDescriptionrdfGetDescriptionFromAbout (RdfSchema *schema, const char *about)
 Returns the description with the specified about URI. More...

RdfDescriptionrdfGetDescriptionFromId (RdfSchema *schema, const char *id)
 Returns the description with the specified ID. More...

void rdfSetDescriptionId (RdfDescription *desc, const char *id)
 Sets a description's ID. More...

char * rdfGetDescriptionId (RdfDescription *desc)
 Returns a description's ID. More...

void rdfSetDescriptionAbout (RdfDescription *desc, const char *about)
 Sets a description's About URI. More...

char * rdfGetDescriptionAbout (RdfDescription *desc)
 Returns a description's About URI. More...


Detailed Description

Description functions.

Id:
description.h,v 1.3 2001/08/23 08:51:22 chipx86 Exp
Copyright:
(C) 1999-2001 The GNUpdate Project.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.

You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.


Function Documentation

RdfDescription* rdfAddDescription RdfSchema   schema,
const char *    id,
const char *    about
 

Adds a description to the schema.

Parameters:
schema   The schema to add the description to.
id   The id of the new description.
about   The about URI of the new description.
Returns:
The new description.

RdfDescription* rdfFirstDescription RdfSchema   schema
 

Returns the first description in the schema.

Parameters:
schema   The schema containing the descriptions.
Returns:
The first description in the schema.
See also:
rdfNextDescription()

char* rdfGetDescriptionAbout RdfDescription   desc
 

Returns a description's About URI.

Note: The returned About URI must be freed.

Parameters:
schema   The document schema.
desc   The description containing the About URI.
Returns:
The About URI of the description.

RdfDescription* rdfGetDescriptionFromAbout RdfSchema   schema,
const char *    about
 

Returns the description with the specified about URI.

Parameters:
schema   The schema containing the descriptions.
about   The about URI to search for.
Returns:
The description, or NULL if not found.

RdfDescription* rdfGetDescriptionFromId RdfSchema   schema,
const char *    id
 

Returns the description with the specified ID.

Parameters:
schema   The schema containing the descriptions.
id   The ID to search for.
Returns:
The description, or NULL if not found.

char* rdfGetDescriptionId RdfDescription   desc
 

Returns a description's ID.

Note: The returned ID must be freed.

Parameters:
desc   The description containing the ID.
Returns:
The ID of the description.

RdfDescription* rdfNextDescription RdfDescription   desc
 

Returns the next description in the schema.

Parameters:
desc   The previous description.
Returns:
The next description.
See also:
rdfFirstDescription()

void rdfSetDescriptionAbout RdfDescription   desc,
const char *    about
 

Sets a description's About URI.

If this finds an About or about attributes (in that order), it will set that attribute. Otherwise, it will set the About attribute.

Parameters:
desc   The description.
about   The new About URI.

void rdfSetDescriptionId RdfDescription   desc,
const char *    id
 

Sets a description's ID.

Parameters:
desc   The description.
id   The new ID.


Generated on Thu Sep 20 16:12:08 2001 for libgnurdf by doxygen1.2.9-20010819 written by Dimitri van Heesch, © 1997-2001