Coder Social home page Coder Social logo

semantic-mediawiki.org's Introduction

Semantic MediaWiki

CI Latest Stable Version Packagist download count

Semantic MediaWiki (a.k.a. SMW) is a 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 knowledge management system. All data created within SMW can easily be published via the Semantic Web, allowing other systems to use this data seamlessly.

For a better understanding of how Semantic MediaWiki works, have a look at deployed in 5 min and the Sesame, Fuseki triplestore video, or browse the wiki for a more comprehensive introduction.

Requirements

Semantic MediaWiki requires MediaWiki and its dependencies, such as PHP.

Supported MediaWiki, PHP and database versions depend on the version of Semantic MediaWiki. See the compatibility matrix for details.

Installation

The recommended way to install Semantic MediaWiki is by using Composer. See the detailed installation guide as well as the information on compatibility.

Documentation

Most of the documentation can be found on the Semantic MediaWiki wiki. A small core of documentation also comes bundled with the software itself. This documentation is minimalistic and less explanatory than what can be found on the SMW wiki. It is however always kept up to date, and applies to the version of the code it comes bundled with. The most important files are linked below.

Support

Chatroom Twitter Facebook LinkedIn YouTube Mailing lists

Primary support channels:

Contributing

Many people have contributed to SMW. A list of people who have made contributions in the past can be found here or on the wiki for Semantic MediaWiki. The overview on how to contribute provides information on the different ways available to do so.

If you want to contribute work to the project please subscribe to the developers mailing list and have a look at the contribution guidelines.

Tests

This extension provides unit and integration tests and are normally run by a continuous integration platform but can also be executed locally using the shortcut command composer phpunit from the extension base directory. A more comprehensive introduction can be found under the test section.

License

GNU General Public License, version 2 or later. The COPYING file explains SMW's copyright and license.

semantic-mediawiki.org's People

Contributors

kghbln avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

rul1990 msgpo

semantic-mediawiki.org's Issues

Set up Google Maps API

Starting June 11, 2018 every site needs an Google Maps API key. At the same time it starts be be a paid service for everyone with a 200 USD credit for free calls every month.

Applicable for "s-mw.o" are dynamic maps with up to 28,000 loads. So we will go with that. I the limit of 28,000 is reached no Google maps will be served on the wiki.

Finding the console for API-keys is horrible. This is the quick link.

Docu I found along the way:

s-mw.o

  • Obtain Google Maps API key
  • Add the key to configuration
  • Switch to "leaflet" as default mapping service in configuration
  • Add a note to all pages providing Google Maps docu referencing this issue

The API may only be used from https://www.semantic-mediawiki.org or https://semantic-mediawiki.org. Moreover only the "Geocoding API" and the "Maps JavaScript API" may be used.

sb.s-mw.o

  • Obtain Google Maps API key
  • Add the key to configuration
  • Switch to "leaflet" as default mapping service in configuration
  • Add a note to all pages providing Google Maps docu referencing this issue

The API may only be used from https://sandbox.semantic-mediawiki.org. Moreover only the "Geocoding API" and the "Maps JavaScript API" may be used.

Note: In April 2018 sb.s-mw.o had 687 calls to the "Geocoding API" and 10 calls to the "Maps JavaScript API". No other specialized APIs were called.

Namespaces in Spanish

Hi,
There is some talk pages of the "Help" namespace translated erroneously, "talk" is translated by "habla sobre". I checked if this is happening by a template or a magic word used to change the display title, but I didn't found nothing related. Aftter, I think it could be related with the configuration of the namespaces or something else, but I change my system language and then enter in a private tab to check it, but in both the display title is "habla sobre

The strange is that it happens with some talk pages, because there . I listed two help talk pages in which I found this error:

Now I have not time to search more pages in with happens this. What happens is a bit confusing. Any idea about it?

Regards,
Iván

JavaScript of the info box for result formats failing

Most probably since the update to MW 1.27.x the respective script "tab/panel right slide" fails, at least on recent Fx and Ch:

/**
 * Tab/Panel right slide
 * @author mwjames
 */

$("#panel-tab").click( function (event) {
	event.stopPropagation();
	showIfNotVisible( "#panel-content" );
} );

function showIfNotVisible( element ) {
	var width = $( '#panel' ).find( 'table').width() + 8; 
	if ( $(element).css( "width" ) == width + 'px' )
		$(element).animate( { width: 4 }, 1500);
	else
		$(element).animate( { width: width }, 1500);
};

$( function() {
	var element = $("#panel-content"),
	status = element.attr( 'class' ),
	width = element.find( 'table').width() + 8;

	if ( status === 'close' ){
		element
		.width( width )
		.animate( { width: 4 }, 1200);
	} else {
		element
		.width( width );
	}
} );

@mwjames It will be great if you could have a peep at this.

Upgrade OS

