Web Service Method: Import Custom Scheme or Ontology
Web Service Method: Import Custom Scheme or Ontology
Description |
---|
Import a custom scheme or ontology via file upload. |
Note
This service is the equivalent to the PoolParty frontend functionalityImport, Export & Publish Schemes and Ontologies
URL: /PoolParty/api/schema/import
Note
For the import of custom schemes and ontologies you have to format data in PoolParty specific language. For this, please use the parameter language=SWC
when you use the Web Service Method: Export and Download Custom Schemes and Ontologies.
Request
Supported Methods |
---|
POST |
Content-Type
multipart/form-data
Parameter | Comment | Type | Required |
---|---|---|---|
file | Custom scheme or ontology file to be uploaded. For learning details about supported formats, please see RDF Serialization Formats | MultipartFile | true |
groups | Groups for scheme or ontology. Default: The groups of the current user. | Array of String | false |
Response
http status code 200 if OK.
As response, client receives uri of ontology / custom scheme that was generated based on imported data.
Basic Pattern
POST http://<server-url>/PoolParty/api/schema/import
Example Request - Ontology Import
Screen shot of an example request, done with Postman:
Cocktails ontology (SWC language) in Turtle format: Cocktail_ontology.ttl
Example Request - Scheme Import
Screen shot of an example request, done with Postman:
Cocktails custom scheme (SWC language) in Turtle format: Cocktails_scheme.ttl