summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Markiewicz <markiewicz@stanford.edu>2020-04-16 17:01:00 -0400
committerChris Markiewicz <markiewicz@stanford.edu>2020-04-16 17:03:49 -0400
commit8e1520897705b98f3dc659892fc1e499a7646764 (patch)
treee2b1f291fcbb9bbef50fca5e950ae3b250c450e8
parent729a49fca6e54c71b152b75deb04bae241cc88cb (diff)
downloadrdflib-8e1520897705b98f3dc659892fc1e499a7646764.tar.gz
DOC: Fix some warnings
-rw-r--r--docs/index.rst2
-rw-r--r--docs/intro_to_creating_rdf.rst4
-rw-r--r--docs/intro_to_sparql.rst2
-rw-r--r--docs/univrdfstore.rst1
-rw-r--r--rdflib/compat.py2
-rw-r--r--rdflib/paths.py17
-rw-r--r--rdflib/store.py4
7 files changed, 17 insertions, 15 deletions
diff --git a/docs/index.rst b/docs/index.rst
index 07a9060a..892e370b 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -100,7 +100,7 @@ and related packaged that you might also find useful.
Further help
------------
+------------
For asynchronous chat support, try our gitter channel at `<https://gitter.im/RDFLib/rdflib>`__
If you would like more help with using rdflib, please post a question using the tag ``[rdflib]`` on StackOverflow. A list of
diff --git a/docs/intro_to_creating_rdf.rst b/docs/intro_to_creating_rdf.rst
index 3d279f99..d676a5d5 100644
--- a/docs/intro_to_creating_rdf.rst
+++ b/docs/intro_to_creating_rdf.rst
@@ -12,7 +12,7 @@ represented by the classes :class:`~rdflib.term.URIRef`, :class:`~rdflib.term.BN
``URIRefs`` and ``BNodes`` can both be thought of as resources, such a person, a company, a website, etc.
* A ``BNode`` is a node where the exact URI is not known.
-* A ``URIRef`` is a node where the exact URI is knonw. ``URIRef``s are also used to represent the properties/predicates in the RDF graph.
+* A ``URIRef`` is a node where the exact URI is knonw. ``URIRef``\s are also used to represent the properties/predicates in the RDF graph.
* ``Literals`` represent attribute values, such as a name, a date, a number, etc. The most common literal values are XML data types, e.g. string, int...
@@ -148,4 +148,4 @@ for ``foaf:member_name`` (a poor man's one-way
g.add((s, FOAF['name'], o))
Note that since rdflib 5.0.0, using ``foaf:member_name`` is somewhat prevented in rdflib since FOAF is declared as a :meth:`~rdflib.namespace.ClosedNamespace`
-class instance that has a closed set of members and ``foaf:member_name`` isnt one of them! \ No newline at end of file
+class instance that has a closed set of members and ``foaf:member_name`` isnt one of them!
diff --git a/docs/intro_to_sparql.rst b/docs/intro_to_sparql.rst
index 31d1e7fa..5ab34287 100644
--- a/docs/intro_to_sparql.rst
+++ b/docs/intro_to_sparql.rst
@@ -65,7 +65,7 @@ equivalent.
As an alternative to using ``PREFIX`` in the SPARQL query, namespace
bindings can be passed in with the ``initNs`` kwarg, see
-:doc:`namespace_and_bindings`.
+:doc:`namespaces_and_bindings`.
Variables can also be pre-bound, using ``initBindings`` kwarg can be
used to pass in a ``dict`` of initial bindings, this is particularly
diff --git a/docs/univrdfstore.rst b/docs/univrdfstore.rst
index 6d722724..f6822e5b 100644
--- a/docs/univrdfstore.rst
+++ b/docs/univrdfstore.rst
@@ -200,6 +200,7 @@ Triple Interfaces
An RDF store could provide a standard set of interfaces for the manipulation, management, and/or retrieval of its contained triples (asserted or quoted):
.. module:: rdflib.store
+ :noindex:
.. automethod:: rdflib.store.Store.add
:noindex:
diff --git a/rdflib/compat.py b/rdflib/compat.py
index bf6fa9bc..228c6a1c 100644
--- a/rdflib/compat.py
+++ b/rdflib/compat.py
@@ -136,7 +136,7 @@ def decodeStringEscape(s):
def decodeUnicodeEscape(s):
"""
s is a unicode string
- replace \n and \\u00AC unicode escapes
+ replace ``\\n`` and ``\\u00AC`` unicode escapes
"""
if not six.PY3:
s = s.encode('utf-8').decode('string-escape')
diff --git a/rdflib/paths.py b/rdflib/paths.py
index 163f046f..6a8ee50e 100644
--- a/rdflib/paths.py
+++ b/rdflib/paths.py
@@ -32,18 +32,19 @@ In SPARQL the syntax is as follows:
| | of the path by zero or one matches of elt. |
+--------------------+-------------------------------------------------+
|!iri or | Negated property set. An IRI which is not one of|
-|!(iri\ :sub:`1`\ | | iri\ :sub:`1`...iri\ :sub:`n`. |
-|... |iri\ :sub:`n`) | !iri is short for !(iri). |
+|!(iri\ :sub:`1`\ \| | iri\ :sub:`1`...iri\ :sub:`n`. |
+|... \|iri\ :sub:`n`)| !iri is short for !(iri). |
+--------------------+-------------------------------------------------+
|!^iri or | Negated property set where the excluded matches |
-|!(^iri\ :sub:`1`\ | | are based on reversed path. That is, not one of |
-|... |^iri\ :sub:`n`)| iri\ :sub:`1`...iri\ :sub:`n` as reverse paths. |
+|!(^iri\ :sub:`1`\ \|| are based on reversed path. That is, not one of |
+|...\|^iri\ :sub:`n`)| iri\ :sub:`1`...iri\ :sub:`n` as reverse paths. |
| | !^iri is short for !(^iri). |
+--------------------+-------------------------------------------------+
-|!(iri\ :sub:`1`\ | | A combination of forward and reverse |
-|...|iri\ :sub:`j`\ || properties in a negated property set. |
-|^iri\ :sub:`j+1`\ | | |
-|... |^iri\ :sub:`n`)| |
+|!(iri\ :sub:`1`\ \| | A combination of forward and reverse |
+|...\|iri\ :sub:`j`\ | properties in a negated property set. |
+|\|^iri\ :sub:`j+1`\ | |
+|\|... \|^iri\ | |
+|:sub:`n`)| | |
+--------------------+-------------------------------------------------+
|(elt) | A group path elt, brackets control precedence. |
+--------------------+-------------------------------------------------+
diff --git a/rdflib/store.py b/rdflib/store.py
index 32c3f650..5d2d2f55 100644
--- a/rdflib/store.py
+++ b/rdflib/store.py
@@ -290,8 +290,8 @@ class Store(object):
QuotedGraph, Date? DateRange?
:param context: A conjunctive query can be indicated by either
- providing a value of None, or a specific context can be
- queries by passing a Graph instance (if store is context aware).
+ providing a value of None, or a specific context can be
+ queries by passing a Graph instance (if store is context aware).
"""
subject, predicate, object = triple_pattern