2

Wikidata provides a tool for query building.

https://query.wikidata.org/

But I cannot find any shortcut in the editor to comment/uncomment in bulk (that is, comment/uncomment multiple lines at the same time).

logi-kal
  • 7,107
  • 6
  • 31
  • 43
Loredra L
  • 1,485
  • 2
  • 16
  • 32

2 Answers2

3

As of June 2018, the SPARQL query editor at https://query.wikidata.org/ lets you select several lines and click Ctrl+/ to bulk (un)comment. (This feature was not available when the original question and answer were written.)

The SPARQL language does not have a "multi-line comment" indicator, only "the rest of this line is a comment" hash ("#") indicator.

Some text editors will let you add the same prefix to multiple lines with one command; this requires that you edit your query outside of most SPARQL endpoint webforms.

TallTed
  • 9,069
  • 2
  • 22
  • 37
1

This is now fixed. You can select a few lines and click Ctrl+/ to bulk comment/uncomment them.

Udi
  • 29,222
  • 9
  • 96
  • 129