Skip to content

rdf2json

James McLaughlin edited this page Apr 10, 2023 · 2 revisions

OLS4 provides a tool called rdf2json to import ontologies from RDF files, which can contain definitions of ontology entities using OWL or RDFS.

 usage: rdf2json
    --config <arg>            config JSON filename(s) separated by a
                              comma. subsequent configs are merged
                              with/override previous ones.
    --downloadedPath <arg>    Optional path of predownloaded ontologies
                              from downloader jar
    --loadLocalFiles          Whether or not to load local files (unsafe,
                              for testing)
    --mergeOutputWith <arg>   JSON file to merge our output with. Any
                              existing ontologies not indexed this time
                              will be kept.
    --noDates                 Set to leave LOADED dates blank (for
                              testing)
    --output <arg>            JSON output filename

TODO document config and output formats