Skip to content

Commit 5fc06ef

Browse files
authored
Merge pull request #87 from jyucsiro/readme
adding intro docs to tools
2 parents 4770f1c + 6bceccb commit 5fc06ef

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
@@ -72,3 +72,51 @@ $ python setup.py --quiet install
7272
#running the tests
7373
$ python -m unittest discover -s bald.tests -v
7474
```
75+
76+
## Command line tools
77+
78+
### ncldDump
79+
80+
A HTML 'hot-linked' version of the `ncdump` command-line utility.
81+
The output of `ncldDump` is a something similar but with links to the standard names
82+
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
83+
example output HTML.
84+
85+
See more here https://github.com/jyucsiro/bald/tree/master/ncldDump
86+
87+
Getting started:
88+
```
89+
$ cd ncldDump
90+
#Install requirements
91+
$ pip install -r ../requirements.txt
92+
93+
#run
94+
$ python ncldDump.py -a aliases.json -o test.html test.nc
95+
```
96+
97+
98+
### nc2rdf
99+
100+
A command-line tool that takes a netCDF or CDL file and outputs an RDF or JSON-LD encoding of the
101+
content. The RDF can then be imported into RDF triple stores or used with RDF libraries for
102+
reasoning, SPARQL querying and the like.
103+
104+
The RDFLib package is used so serialisation options to RDF are: `n3`, `nquads`, `nt`, `rdfxml`, `turtle` or `ttl`.
105+
106+
See more here https://github.com/jyucsiro/bald/tree/master/nc2rdf
107+
108+
```
109+
$ cd nc2rdf
110+
111+
# turn CDL into RDF
112+
$ python nc2rdf.py test.cdl
113+
114+
# turn NC into RDF
115+
$ python nc2rdf.py test.nc
116+
117+
# specify RDF formats/flavours
118+
$ python nc2rdf.py -o turtle test.nc
119+
120+
```
121+
122+

0 commit comments

Comments
 (0)