Project:Profile types: Difference between revisions

From MaRDI portal
grammar
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
On the MaRDI portal, the property [[Property:P1460|MaRDI profile type (P1460)]] several flavours of [[Item:Q5976451|MaRDI profile type (Q5976451)]] are in use to facilitate exploration of the data contained in the underlying knowledge graph.
On the MaRDI portal, the property [[Property:P1460|MaRDI profile type (P1460)]] and several flavours of [[Item:Q5976451|MaRDI profile type (Q5976451)]] are in use to facilitate exploration of the data contained in the underlying knowledge graph.


These types are:
These types are:
Line 6: Line 6:
* [[Item:Q5976450|MaRDI software profile (Q5976450)]], mediated by [[Template:Software]]. Example: [[Software:122438|coffee (Q122438)]].
* [[Item:Q5976450|MaRDI software profile (Q5976450)]], mediated by [[Template:Software]]. Example: [[Software:122438|coffee (Q122438)]].
* [[Item:Q5981696|MaRDI formula profile (Q5981696)]], mediated by [[Template:Formula]]. Example: [[Formula:1|Definition: Binomial Coefficients]].
* [[Item:Q5981696|MaRDI formula profile (Q5981696)]], mediated by [[Template:Formula]]. Example: [[Formula:1|Definition: Binomial Coefficients]].
* [[Item:Q5984635|MaRDI dataset profile (Q5984635)]], mediated by [[Template:Dataset]]. Example: [[Dataset:4834875|Precipitation dataset]].


Individual items in the graph can then be annotated as to which MaRDI profile type they should be combined with, as demoed [https://portal.mardi4nfdi.de/w/index.php?title=Item%3AQ161115&diff=22687061&oldid=6288087 here].
Individual items in the graph can then be annotated as to which MaRDI profile type they should be combined with, as demoed [https://portal.mardi4nfdi.de/w/index.php?title=Item%3AQ161115&diff=22687061&oldid=6288087 here].
== Add a new profile type ==
# Create template (Tim)
# Create profile item (Eloi / Daniel)
# Add [https://github.com/MaRDI4NFDI/portal-compose/blob/main/mediawiki/LocalSettings.d/mardi_namespaces.php namespace]
# Adjust config [https://github.com/MaRDI4NFDI/portal-compose/blob/main/mediawiki/LocalSettings.d/LocalSettings.override.php in LocalSettings]<syntaxhighlight lang="php">
$wgMathProfileQIdMap['namespace']='profileItem';
// examples
$wgMathProfileQIdMap['person']='Q5976445';
$wgMathProfileQIdMap['software']='Q5976450';
</syntaxhighlight>
# Add SPARQL query if necessary, also in LocalSettings<syntaxhighlight lang="php">
$wgMathProfileQueries['namespace']='query';
// example
$wgMathProfileQueries['dataset']='?item wdt:P1460 wd:Q5984635';
</syntaxhighlight>
# Trigger manual rerun of page creation (for now) <syntaxhighlight lang="bash">
mardi-test-user@mardi02:~/portal-compose$ docker compose exec -T wikibase /var/www/html/maintenance/run /var/www/html/extensions/MathSearch/maintenance/ProfilePages create <namespace>
</syntaxhighlight>


== To do ==
== To do ==


=== Create new profile types ===
* Profile types for
* Profile types for
** journals
** journals
*** [https://github.com/MaRDI4NFDI/MaRDIRoadmap/issues/16 ticket]
*** potential starting point: [[Item:Q57539|Journal of Statistical Software (Q57539)]]
** datasets
** events
** events
** formulas
** theorems
** theorems
** conjectures
** conjectures
Line 25: Line 49:
**** arXiv
**** arXiv
* external knowledge graphs
* external knowledge graphs
=== Modify existing profile types ===
* dataset
** Add a URL pointing to the dataset
=== Improve documentation ===
''This refers to the profile-specific templates and modules as well as to help pages.''
* All profile types

Revision as of 05:33, 11 April 2024

On the MaRDI portal, the property MaRDI profile type (P1460) and several flavours of MaRDI profile type (Q5976451) are in use to facilitate exploration of the data contained in the underlying knowledge graph.

These types are:

Individual items in the graph can then be annotated as to which MaRDI profile type they should be combined with, as demoed here.

Add a new profile type

  1. Create template (Tim)
  2. Create profile item (Eloi / Daniel)
  3. Add namespace
  4. Adjust config in LocalSettings
    $wgMathProfileQIdMap['namespace']='profileItem';
    // examples
    $wgMathProfileQIdMap['person']='Q5976445';
    $wgMathProfileQIdMap['software']='Q5976450';
    
  5. Add SPARQL query if necessary, also in LocalSettings
    $wgMathProfileQueries['namespace']='query';
    // example
    $wgMathProfileQueries['dataset']='?item wdt:P1460 wd:Q5984635';
    
  6. Trigger manual rerun of page creation (for now)
    mardi-test-user@mardi02:~/portal-compose$ docker compose exec -T wikibase /var/www/html/maintenance/run /var/www/html/extensions/MathSearch/maintenance/ProfilePages create <namespace>
    

To do

Create new profile types

Modify existing profile types

  • dataset
    • Add a URL pointing to the dataset

Improve documentation

This refers to the profile-specific templates and modules as well as to help pages.

  • All profile types