- From: <helen.chen@agfa.com>
- Date: Wed, 15 Oct 2008 16:50:38 -0400
- To: eric@w3.org
- Cc: public-hcls-coi@w3.org
- Message-ID: <OF7E797FF3.B8DC60E4-ON852574E3.00715EDC-852574E3.007281EF@agfa.com>
Eric It turns out that changing my "evil" window XP cmd or cygwin output to handle utf-8 is not that straightforward :( You mentioned that "recompile with CFLAGS=-DASCII_BOX_CHARS=1 , the box cars will be '-', '|' and '+'s." I tried to add a line like this CFLAGS +=-DASCII_BOX_CHARS=1 to Makefile. But it didn't do the trick. Can you be more specific on how this can be done, i.e. in Makefile or command line? Thanks. Helen Eric Prud'hommeaux <eric@w3.org> 10/14/2008 05:55 PM To Helen Chen/AMPJB/AGFA@AGFA cc holger.stenzhorn@deri.org Subject Re: running SWObjects in cygwin - result output corrupted * helen.chen@agfa.com <helen.chen@agfa.com> [2008-10-14 16:44-0400] > Hi, Holger > > I try to compile and run Eric's code in cygwin (windows XP). Things went > well except some warnings and a part of the query results are not > displayed properly, see below. I wonder if you have windows environment > and it has the same problem? That's utf-8 output. Can you make your terminal window render utf-8? Alternatively, if you recompile with CFLAGS=-DASCII_BOX_CHARS=1 , the box cars will be '-', '|' and '+'s. PS. If we CC public-hcls-coi, we can share this wisdom with anyone else who choses to collaborate. I didn't CC them because I don't do that without the permission of those quoted, but feel free to bounce it if you wish. > [ > /cygdrive/d/project2008/W3C/SWObjects_0.1/SQLizer.hpp:530: warning: > passing `flo > at' for converting 2 of `void > w3c_sw::SQLizer::Join::addConstantJoinConstraint(s > td::string, int)' > /cygdrive/d/project2008/W3C/SWObjects_0.1/SQLizer.hpp: In member function > `void > w3c_sw::SQLizer::SQLQuery::constrain(w3c_sw::SQLizer::AliasAttr, double)': > /cygdrive/d/project2008/W3C/SWObjects_0.1/SQLizer.hpp:534: warning: > passing `dou > ble' for converting 2 of `void > w3c_sw::SQLizer::Join::addConstantJoinConstraint( > std::string, int)' > tests/execute_HealthCare1 tests/query_HealthCare1.rq > tests/ruleMap_HealthCare1.r > q -s http://someClinic.exampe/DB/ > HealthCare1_test.results && cat > HealthCare1 > _test.results > Results: > â"Oâ"?â"?â"?â"?â"?â"?â"?â"?â"?â"?â"¬â"?â"?â"?â"?â"?â"?â"?â"?â"?â"?â"¬â"?â"?â"?â" > ?â"?â"?â"?â"?â"?â"?â"?â"¬â"?â"?â"?â"?â"?â"?â"?â"?â"?â"?â"?â"?â"?â"? > â", _:SUBaDM â", ?PATIENT â", _:Z â", ?FOOP â", > â", -- â", -- â", ?someTest â", ?somePerson â", > â""â"?â"?â"?â"?â"?â"?â"?â"?â"?â"?â"'â"?â"?â"?â"?â"?â"?â"?â"?â"?â"?â"'â"?â"?â"?â" > ?â"?â"?â"?â"?â"?â"?â"?â"'â"?â"?â"?â"?â"?â"?â"?â"?â"?â"?â"?â"?â"?â"~ > > Results: > â"Oâ"?â"?â"?â"?â"?â"?â"?â"?â"?â"?â"?â"?â"?â"?â"?â"?â"?â"¬â"?â"?â"?â"?â"?â"?â"?â" > ?â"?â"?â"?â"?â"?â"¬â"?â"?â"?â"?â"?â"? > â", _:SUBaDM â", ?PATIENT â", _:Z â", > â", _:someTestBNode â", ?somePerson â", -- â", > â""â"?â"?â"?â"?â"?â"?â"?â"?â"?â"?â"?â"?â"?â"?â"?â"?â"?â"'â"?â"?â"?â"?â"?â"?â"?â" > ?â"?â"?â"?â"?â"?â"'â"?â"?â"?â"?â"?â"~ > > post-rule query (SPARQL): > SELECT ?somePerson > WHERE > { > { > { > _:ADMINISTRATION <http://someClinic.exampe/DB/Patient#name> > _:PATIENT_name > . > } > { > _:HAS_attr1 <http://someClinic.exampe/DB/baz#attr1> ?somePerson . > } > { > _:PATIENT_name <http://someClinic.exampe/DB/Names#patient> > ?PATIENT_gen0 . > > ?PATIENT_gen0 <http://someClinic.exampe/DB/bar#attr2> ?somePerson . > } > { > _:HAS_attr1 <http://someClinic.exampe/DB/bar#attr3> ?somePerson . > } > } > UNION > { > { > _:ADMINISTRATION <http://someClinic.exampe/DB/Patient#name> > _:PATIENT_name > . > } > { > _:PATIENT_name <http://someClinic.exampe/DB/Names#patient> > ?somePerson . > ?somePerson <http://someClinic.exampe/DB/bar#attr2> ?FOOP_gen0 . > } > } > } > ] > -- -eric office: +1.617.258.5741 32-G528, MIT, Cambridge, MA 02144 USA mobile: +1.617.599.3509 (eric@w3.org) Feel free to forward this message to any list for any purpose other than email address distribution.
Attachments
- application/octet-stream attachment: signature.asc
Received on Wednesday, 15 October 2008 20:51:23 UTC