Package rdflib :: Module util
[show private | hide private]
[frames | no frames]

Module rdflib.util

Function Summary
  check_context(c)
  check_object(o)
Test that o is a valid object identifier.
  check_pattern((s, p, o))
  check_predicate(p)
Test that p is a valid predicate identifier.
  check_statement((s, p, o))
  check_subject(s)
Test that s is a valid subject identifier.
  date_time(t)
http://www.w3.org/TR/NOTE-datetime ex: 1997-07-16T19:20:30Z
  first(seq)
  from_n3(s, default)
Creates the Identifier corresponding to the given n3 string.
  more_than(sequence, number)
Returns 1 if sequence has more items than number and 0 if not.
  parse_date_time(val)
  term(str, default)
See also from_n3
  uniq(sequence, strip)
removes duplicate strings from the sequence.

Function Details

check_object(o)

Test that o is a valid object identifier.

check_predicate(p)

Test that p is a valid predicate identifier.

check_subject(s)

Test that s is a valid subject identifier.

date_time(t=None)

http://www.w3.org/TR/NOTE-datetime ex: 1997-07-16T19:20:30Z

from_n3(s, default=None)

Creates the Identifier corresponding to the given n3 string. WARNING: untested, may contain bugs. TODO: add test cases.

more_than(sequence, number)

Returns 1 if sequence has more items than number and 0 if not.

term(str, default=None)

See also from_n3

uniq(sequence, strip=0)

removes duplicate strings from the sequence.

Generated by Epydoc 2.1 on Wed Jun 29 09:50:17 2005 http://epydoc.sf.net