Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

See also How are Images represented in the Model?, How to access images after changing the default namespace?

...

We wanted a way to store thousands of image files so they would not all be in the same directory. We took our inspiration from the PairTree folks ([, and modified their algorithm to suit our needs. The general idea is to store files in a multi-layer directory structure based on the URI assigned to the file.

...

Note

In this example, we assume that VIVO's home directory is at /usr/local/vivo. This depends on the value of vitro.home in the build.properties file, and may be different for your installation.

We want to turn the URI into the directory path, but the URI contains prohibited characters. Using a PairTree-like character substitution, we might store it at this path:

...