You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
warnings.warn("The functionality in case_utils.guess_format is now upstream. Please revise your code to use rdflib.util.guess_format. The function arguments remain the same. case_utils.guess_format will be removed in case_utils 0.4.0.", DeprecationWarning)
27
+
warnings.warn(
28
+
"The functionality in case_utils.guess_format is now upstream. Please revise your code to use rdflib.util.guess_format. The function arguments remain the same. case_utils.guess_format will be removed in case_utils 0.4.0.",
help="Ontology version to use to supplement query, such as for subclass querying. Does not require networking to use. Default is most recent CASE release.",
46
53
)
47
54
parser.add_argument(
48
-
"--built-version",
49
-
choices=tuple(built_version_choices_list),
50
-
default="case-"+CURRENT_CASE_VERSION,
51
-
help="Ontology version to use to supplement query, such as for subclass querying. Does not require networking to use. Default is most recent CASE release."
55
+
"--disallow-empty-results",
56
+
action="store_true",
57
+
help="Raise error if no results are returned for query.",
52
58
)
53
59
parser.add_argument(
54
-
"--disallow-empty-results",
55
-
action="store_true",
56
-
help="Raise error if no results are returned for query."
60
+
"--output-format", help="Override extension-based format guesser."
57
61
)
62
+
parser.add_argument("out_graph")
58
63
parser.add_argument(
59
-
"--output-format",
60
-
help="Override extension-based format guesser."
64
+
"in_sparql",
65
+
help="File containing a SPARQL CONSTRUCT query. Note that prefixes not mapped with a PREFIX statement will be mapped according to their first occurrence among input graphs.",
61
66
)
62
-
parser.add_argument("out_graph")
63
-
parser.add_argument("in_sparql", help="File containing a SPARQL CONSTRUCT query. Note that prefixes not mapped with a PREFIX statement will be mapped according to their first occurrence among input graphs.")
64
67
parser.add_argument("in_graph", nargs="+")
65
68
args=parser.parse_args()
66
69
@@ -72,7 +75,7 @@ def main() -> None:
72
75
out_graph=rdflib.Graph()
73
76
74
77
# Inherit prefixes defined in input context dictionary.
0 commit comments