Skip to content

Aspects

Egon Willighagen edited this page Jan 3, 2026 · 14 revisions

Scholia displays content using various aspects, like author, work, venue, and multiple specific topic pages like chemical. The views.py script has a classes_to_aspect() method that will suggest the default aspect to use for that item.

The below lists can be extended by limiting them to a minimal number of wiki sitelinks by adding ?item wikibase:sitelinks ?sitelinks ..

Content on this page is available under the terms of the CC0 1.0 Universal Public Domain Dedication (CC0 1.0).

Random elements for aspects

The next section has SPARQL queries to list items that can be expected to be opened in Scholia by the respective aspects. To get N random items instead, add ORDER BY RAND() LIMIT N.

Default aspects for items

The following SPARQL queries can be used to get a list of Wikidata items where we have a fair chance that that aspect will be suggested. Because the Python code does not use a SPARQL query but a decision tree, it is not a 1-to-1 match.

Author

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item WHERE { ?item wdt:P31 wd:Q5 . }

Clinical trial

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item WHERE { ?item wdt:P31 wd:Q30612 . }

Series

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item WHERE {
  { ?item wdt:P31 wd:Q277759 . }
  UNION
  { ?item wdt:P31 wd:Q2217301 . }
  UNION
  { ?item wdt:P31 wd:Q27785883 . }
}

Venue

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item WHERE {
  { ?item wdt:P31 wd:Q41298 . }
  UNION
  { ?item wdt:P31 wd:Q737498 . }
  UNION
  { ?item wdt:P31 wd:Q5633421 . }
  UNION
  { ?item wdt:P31 wd:Q1143604 . }
}

Sponsor

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item WHERE {
  { ?item wdt:P31 wd:Q157031 . }
  UNION
  { ?item wdt:P31 wd:Q10498148 . }
}

Publisher

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item WHERE {
  { ?item wdt:P31 wd:Q479716 . }
  UNION
  { ?item wdt:P31 wd:Q2085381 . }
  UNION
  { ?item wdt:P31 wd:Q1320047 . }
}

Protein

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item WHERE {
  { ?item wdt:P31 wd:Q8054 . }
}

Project

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item WHERE {
  { ?item wdt:P31 wd:Q170584 . }
  UNION
  { ?item wdt:P31 wd:Q1298668 . }
}

Gene

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item WHERE {
  { ?item wdt:P31 wd:Q7187 . }
}

Work

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item WHERE {
  { ?item wdt:P31 wd:Q571 . } UNION
  { ?item wdt:P31 wd:Q49848 . } UNION
  { ?item wdt:P31 wd:Q187685 . } UNION
  { ?item wdt:P31 wd:Q191067 . } UNION
  { ?item wdt:P31 wd:Q815382 . } UNION
  { ?item wdt:P31 wd:Q871232 . } UNION
  { ?item wdt:P31 wd:Q253623 . } UNION
  { ?item wdt:P31 wd:Q580922 . } UNION
  { ?item wdt:P31 wd:Q685935 . } UNION
  { ?item wdt:P31 wd:Q947859  . } UNION
  { ?item wdt:P31 wd:Q1266946 . } UNION
  { ?item wdt:P31 wd:Q1778788 . } UNION
  { ?item wdt:P31 wd:Q1907875 . } UNION
  { ?item wdt:P31 wd:Q1980247 . } UNION
  { ?item wdt:P31 wd:Q3331189 . } UNION
  { ?item wdt:P31 wd:Q4119870 . } UNION
  { ?item wdt:P31 wd:Q5707594 . } UNION
  { ?item wdt:P31 wd:Q10870555 . } UNION
  { ?item wdt:P31 wd:Q10885494 . } UNION
  { ?item wdt:P31 wd:Q13442814 . } UNION
  { ?item wdt:P31 wd:Q7318358 . } UNION
  { ?item wdt:P31 wd:Q15621286 . } UNION
  { ?item wdt:P31 wd:Q17928402 . } UNION
  { ?item wdt:P31 wd:Q21481766 . } UNION
  { ?item wdt:P31 wd:Q23927052 . } UNION
  { ?item wdt:P31 wd:Q30070590 . } UNION
  { ?item wdt:P31 wd:Q43305660 . } UNION
  { ?item wdt:P31 wd:Q45182324 . } UNION
  { ?item wdt:P31 wd:Q47461344 . } UNION
  { ?item wdt:P31 wd:Q54670950 . } UNION
  { ?item wdt:P31 wd:Q56119332 . } UNION
  { ?item wdt:P31 wd:Q58632367 . } UNION
  { ?item wdt:P31 wd:Q64548048 . } UNION
  { ?item wdt:P31 wd:Q110716513 . }
}

