Skip to content

Using ENAPSO Services With Postman

Ashesh Goplani edited this page Mar 20, 2023 · 11 revisions

Using ENAPSO Services with Postman

This document provides a guide on how to use ENAPSO services with Postman for knowledge graph operations. Before starting, make sure that your Postman collections and environments are set up. (Refer to this link)

1. Logging In

To use the APIs, first set up the environment, either local or custom. Then, send the login request to authenticate. (Make sure you have selected your desired environment from the top right side )

Postman_hjstPyzomq

2. Reading Individuals

To read individuals from the environment, use the "Read Individuals" route in the Individual Management Service. In the request body, pass the IRI of the class. In response, all individuals of the class will be received.

Postman_TFZgcD9qvT

3. Creating Individuals

To create individuals, use the "Create Individuals" route in the Individual Management Service. In the request body, pass the class for which individuals are to be created, along with the properties in records.

Postman_4VYjYcAsbP

4. Updating Individuals

To update an existing individual, use the "Update Individual" route in the Individual Management Service. Pass the updated values in the request body.

Postman_qdFZaBQyLR

5. Deleting Individuals

To delete individuals, use the "Delete Individuals" route in the Individual Management Service. Provide the class IRI and the IRI of the individual to be deleted in the request body.

Postman_8pmVsqntYn

6. Uploading Custom Ontology

To upload a custom ontology, use the GraphDB management service and the "Upload Ontology from a File" route. In this use case, the DotNetPro ( Right-click and save link as and download the file in your downloads directory on your computer) this file will be used To upload the ontology, select the ontology file in the request body, specify its format as "application/rdf+xml", and set its context and baseIRI.

Postman_vyqrRsjOJe

Note: Other routes are available for uploading the ontology through data or replacement, and for uploading ontology in different formats. However, the "Upload Ontology from a File" route was used in this use case.

This guide provides a foundation for using ENAPSO services with Postman to perform knowledge graph operations.