polygene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niclas Hedhman <nic...@hedhman.org>
Subject My recent changes...
Date Wed, 13 Apr 2016 23:43:02 GMT
I have tried to break the responsibility of the "Module Model" out of the
"ModuleInstance", and make a proper abstraction.

To facilitate this work (unfortunately in wrongly named branch and wrongly
referenced ZEST-105 issue, sorry), I have had to put instance() into the
ModuleModel, which shouldn't be there, and I might try to improve that

I have also gotten most of the testcases working again, but RDF query and
Elastic search queries are failing. And only a handful of those tests.

Looking a bit closer, I chose RdfNamedQueryMultimoduleTest and only looking
at script18.

The testcase reports;

java.lang.AssertionError: Result is incorrect
Expected: <[Ann Doe, Cars, Cooking, Gaming, Jack Doe, Joe Doe, Kuala
Lumpur, Penang, Programming]>
     but: was <[Ann Doe, Cars, Cooking, Felix, Gaming, Jack Doe, Joe Doe,
Kuala Lumpur, Penang, Programming]>

i.e. the Actual ALSO contains "Felix", which is a Cat type, which is a
subtype of Nameable which is what the query is looking for.

PREFIX ns0: <urn:zest:type:org.apache.zest.api.entity.Identity#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
    ?entityType rdfs:subClassOf
    ?entity rdf:type ?entityType.
    ?entity ns0:identity ?identity.
    ?entity ns1:name ?v0.

Am I missing something, or has this been a bug since forever??

Niclas Hedhman, Software Developer
http://zest.apache.org - New Energy for Java

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message