Ags.Turtle

g Ags.Turtle Ags.Turtle GObject.Object GObject.Object GObject.Object->Ags.Turtle

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

match_anon (offset, end_ptr)

class

match_blank_node_label (offset, end_ptr)

class

match_boolean (offset, end_ptr)

class

match_decimal (offset, end_ptr)

class

match_double (offset, end_ptr)

class

match_echar (offset, end_ptr)

class

match_exponent (offset, end_ptr)

class

match_hex (offset, end_ptr)

class

match_integer (offset, end_ptr)

class

match_iriref (offset, end_ptr)

class

match_langtag (offset, end_ptr)

class

match_percent (offset, end_ptr)

class

match_plx (offset, end_ptr)

class

match_pn_chars (offset, end_ptr)

class

match_pn_chars_base (offset, end_ptr)

class

match_pn_chars_u (offset, end_ptr)

class

match_pn_local (offset, end_ptr)

class

match_pn_local_esc (offset, end_ptr, start_offset, end_offset)

class

match_pn_prefix (offset, end_ptr)

class

match_pname_ln (offset, end_ptr)

class

match_pname_ns (offset, end_ptr)

class

match_string (offset, end_ptr)

class

match_string_literal_long_quote (offset, end_ptr)

class

match_string_literal_long_single_quote (offset, end_ptr)

class

match_string_literal_quote (offset, end_ptr)

class

match_string_literal_single_quote (offset, end_ptr)

class

match_uchar (offset, end_ptr)

class

match_ws (offset, end_ptr)

class

new (filename)

class

read_anon (offset, end_ptr)

class

read_blank_node_label (offset, end_ptr)

class

read_boolean (offset, end_ptr)

class

read_decimal (offset, end_ptr)

class

read_double (offset, end_ptr)

class

read_echar (offset, end_ptr)

class

read_exponent (offset, end_ptr)

class

read_hex (offset, end_ptr)

class

read_integer (offset, end_ptr)

class

read_iriref (offset, end_ptr)

class

read_langtag (offset, end_ptr)

class

read_percent (offset, end_ptr)

class

read_plx (offset, end_ptr)

class

read_pn_chars (offset, end_ptr)

class

read_pn_chars_base (offset, end_ptr)

class

read_pn_chars_u (offset, end_ptr)

class

read_pn_local (offset, end_ptr)

class

read_pn_local_esc (offset, end_ptr)

class

read_pn_prefix (offset, end_ptr)

class

read_pname_ln (offset, end_ptr)

class

read_pname_ns (offset, end_ptr)

class

read_string (offset, end_ptr)

class

read_string_literal_long_quote (offset, end_ptr)

class

read_string_literal_long_single_quote (offset, end_ptr)

class

read_string_literal_quote (offset, end_ptr)

class

read_string_literal_single_quote (offset, end_ptr)

class

read_uchar (offset, end_ptr)

class

read_ws (offset, end_ptr)

find_xpath (xpath)

find_xpath_with_context_node (xpath, context_node)

load ()

string_convert (str)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

filename

str

r/w

The filename this turtle is assigned to

xml-doc

int

r/w

The xml document turtle was converted to

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

doc

libxml2.Doc

r

filename

str

r

flags

int

r

gobject

GObject.Object

r

obj_mutex

GLib.RecMutex

r

prefix_id

{object: object}

r

Class Details

