# Installation

The RDF.ex Hex package (opens new window) can be installed as usual, by adding rdf to your list of dependencies in mix.exs:

def deps do
  [
    {:rdf, "~> 1.2"}
  ]
end

If you want to read or write JSON-LD (opens new window), you also have to add json_ld to your dependencies for the separate JSON-LD.ex (opens new window) package. If you want to read or write RDF-XML (opens new window), you have to add rdf_xml to your dependencies for the separate RDF-XML.ex (opens new window) package.

def deps do
  [
    {:rdf, "~> 1.2"},
    {:rdf_xml, "~> 1.0"},
    {:json_ld, "~> 0.3"},
  ]
end
Last Updated: 3/18/2024, 12:31:40 PM