Ideal components: Difference between revisions

Line 1: Line 1:
== essential ==
Some tips and tricks for using Semantic Mediawiki.


=== Front end ===


* designer control on front end
Items below from Semantic Mediawiki mailing list, various web sites.
* fluid (ajaxy) without going overboard (URLs to every location)
* accessible
* RESTy URLs
* in place editing
* embedded wiki parser or other way of creating composite documents


=== Data ===
== Other tip sources ==


* rdfa
http://smwforum.ontoprise.com/smwforum/images/a/ad/Manual_SMW.pdf
* micro licenses
** ccREL
* polymorphic data
* REST (JSON), SPARQL queryable
* strict validation
** JSR 303


=== Execution ===
http://smw.referata.com/wiki/Special:BrowseData/Tips


* runs nearly anywhere
http://smwforum.ontoprise.com/smwforum/index.php/Example:All_libraries
* scalable
* fine grained security
* sso


=== Construction ===
http://help.wikia.com/wiki/Help:Semantic_MediaWiki/Tips_and_tricks


* uses standard libraries
http://semantic-mediawiki.org/wiki/Image:SMW_quick_reference.pdf
* fluid development (no restarting) including site structure and objects
* easy to populate with data and export


== nice to have ==
== Data design ==


* polyglot - jvm, ruby, python, php, etc
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


=== Other info ===
Redirects can be used to create property synonyms.


reciprocal content
== Discussion ==


http://openlayers.org/ - free maps (using openstreetmaps)
Categories can be hierarchical; properties can't (yet).


http://semanticweb.org/wiki/SemFS - webdav access to smw tagged content (java)


== MW tricks ==


microformats - http://microformats.org/
If you want to clear out old pages you can delete them and use
deleteArchivedRevisions.php to erase the deleted revisions from the
database.


http://en.wikipedia.org/wiki/Mulgara_(software) - scalable rdf store
=== Variables ===


mulgara - scalable rdf (java) - http://docs.mulgara.org/overview/links.html links to lots of orientation
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:


== [http://semanticweb.org/wiki/Ontology Ontologies] ==
{{ #vardefine: some_variable_name | {{#show:{{PAGENAME}}| ?propertyname}} }}
(silent) or
{{ #vardefineecho: some_variable_name | {{#show:{{PAGENAME}}| ?propertyname}} }} (with output)


http://ontologyonline.org/ - meta directory
Further down in the page you can write


http://www.schemaweb.info/default.aspx - RDF schemas
{{ #var: some_variable_name }}


http://www5.umweltbundesamt.at/ALTERNet/index.php?title=Ont:ALTER-Net_Ontology - social field ontologies
=== Specific searches ===


http://typewriter.freebaseapps.com/ cc typed information
  <nowiki>
  <inputbox>
  type=search
  width=30
  namespaces=Help**,Wikipedia**,Template**
  searchbuttonlabel=Search help pages
  bgcolor=#cee0f2
  break=no
  </inputbox>
  </nowiki>


[[Ideal systems]]
(requires the Input Box extension)


[[Scala Lift]] ?
=== Profiling mediawiki ===


[[Category: Wikis]]
http://www.mediawiki.org/wiki/How_to_debug#Profiling
[[Category: Opening]]
 
[[Category: Hacking]]
=== Mediawiki performance tuning ===
[[Category: Semantic]]
 
[[Category: Java]]
http://www.mediawiki.org/wiki/Manual:Performance_tuning
[[Category: Web]]
 
[[Category: Ontology]]
* APC can be used with SMW without problems
 
== SMW tricks ==
 
<nowiki>[[Went past deadline::{{#expr:{{{End date|}}}>{{{Deadline|}}} }}]]</nowiki>
 
=== Hiding set data ===
 
  <nowiki>[[propertyA::{{{propertyA|}}}|]]</nowiki>
 
By adding the | after the enclosing }}}, the property value will not show.
 
For multi value properties:
 
  <nowiki>{{#arraymap:{{{Eating disorders behaviors|}}}|,|x|[[Eating disorders behaviors::x|]]}}</nowiki>
 
== Misc ==
 
=== Enable links in property values ===
 
$smwgLinksInValues = true;
 
=== Must add namespaces to config ===
 
Otherwise they won't have semantic properties.
 
$smwgNamespacesWithSemanticLinks array
 
== Media ==
 
Neat talk on MW, with refs to SMW: http://www.youtube.com/watch?v=Ukytqe9pwDM
 
[[Semantics]]