Skip to content

Latest commit

 

History

History
104 lines (66 loc) · 2.87 KB

File metadata and controls

104 lines (66 loc) · 2.87 KB

opensilexClientToolsPython.StapleAPIApi

All URIs are relative to https://localhost

Method HTTP request Description
export_ontology_file GET /staple/ontology_file Export ontology file for Staple API as turtle syntax
get_resource_graphs GET /staple/resource_graph Get all graphs associated with resources

export_ontology_file

export_ontology_file()

Export ontology file for Staple API as turtle syntax

Example

from __future__ import print_function
import time
import opensilexClientToolsPython
from opensilexClientToolsPython.rest import ApiException
from pprint import pprint

# create an instance of the API class
pythonClient = opensilexClientToolsPython.ApiClient()
pythonClient.connect_to_opensilex_ws(identifier="guest@opensilex.org",password="guest",host="https://localhost")
api_instance = opensilexClientToolsPython.StapleAPIApi(pythonClient)


try:
    # Export ontology file for Staple API as turtle syntax
    api_instance.export_ontology_file()
except opensilexClientToolsPython.rest.ApiException as e:
    print("Exception when calling StapleAPIApi->export_ontology_file: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/x-turtle

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_resource_graphs

get_resource_graphs()

Get all graphs associated with resources

Example

from __future__ import print_function
import time
import opensilexClientToolsPython
from opensilexClientToolsPython.rest import ApiException
from pprint import pprint

# create an instance of the API class
pythonClient = opensilexClientToolsPython.ApiClient()
pythonClient.connect_to_opensilex_ws(identifier="guest@opensilex.org",password="guest",host="https://localhost")
api_instance = opensilexClientToolsPython.StapleAPIApi(pythonClient)


try:
    # Get all graphs associated with resources
    api_instance.get_resource_graphs()
except opensilexClientToolsPython.rest.ApiException as e:
    print("Exception when calling StapleAPIApi->get_resource_graphs: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]