PHP7? - I see that both the main site and the sandbox are still running PHP 5.6. Any ETA on them switching to 7.x?

One reason of why I'm asking is that I'd like to do some work on the GitHub extension and bump it to 7.0+ at the same time.

Composer cannot resolve dependencies (SolverProblemsException)

One of todays changes causes Composer failures when running master

  [Composer\DependencyResolver\SolverProblemsException]                                                                                          
    Problem 1                                                                                                                                    
      - mediawiki/semantic-notifications dev-master requires mediawiki/semantic-media-wiki ~2.4 -> no matching package found.                    
      - mediawiki/semantic-notifications 1.x-dev requires mediawiki/semantic-media-wiki ~2.4 -> no matching package found.                       
      - Installation request for mediawiki/semantic-notifications @dev -> satisfiable by mediawiki/semantic-notifications[1.x-dev, dev-master].  
  Potential causes:                                                                                                                              
   - A typo in the package name                                                                                                                  
   - The package is not available in a stable-enough version according to your minimum-stability setting                                         
     see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.                                                          
  Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems. 

@mwjames Do you have an idea which one may have caused this and provide fluff ... Since Semantic Notification was not touched ...?

"Über Finland diskutieren" ?

@kghbln Something is wrong here, all of the sudden in different places all page titles contain "Über Finland diskutieren".

Special:RecentChanges (which SMW does nothing)

image

Special:Browse

image

Error logging totally broken

  1. Apache does no longer log errors or at least no error log file is being created.

  2. PHP does no longer show errors. The following settings do not trigger error reporting:

error_reporting( -1 );
ini_set( 'display_errors', 1 );

$wgShowExceptionDetails = true;
$wgShowSQLErrors = true;
$wgShowDBErrorBacktrace = true

link Page Schemas tutorial from Main_Page

