ComPlat / ChemistryKnowledgeBase

a project based on semantic media wiki - enriched with chemistry toolkits
1 stars 0 forks source link

Sorting in Investigation Link tables #80

Closed CNChem closed 1 year ago

CNChem commented 1 year ago

To my understanding, we can query for specific properties in the investigation links, but the table will always be sorted alphabetically by the Publication Page abbreviation. Is there a way to customize the sorting? It doesn't seem to work through the structure of a SMW ask. One chemically relevant criteria would be by metal in catalyst (necessitates a substring search in the Molecular formula)

CNChem commented 1 year ago

Molecular formula is automatically analysed, every molecule has property "ContainsElement". Specific elements in every column containing a molecule (via MolID) can be queried through subqueries:

[[Catalyst::\[[ContainsElement::Cu]]\]] (All molecules containing copper in the catalyst column)

kkthek commented 1 year ago

there are 2 new parameters: sort/order for the experimentlink-parserfunction. They take a comma-separated list of properties / sort orders:

for example:

|sort=Turnover number CO, Catalyst concentration
|order=descending, ascending

This is also supported in the GUI (Insert->Investigation link)