Triply-Dev / YASGUI.YASQE-deprecated

Deprecated, see https://github.com/TriplyDB/Yasgui for the Yasgui monorepo
MIT License
73 stars 36 forks source link

Syntax checker sometimes misses undefined prefix #103

Closed wouterbeek closed 4 years ago

wouterbeek commented 7 years ago

Steps to reproduce:

  1. Copy the below query string into YASQE
  2. Change prefix ogc:' toprefix geo:'.
  3. Notice that the undefined prefix `ogc' is not detected by the syntax checker. (When the query is shorted the syntax checker does find this error.)
prefix bag: <http://bag.basisregistraties.overheid.nl/def/bag#>
prefix ogc: <http://www.opengis.net/ont/geosparql#>
select * where {
    ?num a bag:Nummeraanduiding .
    ?num bag:bijbehorendeOpenbareRuimte ?opr .
    ?num bag:huisnummer 24 .
    ?opr bag:naamOpenbareRuimte "'t Spiker" .
    ?opr bag:bijbehorendeWoonplaats ?wpl .
    ?wpl bag:naamWoonplaats ?wpl_naam .
    ?vbo bag:hoofdadres ?num .
    ?vbo bag:oppervlakte ?vbo_opp .
    ?vbo bag:status ?vbo_status .
    ?vbo bag:pandrelatering ?pnd .
    ?vbo bag:geometrieVerblijfsobject/ogc:asWKT ?vbo_wkt .
    ?pnd bag:oorspronkelijkBouwjaar ?pnd_jaar .
    ?pnd bag:geometriePand/ogc:asWKT ?pnd_wkt .
    ?pnd bag:status ?pnd_status
}
LaurensRietveld commented 4 years ago

This is fixed in the latest release (see https://github.com/TriplyDB/Yasgui and https://yasgui.triply.cc)