Award

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item WHERE {
  { ?item wdt:P31 wd:Q7191 . } UNION
  { ?item wdt:P31 wd:Q193622 . } UNION
  { ?item wdt:P31 wd:Q230788 . } UNION
  { ?item wdt:P31 wd:Q378427 . } UNION
  { ?item wdt:P31 wd:Q618779 . } UNION
  { ?item wdt:P31 wd:Q1364556 . } UNION
  { ?item wdt:P31 wd:Q1407225 . } UNION
  { ?item wdt:P31 wd:Q1709894 . } UNION
  { ?item wdt:P31 wd:Q1792571 . } UNION
  { ?item wdt:P31 wd:Q1829324 . } UNION
  { ?item wdt:P31 wd:Q4220917 . } UNION
  { ?item wdt:P31 wd:Q11448906 . } UNION
  { ?item wdt:P31 wd:Q15383322 . }
}

Organization

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item WHERE {
  { ?item wdt:P31 wd:Q3918 . } UNION
  { ?item wdt:P31 wd:Q31855 . } UNION
  { ?item wdt:P31 wd:Q38723 . } UNION
  { ?item wdt:P31 wd:Q162633 . } UNION
  { ?item wdt:P31 wd:Q414147 . } UNION
  { ?item wdt:P31 wd:Q484652 . } UNION
  { ?item wdt:P31 wd:Q748019 . } UNION
  { ?item wdt:P31 wd:Q875538 . } UNION
  { ?item wdt:P31 wd:Q902104 . } UNION
  { ?item wdt:P31 wd:Q955824 . } UNION
  { ?item wdt:P31 wd:Q1371037 . } UNION
  { ?item wdt:P31 wd:Q2467461 . } UNION
  { ?item wdt:P31 wd:Q3354859 . } UNION
  { ?item wdt:P31 wd:Q4358176 . } UNION
  { ?item wdt:P31 wd:Q7315155 . } UNION
  { ?item wdt:P31 wd:Q15936437 . } UNION
  { ?item wdt:P31 wd:Q23002054 . } UNION
  { ?item wdt:P31 wd:Q29300714 . }
}

Event series

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item WHERE {
  { ?item wdt:P31 wd:Q15275719 . } UNION
  { ?item wdt:P31 wd:Q15900647 . } UNION
  { ?item wdt:P31 wd:Q47258130 . } UNION
  { ?item wdt:P31 wd:Q47459256 . }
}

Event

(See also a second query below; also in views.py)

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item WHERE {
  { ?item wdt:P31 wd:Q1543677 . } UNION
  { ?item wdt:P31 wd:Q1656682 . } UNION
  { ?item wdt:P31 wd:Q27968055 . } UNION
  { ?item wdt:P31 wd:Q52260246 . } UNION
  { ?item wdt:P31 wd:Q98381855 . } UNION
  { ?item wdt:P31 wd:Q98381912 . } UNION
  { ?item wdt:P31 wd:Q112748789 . }
}

Disease

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item WHERE {
  { ?item wdt:P31 wd:Q12136 . } UNION
  { ?item wdt:P31 wd:Q389735 . } UNION
  { ?item wdt:P31 wd:Q18965518 . }
}

Chemical

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item WHERE {
  { ?item wdt:P31 wd:Q11173 . } UNION
  { ?item wdt:P31 wd:Q36496 . } UNION
  { ?item wdt:P31 wd:Q79529 . } UNION
  { ?item wdt:P31 wd:Q407595 . } UNION
  { ?item wdt:P31 wd:Q2393187 . } UNION
  { ?item wdt:P31 wd:Q113145171 . }
}

