<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://subvention.zooid.org/index.php?action=history&amp;feed=atom&amp;title=Chantelait_inc.</id>
	<title>Chantelait inc. - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://subvention.zooid.org/index.php?action=history&amp;feed=atom&amp;title=Chantelait_inc."/>
	<link rel="alternate" type="text/html" href="https://subvention.zooid.org/index.php?title=Chantelait_inc.&amp;action=history"/>
	<updated>2026-10-23T23:34:32Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.11</generator>
	<entry>
		<id>https://subvention.zooid.org/index.php?title=Chantelait_inc.&amp;diff=3186&amp;oldid=prev</id>
		<title>DavidM: Created page with &quot;{{Subventions |import ref=Subventions 1841 |Code postal=G2E 1Z4 |Rue=1320, rue Saint-Paul |Ville=L&#039;Ancienne-Lorette |Ministère=MSSS }}&quot;</title>
		<link rel="alternate" type="text/html" href="https://subvention.zooid.org/index.php?title=Chantelait_inc.&amp;diff=3186&amp;oldid=prev"/>
		<updated>2011-01-29T11:54:21Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Subventions |import ref=Subventions 1841 |Code postal=G2E 1Z4 |Rue=1320, rue Saint-Paul |Ville=L&amp;#039;Ancienne-Lorette |Ministère=MSSS }}&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Some tips and tricks for using Semantic Mediawiki from SMW mailing list, various web sites, etc.&lt;br /&gt;
&lt;br /&gt;
== Workshops, tutorials, etc ==&lt;br /&gt;
&lt;br /&gt;
* [[Semantic Mediawiki workshop]]&lt;br /&gt;
* [[Encouraging SMW use with non technical people]]&lt;br /&gt;
* [[Semantic Mediawiki compared with Drupal and content management systems]]&lt;br /&gt;
&lt;br /&gt;
== Other tip sources ==&lt;br /&gt;
&lt;br /&gt;
http://smwforum.ontoprise.com/smwforum/images/a/ad/Manual_SMW.pdf&lt;br /&gt;
&lt;br /&gt;
http://smw.referata.com/wiki/Special:BrowseData/Tips&lt;br /&gt;
&lt;br /&gt;
http://smwforum.ontoprise.com/smwforum/index.php/Example:All_libraries&lt;br /&gt;
&lt;br /&gt;
http://help.wikia.com/wiki/Help:Semantic_MediaWiki/Tips_and_tricks&lt;br /&gt;
&lt;br /&gt;
http://semantic-mediawiki.org/wiki/Image:SMW_quick_reference.pdf&lt;br /&gt;
&lt;br /&gt;
http://www.organicdesign.co.nz/MediaWiki_code_snippets (mediawiki)&lt;br /&gt;
&lt;br /&gt;
http://smw.referata.com/wiki/Overview_of_Semantic_MediaWiki_and_Semantic_Forms&lt;br /&gt;
&lt;br /&gt;
== Data design ==&lt;br /&gt;
&lt;br /&gt;
http://www.mediawiki.org/wiki/Extension:Semantic_Forms#Data_design_issues&lt;br /&gt;
&lt;br /&gt;
- Create a top category for Semantic Classes. I called mine &amp;#039;Categories&amp;#039;.&lt;br /&gt;
It holds only categories used to define a &amp;#039;Is-a&amp;#039; relationship. Doing so has&lt;br /&gt;
at least two benefits : 1- You can do a query on your core content by&lt;br /&gt;
restricting it to the &amp;#039;Categories&amp;#039; level. 2- You can define other&lt;br /&gt;
categories outside of that structure for whatever your system needs.&lt;br /&gt;
&lt;br /&gt;
http://smwforum.ontoprise.com/smwforum/index.php/Example:How_to_realize_a_range_constraint_for_a_property&lt;br /&gt;
&lt;br /&gt;
Redirects can be used to create property synonyms.&lt;br /&gt;
&lt;br /&gt;
== Discussion ==&lt;br /&gt;
&lt;br /&gt;
Categories can be hierarchical; properties can&amp;#039;t (yet) - actually they can be, using subproperty of.&lt;br /&gt;
&lt;br /&gt;
When to use categories vs properties?&lt;br /&gt;
&lt;br /&gt;
== MW tricks ==&lt;br /&gt;
&lt;br /&gt;
If you want to clear out old pages you can delete them and use&lt;br /&gt;
deleteArchivedRevisions.php to erase the deleted revisions from the&lt;br /&gt;
database.&lt;br /&gt;
&lt;br /&gt;
=== Variables ===&lt;br /&gt;
&lt;br /&gt;
You can make use of the VariablesExtension [1] and store the query (or its&lt;br /&gt;
result? I&amp;#039;d like to know which one, but in the end it doesn&amp;#039;t really matter) in&lt;br /&gt;
a variable, which is helpful when you need the same query multiple times within&lt;br /&gt;
a page. It looks like this:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{ #vardefine: some_variable_name | {{#show:{{PAGENAME}}| ?propertyname}} }}&lt;br /&gt;
(silent) or&lt;br /&gt;
 {{ #vardefineecho: some_variable_name | {{#show:{{PAGENAME}}| ?propertyname}} }} (with output)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Further down in the page you can write&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{ #var: some_variable_name }}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Specific searches ===&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&lt;br /&gt;
  &amp;lt;inputbox&amp;gt;&lt;br /&gt;
  type=search&lt;br /&gt;
  width=30&lt;br /&gt;
  namespaces=Help**,Wikipedia**,Template** &lt;br /&gt;
  searchbuttonlabel=Search help pages&lt;br /&gt;
  bgcolor=#cee0f2&lt;br /&gt;
  break=no&lt;br /&gt;
  &amp;lt;/inputbox&amp;gt;&lt;br /&gt;
  &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(requires the Input Box extension)&lt;br /&gt;
&lt;br /&gt;
=== Profiling mediawiki ===&lt;br /&gt;
&lt;br /&gt;
http://www.mediawiki.org/wiki/How_to_debug#Profiling&lt;br /&gt;
&lt;br /&gt;
=== Mediawiki performance tuning ===&lt;br /&gt;
&lt;br /&gt;
http://www.mediawiki.org/wiki/Manual:Performance_tuning&lt;br /&gt;
&lt;br /&gt;
* APC can be used with SMW without problems&lt;br /&gt;
&lt;br /&gt;
== SMW tricks ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;[[Went past deadline::{{#expr:{{{End date|}}}&amp;gt;{{{Deadline|}}} }}]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Remote data ===&lt;br /&gt;
&lt;br /&gt;
Philipp writes:&lt;br /&gt;
&lt;br /&gt;
if you want to query an SMW installation from remote and re-use the results in&lt;br /&gt;
other applications, I recommend checking out our [http://smwforum.ontoprise.com/smwforum/index.php/Help:Basic_Triplestore Triplestore Connector]. It delivers the results as XML format (compliant with the SPARQL recommendation).&lt;br /&gt;
&lt;br /&gt;
If you want to query semantic data in your wiki, coming from another SMW&lt;br /&gt;
installation you should take a further look at the [http://projects.csail.mit.edu/wibit/wiki/index.php?title=Wibit Exhibit result printer].&lt;br /&gt;
&lt;br /&gt;
[http://www.basil-ell.de/data_integration/ Freebase query]&lt;br /&gt;
&lt;br /&gt;
=== Hiding set data ===&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;[[propertyA::{{{propertyA|}}}|]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By adding the | after the enclosing }}}, the property value will not show.&lt;br /&gt;
&lt;br /&gt;
For multi value properties:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;{{#arraymap:{{{Eating disorders behaviors|}}}|,|x|[[Eating disorders behaviors::x|]]}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(why not just use #set?)&lt;br /&gt;
&lt;br /&gt;
=== Protecting #ask results ===&lt;br /&gt;
&lt;br /&gt;
(from Markus Kr?tzsch)&lt;br /&gt;
&lt;br /&gt;
* make a new property &amp;quot;has checked&amp;quot; of type page,&lt;br /&gt;
* make and a new page &amp;quot;main page news editor&amp;quot; (or whatever) and protect this page just like your main page,&lt;br /&gt;
* add an entry &amp;lt;nowiki&amp;gt;[[has checked::some page]]&amp;lt;/nowiki&amp;gt; on &amp;quot;main page news editor&amp;quot; for every page that the editor has found to be okay to make it on the main page news feed,&lt;br /&gt;
* extend your #ask query on the main page with the condition &amp;lt;nowiki&amp;gt;[[-has&lt;br /&gt;
checked::main page news editor]]&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
... Note that you can also have a group of editors with separate (protected)&lt;br /&gt;
pages. You can also work with categories of editors for different topics etc.&lt;br /&gt;
Of course, this is no longer a spam protection since categories are not&lt;br /&gt;
protected either, but you can use another level of &amp;quot;has checked&amp;quot; to have a&lt;br /&gt;
master editor who checks other editors to grant them trust. All of this&lt;br /&gt;
readily works with subqueries+inverses. Applying similar methods but without&lt;br /&gt;
actually protecting any pages maybe still be useful for managing feeds&lt;br /&gt;
together in cases where spam is not a major issue.&lt;br /&gt;
&lt;br /&gt;
== Misc ==&lt;br /&gt;
&lt;br /&gt;
=== Enable links in property values ===&lt;br /&gt;
&lt;br /&gt;
 $smwgLinksInValues = true;&lt;br /&gt;
&lt;br /&gt;
=== Must add namespaces to config ===&lt;br /&gt;
&lt;br /&gt;
Otherwise they won&amp;#039;t have semantic properties.&lt;br /&gt;
&lt;br /&gt;
$smwgNamespacesWithSemanticLinks array&lt;br /&gt;
&lt;br /&gt;
== Multi language SMW ==&lt;br /&gt;
&lt;br /&gt;
=== Creationwiki ===&lt;br /&gt;
&lt;br /&gt;
(From Temlakos on the mailing list regarding http://creationwiki.org/ and http://creationwiki.org/fr/)&lt;br /&gt;
&lt;br /&gt;
Here&amp;#039;s how I do it: As I have said many times before, I routinely&lt;br /&gt;
declare all properties. And every declaration that is implemented in&lt;br /&gt;
both languages, has the language-specific Interwiki prefix added, so&lt;br /&gt;
that you can follow a property declaration from one language to the&lt;br /&gt;
other and back.&lt;br /&gt;
&lt;br /&gt;
All that is involved is making parallel property declarations and&lt;br /&gt;
placing Interwiki language links in each one.&lt;br /&gt;
&lt;br /&gt;
In general: a multilingual wiki is actually a family of wikis, each set&lt;br /&gt;
up in its own language.&lt;br /&gt;
&lt;br /&gt;
The important part is to make sure that the SMW language files exist in&lt;br /&gt;
each language in which you are planning to implement SMW. Right now the&lt;br /&gt;
language support is a little thin, in comparison to the incredible&lt;br /&gt;
multiplicity of languages on Wikipedia. So those of you who are trying&lt;br /&gt;
to persuade Wikipedia to implement SMW across their project will have an&lt;br /&gt;
immediate problem: you don&amp;#039;t support more than a handful of the&lt;br /&gt;
languages they use.&lt;br /&gt;
&lt;br /&gt;
... &lt;br /&gt;
anyone who implements SMW in an unsupported language is going to have to&lt;br /&gt;
write a language file. And make sure that his language is supported in&lt;br /&gt;
SMW_Aliases.php and SMW_Messages.php.&lt;br /&gt;
&lt;br /&gt;
=== HKp wiki ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;HKp wiki&amp;#039; is  a bilingual (potentially multilingual) spanish-catalan&lt;br /&gt;
wiki in the same installation.&lt;br /&gt;
http://enlloc.net/hkp/w&lt;br /&gt;
&lt;br /&gt;
I&amp;#039;m using Polyglot extension [1] to redirect to appropriate language&lt;br /&gt;
pages depending on the browser language settings or the user wiki&lt;br /&gt;
settings.&lt;br /&gt;
&lt;br /&gt;
I&amp;#039;m using Language Selector extension for providing a language&lt;br /&gt;
selector for every page in the sidebar.&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Multilang extension for changing the language in&lt;br /&gt;
pages and forms depending on the user settings. But unfortunately this&lt;br /&gt;
extension don&amp;#039;t work in MW higher of 1.10.&lt;br /&gt;
&lt;br /&gt;
Alternatively I&amp;#039;m using the [http://enlloc.net/hkp/w/index.php/Plantilla:International &amp;lt;nowiki&amp;gt;{{international}}nowiki&amp;gt; template]. It is useful&lt;br /&gt;
for pages and templates but not for forms because it need a&lt;br /&gt;
&amp;lt;nowiki&amp;gt;{{SUBPAGENAME}}&amp;lt;/nowiki&amp;gt; with language code (/ca, /es, /en, /fr, /pt, ...).&lt;br /&gt;
&lt;br /&gt;
I&amp;#039;m using [http://enlloc.net/hkp/w/index.php/Plantilla:Entrada_Wlog my own code in templates] to show or hide a &amp;quot;translation&lt;br /&gt;
button&amp;quot; depending if the translation page exist or not:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;{{#ifeq:{{SUBPAGENAME}}|es|&lt;br /&gt;
 {{exists | page={{NAMESPACE}}:{{BASEPAGENAME}}/ca | then= | else=&lt;br /&gt;
 &amp;lt;p style=&amp;quot;margin-top:2em; color: rgb(100, 100, 100)&amp;quot;&amp;gt;&amp;#039;&amp;#039;&amp;#039;Traducci?n&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;[[Categoria:Per traduir al Castell?]]&lt;br /&gt;
 &amp;lt;small&amp;gt;Esta p?gina a?n no est? en catal?n. Quieres colaborar a traducirla?&amp;lt;/small&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
 {{#formlink:Entrada Wlog traduir ca|Traducir al catal?n|button|&lt;br /&gt;
 preload={{FULLPAGENAME}}&amp;amp;Gesti? traduccions[p?gina&lt;br /&gt;
 original]={{BASEPAGENAME}}&amp;amp;Entrada Wlog[llengua entrada]=es&amp;amp;namespace=Wlog }}&lt;br /&gt;
 }}&lt;br /&gt;
 }}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Right now I have not solution for having only one form for all&lt;br /&gt;
languages. What is annoying.&lt;br /&gt;
&lt;br /&gt;
== Media ==&lt;br /&gt;
&lt;br /&gt;
Neat talk on MW, with refs to SMW: http://www.youtube.com/watch?v=Ukytqe9pwDM&lt;br /&gt;
&lt;br /&gt;
[[Category:SemWeb]]&lt;/div&gt;</summary>
		<author><name>DavidM</name></author>
	</entry>
</feed>