Skip to content

Commit 6dad2e7

Browse files
committed
Addressing some unresolved doc references
1 parent 99f222a commit 6dad2e7

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

docs/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@
3131
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.todo', 'sphinx.ext.viewcode',
3232
'sphinx.ext.intersphinx', 'sphinx.ext.napoleon']
3333
intersphinx_mapping = {'python': ('https://docs.python.org/3', None),
34-
'rdflib': ('https://rdflib.readthedocs.io/en/stable/', None)}
34+
'rdflib': ('https://rdflib.readthedocs.io/en/stable/', None),
35+
'sqlalchemy': ('https://docs.sqlalchemy.org/en/14/', None),
36+
}
3537
# Add any paths that contain templates here, relative to this directory.
3638
templates_path = ['_templates']
3739

rdflib_sqlalchemy/sql.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ def union_select(select_components, distinct=False, select_type=TRIPLE_SELECT):
4747
select_components (iterable of tuples): Indicates the table and table type
4848
(table_name, where_clause_string, table_type)
4949
distinct (bool): Whether to eliminate duplicate results
50-
select_type (int): From `rdflib_sqlalchemy.constants`. Either `COUNT_SELECT`,
51-
`CONTEXT_SELECT`, `TRIPLE_SELECT`
50+
select_type (int): From `rdflib_sqlalchemy.constants`. Either `.COUNT_SELECT`,
51+
`.CONTEXT_SELECT`, `.TRIPLE_SELECT`
5252
5353
"""
5454
selects = []

rdflib_sqlalchemy/statistics.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ def get_group_by_count(session, group_by_column):
77
"""
88
Construct SQL query to get counts for distinct values using GROUP BY.
99
10-
:param session - sqlalchemy `Session` instance
11-
:param group_by_column sqlalchemy `Column` instance
12-
:returns {dict} dictionary mapping from value to count
10+
Args:
11+
session (~sqlalchemy.orm.session.Session): session to query in
12+
group_by_column (~sqlalchemy.schema.Column): column to group by
1313
14+
Returns:
15+
dict: dictionary mapping from value to count
1416
"""
1517
return dict(
1618
session.query(

rdflib_sqlalchemy/store.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,9 @@ def open(self, configuration, create=True):
244244
245245
Args:
246246
configuration: if a string, use as the DBAPI URL. If a dictionary, will use as the
247-
`**kwargs` for the sqlalchemy.create_engine() call, and will attempt to
248-
extract the connection URL from a 'url' key in that dictionary.
249-
A valid connection string will be of the format:
247+
``**kwargs`` for the sqlalchemy.create_engine() call, and will attempt to
248+
extract the connection URL from a 'url' key in that dictionary. A valid
249+
connection string will be of the format:
250250
251251
dialect[+driver]://user:password@host/dbname[?key=value..]
252252

0 commit comments

Comments
 (0)