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 for Staple API as turtle syntax
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)This endpoint does not need any parameter.
void (empty response body)
No authorization required
- 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 all graphs associated with resources
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)This endpoint does not need any parameter.
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]