All URIs are relative to https://api.wordlift.io
| Method | HTTP request | Description |
|---|---|---|
| create_entities | POST /entities | Create |
| create_or_update_entities | PUT /entities | Update (or create) |
| delete_entities | DELETE /entities | Delete |
| get_entities | GET /entities | Get |
| patch_entities | PATCH /entities | Patch Entity |
str create_entities(body)
Create
Create new entities by automatically generating their id.
- Api Key Authentication (ApiKey):
import wordlift_client
from wordlift_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.wordlift.io
# See configuration.py for a list of all supported configuration parameters.
configuration = wordlift_client.Configuration(
host = "https://api.wordlift.io"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKey
configuration.api_key['ApiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
# Enter a context with an instance of the API client
async with wordlift_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = wordlift_client.EntitiesApi(api_client)
body = 'body_example' # str |
try:
# Create
api_response = await api_instance.create_entities(body)
print("The response of EntitiesApi->create_entities:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling EntitiesApi->create_entities: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| body | str |
str
- Content-Type: application/ld+json, application/rdf+xml, text/turtle
- Accept: application/ld+json, application/rdf+xml, text/turtle
| Status code | Description | Response headers |
|---|---|---|
| 200 | Success | - |
| 412 | Invalid request parameters | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
create_or_update_entities(body)
Update (or create)
Create or update entities by using the provided ids.
- Api Key Authentication (ApiKey):
import wordlift_client
from wordlift_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.wordlift.io
# See configuration.py for a list of all supported configuration parameters.
configuration = wordlift_client.Configuration(
host = "https://api.wordlift.io"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKey
configuration.api_key['ApiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
# Enter a context with an instance of the API client
async with wordlift_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = wordlift_client.EntitiesApi(api_client)
body = 'body_example' # str |
try:
# Update (or create)
await api_instance.create_or_update_entities(body)
except Exception as e:
print("Exception when calling EntitiesApi->create_or_update_entities: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| body | str |
void (empty response body)
- Content-Type: application/ld+json, application/rdf+xml, text/turtle
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 200 | Success | - |
| 412 | Invalid request parameters | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_entities(id, include_children=include_children, include_referenced=include_referenced)
Delete
Delete entities with the provided ids.
- Api Key Authentication (ApiKey):
import wordlift_client
from wordlift_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.wordlift.io
# See configuration.py for a list of all supported configuration parameters.
configuration = wordlift_client.Configuration(
host = "https://api.wordlift.io"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKey
configuration.api_key['ApiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
# Enter a context with an instance of the API client
async with wordlift_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = wordlift_client.EntitiesApi(api_client)
id = ['id_example'] # List[str] | One or more ids, in the form of URLs.
include_children = 'false' # str | Whether to delete all the entities whose ids start with the provided ids, by default false. (optional) (default to 'false')
include_referenced = 'false' # str | Whether to delete all the referenced entities (e.g. in `schema:mentions`), by default false. (optional) (default to 'false')
try:
# Delete
await api_instance.delete_entities(id, include_children=include_children, include_referenced=include_referenced)
except Exception as e:
print("Exception when calling EntitiesApi->delete_entities: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | List[str] | One or more ids, in the form of URLs. | |
| include_children | str | Whether to delete all the entities whose ids start with the provided ids, by default false. | [optional] [default to 'false'] |
| include_referenced | str | Whether to delete all the referenced entities (e.g. in `schema:mentions`), by default false. | [optional] [default to 'false'] |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 200 | Success | - |
| 412 | Invalid request parameters | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str get_entities(id, include_children=include_children, include_referenced=include_referenced, include_private=include_private)
Get
Get entities with the provided ids.
- Api Key Authentication (ApiKey):
import wordlift_client
from wordlift_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.wordlift.io
# See configuration.py for a list of all supported configuration parameters.
configuration = wordlift_client.Configuration(
host = "https://api.wordlift.io"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKey
configuration.api_key['ApiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
# Enter a context with an instance of the API client
async with wordlift_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = wordlift_client.EntitiesApi(api_client)
id = ['id_example'] # List[str] | One or more ids, in the form of URLs.
include_children = 'false' # str | Whether to return all the entities whose ids start with the provided ids, by default false. (optional) (default to 'false')
include_referenced = 'false' # str | Whether to return all the referenced entities (e.g. in `schema:mentions`), by default false. (optional) (default to 'false')
include_private = 'false' # str | Whether to return private properties, requires an authenticated request, by default false. (optional) (default to 'false')
try:
# Get
api_response = await api_instance.get_entities(id, include_children=include_children, include_referenced=include_referenced, include_private=include_private)
print("The response of EntitiesApi->get_entities:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling EntitiesApi->get_entities: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | List[str] | One or more ids, in the form of URLs. | |
| include_children | str | Whether to return all the entities whose ids start with the provided ids, by default false. | [optional] [default to 'false'] |
| include_referenced | str | Whether to return all the referenced entities (e.g. in `schema:mentions`), by default false. | [optional] [default to 'false'] |
| include_private | str | Whether to return private properties, requires an authenticated request, by default false. | [optional] [default to 'false'] |
str
- Content-Type: Not defined
- Accept: application/ld+json, application/rdf+xml, text/turtle
| Status code | Description | Response headers |
|---|---|---|
| 200 | Success | - |
| 412 | Invalid request parameters | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str patch_entities(id, entity_patch_request)
Patch Entity
Patch entity
- Api Key Authentication (ApiKey):
import wordlift_client
from wordlift_client.models.entity_patch_request import EntityPatchRequest
from wordlift_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.wordlift.io
# See configuration.py for a list of all supported configuration parameters.
configuration = wordlift_client.Configuration(
host = "https://api.wordlift.io"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKey
configuration.api_key['ApiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
# Enter a context with an instance of the API client
async with wordlift_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = wordlift_client.EntitiesApi(api_client)
id = 'id_example' # str | Entity id.
entity_patch_request = [wordlift_client.EntityPatchRequest()] # List[EntityPatchRequest] |
try:
# Patch Entity
api_response = await api_instance.patch_entities(id, entity_patch_request)
print("The response of EntitiesApi->patch_entities:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling EntitiesApi->patch_entities: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | str | Entity id. | |
| entity_patch_request | List[EntityPatchRequest] |
str
- Content-Type: application/json-patch+json
- Accept: application/ld+json, application/rdf+xml, text/turtle
| Status code | Description | Response headers |
|---|---|---|
| 200 | Success | - |
| 412 | Invalid request parameters | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]