searching-academic-outputs-with-dimensions
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseOverview
概述
Query the Dimensions academic database to find publications, grants, patents, clinical trials, and researchers using the shortwing CLI.
Queries use the Dimensions Search Language (DSL) piped to shortwing.
Reference Documentation:
- dsl-reference.md — Full DSL syntax, operators, fields, and example queries
Authentication: Requires API key from https://app.dimensions.ai/account/tokens. Configure credentials in or use environment variables (, ). See Authentication section in dsl-reference.md for details.
~/.dimensions/dsl.iniDIMENSIONS_KEYDIMENSIONS_ENDPOINT使用shortwing CLI查询Dimensions学术数据库,以查找出版物、资助项目、专利、临床试验和研究人员信息。查询需使用Dimensions搜索语言(DSL)并通过管道传递给shortwing。
参考文档:
- dsl-reference.md — 完整的DSL语法、运算符、字段及示例查询
Quick Start
快速开始
bash
undefinedbash
undefinedSearch publications
搜索出版物
echo 'search publications for "machine learning" return publications limit 10' | shortwing
echo 'search publications for "machine learning" return publications limit 10' | shortwing
Search grants
搜索资助项目
echo 'search grants for "artificial intelligence" return grants[title+funding_usd] limit 10' | shortwing
echo 'search grants for "artificial intelligence" return grants[title+funding_usd] limit 10' | shortwing
Find researchers
查找研究人员
echo 'search researchers for "John Smith" return researchers[first_name+last_name+current_research_org] limit 10' | shortwing
undefinedecho 'search researchers for "John Smith" return researchers[first_name+last_name+current_research_org] limit 10' | shortwing
undefinedQuery Structure
查询结构
search <source> [for "<terms>"] [where <filters>] return <result> [limit N]search <source> [for "<terms>"] [where <filters>] return <result> [limit N]Available Sources
可用数据源
| Source | Description |
|---|---|
| Research papers, articles, books |
| Research funding awards |
| Patent applications and grants |
| Clinical trial records |
| Researcher profiles |
| Research datasets |
| 数据源 | 描述 |
|---|---|
| 研究论文、文章、书籍 |
| 研究资助项目 |
| 专利申请与授权 |
| 临床试验记录 |
| 研究人员档案 |
| 研究数据集 |
Common Query Patterns
常见查询模式
| Task | Query |
|---|---|
| Search by keyword | |
| Filter by year | |
| Search title only | |
| Highly cited papers | |
| Grants by funder | |
| Recent patents | |
| Clinical trials | |
| Aggregations | |
| 任务 | 查询语句 |
|---|---|
| 关键词搜索 | |
| 按年份筛选 | |
| 仅标题搜索 | |
| 高引用论文 | |
| 按资助方查找项目 | |
| 近期专利 | |
| 临床试验检索 | |
| 聚合统计 | |
Return Specific Fields
返回指定字段
Use to combine fields:
+bash
echo 'search publications for "quantum" return publications[id+title+doi+year+times_cited] limit 10' | shortwing使用组合多个字段:
+bash
echo 'search publications for "quantum" return publications[id+title+doi+year+times_cited] limit 10' | shortwingFilter Operators
过滤运算符
| Operator | Example |
|---|---|
| |
| |
| |
| |
| |
| 运算符 | 示例 |
|---|---|
| |
| |
| |
| |
| |
Boolean Search Operators
布尔搜索运算符
Boolean operators in search terms must be UPPERCASE and inside the quotes:
| Pattern | Example |
|---|---|
| AND (both required) | |
| OR (either matches) | |
| NOT (exclude) | |
| Grouped | |
| Exact phrase | |
| Proximity | |
Important: Lowercase in the clause combines filters, but search terms require UPPERCASE .
and/orwhereAND/OR/NOT搜索词中的布尔运算符必须为大写且位于引号内部:
| 模式 | 示例 |
|---|---|
| AND(同时满足) | |
| OR(满足其一) | |
| NOT(排除) | |
| 分组 | |
| 精确短语 | |
| 邻近搜索 | |
重要提示:子句中的小写用于组合过滤条件,但搜索词中必须使用大写的。
whereand/orAND/OR/NOTTips for Precise Results
精准检索技巧
-
Use targeted search indexes for relevant results:bash
# Most specific - title only echo 'search publications in title_only for "machine learning" return publications limit 20' | shortwing # Good balance - title and abstract echo 'search publications in title_abstract_only for "peer feedback AND writing" return publications limit 20' | shortwing -
Use phrase searches for exact multi-word terms:bash
echo 'search publications in title_abstract_only for "\"formative assessment\" AND \"higher education\"" return publications limit 20' | shortwing -
Combine search with filters to narrow scope:bash
echo 'search publications in title_abstract_only for "\"peer review\"" where year>=2020 and times_cited>10 return publications[title+doi+times_cited+year] limit 20' | shortwing -
Filter by citation count to find influential papers:bash
echo 'search publications for "cognitive load" where times_cited>50 return publications sort by times_cited desc limit 10' | shortwing
-
使用针对性的搜索索引获取相关结果:bash
# 最精准 - 仅标题 echo 'search publications in title_only for "machine learning" return publications limit 20' | shortwing # 平衡精准度与覆盖范围 - 标题和摘要 echo 'search publications in title_abstract_only for "peer feedback AND writing" return publications limit 20' | shortwing -
使用短语搜索匹配精确的多词术语:bash
echo 'search publications in title_abstract_only for "\"formative assessment\" AND \"higher education\"" return publications limit 20' | shortwing -
结合搜索与过滤条件缩小范围:bash
echo 'search publications in title_abstract_only for "\"peer review\"" where year>=2020 and times_cited>10 return publications[title+doi+times_cited+year] limit 20' | shortwing -
按引用次数过滤找到有影响力的论文:bash
echo 'search publications for "cognitive load" where times_cited>50 return publications sort by times_cited desc limit 10' | shortwing
General Tips
通用技巧
- Always use double quotes around search terms:
for "search term" - Use for partial string matching:
~where journal.title~"Nature" - Use to control result size
limit - See dsl-reference.md for complete syntax and all available fields
- 始终在搜索词周围使用双引号:
for "search term" - 使用进行部分字符串匹配:
~where journal.title~"Nature" - 使用控制结果数量
limit - 查看dsl-reference.md获取完整语法和所有可用字段
Error Handling
错误处理
| Error | Solution |
|---|---|
| shortwing not found | Install from ~/aves/shortwing: |
| Configuration error (exit code 2) | Set |
| Invalid credentials | Get new key from https://app.dimensions.ai/account/tokens |
| Query syntax error (exit code 1) | Check DSL syntax in dsl-reference.md |
| 错误 | 解决方法 |
|---|---|
| shortwing未找到 | 从~/aves/shortwing安装: |
| 配置错误(退出码2) | 设置 |
| 凭据无效 | 从https://app.dimensions.ai/account/tokens获取新密钥 |
| 查询语法错误(退出码1) | 查看dsl-reference.md中的DSL语法规范 |