Page MenuHomePhabricator

SPARQL editor property and item pop up doesn't work for custom prefixes
Open, Needs TriagePublicBUG REPORT

Description

Steps to reproduce:

PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX iskouk: <http://iskouk-workshop.wiki.opencura.com/entity/>
PREFIX iskoukprop: <http://iskouk-workshop.wiki.opencura.com/prop/direct/>

SELECT * 
WHERE
{
  ?s iskoukprop:P2 iskouk:Q13 ;
    rdfs:label ?label ;
    schema:description ?description .
}
  • Mouseover custom property (e.g. iskoukprop:P2)
  • Observe no property or item pop up is shown (see
    screenshot1.png (1×2 px, 179 KB)
    ) but running the query gives the correct result
  • Change prefix to wdt for property and wd for an item (e.g. wdt:P2 and wd:Q13):
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX iskouk: <http://iskouk-workshop.wiki.opencura.com/entity/>
PREFIX iskoukprop: <http://iskouk-workshop.wiki.opencura.com/prop/direct/>

SELECT * 
WHERE
{
  ?s wdt:P2 wd{F34766604}

{F34766605}:Q13 ;
    rdfs:label ?label ;
    schema:description ?description .
}
  • Mouseover custom property (e.g. wdt:P2)
  • Observe property and item pop up shown (see
    screenshot2.png (1×2 px, 194 KB)
    ) but running the query gives an empty result

What happens?:

No property or item pop up is shown when using custom prefixes in SPARQL query.

What should have happened instead?:

Custom prefixes for the property and item should be respected for displaying the property or item pop-up

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:

Product - Version
MediaWiki - 1.35.3 (f921256) 10:08, 2 September 2021
PHP - 7.4.23 (apache2handler)
MariaDB - 10.3.22-MariaDB-log
ICU - 67.1
Lua - 5.1.5
LilyPond - 2.22.0

Wikibase
Extension - Version - Licence - Description - Authors
EntitySchema - – - GPL-2.0-or-later - Store and discuss Schemas for Wikibase entities - The Wikidata team
Wikibase EDTF - 1.2.0 - GPL-2.0-or-later - Adds support for the EDTF standard to Wikibase via a dedicated data type - Jeroen De Dauw and Professional.Wiki
WikibaseClient - – - GPL-2.0-or-later - Client for the Wikibase extension - The Wikidata team and others
WikibaseManifest - 0.0.1 - GPL-2.0-or-later - Combines metadata about a Wikibase installation exposing it as a simple API - The Wikidata team
WikibaseRepository - – - GPL-2.0-or-later - Structured data repository - The Wikidata team and others
WikibaseView - – - GPL-2.0-or-later - View component for the Wikibase Repository - The Wikidata team and others