Jassa-Core icon indicating copy to clipboard operation
Jassa-Core copied to clipboard

Concept Intersection fails

Open Aklakan opened this issue 10 years ago • 1 comments

filterConcept := "?s http://geovocab.org/geometry#geometry ?fv_2; ?fv_2"

attrConcept := "?s http://www.opengis.net/ont/geosparql#asWKT ?w; ?s"

intersection using ConceptUtils.createCombinedConcept(attrConcept, filterConcept, true, false, false) yields

actual := "?s http://geovocab.org/geometry#geometry ?s . ?s http://www.opengis.net/ont/geosparql#asWKT ?w; ?s"

expected := "?freshVar http://geovocab.org/geometry#geometry ?s . ?s http://www.opengis.net/ont/geosparql#asWKT ?w; ?s"

with ?freshVar being a newly allocated variable distinct from any other variable

Aklakan avatar Mar 08 '15 18:03 Aklakan

Added hacky fix, which does additional variable renaming by prefixing, but does not actually check for uniquness (if javascript just had a native HashSet....)

Aklakan avatar Mar 08 '15 18:03 Aklakan