AgsTurtle

AgsTurtle — Terse RDF Triple Language

Functions

Properties

gchar * filename Read / Write
gpointer xml-doc Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── AgsTurtle

Includes

#include <ags/lib/ags_turtle.h>

Description

The AgsTurtle object converts Terse RDF Triple Language files into XML.

Functions

ags_turtle_read_iriref ()

gchar *
ags_turtle_read_iriref (gchar *offset,
                        gchar *end_ptr);

Read iriref value.

Parameters

offset

the string pointer

 

end_ptr

the end of offset

 

Returns

a string on success otherwise NULL

Since: 0.7.4


ags_turtle_read_pname_ns ()

gchar *
ags_turtle_read_pname_ns (gchar *offset,
                          gchar *end_ptr);

Read prefixed-name namespace value.

Parameters

offset

the string pointer

 

end_ptr

the end of offset

 

Returns

a string on success otherwise NULL

Since: 0.7.4


ags_turtle_read_pname_ln ()

gchar *
ags_turtle_read_pname_ln (gchar *offset,
                          gchar *end_ptr);

Read prefixed-name localized name value.

Parameters

offset

the string pointer

 

end_ptr

the end of offset

 

Returns

a string on success otherwise NULL

Since: 0.7.4


ags_turtle_read_blank_node_label ()

gchar *
ags_turtle_read_blank_node_label (gchar *offset,
                                  gchar *end_ptr);

Read blank node label value.

Parameters

offset

the string pointer

 

end_ptr

the end of offset

 

Returns

a string on success otherwise NULL

Since: 0.7.4


ags_turtle_read_langtag ()

gchar *
ags_turtle_read_langtag (gchar *offset,
                         gchar *end_ptr);

Read langtag value.

Parameters

offset

the string pointer

 

end_ptr

the end of offset

 

Returns

a string on success otherwise NULL

Since: 0.7.4


ags_turtle_read_boolean ()

gchar *
ags_turtle_read_boolean (gchar *offset,
                         gchar *end_ptr);

Read boolean value.

Parameters

offset

the string pointer

 

end_ptr

the end of offset

 

Returns

a string on success otherwise NULL

Since: 0.7.4


ags_turtle_read_integer ()

gchar *
ags_turtle_read_integer (gchar *offset,
                         gchar *end_ptr);

Read integer value.

Parameters

offset

the string pointer

 

end_ptr

the end of offset

 

Returns

a string on success otherwise NULL

Since: 0.7.4


ags_turtle_read_decimal ()

gchar *
ags_turtle_read_decimal (gchar *offset,
                         gchar *end_ptr);

Read decimal value.

Parameters

offset

the string pointer

 

end_ptr

the end of offset

 

Returns

a string on success otherwise NULL

Since: 0.7.4


ags_turtle_read_double ()

gchar *
ags_turtle_read_double (gchar *offset,
                        gchar *end_ptr);

Read double value.

Parameters

offset

the string pointer

 

end_ptr

the end of offset

 

Returns

a string on success otherwise NULL

Since: 0.7.4


ags_turtle_read_exponent ()

gchar *
ags_turtle_read_exponent (gchar *offset,
                          gchar *end_ptr);

Read exponent value.

Parameters

offset

the string pointer

 

end_ptr

the end of offset

 

Returns

a string on success otherwise NULL

Since: 0.7.4


ags_turtle_read_string ()

gchar *
ags_turtle_read_string (gchar *offset,
                        gchar *end_ptr);

Read string value.

Parameters

offset

the string pointer

 

end_ptr

the end of offset

 

Returns

a string on success otherwise NULL

Since: 0.7.4


ags_turtle_read_string_literal_quote ()

gchar *
ags_turtle_read_string_literal_quote (gchar *offset,
                                      gchar *end_ptr);

Read string literal quote value.

Parameters

offset

the string pointer

 

end_ptr

the end of offset

 

Returns

a string on success otherwise NULL

Since: 0.7.4


ags_turtle_read_string_literal_single_quote ()

gchar *
ags_turtle_read_string_literal_single_quote
                               (gchar *offset,
                                gchar *end_ptr);

Read string literal single quote value.

Parameters

offset

the string pointer

 

end_ptr

the end of offset

 

Returns

a string on success otherwise NULL

Since: 0.7.4


ags_turtle_read_string_literal_long_quote ()

gchar *
ags_turtle_read_string_literal_long_quote
                               (gchar *offset,
                                gchar *end_ptr);

Read string literal long quote value.

Parameters

offset

the string pointer

 

end_ptr

the end of offset

 

Returns

a string on success otherwise NULL

Since: 0.7.4


ags_turtle_read_string_literal_long_single_quote ()

gchar *
ags_turtle_read_string_literal_long_single_quote
                               (gchar *offset,
                                gchar *end_ptr);

Read string literal long single quote value.

Parameters

offset

the string pointer

 

end_ptr

the end of offset

 

Returns

a string on success otherwise NULL

Since: 0.7.4


ags_turtle_read_uchar ()

gchar *
ags_turtle_read_uchar (gchar *offset,
                       gchar *end_ptr);

Read uchar value.

Parameters

offset

the string pointer

 

end_ptr

the end of offset

 

Returns

a string on success otherwise NULL

Since: 0.7.4


ags_turtle_read_echar ()

gchar *
ags_turtle_read_echar (gchar *offset,
                       gchar *end_ptr);

Read echar value.

Parameters

offset

the string pointer

 

end_ptr

the end of offset

 

Returns

a string on success otherwise NULL

Since: 0.7.4


