{"id":30201520,"url":"https://github.com/esipfed/corpy","last_synced_at":"2025-08-13T10:50:41.104Z","repository":{"id":142011602,"uuid":"117897296","full_name":"ESIPFed/corpy","owner":"ESIPFed","description":"A Python client module for the ESIP Community Ontology Repository http://cor.esipfed.org/. Contents automatically generated from ont-orr OpenAPI spec by https://generator.swagger.io/api/gen/clients/python. See https://github.com/ESIPFed/corpy_example for a demo program.","archived":false,"fork":false,"pushed_at":"2019-01-31T19:20:29.000Z","size":135,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-04-15T02:59:29.556Z","etag":null,"topics":["client-library","esip","esip-lab","jsonld","ontology","ontology-search","python27","python3","rdf","turtle"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ESIPFed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-01-17T21:54:21.000Z","updated_at":"2019-01-31T19:20:30.000Z","dependencies_parsed_at":"2023-09-22T08:23:24.956Z","dependency_job_id":null,"html_url":"https://github.com/ESIPFed/corpy","commit_stats":{"total_commits":7,"total_committers":2,"mean_commits":3.5,"dds":0.1428571428571429,"last_synced_commit":"e1eec577f15934c6969784c4025d2c29eb7c32ca"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ESIPFed/corpy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ESIPFed%2Fcorpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ESIPFed%2Fcorpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ESIPFed%2Fcorpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ESIPFed%2Fcorpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ESIPFed","download_url":"https://codeload.github.com/ESIPFed/corpy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ESIPFed%2Fcorpy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270228429,"owners_count":24548817,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["client-library","esip","esip-lab","jsonld","ontology","ontology-search","python27","python3","rdf","turtle"],"created_at":"2025-08-13T10:50:23.903Z","updated_at":"2025-08-13T10:50:41.057Z","avatar_url":"https://github.com/ESIPFed.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# swagger-client\nThe main ORR documentation is located at: https://mmisw.org/orrdoc/  __Please note__: - The ORR API is approaching a stable version but is still work in progress.   Please [let us know](https://github.com/mmisw/mmiorr-docs/issues) if you have any   questions or suggestions.  - Besides the documentation itself, this page lets you directly exercise and test the API.   Click on any operation header below to learn more details about it, and see a \\\"Try it out\\\" button.  - You can click on the \\\"Authorize\\\" button at the top right of this page   (or the `!` icon under the particular operation)   to retrieve an authentication token corresponding to your ORR instance credentials (username and password).   Once authorized, the authentication token will be automatically included in the corresponding request.   You will be able to not only perform the basic `GET` operations,   but also see expanded responses according to your access privileges   as well as perform other operations.  - The \\\"Try it out\\\" button will also show the corresponding API call that you can submit   from the command line using [`curl`](https://curl.haxx.se/).  - This API includes administrative operations related with the triple store.   The SPARQL endpoint itself   (located at `http://cor.esipfed.org/sparql` for the MMI ORR instance)   is not described here.   (General SPARQL information can be found [here](https://en.wikipedia.org/wiki/SPARQL),   and regarding the current service used by the ORR to support the SPARQL interface   [here](http://franz.com/agraph/support/documentation/current/http-protocol.html).)  - Actual requests from this page are against the specific endpoint at   `http://cor.esipfed.org/ont`. \n\nThis Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:\n\n- API version: v0\n- Package version: 1.0.0\n- Build package: io.swagger.codegen.languages.PythonClientCodegen\n\n## Requirements.\n\nPython 2.7 and 3.4+\n\n## Installation \u0026 Usage\n### pip install\n\nIf the python package is hosted on Github, you can install directly from Github\n\n```sh\npip install git+https://github.com/ESIPFed/corpy.git\n```\n(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/ESIPFed/corpy.git`)\n\nThen import the package:\n```python\nimport swagger_client \n```\n\n### Setuptools\n\nInstall via [Setuptools](http://pypi.python.org/pypi/setuptools).\n\n```sh\npython setup.py install --user\n```\n(or `sudo python setup.py install` to install the package for all users)\n\nThen import the package:\n```python\nimport swagger_client\n```\n\n## Getting Started\n\nPlease follow the [installation procedure](#installation--usage) and then run the following:\n\n```python\nfrom __future__ import print_function\nimport time\nimport swagger_client\nfrom swagger_client.rest import ApiException\nfrom pprint import pprint\n\n# Configure HTTP basic authorization: basicAuth\nconfiguration = swagger_client.Configuration()\nconfiguration.username = 'YOUR_USERNAME'\nconfiguration.password = 'YOUR_PASSWORD'\n\n# create an instance of the API class\napi_instance = swagger_client.OntologyApi(swagger_client.ApiClient(configuration))\nbody = swagger_client.PostOnt() # PostOnt | Object with information for the ontology to be registered.  To provide the contents of the ontology you have two options:  - Specify a previously uploaded file (via `POST /ont/upload`) by   providing the corresponding reported filename (in the `uploadedFilename`   field) and format (`uploadedFormat`). There's no need to upload the file   itself again. - Embbed the complete contents in the `contents` field, and provide the associated   format in `format`.  See the `PostOnt` object description for more details. \n\ntry:\n    # Registers a brand new ontology\n    api_instance.add_ont(body)\nexcept ApiException as e:\n    print(\"Exception when calling OntologyApi-\u003eadd_ont: %s\\n\" % e)\n\n```\n\n## Documentation for API Endpoints\n\nAll URIs are relative to *http://cor.esipfed.org/ont/api/v0*\n\nClass | Method | HTTP request | Description\n------------ | ------------- | ------------- | -------------\n*OntologyApi* | [**add_ont**](docs/OntologyApi.md#add_ont) | **POST** /ont | Registers a brand new ontology\n*OntologyApi* | [**add_term**](docs/OntologyApi.md#add_term) | **POST** /ont/term | Adds a term to an existing ORR vocabulary\n*OntologyApi* | [**delete_ont**](docs/OntologyApi.md#delete_ont) | **DELETE** /ont | Deletes a particular version or a whole ontology entry\n*OntologyApi* | [**ont_get**](docs/OntologyApi.md#ont_get) | **GET** /ont | Gets information about registered ontologies or terms\n*OntologyApi* | [**update_ont**](docs/OntologyApi.md#update_ont) | **PUT** /ont | Updates a given ontology version or adds a new version\n*OntologyApi* | [**upload_ont**](docs/OntologyApi.md#upload_ont) | **POST** /ont/upload | Uploads an ontology file for subsequent registration\n*OrganizationApi* | [**add_org**](docs/OrganizationApi.md#add_org) | **POST** /org | Registers an organization\n*OrganizationApi* | [**delete_org**](docs/OrganizationApi.md#delete_org) | **DELETE** /org/{orgName} | Unregisters an organization\n*OrganizationApi* | [**org_get**](docs/OrganizationApi.md#org_get) | **GET** /org | Gets information about registered organizations\n*OrganizationApi* | [**org_org_name_get**](docs/OrganizationApi.md#org_org_name_get) | **GET** /org/{orgName} | Gets basic information of a particular organization\n*OrganizationApi* | [**update_org**](docs/OrganizationApi.md#update_org) | **PUT** /org/{orgName} | Updates information about a registered organization\n*TermApi* | [**add_term**](docs/TermApi.md#add_term) | **POST** /ont/term | Adds a term to an existing ORR vocabulary\n*TermApi* | [**term_get**](docs/TermApi.md#term_get) | **GET** /term | Simplified semantic search queries against the triple store\n*TriplestoreApi* | [**get_triplestore_size**](docs/TriplestoreApi.md#get_triplestore_size) | **GET** /ts | Gets the size of the store or the size of a particular named graph\n*TriplestoreApi* | [**load_ont_in_triplestore**](docs/TriplestoreApi.md#load_ont_in_triplestore) | **POST** /ts | Loads an ontology in the triplestore\n*TriplestoreApi* | [**reload_onts_in_triplestore**](docs/TriplestoreApi.md#reload_onts_in_triplestore) | **PUT** /ts | Reloads an ontology or all ontologies in the triplestore\n*TriplestoreApi* | [**unload_onts_in_triplestore**](docs/TriplestoreApi.md#unload_onts_in_triplestore) | **DELETE** /ts | Unloads an ontology or all ontologies from the triplestore\n*UserApi* | [**add_user**](docs/UserApi.md#add_user) | **POST** /user | Registers a user\n*UserApi* | [**delete_user**](docs/UserApi.md#delete_user) | **DELETE** /user/{userName} | Unregisters a user\n*UserApi* | [**update_user**](docs/UserApi.md#update_user) | **PUT** /user/{userName} | Updates information about a registered user\n*UserApi* | [**user_get**](docs/UserApi.md#user_get) | **GET** /user | Gets information about registered users\n*UserApi* | [**user_user_name_get**](docs/UserApi.md#user_user_name_get) | **GET** /user/{userName} | Gets basic information of a particular user\n\n\n## Documentation For Models\n\n - [Ont](docs/Ont.md)\n - [Org](docs/Org.md)\n - [OrgNew](docs/OrgNew.md)\n - [OrgUpdated](docs/OrgUpdated.md)\n - [PossibleOntologyInfo](docs/PossibleOntologyInfo.md)\n - [PostOnt](docs/PostOnt.md)\n - [PostOrg](docs/PostOrg.md)\n - [PostTerm](docs/PostTerm.md)\n - [PostUser](docs/PostUser.md)\n - [PutOnt](docs/PutOnt.md)\n - [PutOrg](docs/PutOrg.md)\n - [PutUser](docs/PutUser.md)\n - [UploadedFileInfo](docs/UploadedFileInfo.md)\n - [User](docs/User.md)\n\n\n## Documentation For Authorization\n\n\n## basicAuth\n\n- **Type**: HTTP basic authentication\n\n\n## Author\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesipfed%2Fcorpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fesipfed%2Fcorpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesipfed%2Fcorpy/lists"}