Talk:WikiSpaces/old

From HackerspaceWiki
Jump to: navigation, search

Old Talk And Old Content[edit]

What about importing DOAP(description of a project): http://trac.usefulinc.com/doap to be used with project pages similarly to foaf with userpages. It is meant for software projects, but I don't think there is anything major preventing it from being used in a broader context.

Looks interesting, should look into that as well. --Kwisatz 16:46, 29 December 2009 (UTC)

The other question is that should we not mention the free semantic wiki host referata.com (which our space is adopting)? more on that on my talk page --User:Elmom


Local events should be entered on the own wiki, all external events on this one. There is a problem though, that we will probably not be able to solve using the ExternalData extension:

RandomSpace.xyz <-- [fetch semantic data] --- Hackerspaces.org <-- [fetch semantic data] --- AnotherRandomSpace.abc

This will result on RandomSpace.xyz only displaying events from the hackerspaces.org database, as all other data is only fetched, parsed and displayed, but not imported.

Suggested solutions[edit]

Properties[edit]

Events currently have the following properties on hackerspaces.org:

They have the following properties on i.e. syn2cat:

A coordinated approach would have at least the following properties:

Test / Example[edit]

This is live data from hackerspace.lu

{{#get_external_data:https://www.hackerspace.lu/wiki/Special:Ask/-5B-5BCategory:ExternalEvent-5D-5D-0A-5B-5BIs-20Recurring::no-5D-5D-0A-5B-5BEndDate::-3E2010-2D01-2D2-2000:00-5D-5D/-3FStartDate%3DFrom/-3FEndDate%3DTill/-3FLocation/-3FUrl/sort%3DStartDate/order%3DASC/format%3Dcsv/sep%3D,%7CCSV with Header|event=|from=From|till=Till|url=Url}}


Preferred: Using Special:Ask[edit]

This is how we do it...

asking for events from our wiki
{{#get_external_data:https://www.hackerspace.lu/wiki/Special:Ask?title=Special%3AAsk&q=[[Category%3AEvent]]%0D%0A[[StartDate%3A%3A%2B]]&po=%3FStartDate&sc=0&eq=yes&p=format%3Dcsv&sep=%3D,|CSV with Header|event=|startdate=StartDate}}
{{#for_external_table:{{{event}}} starts on {{{startdate}}} <br/>}}

asking for external data from hackerspaces.org
{{#get_external_data:http://hackerspaces.org/wiki/Special:Ask?title=Special%3AAsk&q=[[Category%3AEvent]]%0D%0A&po=%3FStart%20date%0D%0A%3Ftitle%0D%0A&sc=0&eq=yes&p=format%3Dcsv&sep=%3D,|CSV with Header|event=title|startdate=Start date}}
{{#for_external_table: * {{{event}}} has {{{startdate}}} <br> }}

asking for opendoors startdate from our wiki
{{#get_external_data:https://www.hackerspace.lu/wiki/Special:Ask/-5B-5BOpenDoors-5D-5D/-3FStartDate/-3FEndDate/format%3Dcsv/sep%3D,|csv with header|sdate=StartDate|edate=EndDate}}
* Opendoors has StartDate {{#external_value:sdate}} and ends on {{#external_value:edate}}

We've learned how to extract event name and "Event Start Date" from hackerspaces.org, the syntax is disgusting though: hackerspace.lu sandbox

As you can see, events should always define the "Title" field, otherwise they look a bit blank. --Tschew 14:02, 20 September 2009 (UTC)

SSL trouble[edit]

We had to modify the external data extension to support SSL: (change should have been included upstream by now) [note that VERIFYPEER=false is a bad idea, but needs to be set because of a libcurl bug: http://bugs.php.net/bug.php?id=43158] --Kwisatz

ED_Utils.php:

287                 if( !isset( $edgCacheTable ) || is_null( $edgCacheTable ) )
288                         return Http::get( $url, 'default', array(CURLOPT_SSL_VERIFYPEER => false) );

Alternative: The RDF export[edit]

Howto: http://semantic-mediawiki.org/wiki/Help:RDF_export#Exporting_all_data

You may want to use a daily/hourly cronjob to dump the entire RDF info:

#!/bin/sh
logger -t syn2cat "Dumping rdf data..."
DOCROOT="[your docroot here]"
SCRIPT="w/extensions/SemanticMediaWiki/maintenance/SMW_dumpRDF.php"
OUTPUT="${DOCROOT}/RDFout"

`which php` ${DOCROOT}/${SCRIPT} -o ${OUTPUT}

Resources[edit]

http://trac.usefulinc.com/doap


See also: Hackerspace Software