sib-swiss / sparql-examples-utils

A tool to maintain and test your SPARQL examples
Other
4 stars 4 forks source link

Wikibase: improve query comment extraction and page language detection #5

Open JervenBolleman opened 2 months ago

JervenBolleman commented 2 months ago

The current approach to query comment extraction is find the highlighted sparql query in the html. Find previous siblings in the HTML document and extract their text to make a comment.

For language detection we look at the lang attribute of the top level html. However, that is often wrong.