CIF2RDF(1)
π CIF2RDF(1) π
okay bestie, welcome to cif2rdf β it lives in the General Commands Manual (that's section 1, the one for commands, iykyk). pull up a chair, grab a boba, and let's get into it π§β¨
πΈ NAME πΈ
cif2rdf β parse a CIF file and describe its properties in RDF format. that's the whole gig. no cap.
β¨ SYNOPSIS β¨
ugh the formatting, let me just show you:
so like. options first, then a CIF file, then as many more CIF files as your little heart desires π¦
---
# π DESCRIPTION π
Parse a CIF file and describe its properties in RDF format. it takes your crystallography data and spins it into RDF, which is honestly giving main character energy π₯
---
# π
OPTIONS π
so many flags. all of them valid. let's go one by one, no skipping, I promise π«Ά
- **`-C`, `--cod-number` *1000000*** β use the number you give here (the example uses `1000000`) as the COD number for this structure. like, do **not** take the number from the data block name. you're overriding it, periodt.
- **`-c`, `--always-continue`** β keep on processing and still return a *successful* return status even if errors get diagnosed. yes, even then. she's unbothered π
- **`-c-`, `--always-die`** β stop and return an *error* status if errors are diagnosed. the dramatic one of the pair π
- **`--use-attached-hydrogens`** β include the number of implicit hydrogens (the ones specified with the `_atom_site_attached_hydrogens` tag) into the formula sum. this is the **default**, bestie β¨
- **`--no-use-attached-hydrogens`**, **`--dont-use-attached-hydrogens`**, **`--ignore-attached-hydrogens`** β ignore that number of implicit hydrogens from the `_atom_site_attached_hydrogens` tag when calculating the formula sum. not today π«
- **`--reformat-space-group`** β correct the formatting of the Hermann-Mauguin symmetry space group symbol. glow-up for your space group β¨
- **`--no-reformat-space-group`**, **`--dont-reformat-space-group`**, **`--leave-space-group`** β do **not** correct the formatting of the Hermann-Mauguin symmetry space group symbol. this one is the **default** π
- **`--use-datablocks-without-coordinates`**, **`--use-all-datablocks`** β don't filter out data blocks that have no coordinates. all datablocks welcome π
- **`--no-use-datablocks-without-coordinates`**, **`--do-not-use-datablocks-without-coordinates`**, **`--dont-use-datablocks-without-coordinates`**, **`--skip-datablocks-without-coordinates`** β filter out data blocks without coordinates. this is the **default**, so yes, they get skipped by default π
- **`--require-only-doi`** β don't require all the bibliographic details (that's authors, journal name, title, year, volume and first page of the publication) to be present, as long as the publication DOI is specified. DOI girlies, this one's for you π
- **`--require-full-bibliography`** β require author names, journal name, volume, publication title, year and first page to all be present. this is the **default**, and she's thorough π
- **`--columns` *file,flags,Robs*** and **`--columns "file flags Robs"`** β print only the columns you list in this option. two ways to write it, same vibe π
- **`--vocabulary-namespace` *cod*** β use vocabulary namespace `"cod"` to prefix properties that are native to the queried database.
- **`--vocabulary-url-prefix` *http://www.crystallography.net/cod/doc/rdf/*** β specify the URL prefix for the database's native namespace.
- **`--prefix`**, **`--db-url-prefix`** *http://www.crystallography.net/cod/* β specify the URL prefix for all objects in the queried database.
- **`--postfix`**, **`--db-url-postfix`** *.html* β specify the URL postfix for all objects in the queried database.
- **`--split-author-names`** β split author names in the internal database representation at semicolons (`';'`) so you get an RDF-parsable list of author names. each author in that list gets marked with the `"author"` property instead of `"authors"` (which is what gets used for the non-split value). this one is the **default** βοΈβ¨
- **`--no-split-author-names`**, **`--dont-split-author-names`** β make **no** assumptions about the internal database representation of the author list. she's neutral, she's chill π
- **`--xml-output`** β output RDF in XML carrier format. this is the **default** π
- **`--n3-output`** β output RDF in N3 (Notation3) carrier format.
- **`--turtle-output`** β output RDF in Turtle carrier format. π’
- **`--ntriples-output`**, **`--n-triples-output`** β output RDF in N-Triples carrier format.
- **`--replace-utf-codepoints-from`** β replace Unicode code points starting at the specified point with carrier format-specific entities.
- **`--no-replace-utf-codepoints`**, **`--dont-replace-utf-code-points`** β leave Unicode code points unescaped. this is the **default** πΈ
- **`--html-utf-escapes`** β escape Unicode code points using HTML hexadecimal format, corresponding to the `'&#x%04X;'` formatted string. this is the **default** π₯
- **`--internal-utf-escapes`** β escape Unicode code points using internal format, corresponding to the `'\u%04X'` formatted string.
- **`--utf-escape-format`** β escape Unicode code points using a format corresponding to the formatted string you provide.
- **`--no-header`** β skip the header of the corresponding format. lowkey useful for generating catenable output π
- **`--no-footer`** β skip the footer of the corresponding format. also useful for generating catenable output π
- **`--only-header`** β print the header of the corresponding format and exit. that's it, that's the whole job β¨
- **`--only-footer`** β print the footer of the corresponding format and exit.
- **`--continue-on-errors`** β don't terminate the script if errors are raised.
- **`--die-on-errors`**, **`--no-continue-on-errors`**, **`--do-not-continue-on-errors`**, **`--dont-continue-on-errors`**, **`--exit-on-errors`** β terminate the script immediately if errors are raised. this is the **default** π
- **`--continue-on-warnings`** β don't terminate the script if warnings are raised. this is the **default** π«Ά
- **`--die-on-warnings`** β terminate the script immediately if warnings are raised.
- **`--continue-on-notes`** β don't terminate the script if notes are raised. this is the **default** π
- **`--die-on-notes`** β terminate the script immediately if notes are raised.
- **`--use-perl-parser`** β use the Perl parser for parsing CIFs.
- **`--use-c-parser`** β use the faster C parser for parsing CIFs. this is the **default** β‘
- **`--help`**, **`--usage`** β output a short usage message (this message, the one you're reading the vibes of) and exit.
- **`--version`** β output version information and exit. slay π
---
# π¦ REPORTING BUGS π¦
found a bug? don't suffer in silence, bestie. report `cif2rdf` bugs using e-mail: `cod-bugs@ibt.lt` π§
---
okay that's the whole page!! <rainbow>cif2rdf</rainbow>, from the **General Commands Manual** (section 1, iconic behavior), brought to you by the version-and-date energy of this here footer. go parse something and be great ππβ¨
π¦ where this page comes from
- debian bookworm: cod-tools 3.7.0+dfsg-1+b3 Β· LGPL-3.0-only
- debian trixie: cod-tools 3.11.0+dfsg-1 Β· LGPL-3.0-only
- ubuntu noble: cod-tools 3.8.1+dfsg-1build3 Β· LGPL-3.0-only
- ubuntu questing: cod-tools 3.11.0+dfsg-1
- ubuntu resolute: cod-tools 3.11.0+dfsg-2build1 Β· LGPL-3.0-only
- ubuntu stonking: cod-tools 3.12.0+dfsg-2 Β· LGPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms