Input File URL When Running On a Local Machine

In the input File field add the URL for the file you want to transform. If the graph.build platform is being run on a local machine via docker compose, this will be relative to the volume used for the Semi Structured Transformer in the compose file.

The section of the compose file that relates to volumes can be seen below.

volumes:
    - ${TRANSFORMER_DIRECTORY}:/var/

The transformer automatically creates a GraphBuild directory underneath the Transformer directory and the following structure underneath that.

GraphBuild/
└── ss-transformer/
    ├── mapping/
    ├── output/
    └── prov-output/

If the TRANSFORMER_DIRECTORY templated into the compose file from the .env file was

/my_directory/ 

the location of the GraphBuild folders on the local machine would be as follows.

my_directory/
└── GraphBuild/
    └── ss-transformer/
        ├── mapping/
        ├── output/
        └── prov-output/

Create an input directory underneath the GraphBuild directory and put the source file in it.

my_directory/
└── GraphBuild/
    ├── input/
    └── ss-transformer/
        ├── mapping/
        ├── output/
        └── prov-output/

According to the compose file my_directory is mapped to the var directory in the container (transformer) so the URL to the input file will be

file:///var/GraphBuild/input/person_card_nested.json

Last updated