Skip to content

Commit 6bceccb

Browse files
committed
adding intro docs to tools
1 parent 49391ff commit 6bceccb

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

README.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,51 @@ $ python setup.py --quiet install
3838
#running the tests
3939
$ python -m unittest discover -s bald.tests -v
4040
```
41+
42+
## Command line tools
43+
44+
### ncldDump
45+
46+
A HTML 'hot-linked' version of the `ncdump` command-line utility.
47+
The output of `ncldDump` is a something similar but with links to the standard names
48+
and definitions of the attributes to source documentation. See https://binary-array-ld.github.io/netcdf-ld/examples/avhrr-only-v2.19810901_a.html for
49+
example output HTML.
50+
51+
See more here https://github.com/jyucsiro/bald/tree/master/ncldDump
52+
53+
Getting started:
54+
```
55+
$ cd ncldDump
56+
#Install requirements
57+
$ pip install -r ../requirements.txt
58+
59+
#run
60+
$ python ncldDump.py -a aliases.json -o test.html test.nc
61+
```
62+
63+
64+
### nc2rdf
65+
66+
A command-line tool that takes a netCDF or CDL file and outputs an RDF or JSON-LD encoding of the
67+
content. The RDF can then be imported into RDF triple stores or used with RDF libraries for
68+
reasoning, SPARQL querying and the like.
69+
70+
The RDFLib package is used so serialisation options to RDF are: `n3`, `nquads`, `nt`, `rdfxml`, `turtle` or `ttl`.
71+
72+
See more here https://github.com/jyucsiro/bald/tree/master/nc2rdf
73+
74+
```
75+
$ cd nc2rdf
76+
77+
# turn CDL into RDF
78+
$ python nc2rdf.py test.cdl
79+
80+
# turn NC into RDF
81+
$ python nc2rdf.py test.nc
82+
83+
# specify RDF formats/flavours
84+
$ python nc2rdf.py -o turtle test.nc
85+
86+
```
87+
88+

0 commit comments

Comments
 (0)