Questions tagged [semantic-mediawiki]

Semantic MediaWiki (SMW) is a free, open-source extension to MediaWiki – the wiki software that powers Wikipedia – that lets developer store and query data within the wiki's pages

Semantic MediaWiki (SMW) is a family of free, open-source extension to MediaWiki – the wiki software that powers Wikipedia – that lets you store and query data within the wiki's pages.

Semantic MediaWiki is also a full-fledged framework, in conjunction with many spinoff extensions, that can turn a wiki into a powerful and flexible “collaborative database”. All data created within SMW can easily be published via the Semantic Web, allowing other systems to use this data seamlessly.

Public sandbox: http://sandbox.semantic-mediawiki.org


Related tags :

165 questions
1
vote
1 answer

Where does the inconsistency in behaviour of Mediawiki templates come from?

This question pertains to the inconsistent behaviour of Mediawiki syntax and its templates and parser functions. When placed directly in a wiki page, both these snippets work as…
A. Gh.
  • 13
  • 6
1
vote
1 answer

Tabular SMW query results: How to display a single column with custom formatting?

I have a standard SMW query that outputs a table (format=table). However, I'd like to visualize the cells of a specific column in this table by colorizing them. The simplest thing I could think of to achieve something like this would be to specify a…
Regis May
  • 3,070
  • 2
  • 30
  • 51
1
vote
1 answer

SMW queries: Move main column to other position

As far as I understand a tabular result of a SMW query always contains the page title. This is presented in the leftmost column. Can this title column be moved to some other position as well? How can I do that?
Regis May
  • 3,070
  • 2
  • 30
  • 51
1
vote
2 answers

Relative dates in Semantic Mediawiki?

Is there a way in Semantic Mediawiki to store and use relative dates? I would like to store genealogical data in Semantic Mediawiki and there is sometimes information like: »On January 10th 2021 John, son of the deceased Jack, married Mary.« Now I…
felleb
  • 23
  • 4
1
vote
1 answer

Semantic Mediawiki and properties in template

I have the following construction in the template to check whether attributes are full {{#if:{{{typeip|}}}|'''Type IP:'''{{{typeip}}}|'''Type IP:'''not filled in}} I want the typyap attribute to be a…
1
vote
0 answers

Semantic MediaWiki error message not going away

The situation: I installed an MW extension, uninstalled it again, and this broke my MediaWiki installation: The next time I viewed a page I got an error message that the SMW update key would be missing. Rebuilding the SMW database by running the SMW…
Regis May
  • 3,070
  • 2
  • 30
  • 51
1
vote
0 answers

Import .owl file in Semantic Media Wiki

Has anyone imported a .owl file in semantic media wiki? What options do I have for that. (There is an extension RDFIO however that does not work for .owl files).
MAB
  • 11
  • 2
1
vote
1 answer

Mediawiki: Links to open local files on the server doesn't work

I have MediaWiki installed on a synology server. I would like to create a link on the wiki that would allow opening of files on the same server. Here are the steps I did to achieve this: Added $wgUrlProtocols[] = "file://"; in LocalSettings.php A…
locke14
  • 1,335
  • 3
  • 15
  • 36
1
vote
1 answer

RuntimeException when running rebuildData.php

I upgraded my MW from 1.31 to 1.33 and SMW from 2.5.6 to 3.1 by following the official tutorials. Everything works fine until Step 6 when I run rebuildData.php to rebuild the data and it throws an exception after about 10000 updates. Here is the…
Alex
  • 65
  • 7
1
vote
1 answer

SMW Page Forms Extension: Display checkbox/radiobutton items vertically instead of horizontally

Dear Semantic MediaWiki Community, when using checkboxes or radiobuttons in Semantic MediaWiki's Page Forms extension, the default display behaviour of such items is horizontally, i.e., they are displayed next to each other in the same line. My…
Stefan Zander
  • 91
  • 1
  • 6
1
vote
1 answer

Passing coordinates stored in Semantic MediaWiki subobject to Leaflet map

I'd like to pass multiple sets of coordinates from different subobject fields into maps. I have tried storing the coordinates in separate property values and calling them like so:
{{#ask:[[{{PAGENAME}}]] |?Has categorya…
Silliam
  • 13
  • 3
1
vote
1 answer

Evaluate format template content in (Semantic-)Mediawiki

I am using semantic mediawiki to store and describe information about scientific papers. In this context I would like to build a citation template that links to the page where the paper is described. Every Paper has an identifier which is a…
Wald3n
  • 133
  • 1
  • 10
1
vote
1 answer

Assigning Semantic MediaWiki Properties automatically

I am using Semantic MediaWiki to organize a list of books with ISBN, publication year, pages, etc. Now I would like to set properties automatically for all results of an ask query. Just for an example, the assumption is that I would like to assign…
Wald3n
  • 133
  • 1
  • 10
1
vote
1 answer

Formatting query result of Url as given string in Semantic MediaWiki

I want to embed the result of an ask query on a page in Semantic MediaWiki. The result column has the type Url as in [[Has type:Url]]. However, when embedding the code I would like to show the URL not explicitly since it is very long but as a fixed…
Wald3n
  • 133
  • 1
  • 10
1
vote
1 answer

Is there a way to automatically create categories from a list of items?

I want to add some recipes to a part of my Mediawiki site and have each ingredient create a relevant category. This is easy to do by hand, but subject to human error - each ingredient has to be entered twice. for example * [[category:apples]]…