|
|
| (26 intermediate revisions by 6 users not shown) |
| Line 1: |
Line 1: |
| <div style="text-align: center">
| | Some tips and tricks for using Semantic Mediawiki from SMW mailing list, various web sites, etc. |
| == GreenPRO Index Page ==
| |
|
| |
|
| '''Listing of all current GreenPRO categories'''
| | == Workshops, tutorials, etc == |
| </div>
| |
|
| |
|
| == Other Websites with Comprehensive Policy Lists ==
| | * [[Semantic Mediawiki workshop]] |
| | * [[Encouraging SMW use with non technical people]] |
| | * [[Semantic Mediawiki compared with Drupal and content management systems]] |
| | * [https://dya-knowledge.sogeti.nl/dir/DyA_Infrastructure_decomposition_and_modeling information modelling] |
|
| |
|
| '''Acorn Living Wage Webpage:''' http://www.acorn.org/index.php?id=878
| | == Other tip sources == |
|
| |
|
| '''Community Environmental Legal Defense Fund Ordinance Page:''' http://www.celdf.org/Ordinances/tabid/61/Default.aspx
| | http://semantic-mediawiki.org/wiki/FAQ |
|
| |
|
| '''Community Wealth:''' http://www.community-wealth.org/
| | http://smwforum.ontoprise.com/smwforum/images/a/ad/Manual_SMW.pdf |
|
| |
|
| '''Living Wage Resource Center:''' http://www.livingwagecampaign.org/index.php?id=1958#camp271
| | http://smw.referata.com/wiki/Special:BrowseData/Tips |
|
| |
|
| '''MRSC - Regulation of Large Retail (Big Box) Establishments:''' http://www.mrsc.org/Subjects/Planning/BigBoxRetail.aspx
| | http://smwforum.ontoprise.com/smwforum/index.php/Example:All_libraries |
|
| |
|
| '''New Rules:''' http://www.newrules.org/
| | http://help.wikia.com/wiki/Help:Semantic_MediaWiki/Tips_and_tricks |
|
| |
|
| '''Smart Communities Network:''' http://www.smartcommunities.ncat.org/
| | http://semantic-mediawiki.org/wiki/Image:SMW_quick_reference.pdf |
|
| |
|
| '''Recycling for Building Contractors:''' http://www.recycleworks.org/pdf/CD_office_guide.pdf
| | http://www.organicdesign.co.nz/MediaWiki_code_snippets (mediawiki) |
|
| |
|
| '''Wal*Mart Watch: ''' http://walmartwatch.com/battlemart/examples/cat/zoning_regulations
| | http://smw.referata.com/wiki/Overview_of_Semantic_MediaWiki_and_Semantic_Forms |
|
| |
|
| | == Data design == |
|
| |
|
| == Alphabetical Index by Subject (or search to the left) ==
| | http://www.mediawiki.org/wiki/Extension:Semantic_Forms#Data_design_issues |
|
| |
|
| == A ==
| | - Create a top category for Semantic Classes. I called mine 'Categories'. |
| | It holds only categories used to define a 'Is-a' relationship. Doing so has |
| | at least two benefits : 1- You can do a query on your core content by |
| | restricting it to the 'Categories' level. 2- You can define other |
| | categories outside of that structure for whatever your system needs. |
|
| |
|
| '''Affordable Housing''' --'' see "Housing"''
| | http://smwforum.ontoprise.com/smwforum/index.php/Example:How_to_realize_a_range_constraint_for_a_property |
|
| |
|
| == B ==
| | Redirects can be used to create property synonyms. |
| '''Big-Box Retail Regulations'''
| |
|
| |
|
| [[Albuquerque, NM "Big-Box" Regulations]]
| | == Discussion == |
|
| |
|
| [[Chicago, IL Big Box Living Wage and Benefits]]
| | Categories can be hierarchical; properties can't (yet) - actually they can be, using subproperty of. |
|
| |
|
| [[Inglewood, CA WalMart Loses Initiative]]
| | When to use categories vs properties? |
|
| |
|
| [[Oakland, CA Zoning Caps Superstores]]
| | == MW tricks == |
|
| |
|
| [[Turlock, CA Regulation Regarding Large-scale Retail Stores]]
| | If you want to clear out old pages you can delete them and use |
| | deleteArchivedRevisions.php to erase the deleted revisions from the |
| | database. |
|
| |
|
| [See also ''New Rules'' link above]
| | === Variables === |
|
| |
|
| | You can make use of the VariablesExtension [1] and store the query (or its |
| | result? I'd like to know which one, but in the end it doesn't really matter) in |
| | a variable, which is helpful when you need the same query multiple times within |
| | a page. It looks like this: |
|
| |
|
| '''"Buy Green" Policy'''
| | <nowiki>{{ #vardefine: some_variable_name | {{#show:{{PAGENAME}}| ?propertyname}} }} |
| | (silent) or |
| | {{ #vardefineecho: some_variable_name | {{#show:{{PAGENAME}}| ?propertyname}} }} (with output)</nowiki> |
|
| |
|
| [[Model Environmentally Preferable Products Policy from King County, WA]]
| | Further down in the page you can write |
|
| |
|
| [[Model Waste Wise Purchasing Policy]]
| | <nowiki>{{ #var: some_variable_name }}</nowiki> |
|
| |
|
| [[Berkeley, CA Unified School District Green Procurement and Sustainable Procedures Policy]]
| | === Specific searches === |
|
| |
|
| [[Boulder, CO Environmental Purchasing Policy]]
| | <nowiki> |
| | <inputbox> |
| | type=search |
| | width=30 |
| | namespaces=Help**,Wikipedia**,Template** |
| | searchbuttonlabel=Search help pages |
| | bgcolor=#cee0f2 |
| | break=no |
| | </inputbox> |
| | </nowiki> |
|
| |
|
| [[King County, WA Environmental Purchasing Policy]]
| | (requires the Input Box extension) |
|
| |
|
| [[London (England) Fire Brigade Green Procurement Policy]]
| | === Profiling mediawiki === |
|
| |
|
| [[Nevada County, CA Green Procurement and Sustainable Practices Policy]]
| | http://www.mediawiki.org/wiki/How_to_debug#Profiling |
|
| |
|
| [[Pinoleville Pomo Nation (CA) Green Procurement Policy]]
| | == Semantic Mediawiki performance == |
|
| |
|
| [[Sacramento County, CA Environmental Purchasing Policy]]
| | http://www.snpedia.com/index.php/Special:Statistics |
|
| |
|
| [[San Jose, CA Environmentally Preferable Procurement Policy]]
| | 20,000 pages, 132,00 property values for 60 properties |
|
| |
|
| [[University of Buffalo, NY Environmentally Sound Products Procurement Policy]]
| | === Mediawiki performance tuning === |
|
| |
|
| [[The University of Winnipeg, Manitoba Green Procurement Policy]]
| | http://www.mediawiki.org/wiki/Manual:Performance_tuning |
|
| |
|
| [[Ventura County, CA Environmentally Preferable Purchasing Policy]]
| | * APC can be used with SMW without problems |
|
| |
|
| == C == | | == SMW tricks == |
| '''Climate Policy'''
| |
|
| |
|
| [[U.S. Mayors Climate Protection Agreement]] | | <nowiki>[[Went past deadline::{{#expr:{{{End date|}}}>{{{Deadline|}}} }}]]</nowiki> |
|
| |
|
| [[Contra Costa County, CA Resolution on Climate Stabilization Declaration]]
| | === Remote data === |
|
| |
|
| [[Davis, CA Resolution Endorsing the U.S. Mayors Climate Protection Agreement]]
| | Philipp writes: |
|
| |
|
| [[East Lansing, MI Climate Protection Resolution]] | | if you want to query an SMW installation from remote and re-use the results in |
| | 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). |
|
| |
|
| [[Fort Collins, CO Resolution to Join the Cities for Climate Protection Campaign]]
| | If you want to query semantic data in your wiki, coming from another SMW |
| | installation you should take a further look at the [http://projects.csail.mit.edu/wibit/wiki/index.php?title=Wibit Exhibit result printer]. |
|
| |
|
| [[Kansas City, MO Resolution on Climate Protection]] | | [http://www.basil-ell.de/data_integration/ Freebase query] |
|
| |
|
| [[Lowell, MA Passes Energy Resolution Endorsing the U.S. Mayors Climate Protection Agreement]]
| | === Hiding set data === |
|
| |
|
| [[Portland, OR and Multnomah County Global Warming Action Plan]] | | <nowiki>[[propertyA::{{{propertyA|}}}|]]</nowiki> |
|
| |
|
| [[Silver City, NM Resolution to Implement a Citizens Advisory Committee on Climate Change]]
| | By adding the | after the enclosing }}}, the property value will not show. |
|
| |
|
| [[Sun Valley, ID Resolution Endorsing the U.S. Mayors Climate Protection Agreement]]
| | For multi value properties: |
|
| |
|
| [[Tacoma, WA Resolution on Climate Change and Global Warming]] | | <nowiki>{{#arraymap:{{{Eating disorders behaviors|}}}|,|x|[[Eating disorders behaviors::x|]]}}</nowiki> |
|
| |
|
| | (why not just use #set?) |
|
| |
|
| '''Community'''
| | === Protecting #ask results === |
|
| |
|
| [[Austin, TX Smart Growth Initiative]]
| | (from Markus Kr?tzsch) |
|
| |
|
| [[Carlsbad, CA Livable Communities]] | | * make a new property "has checked" of type page, |
| | * make and a new page "main page news editor" (or whatever) and protect this page just like your main page, |
| | * add an entry <nowiki>[[has checked::some page]]</nowiki> on "main page news editor" for every page that the editor has found to be okay to make it on the main page news feed, |
| | * extend your #ask query on the main page with the condition <nowiki>[[-has |
| | checked::main page news editor]]</nowiki>. |
|
| |
|
| [[Dunn, WI Land Use Planning and Open Space Preservation]]
| | ... Note that you can also have a group of editors with separate (protected) |
| | pages. You can also work with categories of editors for different topics etc. |
| | Of course, this is no longer a spam protection since categories are not |
| | protected either, but you can use another level of "has checked" to have a |
| | master editor who checks other editors to grant them trust. All of this |
| | readily works with subqueries+inverses. Applying similar methods but without |
| | actually protecting any pages maybe still be useful for managing feeds |
| | together in cases where spam is not a major issue. |
|
| |
|
| [[Manchester, VT Community Vision]]
| | == Misc == |
|
| |
|
| [[San Francisco, CA Livable Communities]]
| | === Enable links in property values === |
|
| |
|
| [[Washington Township, MO Cluster Housing]]
| | $smwgLinksInValues = true; |
|
| |
|
| | === Must add namespaces to config === |
|
| |
|
| '''Corporate Accountability''' | | Otherwise they won't have semantic properties. |
|
| |
|
| [[Belfast Township, PA restrict corporate farming]]
| | $smwgNamespacesWithSemanticLinks array |
|
| |
|
| [[Berkeley, CA Resolution on Corporate Rights]]
| | === Enable links in property values === |
|
| |
|
| [[Boulder, CO Public Campaign Financing]]
| | $smwgLinksInValues = true; |
|
| |
|
| [[Humboldt County, CA Measure T]]
| | == Dark background theme css == |
|
| |
|
| [[Point Arena, CA Resolution on Corporate Personhood]]
| | http://software.wikia.com/wiki/User:Ose/SMW.css |
|
| |
|
| [[Porter Township, PA abolish corporate constitutional rights]]
| | == Multi language SMW == |
|
| |
|
| [[Rush Township, PA abolish corporate constitutional rights]]
| | === Creationwiki === |
|
| |
|
| [[Southampton Township, PA restricting corporate rights]]
| | (From Temlakos on the mailing list regarding http://creationwiki.org/ and http://creationwiki.org/fr/) |
|
| |
|
| | Here's how I do it: As I have said many times before, I routinely |
| | declare all properties. And every declaration that is implemented in |
| | both languages, has the language-specific Interwiki prefix added, so |
| | that you can follow a property declaration from one language to the |
| | other and back. |
|
| |
|
| '''Culture - Art and music'''
| | All that is involved is making parallel property declarations and |
| | placing Interwiki language links in each one. |
|
| |
|
| [[Chicago, IL Public Art]]
| | In general: a multilingual wiki is actually a family of wikis, each set |
| | up in its own language. |
|
| |
|
| [[Nashville, TN Art and Domestic Violence]]
| | The important part is to make sure that the SMW language files exist in |
| | each language in which you are planning to implement SMW. Right now the |
| | language support is a little thin, in comparison to the incredible |
| | multiplicity of languages on Wikipedia. So those of you who are trying |
| | to persuade Wikipedia to implement SMW across their project will have an |
| | immediate problem: you don't support more than a handful of the |
| | languages they use. |
|
| |
|
| [[Oakland, CA Public Art]]
| | ... |
| | anyone who implements SMW in an unsupported language is going to have to |
| | write a language file. And make sure that his language is supported in |
| | SMW_Aliases.php and SMW_Messages.php. |
|
| |
|
| <br/>
| | === HKp wiki === |
|
| |
|
| == D ==
| | 'HKp wiki' is a bilingual (potentially multilingual) spanish-catalan |
| | wiki in the same installation. |
| | http://enlloc.net/hkp/w |
|
| |
|
| '''Disability -''' ''See Human Rights'' | | I'm using Polyglot extension [1] to redirect to appropriate language |
| | pages depending on the browser language settings or the user wiki |
| | settings. |
|
| |
|
| == E ==
| | I'm using Language Selector extension for providing a language |
| | selector for every page in the sidebar. |
|
| |
|
| '''Education''' | | I wanted to use the Multilang extension for changing the language in |
| | pages and forms depending on the user settings. But unfortunately this |
| | extension don't work in MW higher of 1.10. |
|
| |
|
| [[Bridgeport, CT Local Scholarship Fund]] | | Alternatively I'm using the [http://enlloc.net/hkp/w/index.php/Plantilla:International <nowiki>{{international}}nowiki> template]. It is useful |
| | for pages and templates but not for forms because it need a |
| | <nowiki>{{SUBPAGENAME}}</nowiki> with language code (/ca, /es, /en, /fr, /pt, ...). |
|
| |
|
| [[Hammond, IN Scholarship Program]] | | I'm using [http://enlloc.net/hkp/w/index.php/Plantilla:Entrada_Wlog my own code in templates] to show or hide a "translation |
| | button" depending if the translation page exist or not: |
|
| |
|
| [[New York, NY Scholarship Program for City Workers]] | | <nowiki>{{#ifeq:{{SUBPAGENAME}}|es| |
| | {{exists | page={{NAMESPACE}}:{{BASEPAGENAME}}/ca | then= | else= |
| | <p style="margin-top:2em; color: rgb(100, 100, 100)">'''Traducci?n'''<br>[[Categoria:Per traduir al Castell?]] |
| | <small>Esta p?gina a?n no est? en catal?n. Quieres colaborar a traducirla?</small></p> |
| | {{#formlink:Entrada Wlog traduir ca|Traducir al catal?n|button| |
| | preload={{FULLPAGENAME}}&Gesti? traduccions[p?gina |
| | original]={{BASEPAGENAME}}&Entrada Wlog[llengua entrada]=es&namespace=Wlog }} |
| | }} |
| | }}</nowiki> |
|
| |
|
| | Right now I have not solution for having only one form for all |
| | languages. What is annoying. |
|
| |
|
| '''Election system reform - Instant Runoff Voting (IRV) and proportional representation'''
| | == Media == |
|
| |
|
| [[Agoura Hills, CA Campaign Reform]]
| | Neat talk on MW, with refs to SMW: http://www.youtube.com/watch?v=Ukytqe9pwDM |
|
| |
|
| [[Ann Arbor, MI charter amendment]] | | [[Category:SemWeb]] |
| | |
| [[Burlington, VT charter amendment]]
| |
| | |
| [[Cambridge, MA proportional representation]]
| |
| | |
| [[Davis, CA initiative]]
| |
| | |
| [[Ferndale, MI initiative]]
| |
| | |
| [[Oakland, CA initiative]]
| |
| | |
| [[San Francisco, CA Instant Runoff Voting]]
| |
| | |
| [[San Leandro, CA initiative]]
| |
| | |
| [[Takoma Park, MD Instant Runoff Voting (IRV)]]
| |
| | |
| [[Vancouver, WA initiative]]
| |
| | |
| | |
| '''Energy Policy'''
| |
| (See also Municipal Electricity)
| |
| | |
| [[Aspen, Colo Renewable Energy]]
| |
| | |
| [[Berkeley, Calif Renewable Energy]]
| |
| | |
| [[Boulder, CO Citizens Pass First Carbon Tax in Nation]]
| |
| | |
| [[California Communities Stringent Green Building Policies]]
| |
| | |
| [[Chicago, Illinois Energy Plan]]
| |
| | |
| [[Los Angeles, Calif Dept of Water and Power Rooftop Solar Incentive]]
| |
| | |
| [[Sacramento, Calif to buy Solar Energy from Customers]]
| |
| | |
| [[San Diego, Calif Regional energy Plan]]
| |
| | |
| [[San Francisco, Calif Energy Independence Initiative]]
| |
| | |
| [[San Francisco Renewable Energy Initiative]]
| |
| | |
| [[Washington, DC Encourages Hybrids and Discourages SUVs]]
| |
| | |
| == F ==
| |
| '''Farm and Food Policies'''
| |
| | |
| [[Model Right to Farm Ordinance from Massachusetts]]
| |
| | |
| [[Ashtabula County, OH Soil And Water Conservation District Farmland Preservation Executive Summary]]
| |
| | |
| [[Bates College, ME Local Food Initiative]]
| |
| | |
| [[Berea College, KY Local Food Initiative]]
| |
| | |
| [[Berkeley, CA School District Organic and Local Food]]
| |
| | |
| [[Berkeley, CA School Board Resolution Against Irradiated Meat]]
| |
| | |
| [[Bernards Township, NJ Farmland Preservation Resolution]]
| |
| | |
| [[Dallas. TX Requires Local Food in Farmer's Markets]]
| |
| | |
| [[Davis, CA Right to Farm & Farmland Preservation Ordinance]]
| |
| | |
| [[Emory University, GA Sustainable Food Initiative]]
| |
| | |
| [[Jefferson County, NY Right to Farm Law]]
| |
| | |
| [[Larimer County, CO Right to Farm Resolution]]
| |
| | |
| [[Livermore, CA Right to Farm Ordinance]]
| |
| | |
| [[Los Angeles, CA School Board Resolution on Obesity Prevention]]
| |
| | |
| [[Los Angeles, CA School Board Resolution Prohibiting The Use of Irradiated Food]]
| |
| | |
| [[Mt. Pleasant, MI Resolution on Farmland Preservation Program]]
| |
| | |
| [[Seattle, WA School Board Policy on “Competitive Foods” (Junk Food)]]
| |
| | |
| [[Walworth County, WI Comprehensive Land Use and Farmland Preservation Ordinance]]
| |
| | |
| [[Washington, DC School Board Resolution Prohibiting the Use of Irradiated Food]]
| |
| | |
| [[Washington Township, MO Farmland Protection]]
| |
| | |
| == G ==
| |
| '''Genetic Engineering'''
| |
| | |
| [[Sample Ordinance Banning Genetically Engineered Food]]
| |
| | |
| [[Sample Ordinance Banning Genetically Modified Crops]]
| |
| | |
| [[Sample Resolution for Labeling of Genetically Engineered Foods]]
| |
| | |
| [[Amherst, MA Resolution on a Legislative Moratorium on Genetically Engineered Foods & Crops]]
| |
| | |
| [[Arcata, CA Ordinance to Regulate Genetically Engineered Organisms]]
| |
| | |
| [[Boulder, CO Bans Genetically Engineered Crops from City-Owned Land]]
| |
| | |
| [[Brooklin, ME Votes to be GMO-Free Zone]]
| |
| | |
| [[Charlemont, MA Resolution on a Moratorium on Genetically Engineered Crops]]
| |
| | |
| [[Cleveland, OH Resolution Concerning the Labeling of Genetically Manipulated Foods]]
| |
| | |
| [[Mendocino County, CA Bans Genetically Altered Crops and Animals]]
| |
| | |
| [[Minneapolis, MN City Council Passes Strong Anti-GE Pro-Organic Food Resolution]]
| |
| | |
| [[Point Arena, CA Genetically Modified Organisms Ordinance]]
| |
| | |
| [[San Francisco, CA Board Passes Anti-GE Food Resolution]]
| |
| | |
| [[San Luis Obispo County, CA Failed Initiative to Prohibit the Growing of Genetically Engineered Organisms]]
| |
| | |
| [[Santa Cruz, CA Ordinance Establishing a Moratorium on Genetically Engineered Crops]]
| |
| | |
| [[St. Paul, MN City Council Passes Resolution on Genetically Engineered Food]]
| |
| | |
| [[Sonoma County, CA Ordinance to Prevent Agricultural & Environmental Contamination from Genetically Engineered Organisms]]
| |
| | |
| [[Trinity County, CA Ordinance on Genetically Engineered Organisms]]
| |
| | |
| == H ==
| |
| | |
| ''' Health Insurance'''
| |
| | |
| [[San Francisco, Calif Health Care Accountability]]
| |
| | |
| | |
| '''Housing'''
| |
| | |
| [[Austin, Texas Equal Employment/Fair Housing]]
| |
| | |
| [[Beavercreek, Ohio Fair Housing]]
| |
| | |
| [[Bellevue, Washington Affordable Housing]]
| |
| | |
| [[Bellingham, Washington Tax Exemptions For Multi-Family Housing]]
| |
| | |
| [[Bethlehem, Penn: Fair Housing]]
| |
| | |
| [[Contra Cost County, Calif Affordable Housing]]
| |
| | |
| [[Fremont, California Housing Scholarship Program]]
| |
| | |
| [[Howard County, Indiana Fair Housing]]
| |
| | |
| [[Kenosha, Wisconsin Fair Housing]]
| |
| | |
| [[Kirkland, Washington Affordable Housing]]
| |
| | |
| [[Montgomery County, Maryland Moderately Priced Dwelling Units]]
| |
| | |
| [[Olympia, Washington Multi-family dwelling tax exemption]]
| |
| | |
| [[Port Townsend, Washington Development Charge Deferrals for Low-Income Housing]]
| |
| | |
| [[Portland, Oregon Affordable Housing]]
| |
| | |
| [[Portland, Oregon Alternative Design Density Overlay Zone]]
| |
| | |
| [[Redmond, Washington Affordable Housing]]
| |
| | |
| [[Sacramento County, Calif Affordable Housing]]
| |
| | |
| [[San Diego, Calif Affordable Housing]]
| |
| | |
| [[San Mateo, Calif Below Market Inclusionary Program]]
| |
| | |
| [[Santa Fe, New Mexico Affordable Housing Roundtable]]
| |
| | |
| [[Sarasota, Florida Downtown Density Bonus and Attainable Housing Policy]]
| |
| | |
| [[St. Louis, Missouri Affordable Housing]]
| |
| | |
| [[Silver City, New Mexico Fair Housing]]
| |
| | |
| [[Stevens County, Minnesota Fair Housing]]
| |
| | |
| [[Teton County, Wyoming Affordable Housing]]
| |
| | |
| [[Vancouver, Washington Accessory Dwelling Units]]
| |
| | |
| | |
| '''Human Rights and Non-Discrimintation'''
| |
| | |
| [[Alexandria, Virginia Human Rights]]
| |
| | |
| [[Arlington County, Virginia Human Rights]]
| |
| | |
| [[Boulder, Colorado Prohibition of Discrimination]]
| |
| | |
| [[Champaign, Illinois Human Rights]]
| |
| | |
| [[Columbus, Indiana Human Rights and Discrimination]]
| |
| | |
| [[Cok County, Illinois Human Rights]]
| |
| | |
| [[Des Moines, Iowa Human Rights]]
| |
| | |
| [[El Paso, Texas Disability Anti-Discrimination]]
| |
| | |
| [[Indianapolis, Indiana Human Relations and Equal Opportunity]]
| |
| | |
| [[Kansas City, Missouri Civil Rights]]
| |
| | |
| [[Laramie, Wyoming Bias Crime Reporting]]
| |
| | |
| [[Madison, Wisconsin Disability Non-Discrimination]]
| |
| | |
| [[Michigan City, Indiana Human Rights]]
| |
| | |
| [[Nashville, Tennessee Disability]]
| |
| | |
| [[Orange County, North Carolina Civil Rights]]
| |
| | |
| [[Portland, Oregon Civil Rights]]
| |
| | |
| [[Richland, Washington Human Rights]]
| |
| | |
| [[San Francisco Small Business and Non-Discrimination Contracting]]
| |
| | |
| [[Sheboyagan, Wisconsin Disability]]
| |
| | |
| [[Spokane, Washington Human Rights]]
| |
| | |
| [[St. Paul, Minnesota Human Rights]]
| |
| | |
| [[Tulsa, Oklahoma Human Rights]]
| |
| | |
| [[Urbana, Illinois Human Rights]]
| |
| | |
| == I ==
| |
| | |
| '''Impeachment'''
| |
| | |
| [[Amherst, MA Resolution to Impeach Bush and Cheney]]
| |
| | |
| [[Detroit, MI Resolution for Impeachment of Bush and Cheney]]
| |
| | |
| [[Takoma Park, MD Resolution for Impeachment of Bush & Cheney]]
| |
| | |
| == L ==
| |
| | |
| '''Labor Issues'''
| |
| | |
| [[Elk Valley Rancheria Tribal Council, Calif Gaming Employment Rights]]
| |
| | |
| [[San Francisco, Calif Paid Sick Leave]]
| |
| | |
| | |
| '''Living Wage (also see Minimum Wage)'''
| |
| | |
| [[Allen Park, Michigan Living Wage]]
| |
| | |
| [[Alexandria, Virginia Living Wage]]
| |
| | |
| [[Atlanta, Georgia Living Wage]]
| |
| | |
| [[Berkeley, California Living Wage]]
| |
| | |
| [[Bloomington, Indiana Living Wage]]
| |
| | |
| [[Buffalo, New York Living Wage]]
| |
| | |
| [[Cambridge, Massachusetts Living Wage]]
| |
| | |
| [[Corvallis, Oregon Living Wage]]
| |
| | |
| [[Dade County, Florida Living Wage]]
| |
| | |
| [[Denver, Colorado Living Wage]]
| |
| | |
| [[Irvine, California Living Wage Requirements]]
| |
| | |
| [[Lawrence Township, New Jersey Council Large Retail Living Wage and Benefits]]
| |
| | |
| [[Lincoln, Nebraska Living Wage]]
| |
| | |
| [[Madison, Wisconsin Living Wage ]]
| |
| | |
| [[Marin County, California Living Wage]]
| |
| | |
| [[Minneapolis, Minnesota Living Wage]]
| |
| | |
| [[Oakland, California Living Wage]]
| |
| | |
| [[Richmond, California Living Wage]]
| |
| | |
| [[San Diego Living Wage]]
| |
| | |
| [[San Francisco, Calif Minimum Compensation Living Wage]]
| |
| | |
| [[San Jose, California Living Wage Policy]]
| |
| | |
| [[Santa Barbara, California Living Wage]]
| |
| | |
| [[Santa Cruz, California Ordinance Pertaining to the Payment of a Living Wage]]
| |
| | |
| [[Santa Fe, New Mexico Living Wage]]
| |
| | |
| [[Santa Monica, California Living Wage]]
| |
| | |
| [[Washtenaw County, Michigan Living Wage]]
| |
| | |
| == M ==
| |
| '''Marijuana'''
| |
| | |
| [[Ann Arbor initiative]]
| |
| | |
| [[Berkeley, Calif Marijuana Ordinance]]
| |
| | |
| [[Breckenridge, Colo Medicinal Marijuana Initiative]]
| |
| | |
| [[Burlington, Vermont Medicinal Marijuana]]
| |
| | |
| [[California City Guidelines for Medicinal Marijuana]]
| |
| | |
| [[Traverse City, Mich Marijuana Decriminalization]]
| |
| | |
| | |
| '''Minimum Wage (See also Living Wage above)'''
| |
| | |
| [[San Francisco, Calif Minimum Wage Initiative]]
| |
| | |
| | |
| '''Municipal Electricity'''
| |
| | |
| [[Auburn, NY Voters Approve Municipal Power Ownership]]
| |
| | |
| [[Six Iowa Communities Move on Municipal Electricity]]
| |
| | |
| [[Rolfe and Wellman, Iowa Vote to Approve Municipal Electricity]]
| |
| | |
| <br/>
| |
| | |
| == P ==
| |
| '''Participatory Budgeting'''
| |
| | |
| [[Introduction and information on participatory budgeting]]
| |
| | |
| | |
| '''Peace Initiatives'''
| |
| | |
| [[AFSCME Local 2627 Anti-war Resolution]]
| |
| | |
| [[AFSCME Local 1000 Troop Withdrawal]]
| |
| | |
| [[AFSCME Local 2083 Resolution for Bush to Step Down or be Impeached]]
| |
| | |
| [[Alameda, Calif Iraq Resolution]]
| |
| | |
| [[Arcata, Calif Resolution]]
| |
| | |
| [[Baltimore, Maryland Resolution]]
| |
| | |
| [[Berkeley, Calif Resolution]]
| |
| | |
| [[Binghamton, NY Bring the Troops Home]]
| |
| | |
| [[Chicago, IL Resolution]]
| |
| | |
| [[Corvallis, Ore Bring the Troops Home]]
| |
| | |
| [[Davis, Calif Resolution]]
| |
| | |
| [[Evanston, IL Resoltion]]
| |
| | |
| [[Fairbanks resolution calling on Rumsfeld to resign]]
| |
| | |
| [[Fairfax, Calif Opposes Iraq War]]
| |
| | |
| [[Gary, Ind Urges Immediate Troop Withdrawal]]
| |
| | |
| [[Landsdowne, Penn Bring the Troops Home]]
| |
| | |
| [[Los Angeles, Calif Against Iraq War]]
| |
| | |
| [[Maplewood, NJ Bring the Troops Home]]
| |
| | |
| [[Massachusetts 130 Townships Call for Troop Withdrawal]]
| |
| | |
| [[Oakland, Calif Resolution Against the War]]
| |
| | |
| [[Philadelphia, Penn Bring the Troops Home]]
| |
| | |
| [[Portland, Ore Bring the Troops Home]]
| |
| | |
| [[Sacramento, Calif Calls for Withdrawal from Iraq]]
| |
| | |
| [[San Francisco, Calif Resolution]]
| |
| | |
| [[Santa Barbara, Calif Resolution Against the War]]
| |
| | |
| [[Santa Cruz, Calif Calls to Withdraw Calif National Guard]]
| |
| | |
| [[Santa Monica, Calif Resolution Against a Preemptive Military Strike]]
| |
| | |
| [[South Charleston, West Virg for Immediate Withdrawal]]
| |
| | |
| [[United Autoworkers Local 393 Cut Off Funding for the Iraq War]]
| |
| | |
| [[Vermont Iraq War Resolutions in 50 Towns]]
| |
| | |
| [[Wisconsin Iraq withdrawal initiatives]]
| |
| | |
| == R ==
| |
| | |
| '''Recycling'''
| |
| | |
| [[Alamance County, North Carolina Recycling]]
| |
| | |
| [[Alexandria, Virginia Recycling]]
| |
| | |
| [[Belgrade, Maine Recycling]]
| |
| | |
| [[Berkeley, Calif Prohibition on Recyclable Poaching]]
| |
| | |
| [[Berkeley, Calif POLYSTYRENE Foam, Degradable and Recyclable Food Packaging]]
| |
| | |
| [[Buffalo, NY Recycling]]
| |
| | |
| [[Burrville, Rhode Island Recycling]]
| |
| | |
| [[Collier County, Florida: Recycling]]
| |
| | |
| [[Contra Costa County, Calif Recycling]]
| |
| | |
| [[Cottage Grove, Wisconsin: Recycling]]
| |
| | |
| [[Douglas County, Wisc Recycling]]
| |
| | |
| [[Durham, North Carolina: Recycling]]
| |
| | |
| [[Freeport, Maine Styrofoam]]
| |
| | |
| [[Grafton, Wisc Recycling]]
| |
| | |
| [[Honolulu, Hawaii Recycling]]
| |
| | |
| [[Lisbon, Maine Recycling]]
| |
| | |
| [[Litchfield, Maine Recycling]]
| |
| | |
| [[Malibu, Calif Polystyrene]]
| |
| | |
| [[McHenry County, Illinois Recycling]]
| |
| | |
| [[Meredith, New Hampshire Recycling]]
| |
| | |
| [[Monroe County, New York: Recycling]]
| |
| | |
| [[Oakland, Calif Green Food Packaging]]
| |
| | |
| [[Oakland, Calif Excess Litter Fee]]
| |
| | |
| [[Pittsfield, Wisc Recycling]]
| |
| | |
| [[Portland, Oregon Recycling]]
| |
| | |
| [[Presque Isle, Wisconsin Recycling]]
| |
| | |
| [[Rusk County, Wisc Recycling]]
| |
| | |
| [[Santa Cruz County, Calif Polystyrene]]
| |
| | |
| [[Santa Monica Bans Non-Recyclable Plastic Disposable Food Containers]]
| |
| | |
| [[Sonoma County, Calif Polystyrene Ordinance]]
| |
| | |
| [[St Croix County, Wisc Recycling]]
| |
| | |
| [[St. Paul, Minnesota Plastic Packaging]]
| |
| | |
| [[(Central) Vermont recycling]]
| |
| | |
| [[Verona, Wisc Recycling]]
| |
| | |
| [[Wayne County, North Carolina Recycling]]
| |
| | |
| [[York, NY Recycling]]
| |
| | |
| <br/>
| |
| == S ==
| |
| '''Public Smoking'''
| |
| | |
| [[Laramie, Wyoming Smoking in Public Places]]
| |
| | |
| | |
| '''Sustainability Policies'''
| |
| | |
| [[Alameda County, Calif County Buildings must be LEED Certified]]
| |
| | |
| [[American Society of Civil Engineers - The Role of the Civil Engineer in Sustainable Development]]
| |
| | |
| [[Arlington, Mass Requires Silver LEED Rating for All New Construction and Renovations]]
| |
| | |
| [[Atlanta LEED Building Design]]
| |
| | |
| [[Austin, Texas]]
| |
| | |
| [[Burlington, Vermont Sustainability]]
| |
| | |
| [[Chattanooga, Tenn]]
| |
| | |
| [[Londonderry, New Hamp]]
| |
| | |
| [[Martin County, Florida]]
| |
| | |
| [[Minnesota Sustainable Development Initiative]]
| |
| | |
| [[New York City LEED Building Design]]
| |
| | |
| [[New Pattonsburg, MO Charter of Sustainability]]
| |
| | |
| [[Olympia, Wash]]
| |
| | |
| [[Oregon Solutions for a Sustainable Future]]
| |
| | |
| [[San Diego, Calif Sustainable Building Policy]]
| |
| | |
| [[Santa Monica, Calif]]
| |
| | |
| [[Steele County, Minn -- Green Source 2020]]
| |
| | |
| [[Tucson, Ariz]]
| |
| | |
| ==T==
| |
| '''Toxic Pollution'''
| |
| | |
| [[Ann Arbor, Mich Mercury Thermometer Ban]]
| |
| | |
| [[Duluth, Minn Mercury Thermometer Ban]]
| |
| | |
| [[Rockland County, NY Ultra low sulfur diesel fuel and best available retrofit technology act]]
| |
| | |
| [[San Francisco, Calif Mercury Thermometer Ban]]
| |
| | |
| | |
| '''Transportation'''
| |
| | |
| [[Model Action Plan for Bicycle Friendly Communities]]
| |
| | |
| [[Carrboro, NC Resolution Regarding Bicycle Friendly Communities]]
| |
| | |
| [[Davis, CA Resolution Regarding a Bicycle Advisory Commission]]
| |
| | |
| [[Las Cruces, NM Resolution on Bicycle Parking Design Standards]]
| |
| | |
| [[Lemoore, CA Resolution to Adopt Regional Bicycle Plan]]
| |
| | |
| [[Nashville and Davidson County, TN Resolution on Regulation of Sidewalk Obstructions]]
| |
| | |
| [[New York City, NY Purchasing Clean Vehicles]]
| |
| | |
| [[New York City, NY Reduce Diesel Emissions]]
| |
| | |
| [[New York City, NY Pollution from Buses]]
| |
| | |
| [[Overland Park, KS Resolution to Facilitate Bicycle Usage]]
| |
| | |
| [[Portland, OR Bicycle Master Plan]]
| |
| | |
| [[San Francisco, CA Resolution for an Alternative Fuels Bus Program]]
| |
| | |
| [[Wilsonville, OR Resolution Regarding Funding of a Shared Bicycle and Pedestrian Path]]
| |
| | |
| ==W==
| |
| | |
| '''Wetlands'''
| |
| | |
| [[Austin, TX Watershed Protections]]
| |
| | |
| [[Cambridge, MA Resolution on Watershed Protection]]
| |
| | |
| [[Fairfax, CA Resolution to Protect Stream Conservation Areas]]
| |
| | |
| [[Ocean County, NJ Dune Protection]]
| |
| | |
| | |
| '''Wildlife'''
| |
| | |
| [[Aspen, CO Wildlife Protection]]
| |
| | |
| [[Pitkin County, CO Wildlife Protection]]
| |
| | |
| [[Colorado County Prairie Dog Protection]]
| |
| | |
| ==Y==
| |
| | |
| '''Youth'''
| |
| | |
| [[Indianapolis, Indiana After School Projects]]
| |
| | |
| [[Louisville, Kentucky Summer Camp Scholarships]]
| |
| | |
| [[San Jose, California After School Programs]]
| |
| | |
| [[Image:Logo.gif]]
| |
Some tips and tricks for using Semantic Mediawiki from SMW mailing list, various web sites, etc.
Workshops, tutorials, etc
Other tip sources
http://semantic-mediawiki.org/wiki/FAQ
http://smwforum.ontoprise.com/smwforum/images/a/ad/Manual_SMW.pdf
http://smw.referata.com/wiki/Special:BrowseData/Tips
http://smwforum.ontoprise.com/smwforum/index.php/Example:All_libraries
http://help.wikia.com/wiki/Help:Semantic_MediaWiki/Tips_and_tricks
http://semantic-mediawiki.org/wiki/Image:SMW_quick_reference.pdf
http://www.organicdesign.co.nz/MediaWiki_code_snippets (mediawiki)
http://smw.referata.com/wiki/Overview_of_Semantic_MediaWiki_and_Semantic_Forms
Data design
http://www.mediawiki.org/wiki/Extension:Semantic_Forms#Data_design_issues
- Create a top category for Semantic Classes. I called mine 'Categories'.
It holds only categories used to define a 'Is-a' relationship. Doing so has
at least two benefits : 1- You can do a query on your core content by
restricting it to the 'Categories' level. 2- You can define other
categories outside of that structure for whatever your system needs.
http://smwforum.ontoprise.com/smwforum/index.php/Example:How_to_realize_a_range_constraint_for_a_property
Redirects can be used to create property synonyms.
Discussion
Categories can be hierarchical; properties can't (yet) - actually they can be, using subproperty of.
When to use categories vs properties?
MW tricks
If you want to clear out old pages you can delete them and use
deleteArchivedRevisions.php to erase the deleted revisions from the
database.
Variables
You can make use of the VariablesExtension [1] and store the query (or its
result? I'd like to know which one, but in the end it doesn't really matter) in
a variable, which is helpful when you need the same query multiple times within
a page. It looks like this:
{{ #vardefine: some_variable_name | {{#show:{{PAGENAME}}| ?propertyname}} }}
(silent) or
{{ #vardefineecho: some_variable_name | {{#show:{{PAGENAME}}| ?propertyname}} }} (with output)
Further down in the page you can write
{{ #var: some_variable_name }}
Specific searches
<inputbox>
type=search
width=30
namespaces=Help**,Wikipedia**,Template**
searchbuttonlabel=Search help pages
bgcolor=#cee0f2
break=no
</inputbox>
(requires the Input Box extension)
Profiling mediawiki
http://www.mediawiki.org/wiki/How_to_debug#Profiling
Semantic Mediawiki performance
http://www.snpedia.com/index.php/Special:Statistics
20,000 pages, 132,00 property values for 60 properties
Mediawiki performance tuning
http://www.mediawiki.org/wiki/Manual:Performance_tuning
- APC can be used with SMW without problems
SMW tricks
[[Went past deadline::{{#expr:{{{End date|}}}>{{{Deadline|}}} }}]]
Remote data
Philipp writes:
if you want to query an SMW installation from remote and re-use the results in
other applications, I recommend checking out our Triplestore Connector. It delivers the results as XML format (compliant with the SPARQL recommendation).
If you want to query semantic data in your wiki, coming from another SMW
installation you should take a further look at the Exhibit result printer.
Freebase query
Hiding set data
[[propertyA::{{{propertyA|}}}|]]
By adding the | after the enclosing }}}, the property value will not show.
For multi value properties:
{{#arraymap:{{{Eating disorders behaviors|}}}|,|x|[[Eating disorders behaviors::x|]]}}
(why not just use #set?)
Protecting #ask results
(from Markus Kr?tzsch)
- make a new property "has checked" of type page,
- make and a new page "main page news editor" (or whatever) and protect this page just like your main page,
- add an entry [[has checked::some page]] on "main page news editor" for every page that the editor has found to be okay to make it on the main page news feed,
- extend your #ask query on the main page with the condition [[-has
checked::main page news editor]].
... Note that you can also have a group of editors with separate (protected)
pages. You can also work with categories of editors for different topics etc.
Of course, this is no longer a spam protection since categories are not
protected either, but you can use another level of "has checked" to have a
master editor who checks other editors to grant them trust. All of this
readily works with subqueries+inverses. Applying similar methods but without
actually protecting any pages maybe still be useful for managing feeds
together in cases where spam is not a major issue.
Misc
Enable links in property values
$smwgLinksInValues = true;
Must add namespaces to config
Otherwise they won't have semantic properties.
$smwgNamespacesWithSemanticLinks array
Enable links in property values
$smwgLinksInValues = true;
Dark background theme css
http://software.wikia.com/wiki/User:Ose/SMW.css
Multi language SMW
Creationwiki
(From Temlakos on the mailing list regarding http://creationwiki.org/ and http://creationwiki.org/fr/)
Here's how I do it: As I have said many times before, I routinely
declare all properties. And every declaration that is implemented in
both languages, has the language-specific Interwiki prefix added, so
that you can follow a property declaration from one language to the
other and back.
All that is involved is making parallel property declarations and
placing Interwiki language links in each one.
In general: a multilingual wiki is actually a family of wikis, each set
up in its own language.
The important part is to make sure that the SMW language files exist in
each language in which you are planning to implement SMW. Right now the
language support is a little thin, in comparison to the incredible
multiplicity of languages on Wikipedia. So those of you who are trying
to persuade Wikipedia to implement SMW across their project will have an
immediate problem: you don't support more than a handful of the
languages they use.
...
anyone who implements SMW in an unsupported language is going to have to
write a language file. And make sure that his language is supported in
SMW_Aliases.php and SMW_Messages.php.
HKp wiki
'HKp wiki' is a bilingual (potentially multilingual) spanish-catalan
wiki in the same installation.
http://enlloc.net/hkp/w
I'm using Polyglot extension [1] to redirect to appropriate language
pages depending on the browser language settings or the user wiki
settings.
I'm using Language Selector extension for providing a language
selector for every page in the sidebar.
I wanted to use the Multilang extension for changing the language in
pages and forms depending on the user settings. But unfortunately this
extension don't work in MW higher of 1.10.
Alternatively I'm using the [http://enlloc.net/hkp/w/index.php/Plantilla:International {{international}}nowiki> template]. It is useful
for pages and templates but not for forms because it need a
<nowiki>{{SUBPAGENAME}} with language code (/ca, /es, /en, /fr, /pt, ...).
I'm using my own code in templates to show or hide a "translation
button" depending if the translation page exist or not:
{{#ifeq:{{SUBPAGENAME}}|es|
{{exists | page={{NAMESPACE}}:{{BASEPAGENAME}}/ca | then= | else=
<p style="margin-top:2em; color: rgb(100, 100, 100)">'''Traducci?n'''<br>[[Categoria:Per traduir al Castell?]]
<small>Esta p?gina a?n no est? en catal?n. Quieres colaborar a traducirla?</small></p>
{{#formlink:Entrada Wlog traduir ca|Traducir al catal?n|button|
preload={{FULLPAGENAME}}&Gesti? traduccions[p?gina
original]={{BASEPAGENAME}}&Entrada Wlog[llengua entrada]=es&namespace=Wlog }}
}}
}}
Right now I have not solution for having only one form for all
languages. What is annoying.
Media
Neat talk on MW, with refs to SMW: http://www.youtube.com/watch?v=Ukytqe9pwDM