class Ags.Turtle(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Ags.TurtleClass

classmethod match_anon(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

True on success, otherwise False

start_offset:

points to start offset of matched, otherwise None

end_offset:

points to end offset of matched, otherwise None

Return type:

(bool, start_offset: str, end_offset: str)

Match anon.

New in version 3.2.12.

classmethod match_blank_node_label(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

True on success, otherwise False

start_offset:

points to start offset of matched, otherwise None

end_offset:

points to end offset of matched, otherwise None

Return type:

(bool, start_offset: str, end_offset: str)

Match blank node label.

New in version 3.2.12.

classmethod match_boolean(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

True on success, otherwise False

start_offset:

points to start offset of matched, otherwise None

end_offset:

points to end offset of matched, otherwise None

Return type:

(bool, start_offset: str, end_offset: str)

Match boolean.

New in version 3.2.12.

classmethod match_decimal(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

True on success, otherwise False

start_offset:

points to start offset of matched, otherwise None

end_offset:

points to end offset of matched, otherwise None

Return type:

(bool, start_offset: str, end_offset: str)

Match decimal.

New in version 3.2.12.

classmethod match_double(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

True on success, otherwise False

start_offset:

points to start offset of matched, otherwise None

end_offset:

points to end offset of matched, otherwise None

Return type:

(bool, start_offset: str, end_offset: str)

Match double.

New in version 3.2.12.

classmethod match_echar(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

True on success, otherwise False

start_offset:

points to start offset of matched, otherwise None

end_offset:

points to end offset of matched, otherwise None

Return type:

(bool, start_offset: str, end_offset: str)

Match echar.

New in version 3.2.12.

classmethod match_exponent(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

True on success, otherwise False

start_offset:

points to start offset of matched, otherwise None

end_offset:

points to end offset of matched, otherwise None

Return type:

(bool, start_offset: str, end_offset: str)

Match exponent.

New in version 3.2.12.

classmethod match_hex(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

True on success, otherwise False

start_offset:

points to start offset of matched, otherwise None

end_offset:

points to end offset of matched, otherwise None

Return type:

(bool, start_offset: str, end_offset: str)

Match hex.

New in version 3.2.12.

classmethod match_integer(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

True on success, otherwise False

start_offset:

points to start offset of matched, otherwise None

end_offset:

points to end offset of matched, otherwise None

Return type:

(bool, start_offset: str, end_offset: str)

Match integer.

New in version 3.2.12.

classmethod match_iriref(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

True on success, otherwise False

start_offset:

points to start offset of matched, otherwise None

end_offset:

points to end offset of matched, otherwise None

Return type:

(bool, start_offset: str, end_offset: str)

Match iriref.

New in version 3.2.12.

classmethod match_langtag(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

True on success, otherwise False

start_offset:

points to start offset of matched, otherwise None

end_offset:

points to end offset of matched, otherwise None

Return type:

(bool, start_offset: str, end_offset: str)

Match langtag.

New in version 3.2.12.

classmethod match_percent(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

True on success, otherwise False

start_offset:

points to start offset of matched, otherwise None

end_offset:

points to end offset of matched, otherwise None

Return type:

(bool, start_offset: str, end_offset: str)

Match percent.

New in version 3.2.12.

classmethod match_plx(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

True on success, otherwise False

start_offset:

points to start offset of matched, otherwise None

end_offset:

points to end offset of matched, otherwise None

Return type:

(bool, start_offset: str, end_offset: str)

Match plx.

New in version 3.2.12.

classmethod match_pn_chars(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

True on success, otherwise False

start_offset:

points to start offset of matched, otherwise None

end_offset:

points to end offset of matched, otherwise None

Return type:

(bool, start_offset: str, end_offset: str)

Match pn chars.

New in version 3.2.12.

classmethod match_pn_chars_base(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

True on success, otherwise False

start_offset:

points to start offset of matched, otherwise None

end_offset:

points to end offset of matched, otherwise None

Return type:

(bool, start_offset: str, end_offset: str)

Match pn chars base.

New in version 3.2.12.

classmethod match_pn_chars_u(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

True on success, otherwise False

start_offset:

points to start offset of matched, otherwise None

end_offset:

points to end offset of matched, otherwise None

Return type:

(bool, start_offset: str, end_offset: str)

Match pn chars u.

New in version 3.2.12.

classmethod match_pn_local(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

True on success, otherwise False

start_offset:

points to start offset of matched, otherwise None

end_offset:

points to end offset of matched, otherwise None

Return type:

(bool, start_offset: str, end_offset: str)

Match uchar.

New in version 3.2.12.

classmethod match_pn_local_esc(offset, end_ptr, start_offset, end_offset)
Parameters:
  • offset (str) –

  • end_ptr (str) –

  • start_offset (str) –

  • end_offset (str) –

Return type:

bool

classmethod match_pn_prefix(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

True on success, otherwise False

start_offset:

points to start offset of matched, otherwise None

end_offset:

points to end offset of matched, otherwise None

Return type:

(bool, start_offset: str, end_offset: str)

Match pn prefix.

New in version 3.2.12.

classmethod match_pname_ln(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

True on success, otherwise False

start_offset:

points to start offset of matched, otherwise None

end_offset:

points to end offset of matched, otherwise None

Return type:

(bool, start_offset: str, end_offset: str)

Match pname-ln.

New in version 3.2.12.

classmethod match_pname_ns(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

True on success, otherwise False

start_offset:

points to start offset of matched, otherwise None

end_offset:

points to end offset of matched, otherwise None

Return type:

(bool, start_offset: str, end_offset: str)

Match match pname-ns.

New in version 3.2.12.

classmethod match_string(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

True on success, otherwise False

start_offset:

points to start offset of matched, otherwise None

end_offset:

points to end offset of matched, otherwise None

Return type:

(bool, start_offset: str, end_offset: str)

Match string.

New in version 3.2.12.

classmethod match_string_literal_long_quote(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

True on success, otherwise False

start_offset:

points to start offset of matched, otherwise None

end_offset:

points to end offset of matched, otherwise None

Return type:

(bool, start_offset: str, end_offset: str)

Match string literal long quote.

New in version 3.2.12.

classmethod match_string_literal_long_single_quote(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

True on success, otherwise False

start_offset:

points to start offset of matched, otherwise None

end_offset:

points to end offset of matched, otherwise None

Return type:

(bool, start_offset: str, end_offset: str)

Match string literal long single quote.

New in version 3.2.12.

classmethod match_string_literal_quote(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

True on success, otherwise False

start_offset:

points to start offset of matched, otherwise None

end_offset:

points to end offset of matched, otherwise None

Return type:

(bool, start_offset: str, end_offset: str)

Match string literal quote.

New in version 3.2.12.

classmethod match_string_literal_single_quote(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

True on success, otherwise False

start_offset:

points to start offset of matched, otherwise None

end_offset:

points to end offset of matched, otherwise None

Return type:

(bool, start_offset: str, end_offset: str)

Match string literal single quote.

New in version 3.2.12.

classmethod match_uchar(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

True on success, otherwise False

start_offset:

points to start offset of matched, otherwise None

end_offset:

points to end offset of matched, otherwise None

Return type:

(bool, start_offset: str, end_offset: str)

Match uchar.

New in version 3.2.12.

classmethod match_ws(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

True on success, otherwise False

start_offset:

points to start offset of matched, otherwise None

end_offset:

points to end offset of matched, otherwise None

Return type:

(bool, start_offset: str, end_offset: str)

Match ws.

New in version 3.2.12.

classmethod new(filename)
Parameters:

filename (str or None) – the filename as string

Returns:

the new instance

Return type:

Ags.Turtle

Instantiate a new Ags.Turtle.

New in version 3.0.0.

classmethod read_anon(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

a string on success otherwise None

Return type:

str

Read anon value.

New in version 3.0.0.

classmethod read_blank_node_label(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

a string on success otherwise None

Return type:

str

Read blank node label value.

New in version 3.0.0.

classmethod read_boolean(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

a string on success otherwise None

Return type:

str

Read boolean value.

New in version 3.0.0.

classmethod read_decimal(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

a string on success otherwise None

Return type:

str

Read decimal value.

New in version 3.0.0.

classmethod read_double(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

a string on success otherwise None

Return type:

str

Read double value.

New in version 3.0.0.

classmethod read_echar(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

a string on success otherwise None

Return type:

str

Read echar value.

New in version 3.0.0.

classmethod read_exponent(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

a string on success otherwise None

Return type:

str

Read exponent value.

New in version 3.0.0.

classmethod read_hex(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

a string on success otherwise None

Return type:

str

Read hex value.

New in version 3.0.0.

classmethod read_integer(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

a string on success otherwise None

Return type:

str

Read integer value.

New in version 3.0.0.

classmethod read_iriref(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

a string on success otherwise None

Return type:

str

Read iriref value.

New in version 3.0.0.

classmethod read_langtag(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

a string on success otherwise None

Return type:

str

Read langtag value.

New in version 3.0.0.

classmethod read_percent(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

a string on success otherwise None

Return type:

str

Read percent value.

New in version 3.0.0.

classmethod read_plx(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

a string on success otherwise None

Return type:

str

Read plx value.

New in version 3.0.0.

classmethod read_pn_chars(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

a string on success otherwise None

Return type:

str

Read prefixed-name chars value.

New in version 3.0.0.

classmethod read_pn_chars_base(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

a string on success otherwise None

Return type:

str

Read prefixed-name chars base value.

New in version 3.0.0.

classmethod read_pn_chars_u(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

a string on success otherwise None

Return type:

str

Read prefixed-name chars underscore value.

New in version 3.0.0.

classmethod read_pn_local(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

a string on success otherwise None

Return type:

str

Read prefixed-name local value.

New in version 3.0.0.

classmethod read_pn_local_esc(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

a string on success otherwise None

Return type:

str

Read prefixed name local escapes.

New in version 3.0.0.

classmethod read_pn_prefix(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

a string on success otherwise None

Return type:

str

Read prefixe-name prefix value.

New in version 3.0.0.

classmethod read_pname_ln(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

a string on success otherwise None

Return type:

str

Read prefixed-name localized name value.

New in version 3.0.0.

classmethod read_pname_ns(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

a string on success otherwise None

Return type:

str

Read prefixed-name namespace value.

New in version 3.0.0.

classmethod read_string(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

a string on success otherwise None

Return type:

str

Read string value.

New in version 3.0.0.

classmethod read_string_literal_long_quote(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

a string on success otherwise None

Return type:

str

Read string literal long quote value.

New in version 3.0.0.

classmethod read_string_literal_long_single_quote(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

a string on success otherwise None

Return type:

str

Read string literal long single quote value.

New in version 3.0.0.

classmethod read_string_literal_quote(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

a string on success otherwise None

Return type:

str

Read string literal quote value.

New in version 3.0.0.

classmethod read_string_literal_single_quote(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

a string on success otherwise None

Return type:

str

Read string literal single quote value.

New in version 3.0.0.

classmethod read_uchar(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

a string on success otherwise None

Return type:

str

Read uchar value.

New in version 3.0.0.

classmethod read_ws(offset, end_ptr)
Parameters:
  • offset (str) – the string pointer

  • end_ptr (str) – the end of offset

Returns:

a string on success otherwise None

Return type:

str

Read ws value.

New in version 3.0.0.

find_xpath(xpath)
Parameters:

xpath (str) – a XPath expression as string

Returns:

a GLib.List-struct containing libxml2.Node

Return type:

[libxml2.Node]

Lookup XPath expression withing self.

New in version 3.0.0.

find_xpath_with_context_node(xpath, context_node)
Parameters:
Returns:

a GLib.List-struct containing libxml2.Node

Return type:

[libxml2.Node]

Lookup XPath expression from context_node withing self.

New in version 3.0.0.

load()
Raises:

GLib.Error

Returns:

a libxml2.Doc pointer

Return type:

libxml2.Doc

Loads a RDF triple file into an XML Document.

New in version 3.0.0.

string_convert(str)
Parameters:

str (str) –

Return type:

str

Property Details

Ags.Turtle.props.filename
Name:

filename

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

The assigned filename.

New in version 3.0.0.

Ags.Turtle.props.xml_doc
Name:

xml-doc

Type:

int

Default Value:

None

Flags:

READABLE, WRITABLE

The assigned xml-doc.

New in version 3.0.0.