KGPrune allows you to seamlessly upload your data files for processing. Below are the commands you need to execute.
If you would like to utilize our sample files, you can download them using the following commands:
QID CSV file
wget https://kgprune.loria.fr/example -O example.csv
PID CSV file
wget https://kgprune.loria.fr/properties -O property_examples.csv
Run the following command to upload your seed entities and properties of interest. Replace 'example.csv' and 'property_examples.csv' with your corresponding file names, ensuring they have the extension '.csv'
curl -X 'POST' \
'https://kgprune.loria.fr/api/curlUpload' \
-H 'accept: application/json' \
-H 'Content-Type: multipart/form-data' \
-F 'file=@example.csv;type=text/csv' \
-F 'properties=@property_examples.csv;type=text/csv'
Upon successful execution of the above code, you'll receive an output resembling the following
"uploadId": "result_c44660681d074c70b4eea3fd11f608bc",
"message": "File uploaded successfully!",
To retrieve as a JSON file the kept neighboring entities of each seed entity, execute the following command. Ensure to replace 'uploadId' with the specific upload ID obtained from the previous step.
curl -X 'GET' \
'https://kgprune.loria.fr/api/download/result_c44660681d074c70b4eea3fd11f608bc' \
-H 'accept: application/json'
To download the RDF file corresponding to the selected neighborhood of the seed entities, run the following command:
curl -X 'GET' \
'https://kgprune.loria.fr/api/ttl/result_c44660681d074c70b4eea3fd11f608bc' \
-H 'accept: application/json'
To download the graph visualization file, run the following command:
curl -X 'GET' \
'https://kgprune.loria.fr/api/graph/result_c44660681d074c70b4eea3fd11f608bc' \
-H 'accept: application/json'