Model
QueryDOI
¶
Bases: DomainObject
Object for holding query DOIs.
Source code in ckanext/query_dois/model.py
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | |
on_resource(resource_id)
staticmethod
¶
A convenience method to filter by a specific resource id.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resource_id
|
the resource id |
required |
Returns:
| Type | Description |
|---|---|
|
an sqlalchemy boolean expression |
Source code in ckanext/query_dois/model.py
67 68 69 70 71 72 73 74 75 | |
QueryDOIStat
¶
Bases: DomainObject
Object for holding query DOIs stats.
Source code in ckanext/query_dois/model.py
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | |
to_dict()
¶
Returns the object as a dict for the stats API response.
Returns:
| Type | Description |
|---|---|
|
a dict |
Source code in ckanext/query_dois/model.py
83 84 85 86 87 88 89 90 91 92 93 94 95 96 | |