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