Difference between revisions of "Wikibase options"

From Wikibase Personal data
Jump to navigation Jump to search
(Created page with "= Options for configuration = * site name * site URL * wikibase installation * sending email * [https://www.mediawiki.org/wiki/Manual:Securing_database_passwords locate passwo...")
 
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
= Warning =
 +
This page attempted to list wikibase options. At some point I switched systems. I am now using {{Q|2060}}. This page still contains information that wasn't passed on though, so it is kept.
 +
 
= Options for configuration =
 
= Options for configuration =
 
* site name
 
* site name
Line 52: Line 55:
  
 
== Links on Wikibase installs ==
 
== Links on Wikibase installs ==
* [https://stuff.coffeecode.net/2018/wikibase-workshop-swib18.html "Hide link boxes on the right hand side of item pages"]
+
 
* [https://stuff.coffeecode.net/2018/wikibase-workshop-swib18.html "Supporting links to external vocabularies"]
+
Add the following setting to ''LocalSettings.php'':
 +
 
 +
$wgWBRepoSettings['formatterUrlProperty'] = 'P49';
 +
 
 +
where {{P|49}} depends on the instance (P49 on wiki.personaldata.io)
 +
 
 +
* See [https://stuff.coffeecode.net/2018/wikibase-workshop-swib18.html#_supporting_links_to_external_vocabularies here] for reference.
  
 
== Scripting extensions ==
 
== Scripting extensions ==
Line 66: Line 75:
 
== Embed videos ==
 
== Embed videos ==
 
* [https://www.mediawiki.org/wiki/Extension:EmbedVideo EmbedVideo extension]
 
* [https://www.mediawiki.org/wiki/Extension:EmbedVideo EmbedVideo extension]
 +
(redundant with the Widgets extension, possibly)
  
== query prefixes ==  
+
== Query prefixes ==  
* defined default prefixes `pdiot`, `pdio`, etc, and fix the autocomplete accordingly.
+
* need to add as default prefix in the query service:
 +
PREFIX pdio: <http://wiki.personaldata.io/entity/>
 +
PREFIX pdiot: <http://wiki.personaldata.io/prop/direct/>
  
== widgets ==
+
For reference, this is current list:
 +
PREFIX wd: <http://www.wikidata.org/entity/>
 +
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
 +
PREFIX wikibase: <http://wikiba.se/ontology#>
 +
PREFIX p: <http://www.wikidata.org/prop/>
 +
PREFIX ps: <http://www.wikidata.org/prop/statement/>
 +
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
 +
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
 +
PREFIX bd: <http://www.bigdata.com/rdf#>
 +
 
 +
== Widgets ==
 
* [https://www.mediawiki.org/wiki/Extension:Widgets Widgets]
 
* [https://www.mediawiki.org/wiki/Extension:Widgets Widgets]
 +
* See for instance [[Youtube]]. Error: "Error from line 24 of /var/www/html/extensions/Widgets/WidgetRenderer.php: Class 'Smarty' not found"
 +
 +
= Questions =
 +
* Is it possible to have multiple namespaces for items?
 +
* how do we fix autocomplete? (wait until default prefix is set up properly)
 +
* why do properties on wikidata also have an item associated to them? what is the use case?
 +
* canonical way to refer from an item to a template? could be used to define ShEx --> Template and create ShapeMap
 +
* hold properties and their alignment on wikidata/[https://wikibase-registry.wmflabs.org/wiki/Main_Page registry]
 +
 +
= See also =
 +
 +
* [https://wikibase-registry.wmflabs.org/wiki/Main_Page Wikibase registry main page]
 +
* [https://medium.com/@thisismattmiller/wikibase-for-research-infrastructure-part-1-d3f640dfad34 Wikibase for research infrastructure]
 +
* [https://stuff.coffeecode.net/2018/wikibase-workshop-swib18.html#_via_wikibaseimport_code_importentities_php_code notes on wikibase]
 +
* [https://wikidata.org/wiki/Special:Version Wikidata Special:Version]
  
= Problems =
+
[[Category:Help]]
== Login problem ==
 
* "There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking"
 

Latest revision as of 00:54, 26 January 2020

Warning

This page attempted to list wikibase options. At some point I switched systems. I am now using PersonalData.IO Wikibase production instance (Q2060). This page still contains information that wasn't passed on though, so it is kept.

Options for configuration

Main services

  • Wikibase
  • WDQS
  • WDQS backend
  • QuickStatements

Features

Gadgets

"The Gadgets extension provides a way for users to pick JavaScript or CSS based "gadgets" that other wiki users provide."


EasyQuery

  • EasyQuery.js gadget, needs to be updated for the query endpoint, at the very least. Can be done manually to start.

Customizing the menu

** Special:NewItem|New item
** Special:NewProperty|New property

User rights and namespaces

Constraints handler

  • wikibase constraints work (meaning when you go to an item page, the constraints show up; will need to test myself)

Links on Wikibase installs

Add the following setting to LocalSettings.php:

$wgWBRepoSettings['formatterUrlProperty'] = 'P49';

where formatter URL (P49) depends on the instance (P49 on wiki.personaldata.io)

  • See here for reference.

Scripting extensions

Embed videos

(redundant with the Widgets extension, possibly)

Query prefixes

  • need to add as default prefix in the query service:
PREFIX pdio: <http://wiki.personaldata.io/entity/>
PREFIX pdiot: <http://wiki.personaldata.io/prop/direct/>

For reference, this is current list:

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>

Widgets

  • Widgets
  • See for instance Youtube. Error: "Error from line 24 of /var/www/html/extensions/Widgets/WidgetRenderer.php: Class 'Smarty' not found"

Questions

  • Is it possible to have multiple namespaces for items?
  • how do we fix autocomplete? (wait until default prefix is set up properly)
  • why do properties on wikidata also have an item associated to them? what is the use case?
  • canonical way to refer from an item to a template? could be used to define ShEx --> Template and create ShapeMap
  • hold properties and their alignment on wikidata/registry

See also