For reasons described here, I wanted to verify functionality now that Page Schemas has been installed on the sandbox. (Thanks, KGH!) I was able to work through an example, which I subsequently documented as a tutorial for creating datastructures from Page Schemas. I believe this tutorial may be useful to OP; YMMV, but if you agree, please link it into the sandbox main page, in (e.g.) section=Extension related examples. (I'm not seeing UI to do that, so am assuming I lack permissions.)

User manual, translations, and more ...

A well maintained user documentation is vital to explain on what Semantic MediaWiki is, it can do, and it cannot do but in recent years the translated documentation has been greatly diverted from what is available in English. To avoid widening the discrepancy, I hope that following changes to the user manual in general and preparation towards using the Translate extension will improve the situation now and in future.

  • The navigation is no longer (and hereby its contents) tied to some fixed text and instead uses annotations and the tree format to generate an appropriate (in terms of the annotated language) table of contents.
  • Language detection and annotation is done by SIL
  • To improve the situation with the docinfo template, the Help:User manual page show cases the "new" doc.info replacement. The "old" docinfo template is convoluted and contains value annotations that seems hardly in use. Furthermore, document specific annotations have been moved into a subobject to isolate document management specific annotations.
  • Also, content that seems beyond repair should be move into the Archive namespace to avoid contradictory assumptions about SMW functionality.

image

PS: I would have expected that in 2017, MediaWiki is sufficiently prepared to display content in different languages but unfortunately that is not the case as demonstrated in [0].

[0] https://phabricator.wikimedia.org/T43720#3535150

Composer 1.6.4 obviously broken

The aforementioned version of Composer is broken since it silently uninstalls apparently arbitrary software which is defined in "composer.local.json". Since WMF merge-plugin was not changed since January I believe that this may be ruled out as a cause.

On s-mw.o it uninstalled chameleon, on sb.s-mw.o it unistalled SRF and Mermaid. In the latter case this happened during a manually triggered composer update run without any prompt about the uninstall.

I have disabled the cronjobs for updating via composer for s-mw.o and d.s-mw.o for now.

Category update?

Close the IRC channel!

Okay, seriously if no one answers the IRC channel then it should be scrapped as communication method.

Looking at some of the unanswered calls, user have responded with "... I am wondering whether you can see my question?..." or "...this channel is just lame ;P"!

http://bots.wmflabs.org/~wm-bot/logs/%23semantic-mediawiki/20170915.txt

[15:54:08] can sb help me to create a markers file like http://gapsinreality.com/nomadbases/maps/markers.json from semantic properties?
[15:54:51] the result formats list json but the opened file looks quite different https://www.semantic-mediawiki.org/wiki/Help:Result_formats
[20:21:56] (PS1�) Fz-29�: Adding placeholder emulation for hierarchy structure textarea [extensions/PageForms] - https://gerrit.wikimedia.org/r/378277�
[20:34:14] this channel is just lame ;P

http://bots.wmflabs.org/~wm-bot/logs/%23semantic-mediawiki/20170909.txt

[02:34:39] =09
https://wiki.57north.org.uk/index.php?title=3DSpecial%3AAsk&q=3D%5B%5BCateg=
ory%3AEvents%5D%5D&po=3D&eq=3Dyes&p%5Bformat%5D=3Dbroadtable&sort_num=3D&or=
der_num=3DASC&p%5Blimit%5D=3D&p%5Boffset%5D=3D&p%5Blink%5D=3Dall&p%5Bsort%5=
D=3D&p%5Bheaders%5D=3Dshow&p%5Bmainlabel%5D=3D&p%5Bintro%5D=3D&p%5Boutro%5D=
=3D&p%5Bsearchlabel%5D=3D...+further+results&p%5Bdefault%5D=3D&p%5Bclass%5D=
=3Dsortable+wikitable+smwtable&p%5Bsep%5D=3D&eq=3Dyes
[02:35:19] =09 https://wiki.57north.org.uk/index.php/Category:Events
[03:55:12] =09 i see concepts didn't meant what i thought it meant,
still none of the queries are working

http://bots.wmflabs.org/~wm-bot/logs/%23semantic-mediawiki/20170907.txt

[13:30:52] =09 hi. I am new to SMW, read many pages in the
wiki, but I am confused to select pages from a category via #ask not
showing images and category contenty.
[13:34:53] =09 {{#ask: |[[Category:fix]] |[[:+]] }} is a
workaround but it shows pages in selected categories as well

http://bots.wmflabs.org/~wm-bot/logs/%23semantic-mediawiki/20170906.txt

[09:16:15] =09 Hi all, I need /HELP
[09:19:02] =09 we have a platform to manage CFPs using SMW,
suddenly list of Templates turned to Create Concept pages, the old
templates are working but I have no way to access them for edits and
also no way to create new templates, any ideas?
[09:19:47] =09 here is the page:
http://openresearch.org/Special:Templates
[11:15:51] =09 I am wondering whether you can see my question?

Website outage (10 Jan 2017 - 11 Jan 2017) post-mortem

With reference to [0, 1, 2] maybe a quick analysis as to what caused the outage and some suggestions on how to recover more quickly given that several people reported [1, 2] the issue, yet only after 24h the website regained an accessibly state.

[2] has noted:

I guess this is a DOS attack. The VM should be rebooted and see if this makes them back off.

  • Was it a DOS attack or an internal issue with the software?
  • In case it was a DOS, was the website vulnerable to a certain type of DOS (some ports remained open etc.)?
  • Do we know the a reason why the automatic reboot didn't took place (maybe due to some missing configuration)?
  • In case the situation arises again in future and someone is unable to intervene maybe a redirect to something like [3] should be provided temporarily

[0] http://wikimedia.7.x6.nabble.com/Website-outage-td5070738.html
[1.0] https://twitter.com/Brynnan/status/819403187006427137
[1.1] https://twitter.com/Dinoguy1000/status/819217886204018690
[1.2] https://twitter.com/brunoo_gonzalez/status/819139473946578944
[2] https://www.mediawiki.org/wiki/Topic:Tiwx2m13uu3qyooh
[3] https://web.archive.org/web/20161231021251/https://www.semantic-mediawiki.org/wiki/Semantic_MediaWiki

Using fixed tables?

Using fixed properties ($sespUseAsFixedTables = 'true';) is recommended in the docs for SESP. In the light of #14, however, I'm wondering if this is fine for SMW 2.4.4.

Administrator manual (translations etc.)

[0] has been updated in order to appear and navigate similar to what is described in #33.

Tasks

Remaining tasks include check links in related templates, and if necessary add the appropriate template or create a redirect if the content is outdated.

  • Template:SMW admin TOC (de)
  • Template:SMW admin TOC (ja)
  • Template:SMW admin TOC (ru)
  • Template:SMW admin TOC (zh-hans)
  • Template:Table des matières admin SMW

[0] https://www.semantic-mediawiki.org/wiki/Help:Administrator_manual

Implement "mod_qos"

This is a add-on module to Apache which may improve protection against the effects of unwanted traffic by providing different levels of priority to different HTTP requests.

See "mod_qos"

Reboot server

@JeroenDeDauw On Tuesday or Wednesday we will be getting updates for Ubuntu (I wonder why;) that will require a reboot of the server. Once I have done the dist-upgrade I will ping you via this issue. It will be great if you could reboot thereafter. Hope you are in town!

Include new extensions for doxygen docu generation

  • Semantic Compound Queries - done on 2017-04-10
  • Semantic External Queries
  • Semantic Forms Inputs - discontinued
  • Semantic Notifications
  • Semantic Scribunto - done on 2017-01-23
  • Semantic Signup - done on 2016-07-06 - removed on 2017-04-10
  • Semantic Approved Revs
  • Modern Timeline - done on 2019-08-13
  • Semantic Tasks - done on 2019-12-05

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.