-
Install Docker and Docker-compose https://docs.docker.com/compose/install/
-
Copy the RDFox license file to ../RDFox.lic
-
Find a dexpi file, and copy it to ../rml_mappings/pandid.xml
- From the root folder in the project ../, run
docker-compose -f docker/docker-compose.yml up --build
-
After running npm manually, it might be necessary to delete the local packages, by deleting the folder ../www/node_modules. (On linux and mac, run
rm -rf www/node_modules
) -
To get shell access into one of the docker images, run
docker container ls
while they are runing, and thendocker exec -it <continaer-id> /bin/bash
-
For container logs, run
docker container logs <contiainer-id>
(Get container id withdocker container ls
while container is running)
To start the containers faster when there are no changes to the docker setup, dont build:
docker-compose -f docker/docker-compose.yml up
The symbol-translator api swagger openpi is at http://localhost:5000/swagger (To disable swagger, remove the Development env in the symbol-translator Dockerfile)
The api itself is available at http://localhost:5000/symbol
To test, try f.ex.
curl http://localhost:5000/symbol/PF009A
which will give you
{
"id":"PF009A",
"description":"Flow T. Flow Glass",
"labelAttributeA":"<ProcessPlantIdentificationCode>-<PlantSystemIdentificationCode>",
"labelAttributeB":"<TagType>",
"labelAttributeC":"<TagSequence><TagSuffix>",
"labelAttributeD":"",
"labelAttributeE":""
}