Skip to content

Warn when a semantic map query has no coordinate printout#918

Draft
JeroenDeDauw wants to merge 1 commit into
masterfrom
warn-about-missing-coordinate-printout
Draft

Warn when a semantic map query has no coordinate printout#918
JeroenDeDauw wants to merge 1 commit into
masterfrom
warn-about-missing-coordinate-printout

Conversation

@JeroenDeDauw

@JeroenDeDauw JeroenDeDauw commented Jul 2, 2026

Copy link
Copy Markdown
Member

For #917

When an #ask query with a map format returns results but none of the queried properties can provide coordinates, the map printer rendered nothing (the empty default parameter), leaving no hint about why the map is missing. This commonly happens when a property is unintentionally typed Text, for instance via a stale vocabulary import mapping schema:geo to Type:Text (as shipped by Semantic MediaWiki before version 5.0).

The printer now adds a query error, rendered through Semantic MediaWiki's standard warning mechanism (the inline warning marker with the message in its tooltip), explaining that none of the queried properties has the "Geographic coordinates" type. The warning is suppressed for queries that get their markers elsewhere: via ajaxcoordproperty/ajaxquery, via the geojson parameter, or via a record printout (records can contain coordinate fields). Queries that do have a coordinate printout but no values keep the existing silent behavior.


Written by Claude Code, Fable 5. Result of an investigation session with @JeroenDeDauw. Context: the Maps codebase, Semantic MediaWiki 6/7 sources and release notes, and live debugging of the issue reporter's public wiki pages.

@JeroenDeDauw JeroenDeDauw marked this pull request as ready for review July 2, 2026 17:19
For #917

When an #ask query with a map format returns results but none of the
queried properties can provide coordinates, the map printer rendered
nothing (the empty "default" parameter), leaving no hint about why the
map is missing. This commonly happens when a property is unintentionally
typed Text, for instance via a stale vocabulary import mapping
schema:geo to Type:Text (as shipped by Semantic MediaWiki before
version 5.0).

The printer now adds a query error, rendered through Semantic
MediaWiki's standard warning mechanism, explaining that none of the
queried properties has the "Geographic coordinates" type. The warning
is suppressed for queries that get their markers elsewhere: a fully
configured ajaxcoordproperty/ajaxquery pair, geojson, or GoogleMaps3's
kml/gkml, and for record printouts (records can contain coordinate
fields). Queries that do have a coordinate printout but no values keep
the existing silent behavior.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@JeroenDeDauw JeroenDeDauw force-pushed the warn-about-missing-coordinate-printout branch from cf99236 to 4981e77 Compare July 2, 2026 17:38
@JeroenDeDauw JeroenDeDauw reopened this Jul 2, 2026
@JeroenDeDauw JeroenDeDauw marked this pull request as draft July 2, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant