Skip to content

Commit ef5f94b

Browse files
committed
v1.0.3
1 parent 66757f2 commit ef5f94b

File tree

3 files changed

+94
-66
lines changed

3 files changed

+94
-66
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
# Changelog
22

33

4+
## v 1.0.3
5+
6+
* Added DSL grammar for DSL V2.7
7+
8+
## v 1.0.2
9+
10+
* Minor code cleanups
11+
412
## v 1.0.1
513

614
* Added DSL grammar for DSL V2.6
715

816

9-
1017
## v 0.9.9
1118

1219
* New parameters for [DslDataset.as_dataframe()](https://digital-science.github.io/dimcli/modules.html#dimcli.core.api.DslDataset.as_dataframe)

dimcli/VERSION.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# !/usr/bin/env python
22
# -*- coding: UTF-8 -*-
33

4-
__version__ = "1.0.2" # LATEST? => https://pypi.org/project/dimcli/
4+
__version__ = "1.0.3" # LATEST? => https://pypi.org/project/dimcli/
55
__copyright__ = "CopyRight (C) 2018-2023 by Digital Science"
66
__license__ = "MIT"
77
__author__ = "Michele Pasin"

dimcli/core/dsl_grammar_core.py

Lines changed: 85 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -586,10 +586,11 @@
586586
"fieldsets": ["basics", "extras", "categories", "studies"],
587587
"metrics": {"count": {"description": "Total count", "name": "count"}},
588588
"search_fields": [
589-
"full_data",
590-
"investigators",
591589
"title_only",
592590
"title_abstract_only",
591+
"investigators",
592+
"raw_affiliations",
593+
"full_data",
593594
],
594595
},
595596
"datasets": {
@@ -975,7 +976,7 @@
975976
},
976977
"fieldsets": ["basics", "categories"],
977978
"metrics": {"count": {"description": "Total count", "name": "count"}},
978-
"search_fields": ["full_data", "title_only", "title_abstract_only"],
979+
"search_fields": ["title_only", "title_abstract_only", "full_data"],
979980
},
980981
"funder_groups": {
981982
"fields": {
@@ -1518,11 +1519,12 @@
15181519
},
15191520
},
15201521
"search_fields": [
1521-
"full_data",
1522-
"concepts",
1523-
"investigators",
15241522
"title_only",
15251523
"title_abstract_only",
1524+
"concepts",
1525+
"investigators",
1526+
"raw_affiliations",
1527+
"full_data",
15261528
],
15271529
},
15281530
"organizations": {
@@ -1867,6 +1869,15 @@
18671869
"long_description": None,
18681870
"type": "string",
18691871
},
1872+
"application_number": {
1873+
"description": "The application number is the number assigned to a patent application when it is filed.",
1874+
"is_entity": False,
1875+
"is_facet": False,
1876+
"is_filter": True,
1877+
"is_multivalue": False,
1878+
"long_description": None,
1879+
"type": "string",
1880+
},
18701881
"assignee_cities": {
18711882
"description": "City of the assignees of the patent, expressed as GeoNames ID and name (note: this value is extracted independently from GRID).",
18721883
"is_entity": True,
@@ -2048,7 +2059,7 @@
20482059
"type": "organizations",
20492060
},
20502061
"date": {
2051-
"description": "Date when the patent was filed.",
2062+
"description": "The filing date is the date when a patent application is first filed at a patent office.",
20522063
"is_entity": False,
20532064
"is_facet": False,
20542065
"is_filter": True,
@@ -2075,14 +2086,23 @@
20752086
"type": "string",
20762087
},
20772088
"expiration_date": {
2078-
"description": "Date when the patent expires.",
2089+
"description": "Expiration date is an estimate of when a patent is expected to expire. Note: The expiration date should not be considered authoritative or final. An attorney or the relevant patent office should be consulted for an authoritative expiration and status determination.",
20792090
"is_entity": False,
20802091
"is_facet": False,
20812092
"is_filter": True,
20822093
"is_multivalue": False,
20832094
"long_description": None,
20842095
"type": "date",
20852096
},
2097+
"family_count": {
2098+
"description": "Number of documents within a simple patent family.",
2099+
"is_entity": False,
2100+
"is_facet": True,
2101+
"is_filter": True,
2102+
"is_multivalue": False,
2103+
"long_description": None,
2104+
"type": "integer",
2105+
},
20862106
"family_id": {
20872107
"description": "Identifier of the corresponding `EPO patent family <https://www.epo.org/searching-for-patents/helpful-resources/first-time-here/patent-families/docdb.html>`_.",
20882108
"is_entity": False,
@@ -2101,6 +2121,15 @@
21012121
"long_description": None,
21022122
"type": "string",
21032123
},
2124+
"filing_date": {
2125+
"description": "The filing date is the date when a patent application is first filed at a patent office.",
2126+
"is_entity": False,
2127+
"is_facet": False,
2128+
"is_filter": True,
2129+
"is_multivalue": False,
2130+
"long_description": None,
2131+
"type": "date",
2132+
},
21042133
"filing_status": {
21052134
"description": "Filing Status of the patent e.g. ‘Application’ or ‘Grant’ (note: this field is also called ‘Publication type’ in the Dimensions webapp).",
21062135
"is_entity": False,
@@ -2129,7 +2158,7 @@
21292158
"type": "organizations",
21302159
},
21312160
"granted_date": {
2132-
"description": "The date on which the official body grants the patent.",
2161+
"description": "Granted date is the date when the patent office issues a patent to the applicant.",
21332162
"is_entity": False,
21342163
"is_facet": False,
21352164
"is_filter": True,
@@ -2228,7 +2257,7 @@
22282257
"type": "organizations",
22292258
},
22302259
"priority_date": {
2231-
"description": "The earliest filing date in a family of patent applications.",
2260+
"description": "The priority date describes the first date of filing of a patent application.",
22322261
"is_entity": False,
22332262
"is_facet": False,
22342263
"is_filter": True,
@@ -2282,7 +2311,7 @@
22822311
"type": "publication_links",
22832312
},
22842313
"reference_ids": {
2285-
"description": "Dimensions IDs of the patents which are cited by this patent (see also: :ref:`patents_model` section).",
2314+
"description": "Dimensions IDs of the patents which are cited by this patent (see also: :ref:`patents_model` section). This field may in some cases include identifiers of provisional patent applications that are not yet in the Dimensions database. In such cases, on the Dimensions web application patent detail page, the total number of references will be slightly different as the web application only shows fully resolved identifiers.",
22862315
"is_entity": False,
22872316
"is_facet": False,
22882317
"is_filter": True,
@@ -2339,10 +2368,11 @@
23392368
"fieldsets": ["basics", "extras", "categories"],
23402369
"metrics": {"count": {"description": "Total count", "name": "count"}},
23412370
"search_fields": [
2342-
"full_data",
2343-
"inventors",
23442371
"title_only",
23452372
"title_abstract_only",
2373+
"assignees",
2374+
"inventors",
2375+
"full_data",
23462376
],
23472377
},
23482378
"policy_documents": {
@@ -2557,7 +2587,7 @@
25572587
},
25582588
"fieldsets": ["basics", "categories"],
25592589
"metrics": {"count": {"description": "Total count", "name": "count"}},
2560-
"search_fields": ["full_data", "title_only"],
2590+
"search_fields": ["title_only", "full_data"],
25612591
},
25622592
"publications": {
25632593
"fields": {
@@ -2967,7 +2997,7 @@
29672997
"type": "string",
29682998
},
29692999
"open_access": {
2970-
"description": "Open Access categories for publications `(latest version) <https://www.dimensions.ai/wp-content/uploads/2021/02/Dimensions_New-OA-status-definition.pdf>`_",
3000+
"description": "Open Access categories for publications (`more info <https://dimensions.freshdesk.com/support/solutions/articles/23000018863-where-does-the-definition-of-open-access-come-from-in-dimensions-what-does-it-include->`_)",
29713001
"is_entity": False,
29723002
"is_facet": True,
29733003
"is_filter": True,
@@ -3256,15 +3286,15 @@
32563286
},
32573287
},
32583288
"search_fields": [
3259-
"terms",
32603289
"full_data_exact",
3290+
"terms",
3291+
"title_abstract_only",
3292+
"authors",
3293+
"title_only",
32613294
"concepts",
32623295
"raw_affiliations",
3263-
"acknowledgements",
3264-
"title_only",
3265-
"title_abstract_only",
32663296
"full_data",
3267-
"authors",
3297+
"acknowledgements",
32683298
],
32693299
},
32703300
"reports": {
@@ -3641,7 +3671,41 @@
36413671
},
36423672
"fieldsets": ["basics", "categories"],
36433673
"metrics": {"count": {"description": "Total count", "name": "count"}},
3644-
"search_fields": ["full_data", "title_abstract_only"],
3674+
"search_fields": ["title_abstract_only", "full_data"],
3675+
},
3676+
"research_org_groups": {
3677+
"fields": {
3678+
"id": {
3679+
"description": "The Dimensions ID of the group.",
3680+
"is_entity": False,
3681+
"is_facet": False,
3682+
"is_filter": True,
3683+
"is_multivalue": False,
3684+
"long_description": None,
3685+
"type": "string",
3686+
},
3687+
"name": {
3688+
"description": "The name of the group.",
3689+
"is_entity": False,
3690+
"is_facet": False,
3691+
"is_filter": True,
3692+
"is_multivalue": False,
3693+
"long_description": None,
3694+
"type": "string",
3695+
},
3696+
"organization_ids": {
3697+
"description": "The GRID IDs of the organizations which are members of this group.",
3698+
"is_entity": False,
3699+
"is_facet": False,
3700+
"is_filter": True,
3701+
"is_multivalue": True,
3702+
"long_description": None,
3703+
"type": "string",
3704+
},
3705+
},
3706+
"fieldsets": ["basics"],
3707+
"metrics": {"count": {"description": "Total count", "name": "count"}},
3708+
"search_fields": ["name"],
36453709
},
36463710
"researchers": {
36473711
"fields": {
@@ -3850,15 +3914,6 @@
38503914
"long_description": None,
38513915
"type": "string",
38523916
},
3853-
"publisher": {
3854-
"description": "The name of the source publisher entity.",
3855-
"is_entity": False,
3856-
"is_facet": True,
3857-
"is_filter": True,
3858-
"is_multivalue": False,
3859-
"long_description": None,
3860-
"type": "string",
3861-
},
38623917
"score": {
38633918
"description": "For full-text queries, the relevance score is a numerical value assigned to a document that indicates how relevant that document is for a given query. Note: the score is query-specific i.e. it cannot be used to compare documents across queries.",
38643919
"is_entity": False,
@@ -3918,39 +3973,5 @@
39183973
"metrics": {"count": {"description": "Total count", "name": "count"}},
39193974
"search_fields": ["title_only"],
39203975
},
3921-
"research_org_groups": {
3922-
"fields": {
3923-
"id": {
3924-
"description": "The Dimensions ID of the group.",
3925-
"is_entity": False,
3926-
"is_facet": False,
3927-
"is_filter": True,
3928-
"is_multivalue": False,
3929-
"long_description": None,
3930-
"type": "string",
3931-
},
3932-
"name": {
3933-
"description": "The name of the group.",
3934-
"is_entity": False,
3935-
"is_facet": False,
3936-
"is_filter": True,
3937-
"is_multivalue": False,
3938-
"long_description": None,
3939-
"type": "string",
3940-
},
3941-
"organization_ids": {
3942-
"description": "The GRID IDs of the organizations which are members of this group.",
3943-
"is_entity": False,
3944-
"is_facet": False,
3945-
"is_filter": True,
3946-
"is_multivalue": True,
3947-
"long_description": None,
3948-
"type": "string",
3949-
},
3950-
},
3951-
"fieldsets": ["basics"],
3952-
"metrics": {"count": {"description": "Total count", "name": "count"}},
3953-
"search_fields": ["name"],
3954-
},
39553976
},
39563977
}

0 commit comments

Comments
 (0)