Man page - sdml-deps(1)
Packages contains this manual
Manual
SDML
NAMESYNOPSIS
DESCRIPTION
Arguments:
OPTIONS
NAME
sdml deps - Show a moduleβs imported dependencies.
SYNOPSIS
sdml deps [ OPTIONS ] [ MODULE ]
DESCRIPTION
Show a moduleβs imported dependencies.
This command generates a representation of the transitive closure of dependencies for a given module.
- Tree (default) :: Show dependencies as a text tree with the original as the root.
βββtext ??? sdml deps sdml sdml ????????? owl ??? ????????? rdf ??? ??? ????????? rdfs ??? ??? ????????? rdf ??? ????????? rdfs ??? ????????? xsd ??? ????????? rdf ??? ????????? rdfs ????????? rdf ????????? rdfs ????????? skos ??? ????????? rdf ??? ????????? rdfs ????????? xsd βββ
- Graph :: Create an SVG representation of the dependency graph using GraphViz.
βββtext ??? sdml deps --output-format graph -o sdml-deps.svg sdml ??? open -a Safari sdml-deps.svg βββ
- RDF :: Create a set of RDF statements,as N-Triples, that represent the individual OWL import relationships.
βββtext ??? sdml deps --depth 1 --output-format rdf sdml <http://sdml.io/sdml-owl.ttl#> <http://www.w3.org/2002/07/owl#imports> <http://www.w3.org/2002/07/owl#> . <http://sdml.io/sdml-owl.ttl#> <http://www.w3.org/2002/07/owl#imports> <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . <http://sdml.io/sdml-owl.ttl#> <http://www.w3.org/2002/07/owl#imports> <http://www.w3.org/2000/01/rdf-schema#> . <http://sdml.io/sdml-owl.ttl#> <http://www.w3.org/2002/07/owl#imports> <http://www.w3.org/2004/02/skos/core#> . <http://sdml.io/sdml-owl.ttl#> <http://www.w3.org/2002/07/owl#imports> <http://www.w3.org/2001/XMLSchema#> . βββ
In some cases the entire set of dependencies is not necessary and the β--depthβ argument can be added to only show a number of levels of import from the root. The depth argument instructs to command to stop after that many dependencies away from the original module. Setting depth to 1 will only show the direct dependencies of the original.
βββtext ??? sdml deps --depth 1 sdml sdml ????????? owl ????????? rdf ????????? rdfs ????????? skos ????????? xsd βββ
Arguments:
[MODULE]
SDML module, loaded using the standard resolver
OPTIONS
|
-f , --output-format <OUTPUT_FORMAT> |
[default: tree]
Possible values: - graph: GraphViz DOT format - rdf: As RDF/OWL import triples - tree: A hierarchical tree format
|
-d , --depth <DEPTH> |
Depth to traverse imports, 0 implies all
[default: 0]
|
-o , --output <OUTPUT> |
File name to write to, or β-β to write to stdout
[default: -]
|
-i , --input <INPUT> |
Input SDML file name to read from, or β-β to read from stdin
[default: -]
|
-h , --help |
Print help (see a summary with β-hβ)
|
-V , --version |
Print version