_strToTime), XSD_NS+u'date' : (None, _strToDate), XSD_NS+u'dateTime' : (None, _strToDateTime), XSD_NS+u'string' : (None, None), XSD_NS+u'normalizedString' : (None, None), XSD_NS+u'token' : (None, None), XSD_NS+u'language' : (None, None), XSD_NS+u'boolean' : (None, lambda i:i.lower() in ['1','true']), XSD_NS+u'decimal' : (float, None), XSD_NS+u'integer' : (long, None), XSD_NS+u'nonPositiveInteger' : (int, None), XSD_NS+u'long' : (long, None), XSD_NS+u'nonNegativeInteger' : (int, None), XSD_NS+u'negativeInteger' : (int, None), XSD_NS+u'int' : (int, None), XSD_NS+u'unsignedLong' : (long, None), XSD_NS+u'positiveInteger' : (int, None), XSD_NS+u'short' : (int, None), XSD_NS+u'unsignedInt' : (long, None), XSD_NS+u'byte' : (int, None), XSD_NS+u'unsignedShort' : (int, None), XSD_NS+u'unsignedByte' : (int, None), XSD_NS+u'float' : (float, None), XSD_NS+u'double' : (float, None), XSD_NS+u'base64Binary' : (base64.decodestring, None), XSD_NS+u'anyURI' : (None,None), } Maps WXS datatyped Literals to Python. This mapping is used by the toPython() method defined on all Literal instances. SPARQL querying RDFLIb supports a majority of the current SPARQL 1.1 specification and includes a harness for the publicly available RDF DAWG test suite. Support for SPARQL is provided by two methods: rdflib.graph.query() - used to pose SPARQL SELECT or ASK queries to a graph (or Store of Graphs) rdflib.graph.update() - used to change graph content or return RDF using INSERT, DELETE and CONSTRUCT SPARQL statements Serialization (NTriples, N3, and RDF/XML) The RDF store API A Universal RDF Store Interface This document attempts to summarize some fundamental components of an RDF store. The motivation is to outline a standard set of interfaces for providing the necessary support needed in order to persist an RDF Graph in a way that is universal and not tied to any specific implementation. For the most part, the core RDF model is adhered to as well as terminology that is consistent with the RDF Model specifications. However, this suggested interface also extends an RDF store with additional requirements necessary to facilitate the aspects of Notation 3 that go beyond the RDF model to provide a framework for First Order Predicate Logic processing and persistence. Terminology Context A named, unordered set of statements. Also could be called a sub-graph. The named graphs literature and ontology are relevant to this concept. A context could be thought of as only the relationship between an RDF triple and a sub-graph (this is how the term context is used in the Notation 3 Design Issues page) in which it is found or the sub-graph itself. It's worth noting that the concept of logically grouping triples within an addressable 'set' or 'subgraph' is just barely beyond the scope