Liking cljdoc? Tell your friends :D

csv2rdf.csvw


csv->rdfclj

(csv->rdf tabular-source metadata-source)
(csv->rdf tabular-source metadata-source {:keys [mode] :as options})

Runs the CSVW process for the given tabular or metadata data sources and options.

tabular-source and metadata-source can be any of the following types:

  • java.io.File
  • java.lang.String
  • java.net.URI
  • java.nio.file.Path (including nio Paths that are inside zip filesystems)

If metadata-source is non-nil then processing will start from the asscociated metadata document, otherwise it will start from tabular-source. Returns a lazy sequence of statements containing the CSVW output for the specified CSVW mode.

The processing mode can be specified by the :mode key of the options map if provided, otherwise :standard mode will be used. Valid :mode options are:

  • :standard this mode corresponds to the standard mode specified in the "Generating RDF from Tabular Data on the Web" specification.

    It outputs triples for all information gleaned from the cells of the tabular data with details of the rows, tables, and table groups.

    This mode yields the most data.

  • :minimal this mode corresponds to the minimal mode specified in the "Generating RDF from Tabular Data on the Web" specification.

    It essentially yields the salient RDF; but omits the tabular structure.

  • :annotated a custom mode, not part of the standard, which is like :minimal, but it also includes RDF data from the CSVW metadata json file.

Runs the CSVW process for the given tabular or metadata data sources
and options.

`tabular-source` and `metadata-source` can be any of the following
types:

   - java.io.File
   - java.lang.String
   - java.net.URI
   - java.nio.file.Path (including nio Paths that are inside zip filesystems)

If metadata-source is non-nil then processing will start from the
asscociated metadata document, otherwise it will start from
tabular-source. Returns a lazy sequence of statements containing the
CSVW output for the specified CSVW mode.

The processing mode can be specified by the :mode key of the options
map if provided, otherwise `:standard` mode will be used. Valid
`:mode` options are:

- `:standard` this mode corresponds to the standard mode specified
  in the "Generating RDF from Tabular Data on the Web" specification.

  It outputs triples for all information gleaned from the cells of the
  tabular data with details of the rows, tables, and table groups.

  This mode yields the most data.

- `:minimal` this mode corresponds to the minimal mode specified in
  the "Generating RDF from Tabular Data on the Web" specification.

  It essentially yields the salient RDF; but omits the tabular structure.

- `:annotated` a custom mode, not part of the standard, which is
  like `:minimal`, but it also includes RDF data from the CSVW metadata
  json file.
raw docstring

csv->rdf->destinationclj

(csv->rdf->destination tabular-source metadata-source destination options)

Run csv->rdf for the given tabular/metadata sources and options then write the resulting statements to the given destination. destination must implement grafter-2.rdf.protocols/ITripleWriteable.

Run csv->rdf for the given tabular/metadata sources and options then write the resulting
statements to the given destination. destination must implement
grafter-2.rdf.protocols/ITripleWriteable.
raw docstring

csv->rdf->fileclj

(csv->rdf->file tabular-source metadata-source dest-file options)

Run csv->rdf for the given tabular/metadata source and options then write the resulting statements to dest-file.

Run csv->rdf for the given tabular/metadata source and options then write the resulting
statements to dest-file.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close