diff options
author | Florian Ludwig <f.ludwig@greyrook.com> | 2020-10-23 20:41:02 +0200 |
---|---|---|
committer | Florian Ludwig <f.ludwig@greyrook.com> | 2020-10-23 20:41:02 +0200 |
commit | 3c509626f60cecec4c0495931728b2128aa625d4 (patch) | |
tree | b24a4f76967bafde2b573fa6def35dd315dc63e0 | |
parent | dde9db804d30fe0ab0c3291c105093ed691b0ef4 (diff) | |
download | rdflib-3c509626f60cecec4c0495931728b2128aa625d4.tar.gz |
small cleanups
-rw-r--r-- | rdflib/plugins/sparql/operators.py | 2 | ||||
-rw-r--r-- | rdflib/plugins/sparql/parserutils.py | 2 | ||||
-rw-r--r-- | rdflib/plugins/stores/sparqlstore.py | 4 | ||||
-rw-r--r-- | rdflib/resource.py | 4 |
4 files changed, 5 insertions, 7 deletions
diff --git a/rdflib/plugins/sparql/operators.py b/rdflib/plugins/sparql/operators.py index 29bdd5c0..a0e9d314 100644 --- a/rdflib/plugins/sparql/operators.py +++ b/rdflib/plugins/sparql/operators.py @@ -1119,6 +1119,8 @@ def calculateFinalDateTime(obj1, dt1, obj2, dt2, operation): def EBV(rt): """ + Effective Boolean Value (EBV) + * If the argument is a typed literal with a datatype of xsd:boolean, the EBV is the value of that argument. * If the argument is a plain literal or a typed literal with a diff --git a/rdflib/plugins/sparql/parserutils.py b/rdflib/plugins/sparql/parserutils.py index c30e10d6..3e90887b 100644 --- a/rdflib/plugins/sparql/parserutils.py +++ b/rdflib/plugins/sparql/parserutils.py @@ -173,7 +173,7 @@ class CompValue(OrderedDict): def __getattr__(self, a): # Hack hack: OrderedDict relies on this if a in ("_OrderedDict__root", "_OrderedDict__end"): - raise AttributeError + raise AttributeError() try: return self[a] except KeyError: diff --git a/rdflib/plugins/stores/sparqlstore.py b/rdflib/plugins/stores/sparqlstore.py index a5bc3716..e021e5df 100644 --- a/rdflib/plugins/stores/sparqlstore.py +++ b/rdflib/plugins/stores/sparqlstore.py @@ -101,8 +101,6 @@ class SPARQLStore(SPARQLConnector, Store): auth=None, **sparqlconnector_kwargs ): - """ - """ super(SPARQLStore, self).__init__( query_endpoint=query_endpoint, returnFormat=returnFormat, auth=auth, **sparqlconnector_kwargs ) @@ -374,7 +372,7 @@ class SPARQLStore(SPARQLConnector, Store): raise TypeError("The SPARQL store is read only") def _is_contextual(self, graph): - """ Returns `True` if the "GRAPH" keyword must appear + """Returns `True` if the "GRAPH" keyword must appear in the final SPARQL query sent to the endpoint. """ if (not self.context_aware) or (graph is None): diff --git a/rdflib/resource.py b/rdflib/resource.py index f9063754..bc1e07b0 100644 --- a/rdflib/resource.py +++ b/rdflib/resource.py @@ -1,6 +1,4 @@ -# -*- coding: utf-8 -*- - -__doc__ = """ +""" The :class:`~rdflib.resource.Resource` class wraps a :class:`~rdflib.graph.Graph` and a resource reference (i.e. a :class:`rdflib.term.URIRef` or |