ags_turtle_read_ws ()

gchar *
ags_turtle_read_ws (gchar *offset,
                    gchar *end_ptr);

Read ws value.

Parameters

offset

the string pointer

 

end_ptr

the end of offset

 

Returns

a string on success otherwise NULL

Since: 0.7.4


ags_turtle_read_anon ()

gchar *
ags_turtle_read_anon (gchar *offset,
                      gchar *end_ptr);

Read anon value.

Parameters

offset

the string pointer

 

end_ptr

the end of offset

 

Returns

a string on success otherwise NULL

Since: 0.7.4


ags_turtle_read_pn_chars_base ()

gchar *
ags_turtle_read_pn_chars_base (gchar *offset,
                               gchar *end_ptr);

Read prefixed-name chars base value.

Parameters

offset

the string pointer

 

end_ptr

the end of offset

 

Returns

a string on success otherwise NULL

Since: 0.7.4


ags_turtle_read_pn_chars_u ()

gchar *
ags_turtle_read_pn_chars_u (gchar *offset,
                            gchar *end_ptr);

Read prefixed-name chars underscore value.

Parameters

offset

the string pointer

 

end_ptr

the end of offset

 

Returns

a string on success otherwise NULL

Since: 0.7.4


ags_turtle_read_pn_chars ()

gchar *
ags_turtle_read_pn_chars (gchar *offset,
                          gchar *end_ptr);

Read prefixed-name chars value.

Parameters

offset

the string pointer

 

end_ptr

the end of offset

 

Returns

a string on success otherwise NULL

Since: 0.7.4


ags_turtle_read_pn_prefix ()

gchar *
ags_turtle_read_pn_prefix (gchar *offset,
                           gchar *end_ptr);

Read prefixe-name prefix value.

Parameters

offset

the string pointer

 

end_ptr

the end of offset

 

Returns

a string on success otherwise NULL

Since: 0.7.4


ags_turtle_read_pn_local ()

gchar *
ags_turtle_read_pn_local (gchar *offset,
                          gchar *end_ptr);

Read prefixed-name local value.

Parameters

offset

the string pointer

 

end_ptr

the end of offset

 

Returns

a string on success otherwise NULL

Since: 0.7.4


ags_turtle_read_plx ()

gchar *
ags_turtle_read_plx (gchar *offset,
                     gchar *end_ptr);

Read plx value.

Parameters

offset

the string pointer

 

end_ptr

the end of offset

 

Returns

a string on success otherwise NULL

Since: 0.7.4


ags_turtle_read_percent ()

gchar *
ags_turtle_read_percent (gchar *offset,
                         gchar *end_ptr);

Read percent value.

Parameters

offset

the string pointer

 

end_ptr

the end of offset

 

Returns

a string on success otherwise NULL

Since: 0.7.4


ags_turtle_read_hex ()

gchar *
ags_turtle_read_hex (gchar *offset,
                     gchar *end_ptr);

Read hex value.

Parameters

offset

the string pointer

 

end_ptr

the end of offset

 

Returns

a string on success otherwise NULL

Since: 0.7.4


ags_turtle_read_pn_local_esc ()

gchar *
ags_turtle_read_pn_local_esc (gchar *offset,
                              gchar *end_ptr);

Read prefixed name local escapes.

Parameters

offset

the string pointer

 

end_ptr

the end of offset

 

Returns

a string on success otherwise NULL

Since: 0.7.4


ags_turtle_find_xpath ()

GList *
ags_turtle_find_xpath (AgsTurtle *turtle,
                       gchar *xpath);

Lookup XPath expression withing turtle .

Parameters

turtle

the AgsTurtle

 

xpath

a XPath expression as string

 

Returns

a GList containing xmlNode

Since: 0.4.3


ags_turtle_find_xpath_with_context_node ()

GList *
ags_turtle_find_xpath_with_context_node
                               (AgsTurtle *turtle,
                                gchar *xpath,
                                xmlNode *context_node);

Lookup XPath expression from context_node withing turtle .

Parameters

turtle

the AgsTurtle

 

xpath

a XPath expression as string

 

context_node

a xmlNode

 

Returns

a GList containing xmlNode

Since: 0.4.3


ags_turtle_string_convert ()

gchar *
ags_turtle_string_convert (AgsTurtle *turtle,
                           gchar *str);


ags_turtle_load ()

xmlDoc *
ags_turtle_load (AgsTurtle *turtle,
                 GError **error);

Loads a RDF triple file into an XML Document.

Parameters

turtle

the AgsTurtle

 

error

a pointer to a GError

 

Returns

a xmlDoc pointer

Since: 0.4.3


ags_turtle_new ()

AgsTurtle *
ags_turtle_new (gchar *filename);

Instantiate a new AgsTurtle.

Parameters

filename

the filename as string

 

Returns

the new instance

Since: 0.4.3

Types and Values

AGS_TURTLE_DEFAULT_ENCODING

#define AGS_TURTLE_DEFAULT_ENCODING "UTF-8\0"


AGS_TURTLE_DEFAULT_VERSION

#define AGS_TURTLE_DEFAULT_VERSION "0.7.3\0"


enum AgsTurtleFlags

Members

AGS_TURTLE_TOLOWER

   

Property Details

The “filename” property

  “filename”                 gchar *

The filename this turtle is assigned to.

Flags: Read / Write

Default value: NULL

Since: 0.4.3


The “xml-doc” property

  “xml-doc”                  gpointer

The xml document turtle was converted to.

Flags: Read / Write

Since: 0.7.3