# 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, "~> 0.12"}
  ]
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, "~> 0.12"},
    {:rdf_xml, "~> 0.1"},
    {:json_ld, "~> 0.3"},
  ]
end