Ft.Rdf.Serializers.NTriples
Modules
Statement
cStringIO
re
urllib
Classes
class
Literal
__init__
(self, value, datatype
='http://www.w3.org/2000/01/rdf-schema#Literal'
)
__repr__
(self)
__str__
=
__repr__
(self)
Data and other non-method functions defined here:
__doc__
= None
__module__
= 'Ft.Rdf.Serializers.NTriples'
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
class
Resource
__init__
(self, id, anon
=0
)
__repr__
(self)
__str__
=
__repr__
(self)
Data and other non-method functions defined here:
__doc__
= None
__module__
= 'Ft.Rdf.Serializers.NTriples'
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
class
Serializer
__init__
(self, reify
=1
)
deserialize
(self, model, stream, scope
=None
)
serialize
(self, model, nsMap
=None
, selectUri
=None
, localResources
=[]
, stmts
=None
, stream
=None
)
Data and other non-method functions defined here:
__doc__
= None
__module__
= 'Ft.Rdf.Serializers.NTriples'
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
Functions
ParseNTriples
(lines)
Test
()
Data
CHAR
= '[ -x7E]'
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
DTSTRING
= <_sre.SRE_Pattern object>
DTSTRING_REGEX
= '"(?P<name>[ -x7E]*)"^^(?P<dt>(?:(?:[a-zA-Z][0-9a...\\.]*:)?/{0,2}[0-9a-zA-Z;/?:@&=+$\\.\\-_!~*\'()%]+)?)'
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
LANG
= r'[a-z0-9]+(\-[a-z0-9]+)?'
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
LANGSTRING
= <_sre.SRE_Pattern object>
LANGSTRING_REGEX
= r'"(?P<value>[ -x7E]*)"(@(?P<lang>[a-z0-9]+(\-[a-z0-9]+)?))?'
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
NAME
= '[A-Za-z][A-Za-z0-9]*'
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
NODEID
= <_sre.SRE_Pattern object>
NODEID_REGEX
= '_:(?P<name>[A-Za-z][A-Za-z0-9]*)'
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
OBJECT_TYPE_LITERAL
= 'L'
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
OBJECT_TYPE_RESOURCE
= 'R'
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
OBJECT_TYPE_UNKNOWN
= '?'
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
RDF_MS_BASE
= 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
RDF_SCHEMA_BASE
= 'http://www.w3.org/2000/01/rdf-schema#'
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
URIREF
= <_sre.SRE_Pattern object>
URIREF_REGEX
= r"<(?P<uriref>(?:(?:[a-zA-Z][0-9a-zA-Z+\-\.]*:)?/{0,2}[0-9a-zA-Z;/?:@&=+$\.\-_!~*'()%]+)?)>"
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
URI_REGEX
= r"(?:(?:[a-zA-Z][0-9a-zA-Z+\-\.]*:)?/{0,2}[0-9a-zA-Z;/?:@&=+$\.\-_!~*'()%]+)?"
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__file__
= 'build/lib.linux-ppc-2.2/Ft/Rdf/Serializers/NTriples.py'
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__name__
= 'Ft.Rdf.Serializers.NTriples'
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.