Skip to content

Commit

Permalink
Default output format to JSON-LD
Browse files Browse the repository at this point in the history
No effects were observed on Make-managed files.

Signed-off-by: Alex Nelson <[email protected]>
  • Loading branch information
ajnelson-nist committed Nov 21, 2024
1 parent 1289a43 commit 140b9da
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions case_macos_system_profiler/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,8 @@ def main() -> None:
help="Prefix IRI to use for knowledge-base individuals. E.g. with defaults, 'http://example.org/kb/Thing-1' would compact to 'kb:Thing-1'.",
)
argument_parser.add_argument(
"--output-format", help="Override extension-based format guesser."
"--output-format",
help="Override extension-based format guesser. If not provided, and the output file extension is an insufficient hint, JSON-LD will be used.",
)
argument_parser.add_argument(
"--use-deterministic-uuids",
Expand All @@ -285,7 +286,7 @@ def main() -> None:
)
argument_parser.add_argument(
"out_graph",
help="A self-contained RDF graph file, in the format either requested by --output-format or guessed based on extension.",
help="A self-contained RDF graph file, in the format either requested by --output-format or guessed based on extension. If a guess can't be made and --output-format is not provided, JSON-LD will be used.",
)
args = argument_parser.parse_args()

Expand All @@ -307,7 +308,7 @@ def main() -> None:
guess_format(args.out_graph)
if args.output_format is None
else args.output_format
)
) or "json-ld"

system_profile_mapper.graph.serialize(args.out_graph, format=output_format)

Expand Down

0 comments on commit 140b9da

Please sign in to comment.