Miscellaneous Utilities

ordf.utils.get_identifier(g)[source]

Returns a URIRef for the argument which may be an instance of Graph or a string. If it is already a URIRef (which itself is a subclass of unicode string) it simply returns it.

ordf.utils.uuid(uri)[source]

Convenience method - if the argument starts with urn:uuid: does nothing. Otherwise constructs a urn:uuid: form URI from the given argument. Uses the uuid.uuid3() function from the standard Python library

Previous topic

Object Reuse and Exchange

This Page