Skip to content

Commit 77ad72c

Browse files
committed
minor fixes in documentation
1 parent e0805cd commit 77ad72c

File tree

3 files changed

+6
-63
lines changed

3 files changed

+6
-63
lines changed

eswc_demo/queries/retrieveMelodyData.sparql

Lines changed: 0 additions & 55 deletions
This file was deleted.

src/pysparql_anything/args_handlers.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,8 @@ def transform_cli_flags(args: dict[str, str | list[str]]) -> list[str]:
5858
"""
5959
if "query" not in args:
6060
raise ValueError(
61-
"""
62-
Invalid arguments given. A query must be passed.\n
63-
Type sparql-anything -h in your terminal for usage help.
64-
"""
61+
"Invalid arguments given. A query must be passed.\n"
62+
+ "Type sparql-anything -h in your terminal for usage help."
6563
)
6664
final_args: list[str] = []
6765
for k, v in args.items():

src/pysparql_anything/sparql_anything.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def select(
4444
The select method enables one to run a SELECT query and return
4545
the result as either a Pandas DataFrame or a Python dictionary.\n
4646
Args:\n
47-
output_type: "pd.DataFrame" or "dict" for the chosen output.\n
47+
output_type: pandas.DataFrame or dict for the chosen output.\n
4848
**kwargs: The keyword arguments for the SELECT request. These are
4949
the same as those of the regular flags for the Sparql Anything
5050
CLI, minus the hyphen.\n
@@ -83,9 +83,9 @@ def construct(
8383
return the result as either a rdflib or networkx MultiDiGraph
8484
graph object.\n
8585
Args:\n
86-
graph_type: A string specifying which type of graph object is to be
87-
returned. Default is "rdflib.Graph". Alternative is
88-
"nx.MultiDiGraph".\n
86+
graph_type: The type specifying which graph object is to be
87+
returned. Default is rdflib.Graph. Alternative is
88+
networkx.MultiDiGraph.\n
8989
**kwargs: The keyword arguments for the ASK request. These are the
9090
same as those of the regular flags for the Sparql Anything CLI,
9191
minus the hyphen.\n

0 commit comments

Comments
 (0)