Page MenuHomePhabricator
Feed Advanced Search

Jun 12 2019

Peb committed rWDQG854f9ffc41de: work done during wikimedia hackathon 2019 in Prague, Czech Rep. (authored by Peb).
work done during wikimedia hackathon 2019 in Prague, Czech Rep.
Jun 12 2019, 5:49 PM

May 27 2019

Peb added a member for Wikidata Query UI: Peb.
May 27 2019, 1:35 AM

May 18 2019

Peb added a comment to T216601: Allow download of Wikidata query results in GPS-friendly format(s).

any ideas on how to enable/unhide download menu item only when the query result containing geolocation? should i make separate task on the board?

May 18 2019, 3:54 PM · Wikidata Query UI, Wikimedia-Hackathon-2019, Wikidata
Peb added a comment to T216601: Allow download of Wikidata query results in GPS-friendly format(s).

I have implemented for GeoJSON, GPX, and KML. here's the snippet. four small npm libraries are used : wicket (parsing WKT), geojson, togpx, tokml

	/**
	 * Get the result of the submitted query as GeoJSON
	 *
	 * @return {object}
	 */
	SELF.prototype._getResultAsGeoJson = function() {
		var output = [],
			data = this._rawData;
		var wkt = new Wkt.Wkt();
		output = this._processData( data, function( row, out ) {
			var newRow = {};
			for ( var rowVar in row ) {
				var binding = ( row[rowVar] || {} );
				if ( binding.type === 'literal' && binding.datatype && binding.datatype === 'http://www.opengis.net/ont/geosparql#wktLiteral' ) {
					wkt.read( binding.value );
					newRow._lat = wkt.components[0].y;
					newRow._lng = wkt.components[0].x;
				} else { 
					newRow[rowVar] = binding.value;
 				}
			}
			out.push( newRow );
			return out;
		}, output );
		return GeoJSON.parse( output, { Point: ['_lat', '_lng'] } );
	};
May 18 2019, 3:51 PM · Wikidata Query UI, Wikimedia-Hackathon-2019, Wikidata
Peb added a comment to T211177: WDQ UI should support download of RDF formats.

ignore the previous patch, i should have used existing _renderValueTSV function. so far implemented for NTriples and JSON-LD. for JSON-LD (using jsonld.js), i need to modify the download function in the ResultView.js (the one calling handler function) to accomodate handler function returning Promise object instead of string.

May 18 2019, 3:48 PM · patch-welcome, Wikimedia-Hackathon-2019, Wikidata, Wikidata Query UI

May 17 2019

Peb added a comment to T219199: Wikimedia Hackathon 2019 volunteer group: Photos.

It would be nice to meet today and discuss about photography social activities too. Do we need a special Telegram group?

May 17 2019, 2:07 PM · International-Developer-Events, Wikimedia-Hackathon-2019-Organization, Developer-Advocacy (Apr-Jun 2019), Wikimedia-Hackathon-2019
Peb created T223603: Indonesian translation of Wikidocumentaries.
May 17 2019, 1:33 PM · Wikidocumentaries, Wikimedia-Hackathon-2019

May 16 2019

Peb added a comment to T219199: Wikimedia Hackathon 2019 volunteer group: Photos.

I will bring two cameras :

  • Small camera (APS-C) w/ 19mm fixed lens
  • pocket 360 camera

is there any sign/indicators for volunteers who are taking photos aside from bringing camera?

May 16 2019, 3:01 AM · International-Developer-Events, Wikimedia-Hackathon-2019-Organization, Developer-Advocacy (Apr-Jun 2019), Wikimedia-Hackathon-2019

May 15 2019

Peb added a comment to T211177: WDQ UI should support download of RDF formats.

made a starting code to download as NTriples by converting from SPARQL-Result-JSON.
The JSON-LD might be quite straightforward using jsonld.js fromRdf function given NT input

May 15 2019, 3:09 PM · patch-welcome, Wikimedia-Hackathon-2019, Wikidata, Wikidata Query UI
Peb added a comment to T216601: Allow download of Wikidata query results in GPS-friendly format(s).

I can help with this too along with RDF download task

May 15 2019, 12:57 PM · Wikidata Query UI, Wikimedia-Hackathon-2019, Wikidata
Peb claimed T211177: WDQ UI should support download of RDF formats.
May 15 2019, 12:54 PM · patch-welcome, Wikimedia-Hackathon-2019, Wikidata, Wikidata Query UI
Peb added a comment to T211177: WDQ UI should support download of RDF formats.

According to blazegraph documentation, the endpoint supports various formats.
I tried using my sparql query app and all listed formats there are returned.

May 15 2019, 12:52 PM · patch-welcome, Wikimedia-Hackathon-2019, Wikidata, Wikidata Query UI