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: 1.0.0


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: 1.0.0


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: 1.0.0


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: 1.0.0


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: 1.0.0


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: 1.0.0


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: 1.0.0


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: 1.0.0


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: 1.0.0


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: 1.0.0


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: 1.0.0


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: 1.0.0


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: 1.0.0


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: 1.0.0


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: 1.0.0


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: 1.0.0


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: 1.0.0


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: 1.0.0


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: 1.0.0


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: 1.0.0


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: 1.0.0


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: 1.0.0


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: 1.0.0


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: 1.0.0


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: 1.0.0


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: 1.0.0


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: 1.0.0


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: 1.0.0


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: 1.0.0


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: 1.0.0


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: 1.0.0


ags_turtle_new ()

AgsTurtle *
ags_turtle_new (gchar *filename);

Instantiate a new AgsTurtle.

Parameters

filename

the filename as string

 

Returns

the new instance

Since: 1.0.0


AGS_IS_TURTLE()

#define AGS_IS_TURTLE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_TURTLE))

AGS_TURTLE()

#define AGS_TURTLE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_TURTLE, AgsTurtle))

AGS_TURTLE_CLASS()

#define AGS_TURTLE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_TURTLE, AgsTurtleClass))

AGS_TURTLE_GET_CLASS()

#define AGS_TURTLE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_TURTLE, AgsTurtleClass))

ags_turtle_get_type ()

GType
ags_turtle_get_type (void);

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

Enum values to control the behavior or indicate internal state of AgsTurtle by enable/disable as sync_flags.

Members

AGS_TURTLE_TOLOWER

make all tags and attributes lower case

 

AGS_TYPE_TURTLE

#define AGS_TYPE_TURTLE                (ags_turtle_get_type())

struct AgsTurtle

struct AgsTurtle;

struct AgsTurtleClass

struct AgsTurtleClass {
  GObjectClass object;
};

Property Details

The “filename” property

  “filename”                 gchar *

The assigned filename.

Flags: Read / Write

Default value: NULL

Since: 1.0.0


The “xml-doc” property

  “xml-doc”                  gpointer

The assigned xml-doc.

Flags: Read / Write

Since: 1.0.0