Chemical element

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item WHERE {
  { ?item wdt:P31 wd:Q11344 . }
}

Chemical class

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item WHERE {
  { ?item wdt:P31 wd:Q15711994 . } UNION
  { ?item wdt:P31 wd:Q17339814 . } UNION
  { ?item wdt:P31 wd:Q47154513 . } UNION
  { ?item wdt:P31 wd:Q55499636 . } UNION
  { ?item wdt:P31 wd:Q55640599 . } UNION
  { ?item wdt:P31 wd:Q55662456 . } UNION
  { ?item wdt:P31 wd:Q55662548 . } UNION
  { ?item wdt:P31 wd:Q55662747 . } UNION
  { ?item wdt:P31 wd:Q55663030 . } UNION
  { ?item wdt:P31 wd:Q56256086 . } UNION
  { ?item wdt:P31 wd:Q56256173 . } UNION
  { ?item wdt:P31 wd:Q59199015 . }
}

Ontology

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item WHERE {
  { ?item wdt:P31 wd:Q324254 . } UNION
  { ?item wdt:P31 wd:Q1437388 . } UNION
  { ?item wdt:P31 wd:Q1925081 . } UNION
  { ?item wdt:P31 wd:Q3882785 . } UNION
  { ?item wdt:P31 wd:Q6546616 . } UNION
  { ?item wdt:P31 wd:Q6822257 . } UNION
  { ?item wdt:P31 wd:Q7247296 . } UNION
  { ?item wdt:P31 wd:Q7554009 . } UNION
  { ?item wdt:P31 wd:Q7977959 . } UNION
  { ?item wdt:P31 wd:Q56316737 . } UNION
  { ?item wdt:P31 wd:Q56316739 . } UNION
  { ?item wdt:P31 wd:Q56316745 . } UNION
  { ?item wdt:P31 wd:Q62210692 . } UNION
  { ?item wdt:P31 wd:Q81314568 . } UNION
  { ?item wdt:P31 wd:Q96626931 . } UNION
  { ?item wdt:P31 wd:Q105846678 . } UNION
  { ?item wdt:P31 wd:Q113006088 . } UNION
  { ?item wdt:P31 wd:Q113006099 . }
}

Pathway

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item WHERE {
  { ?item wdt:P31 wd:Q2996394 . } UNION
  { ?item wdt:P31 wd:Q4915012 . }
}

Taxon

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item WHERE {
  { ?item wdt:P31 wd:Q16521 . }
}

Dataset

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item WHERE {
  { ?item wdt:P31 wd:Q1172284 . }
}

Event (2nd time)

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item WHERE {
  { ?item wdt:P31 wd:Q46855 . } UNION
  { ?item wdt:P31 wd:Q625994 . } UNION
  { ?item wdt:P31 wd:Q2020153 . } UNION
  { ?item wdt:P31 wd:Q40444998 . }
}

Software

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item WHERE {
  { ?item wdt:P31 wd:Q341 . } UNION
  { ?item wdt:P31 wd:Q7397 . } UNION
  { ?item wdt:P31 wd:Q1639024 . } UNION
  { ?item wdt:P31 wd:Q21127166 . } UNION
  { ?item wdt:P31 wd:Q21129801 . } UNION
  { ?item wdt:P31 wd:Q24529812 . }
}

Use

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item WHERE {
  { ?item wdt:P31 wd:Q22811662 . }
}

Complex

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item WHERE {
  { ?item wdt:P31 wd:Q420927 . } UNION
  { ?item wdt:P31 wd:Q22325163 . }
}

Podcast

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item WHERE {
  { ?item wdt:P31 wd:Q24634210 . }
}

Podcast season

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item WHERE {
  { ?item wdt:P31 wd:Q69154911 . }
}

Podcast episode

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item WHERE {
  { ?item wdt:P31 wd:Q61855877 . }
}

Wikiproject

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item WHERE {
  { ?item wdt:P31 wd:Q16695773 . }
}