# Path: src/franz/openrdf/util/uris.py
# def getLocalNameIndex(uri):
# def asURIString(value):
# 
# Path: src/franz/openrdf/util/strings.py
# def encode_ntriple_string(string):
# def uri_escape_match(match):
# def encode_ntriple_uri(uri):
# def ntriples_unescape(text):
# def uriref(string):
# def nodeid(string):
# def literal(string):
# def to_bytes(text):
#     def to_native_string(text):
#     def to_native_string(text):
# ESCAPES = [
#     # Replacements will be performed sequentially, so backslash 
#     # must be the first character on the list
#     (chr(0x5C), r'\\'),  
#     (chr(0x0A), r'\n'),
#     (chr(0x0D), r'\r'),
#     (chr(0x22), r'\"'),
# ]


import sys
import builtins
import weakref
import six
from six import python_2_unicode_compatible
from ..util import uris, strings
            uri = uri.uri

        if uri is None and namespace is not None:
            uri = namespace + (localname or '')

        if uri and uri[0] == '<' and uri[len(uri) - 1] == '>':
            # be kind and trim the uri:
            uri = uri[1:-1]
        self._uri = uri
        self._is_canonical = canonical

    def get_cmp_key(self):
        return URI_CMP_KEY, self.uri
    
    def getURI(self):
        """
        Return the URI (string) for 'self'.  This method is typically
        overloaded by subclasses, which may use lazy evaluation to
        retrieve the string.
        """
        return self._uri

    uri = property(getURI)
    
    def getValue(self):
        return self.getURI()

    value = property(getValue)
    
    def getLocalName(self):

# Path: src/franz/openrdf/util/uris.py
# def getLocalNameIndex(uri):
# def asURIString(value):
# 
# Path: src/franz/openrdf/util/strings.py
# def encode_ntriple_string(string):
# def uri_escape_match(match):
# def encode_ntriple_uri(uri):
# def ntriples_unescape(text):
# def uriref(string):
# def nodeid(string):
# def literal(string):
# def to_bytes(text):
#     def to_native_string(text):
#     def to_native_string(text):
# ESCAPES = [
#     # Replacements will be performed sequentially, so backslash 
#     # must be the first character on the list
#     (chr(0x5C), r'\\'),  
#     (chr(0x0A), r'\n'),
#     (chr(0x0D), r'\r'),
#     (chr(0x22), r'\"'),
# ]


# Path: src/franz/openrdf/model/value.py
import sys
import builtins
import weakref
import six
from six import python_2_unicode_compatible
from ..util import uris, strings

            uri = uri.uri

        if uri is None and namespace is not None:
            uri = namespace + (localname or '')

        if uri and uri[0] == '<' and uri[len(uri) - 1] == '>':
            # be kind and trim the uri:
            uri = uri[1:-1]
        self._uri = uri
        self._is_canonical = canonical

    def get_cmp_key(self):
        return URI_CMP_KEY, self.uri
    
    def getURI(self):
        """
        Return the URI (string) for 'self'.  This method is typically
        overloaded by subclasses, which may use lazy evaluation to
        retrieve the string.
        """
        return self._uri

    uri = property(getURI)
    
    def getValue(self):
        return self.getURI()

    value = property(getValue)
    
    def getLocalName(self):

        pos = uris.getLocalNameIndex(self.getURI())