sib-swiss / sparql-examples-utils

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

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

Open JervenBolleman opened 1 week ago

JervenBolleman commented 1 week 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.