ChangeLog.6 242 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549
  1. 2005-12-21 Dave Beckett <dave@dajobe.org>
  2. * raptor/configure.ac, raptor/raptor.spec.in, raptor/Makefile.am:
  3. Write rpm release as 1 (with --enable-release) or SNAP otherwise.
  4. * raptor/src/turtle_parser.y, raptor/src/raptor_general.c,
  5. raptor/utils/rapper.1, rasqal/docs/librasqal.3,
  6. rasqal/utils/roqet.1, rasqal/fix-groff-xhtml,
  7. rasqal/rasqal-src-config.in, rasqal/configure.ac,
  8. rasqal/Makefile.am: updated urls
  9. * raptor/docs/tmpl/section-feature.sgml: Added
  10. @RAPTOR_FEATURE_WRITER_XML_DECLARATION
  11. * redland-config.in, redland-src-config.in, configure.ac,
  12. Redland.i, Makefile.am, Makefile.PL: updated urls
  13. 2005-12-20 Dave Beckett <dave@dajobe.org>
  14. * raptor/utils/Makefile.am: Added rapper.html to dist
  15. * raptor/raptor-src-config.in, raptor/Makefile.am,
  16. raptor/manifest.pl, raptor/configure.ac: ILRT/UB link updates
  17. * raptor/docs/libraptor.3: Updated docs for 1.4.8
  18. 2005-11-30 Dave Beckett <dave@dajobe.org>
  19. * raptor/src/raptor_xml_writer.c (raptor_xml_writer_indent): Fix
  20. writing an extra newline at doc start.
  21. 2005-11-26 Dave Beckett <dave@dajobe.org>
  22. * raptor/docs/tmpl/section-feature.sgml: Added new feature
  23. RAPTOR_FEATURE_WRITER_XML_DECLARATION.
  24. * raptor/src/raptor_rdfxml.c (raptor_start_element_grammar):
  25. Disable XML declaration when building XML fragment for
  26. parseType="Literal".
  27. * raptor/src/raptor_xml_writer.c: Add automatic writing of the XML
  28. declaration (dependent on the XML version).
  29. (raptor_xml_writer_write_xml_declaration): Added, to support this.
  30. New feature RAPTOR_FEATURE_WRITER_XML_DECLARATION can disable
  31. this.
  32. (main): Update the test code to expect an XML declaration in the
  33. string.
  34. * raptor/src/raptor_parse.c: Add do-nothing switch cases for
  35. RAPTOR_FEATURE_WRITER_XML_DECLARATION.
  36. * raptor/src/raptor_serialize_rdfxmla.c: Add Adobe XMP compatible
  37. output as new serializer rdfxml-xmp based on patch from Sid
  38. Steward. Duplicate predicates are ignored for a single subject.
  39. * raptor/src/raptor_serialize_rdfxml.c: Defer writing xml
  40. declaration to the xml writer.
  41. * raptor/src/raptor_serialize.c: Add XML declaration writing
  42. feature support
  43. (RAPTOR_FEATURE_WRITER_XML_DECLARATION) for serializer.
  44. * raptor/utils/Makefile.am, raptor/utils/rdfcat.1,
  45. raptor/utils/rdfcat.c: Delete rdfcat for now
  46. * raptor/utils/Makefile.am, raptor/utils/rdfcat.1,
  47. raptor/utils/rdfcat.c: Added rdfcat from Sid Steward. Not
  48. automatically built or installed
  49. 2005-11-25 Dave Beckett <dave@dajobe.org>
  50. * configure.ac: Remove multi-level escapings - dquote in backticks
  51. in dquote that are likely not very portable. Fixes Issue#0000058.
  52. * raptor/configure.ac: Add test X = 1 for expat and libxml tests.
  53. Fixes Issue#0000060
  54. 2005-11-22 Dave Beckett <dave@dajobe.org>
  55. * raptor/src/raptor_feature.c: Added
  56. RAPTOR_FEATURE_WRITER_XML_DECLARATION feature.
  57. * raptor/src/raptor.h: Added RAPTOR_FEATURE_WRITER_XML_DECLARATION
  58. to control generating the XML declaration on serializers and XML
  59. writer.
  60. 2005-11-21 Dave Beckett <dave@dajobe.org>
  61. * raptor/src/raptor_internal.h: docs
  62. 2005-11-20 Dave Beckett <dave@dajobe.org>
  63. * rasqal/src/Makefile.am, rasqal/src/rasqal_internal.h: Disable
  64. skiplist code for now (don't ship it)
  65. 2005-11-10 Dave Beckett <dave@dajobe.org>
  66. * raptor/raptor.spec.in: Add gtk-doc docs to rpm
  67. 2005-11-05 Dave Beckett <dave@dajobe.org>
  68. * raptor/docs/tmpl/section-xml.sgml: new functions
  69. * raptor/docs/tmpl/section-feature.sgml: New feature
  70. * raptor/docs/libraptor.3: Updated for 1.4.8
  71. 2005-11-03 Dave Beckett <dave@dajobe.org>
  72. * raptor/docs/raptor-sections.txt: Added
  73. raptor_iostream_write_xml_any_escaped_string
  74. raptor_xml_any_escape_string
  75. * raptor/src/n3_parser.y, raptor/src/raptor_internal.h,
  76. raptor/src/turtle_parser.y: Added RAPTOR_ASSERT with no return
  77. value and use it for turtle and n3 parsers. Some compilers
  78. complain at an empty 3rd macro arg with RAPTOR_ASSERT_RETURN.
  79. * raptor/src/raptor_serialize_rss.c: remove ;;
  80. * raptor/src/raptor_rdfxml.c (raptor_generate_statement): Make
  81. predicate type fix in reifying.
  82. * raptor/src/raptor_rdfxml.c (raptor_generate_statement): Make
  83. predicate revert fix actually work.
  84. * raptor/src/raptor_rdfxml.c, raptor/src/raptor_rss.c,
  85. raptor/src/turtle_parser.y, raptor/src/n3_parser.y,
  86. raptor/src/ntriples_parse.c, raptor/src/raptor.h: Revert
  87. RAPTOR_IDENTIFIER_TYPE_PREDICATE to
  88. RAPTOR_IDENTIFIER_TYPE_RESOURCE change for predicates until the
  89. next release.
  90. 2005-09-22 Dave Beckett <dave@dajobe.org>
  91. * rasqal/tests/sparql/SyntaxFull/Makefile.am: Add new tests, 2
  92. fail
  93. * rasqal/tests/sparql/SyntaxFull/Makefile.am: Added new tests, 2
  94. fail
  95. * rasqal/tests/sparql/SyntaxFull/syntax-keywords-01.rq,
  96. rasqal/tests/sparql/SyntaxFull/syntax-keywords-02.rq,
  97. rasqal/tests/sparql/SyntaxFull/syntax-keywords-03.rq,
  98. rasqal/tests/sparql/SyntaxFull/syntax-qname-01.rq,
  99. rasqal/tests/sparql/SyntaxFull/syntax-qname-02.rq,
  100. rasqal/tests/sparql/SyntaxFull/syntax-qname-03.rq,
  101. rasqal/tests/sparql/SyntaxFull/syntax-qname-04.rq,
  102. rasqal/tests/sparql/SyntaxFull/syntax-qname-05.rq,
  103. rasqal/tests/sparql/SyntaxFull/syntax-qname-06.rq,
  104. rasqal/tests/sparql/SyntaxFull/syntax-struct-11.rq,
  105. rasqal/tests/sparql/SyntaxFull/syntax-struct-12.rq,
  106. rasqal/tests/sparql/ExprEquals/Makefile.am,
  107. rasqal/tests/sparql/ExprEquals/query-eq-graph-1.rq,
  108. rasqal/tests/sparql/ExprEquals/query-eq-graph-2.rq,
  109. rasqal/tests/sparql/ExprEquals/query-eq-graph-3.rq,
  110. rasqal/tests/sparql/ExprEquals/query-eq-graph-4.rq,
  111. rasqal/tests/sparql/ExprEquals/query-eq-graph-5.rq,
  112. rasqal/tests/sparql/ExprEquals/query-eq2-graph-1.rq,
  113. rasqal/tests/sparql/ExprEquals/result-eq-graph-1.ttl,
  114. rasqal/tests/sparql/ExprEquals/result-eq-graph-2.ttl,
  115. rasqal/tests/sparql/ExprEquals/result-eq-graph-3.ttl,
  116. rasqal/tests/sparql/ExprEquals/result-eq-graph-4.ttl,
  117. rasqal/tests/sparql/ExprEquals/result-eq-graph-5.ttl: Added new
  118. tests
  119. * rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/Makefile.am: Added
  120. the 9 EXPECTED_SPARQL_PARSER_FAILURES
  121. * rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL3/Makefile.am: Added
  122. 3 EXPECTED_SPARQL_PARSER_FAILURES: syn-05.rq syn-06.rq syn-07.rq
  123. * rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL3/Makefile.am: ADded
  124. 3 EXPECTED_SPARQL_CORRECT_FAILURES: syn-05.rq syn-06.rq syn-07.rq
  125. * rasqal/tests/sparql/check-sparql: If returning no results and
  126. expect fail, return 1
  127. * rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/Makefile.am: Added
  128. 9 EXPECTED_SPARQL_CORRECT_FAILURES
  129. * rasqal/tests/sparql/ExprEquals/Makefile.am: Failures +1:
  130. "Equality - 2 var - test equals -- graph", total 3
  131. * rasqal/tests/sparql/check-sparql: report if expected failure
  132. happens OK early on
  133. * rasqal/tests/sparql/ExprEquals/manifest.n3: Update to DAWG CVS
  134. 2005-09-21 Dave Beckett <dave@dajobe.org>
  135. * raptor/utils/rdfdiff.c: Some code style tidying.
  136. (rdfdiff_statement_equals): Fix comparisons of literals with/out
  137. language with/out datatype.
  138. * raptor/tests/Makefile.am: break on error with rdfxml
  139. * raptor/src/raptor_serialize.c (raptor_new_serializer): Init
  140. default xml_version to 10 (XML 1.0)
  141. * raptor/src/raptor_uri.c:
  142. (raptor_new_uri_for_xmlbase, raptor_new_uri_for_retrieval): Set
  143. ud->path_len to 1 when adding a default path of / Fixes bug
  144. 0000045 http://bugs.librdf.org/mantis/view.php?id=45
  145. 2005-09-20 Dave Beckett <dave@dajobe.org>
  146. * raptor/src/raptor_serialize_rdfxmla.c
  147. (raptor_rdfxmla_serialize_start): Pass down xml_version to the
  148. raptor_xml_writer and write the versioned header.
  149. * raptor/src/raptor_serialize_rdfxml.c
  150. (raptor_rdfxml_serialize_start): Pass down xml_version to the
  151. raptor_xml_writer and write the versioned header.
  152. * raptor/src/raptor_xml_writer.c: Add xml_version to
  153. raptor_xml_writer structure.
  154. (raptor_iostream_write_xml_element_start): Add xml_version field
  155. and pass it down to the XML escape function.
  156. (raptor_new_xml_writer): Init xml_version to 10.
  157. (raptor_xml_writer_empty_element, raptor_xml_writer_start_element,
  158. raptor_xml_writer_cdata, raptor_xml_writer_cdata_counted): Pass
  159. down xml_version.
  160. (raptor_xml_writer_set_feature, raptor_xml_writer_get_feature):
  161. Handle RAPTOR_FEATURE_WRITER_XML_VERSION.
  162. * raptor/src/raptor_xml.c (raptor_xml_any_escape_string,
  163. raptor_iostream_write_xml_any_escaped_string): Added, handling XML
  164. 1.0 or XML 1.1 Error if writing #x1-#x1f (excluding #x9, #xA, #xD)
  165. or #x7F for XML 1.0
  166. * raptor/src/raptor_serialize.c (raptor_serializer_set_feature,
  167. raptor_serializer_get_feature): Add
  168. RAPTOR_FEATURE_WRITER_XML_VERSION
  169. * raptor/src/raptor_parse.c: switch on enum updates for feature
  170. RAPTOR_FEATURE_WRITER_XML_VERSION for serializer and xml writer
  171. * raptor/src/raptor_feature.c: Added
  172. RAPTOR_FEATURE_WRITER_XML_VERSION for serializer and xml writer
  173. with short name xmlVersion
  174. * raptor/src/raptor.h: Added RAPTOR_FEATURE_WRITER_XML_VERSION for
  175. serializer, xml writer. Added prototypes for
  176. raptor_xml_any_escape_string and
  177. raptor_iostream_write_xml_any_escaped_string
  178. * raptor/src/raptor_internal.h: raptor_serializer_s gains an
  179. xml_version field
  180. * raptor/src/raptor_sax2.c (raptor_sax2_parse_chunk): Once more
  181. with static buffer, no vsnprintf
  182. * raptor/src/raptor_sax2.c (raptor_sax2_parse_chunk): Fix error
  183. message with 2 args for expat using raptor_vsnprintf.
  184. * raptor/src/raptor_namespace.c (raptor_namespaces_format): XML
  185. escape the written namespace name URI
  186. * raptor/tests/ex-59.rdf: correct result
  187. * raptor/tests/ex-59.nt, raptor/tests/ex-59.rdf: Test rdfxml
  188. serializer escapes dquote in uri attrs
  189. * raptor/tests/Makefile.am: Added RDF_SERIALIZE_TEST_FILES,
  190. RDF_SERIALIZE_OUT_FILES and ex-59 for testing the rdfxml
  191. serializer
  192. * raptor/examples/Makefile.am: fix libraptor.la dir
  193. 2005-09-18 Dave Beckett <dave@dajobe.org>
  194. * raptor/src/raptor_rdfxml.c (raptor_generate_statement): When
  195. reifiying, just copy predicate_type.
  196. * raptor/src/raptor_uri.c (raptor_uri_equals): Alter to accept
  197. NULL pointers, which do not compare equal to a non-NULL URI. NULL
  198. does equal NULL.
  199. * raptor/src/raptor.h: Document that
  200. RAPTOR_IDENTIFIER_TYPE_PREDICATE is never generated by a parser
  201. from now, replaced by RAPTOR_IDENTIFIER_TYPE_RESOURCE and
  202. RAPTOR_IDENTIFIER_TYPE_XML_LITERAL replaced by
  203. RAPTOR_IDENTIFIER_TYPE_LITERAL with the rdf:XMLLiteral datatype.
  204. * raptor/src/n3_parser.y, raptor/src/ntriples_parse.c,
  205. raptor/src/turtle_parser.y: Replace all
  206. RAPTOR_IDENTIFIER_TYPE_PREDICATE with
  207. RAPTOR_IDENTIFIER_TYPE_RESOURCE
  208. * raptor/src/raptor_rss.c: *** empty log message ***
  209. * raptor/src/raptor_rdfxml.c: Replace all
  210. RAPTOR_IDENTIFIER_TYPE_PREDICATE with
  211. RAPTOR_IDENTIFIER_TYPE_RESOURCE
  212. * raptor/src/raptor_rdfxml.c: Added a new concept for
  213. rdf:XMLLiteral Rename RAPTOR_N_CONCEPTS to
  214. RAPTOR_RDFXML_N_CONCEPTS
  215. (raptor_rdfxml_parse_init): Init it.
  216. (raptor_end_element_grammar): Never generate
  217. RAPTOR_IDENTIFIER_TYPE_XML_LITERAL, instead generate a
  218. RAPTOR_IDENTIFIER_TYPE_LITERAL with the rdf:XMLLiteral datatype.
  219. 2005-09-16 Dave Beckett <dave@dajobe.org>
  220. * raptor/docs/libraptor.3: Update for 1.4.8 - added
  221. raptor_set_namespace_handler
  222. * raptor/src/raptor.h, raptor/src/raptor_www.c: Revert: remove
  223. raptor_www_set_source_uri, raptor_www_set_source_file_handle,
  224. raptor_www_retrieve and raptor_www_retrieve_to_string
  225. 2005-09-15 Dave Beckett <dave@dajobe.org>
  226. * raptor/src/raptor.h: delete unused raptor_www_fetch_to_string
  227. prototype
  228. * raptor/src/raptor_www.c: autodocs
  229. (raptor_www_set_source_uri): Added to set URI for content source
  230. (raptor_www_set_source_file_handle): Added to set URI for content
  231. source.
  232. (raptor_www_file_handle_fetch): Added, with guts of
  233. raptor_www_file_fetch.
  234. (raptor_www_file_fetch): Modified to call
  235. raptor_www_file_handle_fetch.
  236. (raptor_www_retrieve): Added to retrieve from whatever source (URI
  237. or handle).
  238. (raptor_www_retrieve_to_string): Added to retrieve from whatever
  239. source (URI or handle) into a string.
  240. (raptor_www_fetch): Now a wrapper over raptor_www_retrieve.
  241. (raptor_www_fetch_to_string): Now a wrapper over
  242. raptor_www_retrieve_to_string.
  243. * raptor/src/raptor.h: Added prototypes for
  244. raptor_www_set_source_uri, raptor_www_set_source_file_handle,
  245. raptor_www_retrieve, raptor_www_retrieve_to_string and
  246. raptor_www_fetch_from_file_handle
  247. * raptor/src/raptor_internal.h:
  248. (struct raptor_www_s) gains a handle field
  249. 2005-09-14 Dave Beckett <dave@dajobe.org>
  250. * librdf/rdf_parser_raptor.c
  251. (librdf_parser_raptor_parse_file_handle_as_stream): Renamed from
  252. librdf_parser_raptor_parse_file_as_stream and use FILE* arg.
  253. (librdf_parser_raptor_parse_as_stream_common): Update to handle
  254. rename.
  255. * raptor/docs/tmpl/section-parser.sgml: new functions
  256. * librdf/rdf_serializer_internal.h: struct
  257. librdf_serializer_factory_s gains serialize_model_to_iostream
  258. method.
  259. * librdf/rdf_serializer_raptor.c
  260. (librdf_serializer_raptor_serialize_model_to_iostream): Added to
  261. write to a raptor_iostream object.
  262. * librdf/rdf_serializer.c
  263. (librdf_serializer_serialize_model_to_iostream): Added to write to
  264. a raptor_iostream object.
  265. * librdf/rdf_serializer.h: Added
  266. librdf_serializer_serialize_model_to_iostream
  267. 2005-09-12 Dave Beckett <dave@dajobe.org>
  268. * rasqal/src/sparql_parser.y (ConstructTriplesList): renamed from
  269. TriplesList and allow an empty list.
  270. * rasqal/docs/tmpl/section-unused.sgml: less unused
  271. * rasqal/src/sparql_parser.y (GraphGraphPattern): Handle return of
  272. NULL graph pattern
  273. * rasqal/src/sparql_lexer.l ({QUOTEDURI}\(?): Pass the matched
  274. string through rasqal_escaped_name_to_utf8_string to expand \u and
  275. \Us and fail on errors, then make a new URI.
  276. (rasqal_sparql_name_check): Add debug messages.
  277. (sparql_copy_qname, sparql_copy_string_token): Report name errors
  278. in prefix or local name part of a qname.
  279. * rasqal/src/rasqal_general.c
  280. (rasqal_escaped_name_to_utf8_string): Calculate dest size from
  281. result pointers, not original string source.
  282. * rasqal/configure.ac, rasqal/tests/sparql/Makefile.am,
  283. rasqal/tests/sparql/SyntaxDev/Makefile.am,
  284. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/Makefile.am,
  285. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/manifest.ttl,
  286. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-basic-01.rq,
  287. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-basic-02.rq,
  288. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-basic-03.rq,
  289. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-basic-04.rq,
  290. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-basic-05.rq,
  291. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-basic-06.rq,
  292. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-bnodes-01.rq,
  293. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-bnodes-02.rq,
  294. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-bnodes-03.rq,
  295. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-bnodes-04.rq,
  296. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-bnodes-05.rq,
  297. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-bnodes-06.rq,
  298. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-bnodes-07.rq,
  299. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-expr-01.rq,
  300. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-expr-02.rq,
  301. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-expr-03.rq,
  302. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-expr-04.rq,
  303. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-expr-05.rq,
  304. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-forms-01.rq,
  305. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-forms-02.rq,
  306. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-limit-offset-07.rq,
  307. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-limit-offset-08.rq,
  308. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-limit-offset-09.rq,
  309. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lists-01.rq,
  310. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lists-02.rq,
  311. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lists-03.rq,
  312. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lists-04.rq,
  313. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lists-05.rq,
  314. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lit-01.rq,
  315. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lit-02.rq,
  316. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lit-03.rq,
  317. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lit-04.rq,
  318. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lit-05.rq,
  319. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lit-06.rq,
  320. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lit-07.rq,
  321. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lit-08.rq,
  322. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lit-09.rq,
  323. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lit-10.rq,
  324. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lit-11.rq,
  325. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lit-12.rq,
  326. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lit-13.rq,
  327. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-lit-14.rq,
  328. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-order-01.rq,
  329. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-order-02.rq,
  330. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-order-03.rq,
  331. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-order-04.rq,
  332. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-order-05.rq,
  333. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-order-06.rq,
  334. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-pat-01.rq,
  335. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-pat-02.rq,
  336. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-pat-03.rq,
  337. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-pat-04.rq,
  338. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-qname-01.rq,
  339. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-qname-02.rq,
  340. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-qname-03.rq,
  341. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-qname-04.rq,
  342. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-qname-05.rq,
  343. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-qname-06.rq,
  344. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-qname-07.rq,
  345. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-qname-08.rq,
  346. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-struct-01.rq,
  347. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-struct-02.rq,
  348. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-struct-03.rq,
  349. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-struct-04.rq,
  350. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-struct-05.rq,
  351. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-struct-06.rq,
  352. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-struct-07.rq,
  353. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-struct-08.rq,
  354. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-struct-09.rq,
  355. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-struct-10.rq,
  356. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-struct-11.rq,
  357. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-struct-12.rq,
  358. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-union-01.rq,
  359. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL/syntax-union-02.rq,
  360. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/Makefile.am,
  361. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/manifest.ttl,
  362. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-bnode-01.rq,
  363. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-bnode-02.rq,
  364. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-bnode-03.rq,
  365. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-dataset-01.rq,
  366. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-dataset-02.rq,
  367. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-dataset-03.rq,
  368. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-dataset-04.rq,
  369. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-esc-01.rq,
  370. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-esc-02.rq,
  371. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-esc-03.rq,
  372. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-esc-04.rq,
  373. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-form-ask-01.rq,
  374. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-form-ask-02.rq,
  375. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-form-construct01.rq,
  376. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-form-construct02.rq,
  377. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-form-construct03.rq,
  378. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-form-construct04.rq,
  379. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-form-construct05.rq,
  380. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-form-construct06.rq,
  381. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-form-describe01.rq,
  382. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-form-describe02.rq,
  383. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-form-select-01.rq,
  384. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-form-select-02.rq,
  385. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-function-01.rq,
  386. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-function-02.rq,
  387. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-function-03.rq,
  388. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-function-04.rq,
  389. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-general-01.rq,
  390. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-general-02.rq,
  391. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-general-03.rq,
  392. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-graph-01.rq,
  393. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-graph-02.rq,
  394. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-graph-03.rq,
  395. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-graph-04.rq,
  396. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-graph-05.rq,
  397. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-graph-06.rq,
  398. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-keywords-01.rq,
  399. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-keywords-02.rq,
  400. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-keywords-03.rq,
  401. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-lists-01.rq,
  402. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-lists-02.rq,
  403. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-lists-03.rq,
  404. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-lists-04.rq,
  405. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL2/syntax-lists-05.rq,
  406. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL3/Makefile.am,
  407. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL3/bnode-dot.rq,
  408. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL3/bnodes-missing-pvalues-01.rq,
  409. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL3/bnodes-missing-pvalues-02.rq,
  410. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL3/empty-optional-01.rq,
  411. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL3/empty-optional-02.rq,
  412. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL3/filter-missing-parens.rq,
  413. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL3/lone-list.rq,
  414. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL3/lone-node.rq,
  415. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL3/manifest.ttl,
  416. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL3/syn-01.rq,
  417. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL3/syn-02.rq,
  418. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL3/syn-03.rq,
  419. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL3/syn-04.rq,
  420. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL3/syn-05.rq,
  421. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL3/syn-06.rq,
  422. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL3/syn-07.rq,
  423. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL3/syn-08.rq,
  424. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL3/syn-bad-01.rq,
  425. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL3/syn-bad-02.rq,
  426. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL3/syn-bad-03.rq,
  427. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL3/syn-bad-04.rq,
  428. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL3/syn-bad-05.rq,
  429. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL3/syn-bad-06.rq,
  430. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL3/syn-bad-07.rq,
  431. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL3/syn-bad-08.rq,
  432. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL3/syn-bad-09.rq,
  433. rasqal/tests/sparql/SyntaxDev/Syntax-SPARQL3/syn-bad-10.rq: Added
  434. unapproved sparql syntax tests from DAWG SyntaxDev area
  435. * rasqal/tests/sparql/check-sparql: Ad -n flag if no data is
  436. present
  437. * rasqal/tests/sparql/check-sparql: Handle expect fail tests of
  438. type mfx:TestBadSyntax Check return code of roqet for failing.
  439. * rasqal/tests/sparql/check-sparql: Handle mfx:SyntaxType
  440. rdf:typed actions and in that case pick up the action node as the
  441. query to use (no data, no result) Only evaluate queries that have
  442. files
  443. 2005-09-10 Dave Beckett <dave@dajobe.org>
  444. * raptor/src/raptor_expat.c: Updates to use new raptor_sax2
  445. handler style. The user data now points at the raptor_sax2*
  446. object, not the parser.
  447. (raptor_expat_init): send SAX2 events to core raptor_sax2_EVENT
  448. routines.
  449. (raptor_expat_update_document_locator): Moved from raptor_parser.c
  450. * raptor/src/raptor_libxml.c: Updates to use new raptor_sax2
  451. handler style. The user data now points at the raptor_sax2*
  452. object, not the parser. All raptor_parser* references are gone
  453. and error/fatal error/warnings are returned via handler/data
  454. pairs.
  455. (raptor_libxml_call_handler): Added to aid returning messages.
  456. Deleted old and unused internal entity resolution code.
  457. (raptor_libxml_init): send SAX2 events to core raptor_sax2_EVENT
  458. routines.
  459. * raptor/src/raptor_internal.h: Removed old and hardly tested
  460. internal handling of libxml entities
  461. * raptor/src/raptor_rdfxml.c: Rename raptor_xml_* to
  462. raptor_rdfxml_* in structs and functions.
  463. (raptor_rdfxml_start_element_handler,
  464. raptor_rdfxml_end_element_handler, raptor_cdata_grammar): Move
  465. expat BOM fixes to raptor_sax2.c
  466. (raptor_rdfxml_parse_init): Use new raptor_sax2_set_EVENT_handler
  467. methods. Use raptor_sax2_set_locator.
  468. (raptor_get_libxml_context, raptor_set_libxml_document_locator,
  469. raptor_get_libxml_document_locator, raptor_get_libxml_entities,
  470. raptor_set_libxml_entities, raptor_expat_update_document_locator):
  471. Deleted or merged into raptor_sax2.c
  472. * raptor/src/raptor_parse.c
  473. (raptor_parser_fatal_error_message_handler,
  474. raptor_parser_error_message_handler,
  475. raptor_parser_warning_message_handler): Added handlers that take
  476. location in same style as user message handler callbacks.
  477. (raptor_stats_print): Update for raptor_rdfxml_parser
  478. * raptor/src/raptor_locator.c (raptor_update_document_locator):
  479. Moved to raptor_sax2.c
  480. * raptor/src/raptor_general.c (raptor_init, raptor_finish): Call
  481. raptor_init_sax2 and raptor_finish_sax2 respectively.
  482. * raptor/src/raptor_internal.h: Removed several libxml/expat/rdxml
  483. functions used to be too friendly with internals of other classes.
  484. Renamed raptor_xml_parser to raptor_rdfxml_parser. Updated
  485. prototype of raptor_libxml_update_document_locator. Added new
  486. parser handler prototypes raptor_parser_error_message_handler,
  487. raptor_parser_fatal_error_message_handler and
  488. raptor_parser_warning_message_handler Added handlers for SAX2
  489. events - start element, end element, characters, cdata, comment,
  490. unparsed_entity_decl, external_entity_ref named as
  491. raptor_sax2_EVENT_handler. raptor_sax2 gains a magic field as
  492. this is used as the user data for libxml. raptor_sax2 uses the
  493. handler typedefs for the event handlers. raptor_sax2 gains erorr,
  494. fatal and warning handler and data fields. Added prototypes for
  495. raptor_init_sax2 and raptor_finish_sax2. Updated prototype for
  496. raptor_new_sax2. Added prototypes for
  497. raptor_sax2_set_start_element_handler,
  498. raptor_sax2_set_end_element_handler,
  499. raptor_sax2_set_characters_handler, raptor_sax2_set_cdata_handler,
  500. raptor_sax2_set_comment_handler,
  501. raptor_sax2_set_unparsed_entity_decl_handler and
  502. raptor_sax2_set_external_entity_ref_handler Added prototype for
  503. raptor_sax2_set_locator. Added prototypes for:
  504. raptor_sax2_start_element raptor_sax2_end_element,
  505. raptor_sax2_characters, raptor_sax2_cdata, raptor_sax2_comment,
  506. raptor_sax2_unparsed_entity_decl and
  507. raptor_sax2_external_entity_ref.
  508. * raptor/src/raptor_sax2.c: Now a more complete class
  509. (raptor_init_sax2, raptor_finish_sax2): Added, calling any static
  510. initialising/finishing.
  511. (raptor_new_sax2): Added error, fatal_error and warning data and
  512. handler registers. Register magic for libxml2 user_data fixups
  513. (raptor_sax2_set_start_element_handler,
  514. raptor_sax2_set_end_element_handler,
  515. raptor_sax2_set_characters_handler, raptor_sax2_set_cdata_handler,
  516. raptor_sax2_set_comment_handler,
  517. raptor_sax2_set_unparsed_entity_decl_handler,
  518. raptor_sax2_set_external_entity_ref_handler): Added for setting
  519. SAX2 callback handlers.
  520. (raptor_sax2_set_locator): Added, to set SAX2 file locator.
  521. (raptor_sax2_parse_chunk): Update for new handlers, remove all
  522. mention of raptor_parser. Use this object (raptor_sax2*) as the
  523. user data now, not an external raptor_parser*.
  524. (raptor_sax2_update_document_locator): Added, updating the current
  525. location for the internal parser.
  526. (raptor_sax2_start_element): Added, internal function calling the
  527. start element handler, adding various workarounds needed.
  528. (raptor_sax2_end_element): Added, internal function calling the
  529. end element handler, adding various workarounds needed.
  530. (raptor_sax2_characters, raptor_sax2_cdata, raptor_sax2_comment,
  531. raptor_sax2_unparsed_entity_decl,
  532. raptor_sax2_external_entity_ref): Added, internal functions
  533. calling the same-named handler.
  534. 2005-09-09 Dave Beckett <dave@dajobe.org>
  535. * raptor/docs/raptor-sections.txt: Added new fns
  536. * rasqal/docs/rasqal-sections.txt: No rasqal_variable_s
  537. * rasqal/docs/tmpl/section-graph_pattern.sgml,
  538. rasqal/docs/tmpl/section-query.sgml: add new fns
  539. * rasqal/docs/tmpl/section-literal.sgml: remove dup text
  540. * rasqal/docs/rasqal-sections.txt: add new fns
  541. * rasqal/src/Makefile.am, rasqal/utils/Makefile.am: Include
  542. @RASQAL_INTERNAL_LIBS@ in linking flags to ensure internal raptor
  543. is used.
  544. * raptor/src/raptor_internal.h (raptor_parser_s): Add new fields
  545. to the end of the struct; add unused1 to try to make old offsets
  546. work
  547. * docs/tmpl/iterator.sgml: sgml docs for iterator
  548. * docs/tmpl/stream.sgml: sgml docs for stream
  549. * raptor/src/raptor_namespace.c (raptor_namespaces_init): Remove
  550. un-necessary casts for constant namespace names.
  551. * raptor/src/raptor_uri.c
  552. (raptor_uri_uri_string_to_filename_fragment): For win32, only
  553. remove leading / if there is one present. (patch from John
  554. C. Barstow)
  555. (main): Correct test case result to match above.
  556. * raptor/src/raptor_xslt.c (raptor_xslt_parse_chunk): If the
  557. content is in one chunk and is_end is true, call xmlParseChunk
  558. with the is_end flag. (René Puls)
  559. 2005-09-07 Dave Beckett <dave@dajobe.org>
  560. * raptor/src/n3_parser.y, raptor/src/turtle_parser.y (statement):
  561. Handle error recovery when subject is NULL
  562. 2005-09-06 Dave Beckett <dave@dajobe.org>
  563. * raptor/utils/rapper.c: fix #ifdef SHOW_NAMESPACES_FLAG
  564. * raptor/src/turtle_common.c
  565. (raptor_stringbuffer_append_turtle_string): Do not check unsigned
  566. for <0
  567. * raptor/src/raptor_xml.c (raptor_xml_name_check): Do not check
  568. unsigned for <0
  569. * raptor/src/raptor_utf8.c (raptor_utf8_check): Do not check
  570. unsigned for <0
  571. * raptor/src/raptor_serialize.c (raptor_serializers_enumerate):
  572. counter can never be <0
  573. * raptor/src/raptor_rdfxml.c
  574. (raptor_element_content_type_as_string): Do not check unsigned for
  575. <0
  576. * raptor/src/raptor_feature.c (raptor_feature_value_type): Do not
  577. check unsigned for <0
  578. * raptor/src/ntriples_parse.c (raptor_ntriples_term): Do not check
  579. unsigned for <0
  580. * raptor/src/raptor_parse.c (raptor_syntaxes_enumerate): counter
  581. can never be <0
  582. 2005-09-01 Dave Beckett <dave@dajobe.org>
  583. * utils/rdfproc.c: one fprintf stderr to stdout
  584. * rasqal/src/sparql_lexer.l: "true" and "false" are now case
  585. independent
  586. 2005-08-31 Dave Beckett <dave@dajobe.org>
  587. * rasqal/configure.ac: Added --with-redland-config
  588. * rasqal/src/rasqal_internal.h: Updated
  589. erasqal_engine_merge_graph_patterns and
  590. rasqal_engine_merge_triples prototypes to return an int status.
  591. * rasqal/src/rasqal_engine.c:
  592. (rasqal_engine_merge_graph_patterns, rasqal_engine_merge_triples):
  593. Visitor function now returns a status.
  594. * rasqal/src/rasqal_query.c: Moved rasqal_graph_pattern_visit to
  595. rasqal_graph_pattern.c
  596. * rasqal/src/rasqal.h: Added rasqal_graph_pattern_visit_fn. Added
  597. prototype for rasqal_graph_pattern_visit
  598. * rasqal/src/rasqal_graph_pattern.c (rasqal_graph_pattern_visit:):
  599. Moved from rasqal_query.c
  600. * rasqal/docs/tmpl/section-expression.sgml,
  601. rasqal/docs/tmpl/section-query_results.sgml: docs
  602. * rasqal/src/sparql_lexer.l, rasqal/src/sparql_parser.y: Remove
  603. NULL_LITERAL - not in SPARQL
  604. 2005-08-24 Dave Beckett <dave@dajobe.org>
  605. * raptor/src/Makefile.am: Add more conditional compiles for
  606. serializers
  607. * raptor/src/Makefile.am: Added raptor_serialize_rdfxml.c
  608. raptor_serialize_ntriples.c raptor_serialize_simple.c
  609. * raptor/src/raptor_serialize.c: Moved specific serializers into
  610. separate files - rdfxml, ntriples, simple
  611. * raptor/src/raptor_serialize_rdfxml.c: RDF/XML serializer
  612. * raptor/src/raptor_serialize_ntriples.c: N-Triples serializer
  613. * raptor/src/raptor_serialize_simple.c: Simple serializer
  614. * raptor/src/raptor-config.1, raptor/src/raptor-config.in:
  615. s/features/options/ so not to confuse with raptor_feature
  616. * raptor/utils/rapper.c: Add HELP_TEXT_LONG to deal with help that
  617. has no short option.
  618. * raptor/utils/rapper.c: fix --show-namespaces help
  619. * raptor/utils/rapper.1: Added --show-namespaces
  620. * raptor/utils/rapper.c: (print_namespaces) Added Added
  621. --show-namespaces option - long options only.
  622. * raptor/src/n3_parser.y, raptor/src/raptor_rdfxml.c,
  623. raptor/src/turtle_parser.y: Handle raptor_new_namespace failing.
  624. * raptor/src/n3_parser.y, raptor/src/raptor_rdfxml.c,
  625. raptor/src/turtle_parser.y: Remove calls to
  626. raptor_namespaces_start_namespace_full and use the three functions
  627. raptor_new_namespace, raptor_namespaces_start_namespace and
  628. raptor_parser_start_namespace instead.
  629. * raptor/src/raptor_parse.c (raptor_set_namespace_handler): Added.
  630. New user method.
  631. (raptor_parser_start_namespace): Added. Internal function to
  632. operate when namespaces are declared.
  633. * raptor/src/raptor.h: Added raptor_namespace_handler typedef.
  634. Added raptor_set_namespace_handler prototype.
  635. * raptor/src/raptor_internal.h: raptor_parser_s gains
  636. namespace_handler and namespace_handler_user_data fields. Added
  637. raptor_parser_start_namespace prototype.
  638. * raptor/tests/Makefile.am: link to libxml2 bug report
  639. * raptor/src/raptor_rss.c (raptor_rss_emit_type_triple,
  640. raptor_rss_emit_enclosure, raptor_rss_emit_connection): Zap
  641. literal language and datatype before setting up statement objects.
  642. * raptor/src/ntriples_parse.c
  643. (raptor_ntriples_generate_statement): Zap literal language and
  644. datatype before setting up statement objects.
  645. * raptor/src/n3_parser.y (raptor_n3_generate_statement): Zap
  646. literal language and datatype for !literals. Add assertion.
  647. * raptor/src/raptor_internal.h (RAPTOR_ASSERT_RETURN): Remove ()s
  648. around return to allow no-value.
  649. * raptor/src/turtle_parser.y (raptor_turtle_generate_statement):
  650. Zap literal language and datatype for !literals. Add assertion.
  651. 2005-08-23 Dave Beckett <dave@dajobe.org>
  652. * rasqal/docs/tmpl/section-triples_source.sgml: section title
  653. * rasqal/docs/rasqal-sections.txt: Added
  654. rasqal_new_expression_from_expression
  655. * rasqal/src/rasqal_expr.c: Added usage count to rasqal_expression
  656. constructors
  657. (rasqal_new_expression_from_expression): Added copy constructor.
  658. * rasqal/src/rasqal_engine.c (rasqal_engine_join_graph_patterns):
  659. Move constraints taking care to copy then free correctly.
  660. * rasqal/src/rasqal.h: Added usage count to rasqal_expression.
  661. Added rasqal_new_expression_from_expression prototype.
  662. 2005-08-22 Dave Beckett <dave@dajobe.org>
  663. * raptor/docs/raptor-sections.txt: raptor_uri_init now internal
  664. * raptor/docs/tmpl/section-unused.sgml: raptor_uri_init now
  665. internal
  666. * raptor/docs/tmpl/section-general.sgml,
  667. raptor/src/raptor_internal.h: Remove unused container_test_handler
  668. function.
  669. * raptor/docs/raptor-sections.txt: No
  670. raptor_container_test_handler
  671. * raptor/src/raptor.h: raptor_uri_init was internal
  672. * raptor/src/raptor_internal.h: raptor_uri_init was internal
  673. 2005-08-19 Dave Beckett <dave@dajobe.org>
  674. * raptor/Makefile.am: Enable gtk doc with make distcheck
  675. * raptor/docs/tmpl/section-xml-namespace.sgml: args
  676. * raptor/docs/version.xml.in: version.xml.in
  677. * raptor/docs/tmpl/section-serializer.sgml: whitespace
  678. * raptor/src/ntriples_parse.c, raptor/src/raptor.h,
  679. raptor/src/raptor_feature.c, raptor/src/raptor_general.c,
  680. raptor/src/raptor_identifier.c, raptor/src/raptor_iostream.c,
  681. raptor/src/raptor_locator.c, raptor/src/raptor_namespace.c,
  682. raptor/src/raptor_nfc.c, raptor/src/raptor_nfc_test.c,
  683. raptor/src/raptor_parse.c, raptor/src/raptor_qname.c,
  684. raptor/src/raptor_rdfxml.c, raptor/src/raptor_rfc2396.c,
  685. raptor/src/raptor_sequence.c, raptor/src/raptor_serialize.c,
  686. raptor/src/raptor_serialize_rdfxmla.c, raptor/src/raptor_set.c,
  687. raptor/src/raptor_stringbuffer.c, raptor/src/raptor_uri.c,
  688. raptor/src/raptor_utf8.c, raptor/src/raptor_www.c,
  689. raptor/src/raptor_www_libwww.c, raptor/src/raptor_xml.c,
  690. raptor/src/raptor_xml_writer.c, raptor/src/turtle_common.c:
  691. autodocs reformatted for gtk-doc
  692. * raptor/docs/tmpl/section-constants.sgml,
  693. raptor/docs/tmpl/section-feature.sgml,
  694. raptor/docs/tmpl/section-general.sgml,
  695. raptor/docs/tmpl/section-iostream.sgml,
  696. raptor/docs/tmpl/section-locator.sgml,
  697. raptor/docs/tmpl/section-memory.sgml,
  698. raptor/docs/tmpl/section-parser.sgml,
  699. raptor/docs/tmpl/section-sequence.sgml,
  700. raptor/docs/tmpl/section-serializer.sgml,
  701. raptor/docs/tmpl/section-stringbuffer.sgml,
  702. raptor/docs/tmpl/section-triples.sgml,
  703. raptor/docs/tmpl/section-unicode.sgml,
  704. raptor/docs/tmpl/section-unused.sgml,
  705. raptor/docs/tmpl/section-uri-factory.sgml,
  706. raptor/docs/tmpl/section-uri.sgml,
  707. raptor/docs/tmpl/section-www.sgml,
  708. raptor/docs/tmpl/section-xml-namespace.sgml,
  709. raptor/docs/tmpl/section-xml-qname.sgml,
  710. raptor/docs/tmpl/section-xml.sgml: initial templates
  711. * raptor/docs/raptor-docs.xml: fix
  712. * raptor/docs/raptor-docs.xml, raptor/docs/raptor-overrides.txt,
  713. raptor/docs/raptor-sections.txt: gtk-doc files
  714. * raptor/configure.ac, raptor/docs/Makefile.am: Enable gtk-doc
  715. * raptor/configure.ac: check for gtk-doc
  716. * raptor/src/raptor-config.1: Document --features and --help.
  717. Order flags alphabetically in summary and body.
  718. * raptor/src/raptor-config.in: Add --features argument to list
  719. configured or discovered features of the raptor library
  720. * raptor/configure.ac: Add AC_SUBSTs for recording discovered
  721. features: RAPTOR_WWW_LIBRARY (or none), RAPTOR_XML_PARSER (or
  722. none), RAPTOR_PARSERS (list) and RAPTOR_SERIALIZERS (list).
  723. * rasqal/src/rasqal.h, rasqal/src/rasqal_expr.c: autodocs fixes -
  724. use %RASQAL_
  725. * rasqal/docs/tmpl/section-graph_pattern.sgml: use %RASQAL
  726. 2005-08-18 Dave Beckett <dave@dajobe.org>
  727. * rasqal/docs/tmpl/section-query_results.sgml,
  728. rasqal/docs/tmpl/section-literal.sgml,
  729. rasqal/docs/tmpl/section-query.sgml: document literal, query,
  730. query_results types
  731. * rasqal/docs/rasqal-sections.txt: Add rasqal_query and
  732. rasqal_query_results
  733. * rasqal/docs/rasqal-overrides.txt: override rasqal_query and
  734. rasqal_query_results
  735. * rasqal/docs/Makefile.am: Make gtkdoc-mkdb ignore the C files
  736. * raptor/src/raptor_sax2.c (raptor_sax2_parse_start): Fix for
  737. expat
  738. * raptor/src/raptor_rdfxml.c
  739. (raptor_xml_unparsed_entity_decl_handler,
  740. raptor_xml_external_entity_ref_handler): Casts for gcc4
  741. * raptor/src/raptor_expat.c (raptor_expat_init): Casts for expat
  742. to use sax2 handlers.
  743. * raptor/src/raptor_internal.h: Move raptor_sax2 declaration
  744. outside libxml-only block Fixup general arguments for
  745. raptor_xml_unparsed_entity_decl_handler and
  746. raptor_xml_external_entity_ref_handler.
  747. * raptor/src/raptor_rdfxml.c
  748. (raptor_xml_unparsed_entity_decl_handler,
  749. raptor_xml_external_entity_ref_handler): Generalise args from
  750. expat-specific.
  751. (raptor_xml_parse_init): Init sax2 handler fields
  752. * raptor/src/raptor_libxml.c (raptor_libxml_init): Use sax2
  753. structure handlers
  754. * raptor/src/raptor_expat.c (raptor_expat_init): Use sax2
  755. structure handlers
  756. * raptor/src/raptor_internal.h: raptor_sax2 gains handlers for
  757. start/end element, characters, cdata, comment, unparsed entity
  758. declaration, extenal entity reference.
  759. * rasqal/src/rasqal_query.c (rasqal_graph_pattern_visit): Make
  760. this recursive.
  761. * rasqal/tests/sparql/ExprBuiltins/Makefile.am: datatype-1 works
  762. * rasqal/src/rasqal_expr.c (rasqal_expression_evaluate): For
  763. datatype, if is a typed literal it has a datatype field then
  764. return that, otherwise fail.
  765. * rasqal/tests/sparql/ExprBuiltins/Makefile.am: str-1 passes
  766. * raptor/src/raptor_sax2.c (raptor_sax2_parse_start): Init expat
  767. and libxml the same
  768. * raptor/src/raptor_libxml.c (raptor_libxml_init): Take
  769. raptor_sax2* and raptor_uri* args
  770. * raptor/src/raptor_expat.c (raptor_expat_init): Take raptor_sax2*
  771. and raptor_uri* args
  772. * raptor/src/raptor_internal.h: raptor_libxml_init and
  773. raptor_expat_init take same args
  774. * raptor/src/n3_parser.y, raptor/src/ntriples_parse.c,
  775. raptor/src/raptor_guess.c, raptor/src/raptor_rdfxml.c,
  776. raptor/src/raptor_rss.c, raptor/src/raptor_xslt.c,
  777. raptor/src/turtle_parser.y: Update uses of
  778. raptor_parser_register_factory to remove alias argument and add
  779. calls to raptor_parser_factory_add_alias for raptor
  780. (rdfxml) and ntriplesplus (turtle)
  781. * raptor/src/raptor_internal.h: Update
  782. raptor_parser_register_factory prototype to return the registered
  783. factory and remvoe the alias arg. Added prototype for
  784. raptor_parser_factory_add_alias
  785. * raptor/src/raptor_parse.c (raptor_parser_register_factory): Now
  786. returns the registered factory. Removed alias arg into new
  787. function:
  788. (raptor_parser_factory_add_alias): Added.
  789. 2005-08-17 Dave Beckett <dave@dajobe.org>
  790. * raptor/src/Makefile.am: maintainer clean n3 files
  791. * raptor/src/Makefile.am: clean n3 tests
  792. * raptor/src/n3_lexer.l (n3_lexer_syntax_error): Added, from
  793. turtle.
  794. * raptor/src/n3_lexer.l: Added n3_lexer_syntax_error
  795. (<LITERAL>\"\"\"): Copy just the len and always terminate the
  796. string.
  797. (n3_copy_string_token): Handle empty strings without stringbuffer
  798. and use raptor_stringbuffer_append_turtle_string for escapes.
  799. Ensure string is always termianted.
  800. * raptor/src/n3_common.h: added stringbuffer field
  801. * raptor/src/turtle_parser.y: Expect 9 conflicts. Added
  802. FLOATING_LITERAL
  803. (FLOATING_LITERAL): Use raptor_new_identifier_from_double common
  804. with n3.
  805. * raptor/src/n3_parser.y (FLOATING_LITERAL): Use
  806. raptor_new_identifier_from_double common with turtle.
  807. * raptor/src/turtle_lexer.l (<LITERAL>\"\"\"): Copy just the len
  808. and always terminate the string. Added doubles to Turtle.
  809. (turtle_copy_string_token): Handle empty strings without
  810. stringbuffer. Ensure string is always termianted.
  811. (turtle_token_print): Print FLOATING_LITERAL
  812. * raptor/tests/turtle/Makefile.am,
  813. raptor/tests/turtle/test-20.out, raptor/tests/turtle/test-20.ttl:
  814. Add test-20 for empty literals
  815. * raptor/tests/turtle/Makefile.am: re-add test-19
  816. 2005-08-16 Dave Beckett <dave@dajobe.org>
  817. * raptor/src/raptor_internal.h: Added
  818. raptor_new_identifier_from_double pointer
  819. * raptor/src/Makefile.am: Added raptor_xsd.c
  820. * raptor/src/raptor_xsd.c: raptor_xsd.c
  821. * raptor/src/n3_lexer.l, raptor/src/n3_parser.y: Add double
  822. constants to N3 parser
  823. * raptor/src/n3_lexer.l (main): Make uri_string an unsigned char*
  824. * raptor/tests/turtle/Makefile.am: remove test-19 for now, no
  825. double constants
  826. * raptor/tests/turtle/Makefile.am,
  827. raptor/tests/turtle/test-19.out, raptor/tests/turtle/test-19.ttl:
  828. added test-19 for 1.0 as a double
  829. * raptor/src/Makefile.am: Add turtle_common.c
  830. * raptor/tests/turtle/test-18.out: Remove header/footer
  831. * raptor/src/turtle_parser.y: 2005
  832. * raptor/src/turtle_lexer.l: Added turtle_lexer_syntax_error Build
  833. up long strings inside a stringbuffer with
  834. raptor_stringbuffer_append_turtle_string and avoid greedy match of
  835. """s
  836. (turtle_copy_string_token): Use
  837. raptor_stringbuffer_append_turtle_string
  838. (turtle_lexer_syntax_error): Added.
  839. * raptor/src/raptor_internal.h: Added
  840. raptor_stringbuffer_append_turtle_string prototype
  841. * raptor/src/turtle_common.h: Added raptor_stringbuffer* field sb
  842. * raptor/src/turtle_common.c: Raptor Turtle common code with
  843. raptor_stringbuffer_append_turtle_string from raptor_turtle.l
  844. * raptor/tests/turtle/Makefile.am,
  845. raptor/tests/turtle/test-18.out, raptor/tests/turtle/test-18.ttl:
  846. Added test-18 for multiple long literals with escapes
  847. * raptor/src/raptor_serialize_rss.c (raptor_rss10_emit_item): Die
  848. in debug mode with NULL item - all calls to this are currently
  849. wrapped with a check.
  850. (raptor_rss10_emit_item): Do not emit atom author when no such
  851. item exists.
  852. * raptor/manifest.pl: typo
  853. 2005-08-13 Dave Beckett <dave@dajobe.org>
  854. * redland-src-config.in: Add --version and --version-decimal
  855. * rasqal/docs/tmpl/section-unused.sgml,
  856. rasqal/docs/tmpl/section-variable.sgml,
  857. rasqal/docs/tmpl/section-query_results.sgml,
  858. rasqal/docs/tmpl/section-triple.sgml,
  859. rasqal/docs/tmpl/section-prefix.sgml,
  860. rasqal/docs/tmpl/section-query.sgml,
  861. rasqal/docs/tmpl/section-graph_pattern.sgml,
  862. rasqal/docs/tmpl/section-literal.sgml,
  863. rasqal/docs/tmpl/section-expression.sgml,
  864. rasqal/docs/tmpl/section-general.sgml,
  865. rasqal/docs/rasqal-sections.txt: autodocs - sections intros
  866. * rasqal/src/rasqal.h, rasqal/src/rasqal_expr.c,
  867. rasqal/src/rasqal_general.c, rasqal/src/rasqal_engine.c: autodocs
  868. * rasqal/src/rasqal.h: Remove unused
  869. rasqal_new_variable_expression prototype. Deprecate
  870. rasqal_expression_foreach for rasqal_expression_visit Add
  871. rasqal_expression_visit prototype and rasqal_expression_visit_fn.
  872. * rasqal/docs/rasqal-sections.txt: Add rasqal_expression_visit_fn
  873. rasqal_expression_visit
  874. 2005-08-11 Dave Beckett <dave@dajobe.org>
  875. * autogen.sh, raptor/autogen.sh: update autogen.sh again
  876. * rasqal/autogen.sh: programs spello
  877. * autogen.sh, raptor/autogen.sh: update autogen.sh again
  878. * rasqal/autogen.sh: Add gtkdocize and swig (for bindings) only if
  879. seen in top-level configure.ac Add swig-specific version check,
  880. different from gnu style
  881. * autogen.sh, rasqal/autogen.sh: update autogen.sh again
  882. * raptor/autogen.sh: Move warning to end
  883. * raptor/autogen.sh, autogen.sh, rasqal/autogen.sh: Rewrite with
  884. functions, generalize to any redland package. Add docs.
  885. * rasqal/src/rasqal_engine.c: restore undef RASQAL_DEBUG
  886. * rasqal/tests/sparql/part1/dawg-query-003.rq: Declare rdf:
  887. * rasqal/src/sparql_parser.y (rasqal_sparql_query_engine_init): Do
  888. not declare any namespaces by default.
  889. * rasqal/tests/sparql/syntax/Makefile.am: Added namespaces.rq
  890. * rasqal/tests/sparql/syntax/namespaces.rq: namespaces.rq
  891. * librdf/redland.spec.in: - Update Source: - Do not require
  892. python-devel at build time - Add sqlite-devel build requirement.
  893. - Use %configure and %makeinstall
  894. * rasqal/rasqal.spec.in, raptor/raptor.spec.in: - Update Source: -
  895. Use %makeinstall
  896. 2005-08-10 Dave Beckett <dave@dajobe.org>
  897. * rasqal/src/rasqal_engine.c (rasqal_engine_merge_graph_patterns):
  898. Renamed from rasqal_engine_make_basic_graph_pattern and added some
  899. docucomments. It no longer handles UNIONS - they are never
  900. merged, the code was just handling them in order to descend down
  901. the tree, now done by the visitor calling this function. Remove
  902. calling lower sub-GPs.
  903. (rasqal_engine_merge_triples): Renamed from
  904. rasqal_engine_merge_basic_graph_patterns and added some
  905. docucomments.
  906. * rasqal/src/rasqal_internal.h: Added
  907. rasqal_graph_pattern_visit_fn typdef. Added prototype for
  908. rasqal_query_graph_pattern_visit
  909. * rasqal/src/rasqal_query.c (rasqal_query_prepare): Rewrite to use
  910. rasqal_query_graph_pattern_visit to do graph pattern transforms.
  911. (rasqal_graph_pattern_visit): Added, called by:
  912. (rasqal_query_graph_pattern_visit): Added to walk all graph
  913. patterns in a query.
  914. * rasqal/src/rasqal_engine.c
  915. (rasqal_engine_make_basic_graph_pattern): Do not lose sub-grpah
  916. pattern UNION type.
  917. * rasqal/src/sparql_parser.y (PrimaryExpression): Explain rq23
  918. weirdness
  919. * raptor/raptor.spec.in: Use %configure and %{_make}
  920. * rasqal/tests/sparql/survey/query-survey-10.rq,
  921. rasqal/tests/sparql/survey/query-survey-11.rq,
  922. rasqal/tests/sparql/survey/query-survey-13.rq: FILTER() syntax
  923. * rasqal/rasqal.spec.in: Use %configure
  924. * rasqal/src/sparql_lexer.l: Remove '%' as a token.
  925. (sparql_token_print): Remove '%'
  926. * rasqal/src/sparql_parser.y: Remove '%' as a token. Whitespace
  927. style fixes near rule definitions.
  928. * rasqal/src/sparql_parser.y: Make FILTER use Constraint for
  929. multiple forms.
  930. (Constraint): Added. Allow the BrackettedExpression, BuiltInCall
  931. or FunctionCall alternatives.
  932. (Expression): Added. 9ConditionalOrExpression): Make it recursive
  933. rather than just allow 0 or 1 &&s.
  934. (MultiplicativeExpression): Remove '%' operator, not in SPARQL.
  935. (BuiltInCall): Renamed from CallExpression and remove FunctionCall
  936. from it.
  937. (PrimaryExpression): use BuiltInCall and add FunctionCall from
  938. above.
  939. * rasqal/tests/sparql/ValueTesting/Makefile.am: +3 more tests,
  940. extendedType-literal-ne fails.
  941. * rasqal/tests/sparql/syntax/cast0.rq,
  942. rasqal/tests/sparql/syntax/cast1.rq,
  943. rasqal/tests/sparql/bound/bound1.rq: FILTER() syntax
  944. * rasqal/tests/sparql/examples/ex11.2.3.8_0.rq,
  945. rasqal/tests/sparql/examples/ex3.rq: Updates from DAWG for
  946. FILTER()
  947. * rasqal/tests/sparql/SyntaxFull/manifest.ttl,
  948. rasqal/tests/sparql/simple/manifest.n3,
  949. rasqal/tests/sparql/sort/manifest.ttl,
  950. rasqal/tests/sparql/examples/manifest.n3: Update to DAWG tests -
  951. some approved
  952. * rasqal/tests/sparql/ValueTesting/extendedType-eq-pass-result.n3,
  953. rasqal/tests/sparql/ValueTesting/extendedType-eq-pass.rq,
  954. rasqal/tests/sparql/ValueTesting/extendedType-graph-result.n3,
  955. rasqal/tests/sparql/ValueTesting/extendedType-graph.rq,
  956. rasqal/tests/sparql/ValueTesting/extendedType-literal-eq-result.n3,
  957. rasqal/tests/sparql/ValueTesting/extendedType-literal-eq.rq,
  958. rasqal/tests/sparql/ValueTesting/extendedType-literal-ne-result.n3,
  959. rasqal/tests/sparql/ValueTesting/extendedType-literal-ne.rq,
  960. rasqal/tests/sparql/ValueTesting/extendedType-ne-fail-result.n3,
  961. rasqal/tests/sparql/ValueTesting/extendedType-ne-fail.rq,
  962. rasqal/tests/sparql/ValueTesting/manifest.n3: Update to DAWG tests
  963. 2005-08-08 Dave Beckett <dave@dajobe.org>
  964. * raptor/src/raptor_rss_common.c, raptor/src/raptor_internal.h,
  965. raptor/src/raptor_rss.c: Move time.h and sys/time.h #ifdef and
  966. includes to raptor_internal.h since time_t is mentioned there and
  967. visible to all files.
  968. * raptor/tests/Makefile.am: adjust -I to point to srcdir for
  969. raptor_empty_test
  970. 2005-08-04 Dave Beckett <dave@dajobe.org>
  971. * rasqal/src/rasqal_engine.c (rasqal_engine_join_graph_patterns):
  972. Renamed from rasqal_engine_join_basic_graph_patterns. Warn if
  973. types are different. Merge sub graph sequences.
  974. (rasqal_engine_make_basic_graph_pattern): Operate over unions
  975. recursively for any lower-level basic graph patterns. Don't merge
  976. if all sub-graph patterns aren't of the same type. Never merge
  977. union sequences of size>1
  978. * rasqal/src/rasqal_internal.h:
  979. rasqal_engine_join_basic_graph_patterns now
  980. rasqal_engine_join_graph_patterns
  981. 2005-08-03 Dave Beckett <dave@dajobe.org>
  982. * configure.ac, rasqal/configure.ac: gtk-doc 1.3 is ok
  983. 2005-08-01 Dave Beckett <dave@dajobe.org>
  984. * rasqal/utils/Makefile.am: Add AM_CPPFLAGS and AM_CFLAGS back
  985. 2005-07-31 Dave Beckett <dave@dajobe.org>
  986. * raptor/src/raptor_xml_writer.c (main): syntax
  987. * configure.ac, rasqal/configure.ac: Fix for compiling against
  988. internal raptor
  989. * raptor/src/raptor_uri.c: Add (void) casts for fwrite debug
  990. messages
  991. * raptor/utils/Makefile.am: Re-add rapper.1 to dist
  992. * raptor/src/raptor_rdfxml.c, raptor/src/raptor_xml_writer.c,
  993. raptor/src/raptor_nfc_test.c: Add (void) casts for fwrite debug
  994. messages
  995. * raptor/utils/Makefile.am, raptor/Makefile.am,
  996. raptor/configure.ac, raptor/docs/Makefile.am,
  997. raptor/raptor-src-config.in, raptor/src/Makefile.am,
  998. raptor/tests/Makefile.am, raptor/tests/turtle/Makefile.am:
  999. Reorganise sources - libraptor is in src, man pages in docs,
  1000. rapper in utils
  1001. * configure.ac, librdf/Makefile.am: adjust source of librasqal.la
  1002. * docs/Makefile.am, rasqal/docs/Makefile.am: Added version.xml to
  1003. content_files
  1004. * rasqal/docs/Makefile.am, rasqal/utils/Makefile.am: restore mans
  1005. to dist
  1006. * rasqal/src/Makefile.am: if STRCASECMP not GETOPT
  1007. * rasqal/Makefile.am: Add utils dir
  1008. * rasqal/utils/Makefile.am: roqet.html
  1009. * rasqal/utils/Makefile.am: utils automakefile
  1010. * rasqal/src/Makefile.am: Add Makefile.am
  1011. * rasqal/tests/sparql/survey/Makefile.am,
  1012. rasqal/tests/sparql/syntax/Makefile.am,
  1013. rasqal/tests/sparql/ExprEquals/Makefile.am,
  1014. rasqal/tests/sparql/SyntaxFull/Makefile.am,
  1015. rasqal/tests/sparql/ValueTesting/Makefile.am,
  1016. rasqal/tests/sparql/bound/Makefile.am,
  1017. rasqal/tests/sparql/examples/Makefile.am,
  1018. rasqal/tests/sparql/part1/Makefile.am,
  1019. rasqal/tests/sparql/regex/Makefile.am,
  1020. rasqal/tests/sparql/simple/Makefile.am,
  1021. rasqal/tests/sparql/sort/Makefile.am, rasqal/docs/Makefile.am,
  1022. rasqal/tests/rdql/Makefile.am,
  1023. rasqal/tests/rdql/testsuite/Makefile.am,
  1024. rasqal/tests/sparql/Expr1/Makefile.am,
  1025. rasqal/tests/sparql/Expr2/Makefile.am,
  1026. rasqal/tests/sparql/ExprBuiltins/Makefile.am, rasqal/Makefile.am,
  1027. rasqal/configure.ac, rasqal/rasqal-src-config.in: Reorganise
  1028. sources - librasqal is in src, man pages are in docs, roqt in
  1029. utils.
  1030. 2005-07-30 Dave Beckett <dave@dajobe.org>
  1031. * rasqal/src/rasqal_expr.c, rasqal/src/rasqal.h: autodocs
  1032. * rasqal/docs/tmpl/section-variable.sgml,
  1033. rasqal/docs/tmpl/section-unused.sgml,
  1034. rasqal/docs/tmpl/section-query_results.sgml,
  1035. rasqal/docs/tmpl/section-triple.sgml,
  1036. rasqal/docs/tmpl/section-query.sgml,
  1037. rasqal/docs/tmpl/section-literal.sgml,
  1038. rasqal/docs/tmpl/section-prefix.sgml,
  1039. rasqal/docs/tmpl/section-general.sgml,
  1040. rasqal/docs/tmpl/section-graph_pattern.sgml: Updated templates.
  1041. * rasqal/docs/tmpl/section-expression.sgml: short and long desc
  1042. add rasqal_compare_flags not #defines
  1043. * rasqal/docs/tmpl/section-data.sgml: short and long desc
  1044. * rasqal/docs/rasqal-overrides.txt: override some things to hide
  1045. internals.
  1046. * rasqal/docs/rasqal-sections.txt, rasqal/docs/rasqal-docs.xml,
  1047. rasqal/src/rasqal_literal.c, rasqal/src/rasqal_expr.c,
  1048. rasqal/src/rasqal_general.c, rasqal/src/rasqal.h: more autodocs
  1049. * rasqal/src/rasqal_query.c, rasqal/src/rasqal_general.c,
  1050. rasqal/src/rasqal_expr.c: more autodocs and fixes for gtk-doc
  1051. style
  1052. * rasqal/src/rasqal_expr.c: autodocs for rasqal_data_graph
  1053. * rasqal/src/rasqal_query.c, rasqal/src/rasqal_expr.c,
  1054. rasqal/src/rasqal_graph_pattern.c, rasqal/src/rasqal.h: Source
  1055. code arg fixes for gtk-doc
  1056. 2005-07-29 Dave Beckett <dave@dajobe.org>
  1057. * rasqal/docs/rasqal.types: empty types for gtk-doc
  1058. * rasqal/Makefile.am: Added DISTCHECK_CONFIGURE_FLAGS
  1059. * rasqal/rasqal.spec.in: Updated for gtk-doc locations
  1060. * rasqal/docs/tmpl/section-data.sgml,
  1061. rasqal/docs/tmpl/section-expression.sgml,
  1062. rasqal/docs/tmpl/section-general.sgml,
  1063. rasqal/docs/tmpl/section-graph_pattern.sgml,
  1064. rasqal/docs/tmpl/section-literal.sgml,
  1065. rasqal/docs/tmpl/section-prefix.sgml,
  1066. rasqal/docs/tmpl/section-query.sgml,
  1067. rasqal/docs/tmpl/section-query_results.sgml,
  1068. rasqal/docs/tmpl/section-triple.sgml,
  1069. rasqal/docs/tmpl/section-unused.sgml,
  1070. rasqal/docs/tmpl/section-variable.sgml,
  1071. rasqal/docs/rasqal-overrides.txt, rasqal/autogen.sh,
  1072. rasqal/configure.ac, rasqal/docs/Makefile.am,
  1073. rasqal/docs/api.sgml.in, rasqal/docs/build-docs,
  1074. rasqal/docs/kernel-doc, rasqal/docs/rasqal-docs.xml,
  1075. rasqal/docs/rasqal-sections.txt, rasqal/src/rasqal.h,
  1076. rasqal/src/rasqal_engine.c, rasqal/src/rasqal_expr.c,
  1077. rasqal/src/rasqal_general.c, rasqal/src/rasqal_graph_pattern.c,
  1078. rasqal/src/rasqal_literal.c, rasqal/src/rasqal_map.c,
  1079. rasqal/src/rasqal_query.c, rasqal/src/rasqal_raptor.c,
  1080. rasqal/src/rasqal_skiplist.c: Switch to gtkdoc for autodocs.
  1081. Adjust source code comment style.
  1082. * rasqal/docs/version.xml.in: version xml
  1083. * configure.ac: require gtk-doc 1.4
  1084. * rasqal/autogen.sh: run gtkdocize
  1085. * rasqal/configure.ac, configure.ac: require gtk-doc 1.4
  1086. 2005-07-28 Dave Beckett <dave@dajobe.org>
  1087. * rasqal/utils/roqet.1: Update for newer result formats.
  1088. * rasqal/tests/sparql/syntax/manifest.n3,
  1089. rasqal/tests/sparql/syntax/Makefile.am: distinct-with-undef-var
  1090. * rasqal/tests/sparql/syntax/distinct-undef.rq,
  1091. rasqal/tests/sparql/syntax/result-distinct-undef.ttl: tests for
  1092. distinct with an undef var
  1093. * rasqal/src/rasqal_query.c
  1094. (rasqal_query_result_literal_sequence_compare): Two NULL literals
  1095. means equality not a final comparison result, so keep searching.
  1096. * rasqal/tests/sparql/syntax/Makefile.am,
  1097. rasqal/tests/sparql/syntax/manifest.n3,
  1098. rasqal/tests/sparql/syntax/order-distinct.rq,
  1099. rasqal/tests/sparql/syntax/order.ttl,
  1100. rasqal/tests/sparql/syntax/result-order-distinct.ttl: Added order
  1101. and distinct check
  1102. * rasqal/src/sparql_parser.y (PatternElement): Error recovery from
  1103. NULL triples but do return a graph pattern of some sort.
  1104. * rasqal/src/sparql_parser.y (PatternElement): Error recovery - do
  1105. not die when triples is NULL.
  1106. 2005-07-27 Dave Beckett <dave@dajobe.org>
  1107. * raptor/Makefile.am, raptor/docs/Makefile.am,
  1108. raptor/src/Makefile.am, raptor/utils/Makefile.am: Add
  1109. n3_lexer_test, n3_parser_test for maintainer
  1110. * raptor/src/n3_parser.y, raptor/src/turtle_parser.y (main): Make
  1111. it compile
  1112. * raptor/src/n3_parser.y: Updates from turtle_parser.y: gcc4
  1113. ignored return warning fixes:
  1114. (main): Check fread() return value and throw a user error.
  1115. (main): Fix for gcc4
  1116. (main) Move filename here
  1117. * raptor/examples/grapper.c: Add author url
  1118. * raptor/src/raptor_rss.c (raptor_rss_uplift_fields): Add
  1119. possibility of normalizing fields, but no code to do it yet.
  1120. * raptor/src/raptor_rss_common.c (raptor_rss_date_uplift): fail
  1121. and do nothing if function returns <0
  1122. * raptor/src/raptor_rss.c (raptor_rss_uplift_fields): Moved date
  1123. code into raptor_rss_date_uplift and call it.
  1124. * raptor/src/raptor_rss.h: Added raptor_rss_date_uplift prototype
  1125. * raptor/src/raptor_rss_common.c (raptor_rss_date_uplift): Added,
  1126. pulled out of raptor_rss.c
  1127. * raptor/src/turtle_parser.y: gcc4 ignored return warning fixes:
  1128. (main): Check fread() return value and throw a user error.
  1129. * rasqal/src/sparql_parser.y, rasqal/utils/roqet.c,
  1130. rasqal/src/rdql_parser.y, rasqal/src/rasqal_map.c: gcc4 ignored
  1131. return warning fixes: Discard fwrite() return values since
  1132. fprintf/fputs() aren't checked. Check fread() return values and
  1133. throw a user error.
  1134. * rasqal/src/rasqal_skiplist.c, rasqal/src/rasqal_map.c: autodocs
  1135. * rasqal/src/rasqal_query.c (rasqal_query_execute): For a stored
  1136. sequence of result rows, use result_count as an offset so
  1137. initialise to 0 always
  1138. (rasqal_query_results_next, rasqal_query_results_get_bindings,
  1139. rasqal_query_results_get_binding_value,
  1140. rasqal_query_results_get_binding_value_by_name): Adjust to use
  1141. offset.
  1142. * rasqal/src/rasqal_query.c: Removed RASQAL_MAP define; it's the
  1143. default now.
  1144. * rasqal/src/rasqal_skiplist.c (main): Update for new
  1145. rasqal_new_skiplist API
  1146. * rasqal/src/rasqal_query.c: General: rasqal_tree renamed to
  1147. rasqal_map and code moved to rasqal_map.c
  1148. (rasqal_new_query_result_row, rasqal_free_query_result_row):
  1149. Init/use usage counting.
  1150. (rasqal_new_query_result_row_from_query_result_row): Added.
  1151. (rasqal_query_result_row_compare): Take void* args, like a qsort()
  1152. compare Do a distinct comparison on values before an ordering, if
  1153. needed and discard duplicates there.
  1154. (rasqal_map_print_query_result_row,
  1155. rasqal_map_free_query_result_row): Added as rasqal_map helpers.
  1156. (rasqal_query_execute): Make a new map, not tree, calling above
  1157. helpers.
  1158. * rasqal/src/rasqal_map.c: autodocs
  1159. * rasqal/src/rasqal_map.c (rasqal_free_map_node): follow subtrees
  1160. recursively.
  1161. * rasqal/src/rasqal_skiplist.c: rasqal_skiplist_s gains split
  1162. key/value print handler methods
  1163. (rasqal_new_skiplist): Split print_fn into print_key_fn and
  1164. print_value_fn
  1165. (rasqal_skiplist_node_print): Use new functions.
  1166. * rasqal/src/rasqal_internal.h: rasqal_query_result_row gains
  1167. usage count Changed skiplist API to split key/value print handler
  1168. methods Added rasqal_map class, methods.
  1169. * rasqal/Makefile.am: Added rasqal_map.c
  1170. * rasqal/src/rasqal_map.c: Rasqal simple Key:Value Map with
  1171. duplicates allowed
  1172. * rasqal/src/rasqal_query.c (rasqal_query_execute): If added a
  1173. duplicate, free the row.
  1174. * rasqal/src/rasqal_raptor.c (ordinal_as_uri): off by 1 in making
  1175. ordinal URI.
  1176. 2005-07-26 Dave Beckett <dave@dajobe.org>
  1177. * rasqal/src/rasqal_query.c: sparql-results
  1178. * rasqal/src/rasqal_query.c, rasqal/utils/roqet.c: Changed results
  1179. namespace from http://www.w3.org/2005/06/sparqlResults to
  1180. http://www.w3.org/2005/sparql-results#
  1181. 2005-07-25 Dave Beckett <dave@dajobe.org>
  1182. * raptor/examples/grapper.c (fs_ok_button_callback): Protect from
  1183. defining when when not used as a callback.
  1184. (open_button_callback): cast for gcc4
  1185. 2005-07-24 Dave Beckett <dave@dajobe.org>
  1186. * raptor/src/raptor_rss.c (raptor_rss_parser_processNode): for
  1187. rss:link and atom:link with href, allow multiple link for atom,
  1188. and continue to ignore all but <link rel="altenrate"> for rss.
  1189. * raptor/src/raptor_rss_common.c: Tidying. Added atom:feed and
  1190. atom:entry to raptor_rss_types_info. Declare atom namespace URI
  1191. string raptor_atom_namespace_uri
  1192. * raptor/src/raptor_rss.h: Added RAPTOR_ATOM_FEED,
  1193. RAPTOR_ATOM_ENTRY.
  1194. * raptor/src/raptor_serialize_rss.c: Add atom 1.0 serializing by
  1195. generalising rss 1.0 serializing. Change field names to reflect
  1196. this rdf_nspace -> default_nspace, rdf_RDF_element ->
  1197. root_element. Add is_atom flag.
  1198. (raptor_rss10_serialize_init): Init is_atom flag.
  1199. (raptor_rss10_move_statements, raptor_rss10_store_statement):
  1200. Rename back fields translated to rss: namespace.
  1201. (raptor_rss10_build_xml_names): Init namespace qname for rss/atom.
  1202. Declare the default namespace to rss/atom. Ignore all item types
  1203. but rss:item for atom; all but atom:author for rss. For item node
  1204. type use atom:entry / rss:item.
  1205. (raptor_rss10_emit_item): Add emit_container flag to prevent
  1206. generating the containing elements. For atom:author, generate it
  1207. inline for atom, ignore it for rss. When generating URI-valued
  1208. fields for atom, make them element content. For atom, do not
  1209. generate rdf:Seq block.
  1210. (raptor_rss10_serialize_end): Only emit node type rss:item (aka
  1211. atom:entry) for atom.
  1212. (raptor_init_serializer_atom): Added.
  1213. * raptor/configure.ac: Added atom serializer, enabled for
  1214. maintainer only.
  1215. * raptor/src/raptor_general.c (raptor_init): Add call to
  1216. raptor_init_serializer_atom if enabled
  1217. * raptor/src/raptor_internal.h: Added prototype for
  1218. raptor_init_serializer_atom Added raptor_atom_namespace_uri
  1219. * raptor/src/raptor_serialize_rss.c (raptor_rss10_serialize_end):
  1220. End with an error if no rss channel was found.
  1221. * raptor/Makefile.am, raptor/docs/Makefile.am,
  1222. raptor/src/Makefile.am, raptor/utils/Makefile.am: Use
  1223. RAPTOR_SERIALIZER_RSS_1_0 for new separate rss serializer. Use
  1224. RAPTOR_RSS_COMMON when either rss parser or serializer is needed.
  1225. * raptor/configure.ac: RSS 1.0 serializer is always available and
  1226. does not need the libxml requirements of the RSS tag soup parser.
  1227. Added RAPTOR_SERIALIZER_RSS_1_0 define and makefile conditional.
  1228. Added RAPTOR_RSS_COMMON when any rss code is needed.
  1229. * raptor/src/raptor_rss.c, raptor/src/raptor_rss_common.c,
  1230. raptor/src/raptor_serialize_rss.c: Moved common code between
  1231. parser and serializer from raptor_rss.c into new
  1232. raptor_rss_common.c as new class raptor_rss_model. Moved rss-1.0
  1233. serializer into new raptor_serialize_rss.c. Both can be compiled
  1234. independent of the other.
  1235. * raptor/src/raptor_rss.h: Redland Parser Toolkit Internal RSS
  1236. Model and API
  1237. * raptor/src/raptor_internal.h: Add RAPTOR_PARSEDATE_FUNCTION
  1238. macro for parsedate.c
  1239. * raptor/src/raptor_general.c (raptor_init): Use define
  1240. RAPTOR_SERIALIZER_RSS_1_0 to call raptor_init_serializer_rss10
  1241. * raptor/src/raptor_xml.c, raptor/src/raptor_sax2.c: Moved
  1242. raptor_new_xml_element, raptor_free_xml_element,
  1243. raptor_xml_element_set_attributes,
  1244. raptor_xml_element_declare_namespace, raptor_print_xml_element,
  1245. raptor_iostream_write_xml_element from raptor_sax2.c to
  1246. raptor_xml.c
  1247. 2005-07-23 Dave Beckett <dave@dajobe.org>
  1248. * librdf/redland.spec.in: date typo
  1249. * raptor/src/raptor_rss.c, raptor/src/raptor_rss_common.c,
  1250. raptor/src/raptor_serialize_rss.c: More base URIs on base URIs
  1251. fixes.
  1252. (raptor_rss_parser_processNode): Ensure base URI is always copied
  1253. at start element, always freed at end element. Make sure xml:base
  1254. processing is done for all elements including document and
  1255. typed-node ones.
  1256. (raptor_rss_parse_chunk): Remove duplicate document base URI
  1257. setting.
  1258. 2005-07-22 Dave Beckett <dave@dajobe.org>
  1259. * raptor/src/raptor_rss.c, raptor/src/raptor_rss_common.c,
  1260. raptor/src/raptor_serialize_rss.c: raptor_rss_info gains flags
  1261. field to store RAPTOR_RSS_INFO_FLAG_URI_VALUE where the value of
  1262. the element <foo>value</foo> is always a URI. Apply that to
  1263. atom:id, atom:icon and atom:logo. struct
  1264. raptor_rss_parser_context_s gains a sequence of base URIs
  1265. per-element.
  1266. (raptor_rss_context_init, raptor_rss_context_terminate): Init and
  1267. free sequence of base URIs.
  1268. (raptor_rss_parse_start): Start base URI sequence with parser base
  1269. URI.
  1270. (raptor_rss_parser_processNode): Init base_uri from top of stack
  1271. of base URIs. Update base_uri from an xml:base arg, relative to
  1272. the current base URI. Use the base URI for all URi constructions.
  1273. Push the new base URI after an element has been found. Pop the
  1274. base URI at the end of an element. At the end of an element, if
  1275. the field always has a URI value, convert it.
  1276. (raptor_rss_parse_chunk): Init the URI sequence with the parser
  1277. base URI.
  1278. * raptor/src/raptor_rss.c, raptor/src/raptor_rss_common.c,
  1279. raptor/src/raptor_serialize_rss.c: map raptor_atom_to_rss: turn
  1280. more atom cloned rss fields into rss fields.
  1281. (raptor_rss_uplift_fields): Change default action to copy
  1282. (duplicate) fields.
  1283. (raptor_rss10_emit_item): Do not emit link to atom:author types in
  1284. rss1.0
  1285. (raptor_rss10_serialize_end): Do not emit atom:author type in
  1286. rss1.0
  1287. * raptor/src/raptor_rss.c, raptor/src/raptor_rss_common.c,
  1288. raptor/src/raptor_serialize_rss.c: Added atom 1.0 namespace
  1289. (ATOM1_0_NAMESPACE_URI, ASTOM1_0_NS) and terms. Turn old atom 0.3
  1290. terms into 1.0 versions where known using raptor_atom_to_rss.
  1291. (raptor_rss_parser_processNode): Handle atom feed element
  1292. properly, make a new channel item. Convert atom 0.3 namespaced
  1293. elements to atom 1.0 Use atom:id to get a URI for the feed/entry
  1294. Copy atom:published to dc:date and atom:rights to dc:rights via
  1295. raptor_rss_uplift_map.
  1296. (raptor_rss_uplift_fields): Copy dc:date and atom:rights
  1297. * raptor/src/raptor_rss.c, raptor/src/raptor_rss_common.c,
  1298. raptor/src/raptor_serialize_rss.c: Added content: namespace
  1299. CONTENT_NAMESPACE_URI, prefix "content:" Added content:encoded
  1300. field RAPTOR_RSS_FIELD_CONTENT_ENCODED
  1301. (raptor_rss_uplift_fields): Added an uplift from description to
  1302. content:encoded
  1303. (raptor_rss10_emit_item): Write content:encoded using
  1304. <![CDATA[...]]>
  1305. 2005-07-21 Dave Beckett <dave@dajobe.org>
  1306. * librdf/rdf_concepts.h: Move some docs into the sgml template
  1307. * configure.ac: Added docs/version.xml
  1308. * docs/Makefile.am, docs/redland-chapter-intro.xml,
  1309. docs/redland-chapter-objects.xml, docs/redland-docs.xml,
  1310. docs/redland-intro.xml, docs/redland-objects-in-c.xml,
  1311. docs/version.xml.in: more gtk-doc
  1312. * librdf/redland.spec.in: Updated for gtk-doc locations
  1313. * rasqal/rasqal_query.c (rasqal_query_results_write_xml_result2,
  1314. rasqal_query_results_write_xml_result3): Use
  1315. RASQAL_XSD_BOOLEAN_TRUE and RASQAL_XSD_BOOLEAN_FALSE for boolean
  1316. result value.
  1317. (rasqal_query_results_write_xml_result3): Add ordered and distinct
  1318. attributes to <results> element.
  1319. * rasqal/rasqal_literal.c (rasqal_literal_string_to_native,
  1320. rasqal_new_boolean_literal): Use RASQAL_XSD_BOOLEAN_TRUE and
  1321. RASQAL_XSD_BOOLEAN_FALSE.
  1322. * rasqal/rasqal_internal.h: Added RASQAL_XSD_BOOLEAN_TRUE and
  1323. RASQAL_XSD_BOOLEAN_FALSE, maybe could be pointers to a shared
  1324. string but compilers can work it out.
  1325. * docs/redland-sections.txt: remove internal
  1326. librdf_concept_ms_namespace_uri and
  1327. librdf_concept_schema_namespace_uri
  1328. * librdf/rdf_concepts.h: docs
  1329. * docs/Makefile.am: Remove unused SCAN_OPTIONS
  1330. 2005-07-20 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1331. * examples/Makefile.am: added example7
  1332. * examples/example7.c: read from a file 'file.rdf', add a triple,
  1333. write it again
  1334. 2005-07-19 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1335. * librdf/Makefile.am: Remove 1-function headers from dist
  1336. * librdf/rdf_node.h: removed librdf_node_init - has no code
  1337. * docs/redland-docs.xml: redland doc
  1338. * docs/redland-intro.xml: Doc intro
  1339. * docs/redland-objects-in-c.xml: Objects in C
  1340. * librdf/rdf_uri.c (librdf_uri_print): xml fix
  1341. * docs/redland-sections.txt: doc sections
  1342. * librdf/rdf_node.h: librdf_node_init removed - in header only
  1343. * docs/Makefile.am: ignore internal headers
  1344. * librdf/rdf_query_results.c, librdf/rdf_node.c: More fixes for
  1345. gtkdoc
  1346. * librdf/rdf_stream.c, librdf/rdf_stream.h, librdf/rdf_uri.c,
  1347. librdf/rdf_uri.h, librdf/rdf_utf8.c, librdf/rdf_concepts.c,
  1348. librdf/rdf_digest.c, librdf/rdf_digest.h, librdf/rdf_digest_md5.c,
  1349. librdf/rdf_digest_openssl.c, librdf/rdf_digest_sha1.c,
  1350. librdf/rdf_hash.c, librdf/rdf_hash.h, librdf/rdf_hash_bdb.c,
  1351. librdf/rdf_hash_cursor.c, librdf/rdf_hash_memory.c,
  1352. librdf/rdf_heuristics.c, librdf/rdf_init.c, librdf/rdf_init.h,
  1353. librdf/rdf_iterator.c, librdf/rdf_iterator.h, librdf/rdf_list.c,
  1354. librdf/rdf_log.c, librdf/rdf_log.h, librdf/rdf_model.c,
  1355. librdf/rdf_model.h, librdf/rdf_model_storage.c, librdf/rdf_node.c,
  1356. librdf/rdf_node.h, librdf/rdf_parser.c, librdf/rdf_parser.h,
  1357. librdf/rdf_parser_raptor.c, librdf/rdf_query.c,
  1358. librdf/rdf_query.h, librdf/rdf_query_results.c,
  1359. librdf/rdf_query_triples.c, librdf/rdf_serializer.c,
  1360. librdf/rdf_serializer.h, librdf/rdf_serializer_raptor.c,
  1361. librdf/rdf_statement.c, librdf/rdf_statement.h,
  1362. librdf/rdf_storage.c, librdf/rdf_storage.h,
  1363. librdf/rdf_storage_hashes.c, librdf/rdf_storage_list.c,
  1364. librdf/rdf_storage_mysql.c, librdf/rdf_storage_sqlite.c,
  1365. librdf/rdf_storage_tstore.c: automated docucomments updates for
  1366. gtk-doc
  1367. * autogen.sh: allow gtkdocize to fail
  1368. * librdf/rdf_concepts_internal.h, librdf/rdf_digest_internal.h,
  1369. librdf/rdf_hash_internal.h, librdf/rdf_iterator_internal.h,
  1370. librdf/rdf_list_internal.h, librdf/rdf_log_internal.h,
  1371. librdf/rdf_model_internal.h, librdf/rdf_node_internal.h,
  1372. librdf/rdf_query_internal.h, librdf/rdf_serializer_internal.h,
  1373. librdf/rdf_statement_internal.h, librdf/rdf_storage_internal.h,
  1374. librdf/rdf_stream_internal.h, librdf/rdf_uri_internal.h: comment
  1375. words
  1376. * raptor/raptor_guess.c (raptor_guess_parse_chunk): unused var
  1377. parser
  1378. * librdf/rdf_list_internal.h: Remove some calls to public headers
  1379. that are in redland.h also.
  1380. * raptor/ntriples_parse.c (raptor_init_parser_ntriples): Do not
  1381. register interest in text/plain -- too general.
  1382. * librdf/Makefile.am: Added more internal headers
  1383. * librdf/librdf.h, librdf/rdf_concepts.h, librdf/rdf_digest.h,
  1384. librdf/rdf_hash.c, librdf/rdf_hash.h, librdf/rdf_hash_bdb.c,
  1385. librdf/rdf_hash_memory.c, librdf/rdf_init.h,
  1386. librdf/rdf_internal.h, librdf/rdf_iterator.h, librdf/rdf_list.h,
  1387. librdf/rdf_log.h, librdf/rdf_model.h, librdf/rdf_model_storage.h,
  1388. librdf/rdf_node.h, librdf/rdf_parser.h, librdf/rdf_query.h,
  1389. librdf/rdf_serializer.h, librdf/rdf_statement.h,
  1390. librdf/rdf_storage.h, librdf/rdf_storage_hashes.c,
  1391. librdf/rdf_stream.h, librdf/rdf_uri.h: use rdf_MODULE_internal.h
  1392. headersrdf_*.h
  1393. * librdf/rdf_concepts_internal.h, librdf/rdf_digest_internal.h,
  1394. librdf/rdf_hash_internal.h, librdf/rdf_iterator_internal.h,
  1395. librdf/rdf_list_internal.h, librdf/rdf_log_internal.h,
  1396. librdf/rdf_model_internal.h, librdf/rdf_node_internal.h,
  1397. librdf/rdf_parser_internal.h, librdf/rdf_query_internal.h,
  1398. librdf/rdf_serializer_internal.h, librdf/rdf_statement_internal.h,
  1399. librdf/rdf_storage_internal.h, librdf/rdf_stream_internal.h: added
  1400. rdf_MODULE_internal.h headers
  1401. * librdf/rdf_hash_bdb.h, librdf/rdf_hash_memory.h,
  1402. librdf/rdf_storage_hashes.h, librdf/rdf_storage_list.h: delete 1
  1403. function headers
  1404. * docs/redland.types: must be empty
  1405. * docs/kernel-doc, docs/build-docs: replace with gtk-doc
  1406. * docs/api.html.in, docs/api.sgml.in: switch to gtk-doc
  1407. * docs/redland-intro.xml, docs/redland-docs.xml: gtk-doc bit
  1408. * autogen.sh: Run gtkdocize
  1409. * docs/Makefile.am: Switch to gtk-doc
  1410. * configure.ac: Added GTK_DOC_CHECK
  1411. * Makefile.am: Added gtk-doc.make
  1412. * librdf/Makefile.am: Added rdf_init_internal.h rdf_uri_internal.h
  1413. * librdf/rdf_storage_sqlite.c, librdf/rdf_storage_tstore.c,
  1414. librdf/rdf_stream.c, librdf/rdf_uri.c, librdf/rdf_uri.h,
  1415. librdf/rdf_uri_internal.h, librdf/rdf_utf8.c, librdf/librdf.h,
  1416. librdf/rdf_concepts.c, librdf/rdf_digest.c,
  1417. librdf/rdf_digest_md5.c, librdf/rdf_digest_sha1.c,
  1418. librdf/rdf_hash.c, librdf/rdf_hash_bdb.c,
  1419. librdf/rdf_hash_cursor.c, librdf/rdf_hash_memory.c,
  1420. librdf/rdf_init.c, librdf/rdf_init.h, librdf/rdf_init_internal.h,
  1421. librdf/rdf_internal.h, librdf/rdf_iterator.c, librdf/rdf_list.c,
  1422. librdf/rdf_log.c, librdf/rdf_model.c, librdf/rdf_model.h,
  1423. librdf/rdf_model_storage.c, librdf/rdf_node.c,
  1424. librdf/rdf_parser.c, librdf/rdf_parser_raptor.c,
  1425. librdf/rdf_query.c, librdf/rdf_query_results.c,
  1426. librdf/rdf_query_triples.c, librdf/rdf_serializer.c,
  1427. librdf/rdf_serializer_raptor.c, librdf/rdf_statement.c,
  1428. librdf/rdf_storage.c, librdf/rdf_storage_hashes.c,
  1429. librdf/rdf_storage_list.c, librdf/rdf_storage_mysql.c: Updates for
  1430. gtk-doc. Pull out internal headers
  1431. * Switch API docs from gnome-doc / kernel-doc to gtk-doc. This
  1432. requires a variety of source level changes that edit the
  1433. docucomments as well as some header file edits to work with
  1434. gtk-doc. Internal symbols are removed from public headers
  1435. entirely.
  1436. 2005-07-18 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1437. * librdf/rdf_concepts.c: death to M&S for xml docs
  1438. * raptor/raptor_guess.c: Slim down, to use raptor_parser_exec.
  1439. (raptor_guess_parse_start): Deleted again.
  1440. (raptor_guess_parse_chunk): Use guessing and raptor_parser_exec to
  1441. switch to the right parser.
  1442. * raptor/raptor_internal.h: Added prototype to raptor_parser_exec
  1443. * raptor/raptor_parse.c (raptor_parser_exec): Added to turn one
  1444. parser type into another in-situ.
  1445. * raptor/rdfdump.c: make -g invoke the guess parser and report the
  1446. resulting parser at the first triple returned
  1447. * raptor/raptor_guess.c (raptor_guess_parse_start): Added.
  1448. (raptor_guess_parse_chunk): Pass in buffer to
  1449. raptor_guess_parser_name since we have it. Work with no
  1450. content_type such as when using a filename alone.
  1451. * raptor/ntriples_parse.c (raptor_ntriples_parse_chunk): Handle
  1452. ending on \r\n by updating 'start' by 1 position.
  1453. * configure.ac: Require rasqal 0.9.11
  1454. * configure.ac: Require raptor 1.4.8 for guess parser.
  1455. * rasqal/rasqal_raptor.c (rasqal_raptor_new_triples_source): Use
  1456. raptor guess parser.
  1457. * rasqal/configure.ac: Require raptor 1.4.8 for guess parser.
  1458. * raptor/ntriples_parse.c (raptor_ntriples_term): Check sscanf
  1459. return to catch bad \u or \U hex escape.
  1460. * raptor/turtle_lexer.l (turtle_copy_string_token): Check sscanf
  1461. return to catch bad \u or \U hex escape.
  1462. * raptor/raptor_general.c (raptor_init): Added guessing parser
  1463. * raptor/configure.ac, raptor/Makefile.am: Added raptor_guess.c
  1464. * raptor/raptor_guess.c: guessing parser using content type and an
  1465. internal parser
  1466. * raptor/raptor_xslt.c (raptor_xslt_parse_start): No need to init
  1467. column, byte locator.
  1468. * raptor/raptor_rdfxml.c (raptor_xml_parse_recognise_syntax):
  1469. Guess that application/xml is likely RDF/XML
  1470. * raptor/raptor_internal.h: raptor_parser_factory_s gains a
  1471. content_type_handler field.
  1472. * raptor/raptor_parse.c (raptor_start_parse): Init locator line,
  1473. column, byte to -1 (unknown)
  1474. (raptor_parse_uri_content_type_handler): Added to handle
  1475. raptor_www content type field return. Pass on to factory method
  1476. content_type_handler if present.
  1477. (raptor_parse_uri_with_connection): Init
  1478. raptor_parse_uri_content_type_handler to receive raptor_www
  1479. callbacks using raptor_www_set_content_type_handler.
  1480. (raptor_guess_parser_name): Check static buffer size for overflow.
  1481. Add some comments.
  1482. * raptor/raptor_xslt.c (raptor_xslt_parse_start): Use
  1483. raptor_parser_copy_user_state
  1484. * raptor/raptor_parse.c (raptor_parser_copy_user_state): docs
  1485. * raptor/raptor_parse.c (raptor_parser_copy_user_state): Added.
  1486. * raptor/raptor_internal.h: Added prototype for
  1487. raptor_parser_copy_user_state
  1488. * raptor/tests/ex-58.rdf, raptor/tests/ex-58.out,
  1489. raptor/tests/Makefile.am: Added ex-58
  1490. * raptor/raptor_rdfxml.c (raptor_end_element_grammar): When
  1491. emitting literals, handle a datatyped empty literal. Merge the
  1492. property element/member property element code.
  1493. * raptor/tests/ex-57.rdf, raptor/tests/ex-57.out,
  1494. raptor/tests/Makefile.am: Added ex-57
  1495. 2005-07-17 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1496. * librdf/rdf_storage_tstore.c: Unbreak 3store backend from not
  1497. compiling.
  1498. 2005-07-14 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1499. * rasqal/sparql_parser.y: Update to rq23 CVS 1.423 2005/07/14
  1500. 12:04:17
  1501. * rasqal/Makefile.am: rasqal_skiplist_test is in TESTS
  1502. * rasqal/rasqal_internal.h, rasqal/rasqal_skiplist.c: Moved
  1503. internal struct rasqal_skiplist_node into rasqal_skiplist.c again.
  1504. * rasqal/rasqal_internal.h: words
  1505. * rasqal/rasqal_internal.h, rasqal/rasqal_skiplist.c: Moved
  1506. rasqal_skiplist headers into rasqal_internal.h for now.
  1507. * rasqal/rasqal_skiplist.c: Skip list implememntation
  1508. * rasqal/Makefile.am: Added rasqal_skiplist.c and
  1509. rasqal_skiplist_test
  1510. 2005-07-13 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1511. * rasqal/rasqal_query.c (rasqal_query_results_write_xml_result3):
  1512. Indent <boolean> by 2
  1513. * rasqal/roqet.c: Added new xml format with URI
  1514. http://www.w3.org/2005/06/sparqlResults and made old one available
  1515. via xml-v2
  1516. * rasqal/rasqal_query.c (rasqal_query_results_write): comments
  1517. docs for URI http://www.w3.org/2005/06/sparqlResults.
  1518. * rasqal/rasqal_query.c (rasqal_query_results_write): Allow NULL
  1519. URI for default format. Add format V3 with URi
  1520. http://www.w3.org/2005/06/sparqlResults.
  1521. (rasqal_query_results_write_xml_result3): Added for latest format
  1522. and new namespace.
  1523. * rasqal/sparql_lexer.l (// comment rule, # comment rule): Use
  1524. better grab-till-newline form.
  1525. * raptor/turtle_lexer.l: Switch qname, blank node and prefix
  1526. definitions to SPARQL ones.
  1527. (main): Fixes for gcc4
  1528. * raptor/turtle_parser.y (main): Fix for gcc4
  1529. * rasqal/tests/sparql/SyntaxFull/manifest.ttl,
  1530. rasqal/tests/sparql/ValueTesting/extendedType-0.n3,
  1531. rasqal/tests/sparql/ValueTesting/extendedType-eq-pass.rq,
  1532. rasqal/tests/sparql/regex/regex-query-003.rq,
  1533. rasqal/tests/sparql/regex/regex-query-004.rq: Update tests from
  1534. DAWG CVS
  1535. * raptor/raptor_utf8.c (raptor_unicode_is_xml11_namechar): Call
  1536. raptor_unicode_is_xml11_namestartchar.
  1537. * rasqal/sparql_lexer.l (rasqal_sparql_name_check): Ignore 0
  1538. length names - checked in parser. Make all name problems into
  1539. errors rather than warnings.
  1540. 2005-07-12 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1541. * rasqal/sparql_lexer.l: Reference rq23 Added
  1542. sparql_name_check_flags enum for sparql name checking. Updated
  1543. SPARQL name tokens to match latest rq23 - lots of comments.
  1544. (// C++ comment rule): Use pattern to find end of line with
  1545. multiple line endings. Count line.
  1546. (/* C comment block rule): Use returned lines to bump the current
  1547. line number.
  1548. (<ID>{VARNAME} rule): Check varnames.
  1549. (<PREF>{NCNAME_PREFIX}":" rule): Check prefix.
  1550. ({BNAME} rule): Check ncname.
  1551. (rasqal_sparql_name_check): Added to do XML Name 1.1 check and
  1552. others.
  1553. (sparql_copy_name): Add check_flag and use it with
  1554. rasqal_sparql_name_check instead of raptor_xml_name_check.
  1555. (sparql_copy_qname, sparql_copy_string_token): Use
  1556. rasqal_sparql_name_check instead of raptor_xml_name_check.
  1557. (sparql_skip_cpp_comment): Deleted.
  1558. * rasqal/rdql_lexer.l (// C++ comment rule): Use pattern to find
  1559. end of line with multiple line endings. Count line.
  1560. (/* C comment block rule): Use returned lines to bump the current
  1561. line number.
  1562. (rdql_skip_cpp_comment): Deleted.
  1563. * rasqal/tests/sparql/SyntaxFull/manifest.ttl,
  1564. rasqal/tests/sparql/SyntaxFull/syntax-qname-08.rq,
  1565. rasqal/tests/sparql/SyntaxFull/syntax-qname-14.rq: Updates from
  1566. DAWG tests
  1567. 2005-07-01 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1568. * rasqal/configure.ac: time headers
  1569. * rasqal/configure.ac: Test for srandomdev
  1570. * raptor/configure.ac: Check for isascii, for parsedate.y
  1571. * raptor/parsedate.y: Update source links
  1572. 2005-06-29 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1573. * rasqal/rasqal_query.c (rasqal_query_execute): Do the result
  1574. making outside #ifdef RASQAL_DEBUG ... #endif Oops!
  1575. * rasqal/rasqal_expr.c (main): Add flags arg to
  1576. rasqal_expression_evaluate
  1577. * rasqal/tests/sparql/survey/Makefile.am: survey-10 works. now 1
  1578. failure
  1579. * rasqal/rasqal_query.c: Added alternate results sorting using
  1580. RASQAL_TREE define trigger to merge into a b-tree.
  1581. (rasqal_query_result_row_update): Pass query compare_flags
  1582. argument to rasqal_expression_evaluate.
  1583. (rasqal_query_result_literal_sequence_compare): Added with main
  1584. contant from rasqal_engine_query_results_compare. Operates over
  1585. arrays of values of the given size.
  1586. (rasqal_query_results_row_compare): Call above for order
  1587. conditions or row values to handle ORDER BY(with/without DISTINCT)
  1588. or DISTINCT alone.
  1589. (rasqal_query_results_compare): Added.
  1590. (rasqal_new_tree_node, rasqal_free_tree_node, rasqal_new_tree,
  1591. rasqal_free_tree, rasqal_tree_node_add_row, rasqal_tree_add_row,
  1592. rasqal_tree_node_write_indent, rasqal_tree_node_print_internal,
  1593. rasqal_tree_print, rasqal_tree_node_visit, rasqal_tree_visit,
  1594. rasqal_tree_add_to_sequence): Added to implement tree of rows
  1595. sorted on add with optional distinct results.
  1596. (rasqal_query_execute): Add alternate tree results collation
  1597. enabled by RASQAL_TREE implementing distinct.
  1598. * rasqal/tests/sparql/sort/Makefile.am: sort-6 now passes. no
  1599. sort failures
  1600. * rasqal/tests/sparql/ExprEquals/Makefile.am: "Equality 1-1" and
  1601. "Equality 1-2" now pass. down to 2 failures
  1602. * rasqal/rasqal_engine.c (rasqal_engine_check_constraint,
  1603. rasqal_engine_expression_foreach_fold): Use flags argument
  1604. in. rasqal_expression_evaluate taken from query compare_flags
  1605. field.
  1606. * rasqal/sparql_parser.y (rasqal_sparql_query_engine_init): Set
  1607. query compare_flags to RASQAL_COMPARE_XQUERY enabling XQuery
  1608. comparison and promotions.
  1609. * rasqal/rasqal_expr.c (rasqal_expression_evaluate): Added flags
  1610. argument, to pass down to rasqal_literal_compare. Pass it down to
  1611. internal uses of rasqal_expression_evaluate also.
  1612. * rasqal/rasqal_literal.c: rasqal_literal_type_labels reordered to
  1613. match changes to rasqal_literal_type in rasqal.h
  1614. (rasqal_literal_compare): Added RASQAL_COMPARE_XQUERY to use
  1615. XQuery comparison and type promotions. When the above flag is
  1616. set, only promote numeric types and otherwise compare different
  1617. types using the order in rasqal_literal_type enum.
  1618. * rasqal/rasqal_internal.h: rasqal_query gains compare_flags
  1619. structure
  1620. * rasqal/roqet.c: spaces 80
  1621. * rasqal/rasqal.h: Reordered the types in rasqal_literal_type to
  1622. make them useful for sparql type promotion. Added define
  1623. RASQAL_COMPARE_XQUERY Added flags argument to
  1624. rasqal_expression_evaluate prototype.
  1625. * rasqal/roqet.c (roqet_write_indent): Handle any depth indenting.
  1626. * raptor/raptor_rss.c (raptor_rss_uplift_fields): Fix valid
  1627. condition.
  1628. * raptor/raptor_rss.c: raptor_rss_uplift_map - added,
  1629. rss091:pubDate -> dc:date in ISO format
  1630. (raptor_rss_uplift_fields): Added, to search for fields to uplift.
  1631. (raptor_rss_uplift_items): Added, to scan items to uplift.
  1632. (raptor_rss_parse_chunk): Call raptor_rss_uplift_items.
  1633. 2005-06-28 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1634. * rasqal/rasqal_engine.c: Fixes for C++.
  1635. * rasqal/tests/sparql/check-sparql: Warn short form of cmd lines
  1636. 2005-06-26 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1637. * rasqal/rasqal_engine.c (rasqal_engine_prepare): Call
  1638. rasqal_engine_query_fold_expressions.
  1639. (rasqal_engine_expression_foreach_fold): Added to use with
  1640. rasqal_expression_foreach.
  1641. (rasqal_engine_expression_fold): Added, to fold an expression tree
  1642. until no changes are made.
  1643. (rasqal_engine_graph_pattern_fold_expressions): Added, to fold
  1644. expressions inside a graph pattern - in sub graph patterns and in
  1645. constraint expression.
  1646. (rasqal_engine_query_fold_expressions): Added, to fold expressions
  1647. inside a graph - in graph patterns and order conditions.
  1648. * rasqal/rasqal_expr.c (rasqal_expression_clear): Added, to
  1649. deallocate a static rasqal_expression.
  1650. (rasqal_free_expression): Use above.
  1651. (rasqal_expression_foreach): Do current node explicitly first,
  1652. before op check is done so that the user function could change the
  1653. op potentially. Handle op LITERAL and op FUNCTION correctly.
  1654. (rasqal_expression_is_constant): Added to check if the expression
  1655. tree is a constant expression.
  1656. (rasqal_expression_convert_to_literal): Convert an expression tree
  1657. into a literal in-situ.
  1658. * rasqal/rasqal_literal.c (rasqal_literal_is_constant): Added
  1659. returning non-0 if literal is a constant i.e. not a variable.
  1660. * rasqal/rasqal_internal.h: Added prototypes for
  1661. rasqal_engine_expression_fold,
  1662. rasqal_engine_graph_pattern_fold_expressions,
  1663. rasqal_engine_query_fold_expressions, rasqal_literal_is_constant,
  1664. rasqal_expression_is_constant, rasqal_expression_clear and
  1665. rasqal_expression_convert_to_literal.
  1666. * rasqal/tests/sparql/examples/Makefile.am:
  1667. sparql-query-example-Testing-Values-isLiteral works. 3 fail now.
  1668. * rasqal/tests/sparql/examples/ex11.2.3.1_1.n3,
  1669. rasqal/tests/sparql/examples/ex11.2.3.2_0.n3,
  1670. rasqal/tests/sparql/examples/ex11.2.3.5_0.n3,
  1671. rasqal/tests/sparql/examples/ex11_0.n3: Date fixes from DAWG CVS
  1672. * rasqal/tests/sparql/examples/ex11.2.3.1_1.rq,
  1673. rasqal/tests/sparql/examples/ex11.2.3.2_0.rq,
  1674. rasqal/tests/sparql/examples/ex11.2.3.2_1.rq,
  1675. rasqal/tests/sparql/examples/ex11.2.3.7_0.rq,
  1676. rasqal/tests/sparql/examples/ex11_0.rq,
  1677. rasqal/tests/sparql/examples/ex11_1.rq,
  1678. rasqal/tests/sparql/examples/ex11.2.3.1_0.rq: Update for FILTER()
  1679. * rasqal/tests/sparql/examples/Makefile.am: Correct test failures,
  1680. count remains same
  1681. 2005-06-25 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1682. * rasqal/tests/sparql/survey/Makefile.am: survey-13 now passes.
  1683. now 2 failures
  1684. * rasqal/rasqal_query.c (rasqal_query_results_write_xml_20041221,
  1685. rasqal_query_results_write_xml_result2): Use string_len rather
  1686. than strlen().
  1687. * rasqal/rasqal_internal.h: Added prototype for
  1688. rasqal_literal_ebv. Added constants rasqal_xsd_decimal_uri,
  1689. rasqal_xsd_datetime_uri and rasqal_xsd_string_uri.
  1690. * rasqal/rasqal_literal.c (rasqal_new_integer_literal,
  1691. rasqal_new_double_literal, rasqal_new_pattern_literal,
  1692. rasqal_new_string_literal, rasqal_new_simple_literal,
  1693. rasqal_new_boolean_literal): Initialise the string_len field.
  1694. (rasqal_literal_string_to_native): Initialise string_len field
  1695. when turning into a boolean.
  1696. (rasqal_literal_expand_qname): Use string_len field to initialise
  1697. raptor_qname_string_to_uri.
  1698. (rasqal_literal_as_node): When making a new typed literal,
  1699. initialise string_len field.
  1700. (rasqal_literal_ebv): Added, to return the Effective Boolean Value
  1701. (EBV) of a literal.
  1702. * rasqal/rasqal.h: rasqal_literal gains string_len field.
  1703. * rasqal/sparql_parser.y (sparql_is_builtin_xsd_datatype): Added
  1704. to check for the types that sparql supports.
  1705. (FunctionCall): Use sparql_is_builtin_xsd_datatype to distinguish
  1706. a cast from a function - name is the datatype URI, has 1 arg.
  1707. * rasqal/rasqal_general.c: Added constants rasqal_xsd_decimal_uri,
  1708. rasqal_xsd_datetime_uri and rasqal_xsd_string_uri constants.
  1709. (rasqal_uri_init, rasqal_uri_finish): Init and free
  1710. rasqal_xsd_decimal_uri, rasqal_xsd_datetime_uri and
  1711. rasqal_xsd_string_uri.
  1712. 2005-06-24 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1713. * rasqal/tests/sparql/Expr1/expr-1.rq,
  1714. rasqal/tests/sparql/Expr1/expr-2.rq,
  1715. rasqal/tests/sparql/Expr1/expr-3.rq,
  1716. rasqal/tests/sparql/Expr2/query-bev-1.rq,
  1717. rasqal/tests/sparql/Expr2/query-bev-3.rq,
  1718. rasqal/tests/sparql/Expr2/query-bev-4.rq,
  1719. rasqal/tests/sparql/Expr2/query-bev-5.rq,
  1720. rasqal/tests/sparql/Expr2/query-bev-6.rq,
  1721. rasqal/tests/sparql/ExprBuiltins/q-datatype-1.rq,
  1722. rasqal/tests/sparql/ExprBuiltins/q-str-1.rq,
  1723. rasqal/tests/sparql/ExprBuiltins/q-str-2.rq,
  1724. rasqal/tests/sparql/ExprBuiltins/q-str-3.rq,
  1725. rasqal/tests/sparql/ExprBuiltins/q-str-4.rq,
  1726. rasqal/tests/sparql/ExprEquals/query-eq-1.rq,
  1727. rasqal/tests/sparql/ExprEquals/query-eq-2.rq,
  1728. rasqal/tests/sparql/ExprEquals/query-eq-3.rq,
  1729. rasqal/tests/sparql/ExprEquals/query-eq-4.rq,
  1730. rasqal/tests/sparql/ExprEquals/query-eq-5.rq,
  1731. rasqal/tests/sparql/ExprEquals/query-eq2-1.rq,
  1732. rasqal/tests/sparql/ExprEquals/query-eq2-2.rq,
  1733. rasqal/tests/sparql/SyntaxFull/manifest.ttl,
  1734. rasqal/tests/sparql/SyntaxFull/syntax-expr-01.rq,
  1735. rasqal/tests/sparql/SyntaxFull/syntax-expr-05.rq,
  1736. rasqal/tests/sparql/SyntaxFull/syntax-expr-06.rq,
  1737. rasqal/tests/sparql/SyntaxFull/syntax-qname-07.rq,
  1738. rasqal/tests/sparql/SyntaxFull/syntax-qname-08.rq,
  1739. rasqal/tests/sparql/ValueTesting/extendedType-0.n3,
  1740. rasqal/tests/sparql/regex/regex-query-001.rq,
  1741. rasqal/tests/sparql/regex/regex-query-002.rq,
  1742. rasqal/tests/sparql/regex/regex-query-003.rq,
  1743. rasqal/tests/sparql/regex/regex-query-004.rq: Updates from DAWG
  1744. CVS
  1745. * rasqal/rasqal_query.c: Moved rasqal_query_result_row to
  1746. rasqal-internal.h
  1747. (rasqal_new_query_result_row): Handle no order_conditions_sequence
  1748. present. Set NULL literal values when they appear, as from
  1749. OPTIONAL.
  1750. (rasqal_query_results_update): Added, based on core of
  1751. rasqal_query_results_next to get next result from query engine,
  1752. including offsets.
  1753. (rasqal_query_execute): Use rasqal_query_results_update when not
  1754. sorting and make a query_results->row
  1755. (rasqal_free_query_results): Free any row field used.
  1756. (rasqal_query_results_get_bindings,
  1757. rasqal_query_results_get_binding_value,
  1758. rasqal_query_results_get_binding_value_by_name): Return row
  1759. values, using query_results row field for stream results.
  1760. * rasqal/rasqal_raptor.c (rasqal_raptor_bind_match): Use
  1761. rasqal_new_literal_from_literal when binding literal values, do
  1762. not turn them into nodes this early.
  1763. * rasqal/tests/sparql/sort/Makefile.am: sort-4 sort-7 pass now
  1764. only fail sort-6
  1765. * rasqal/rasqal_expr.c (rasqal_expression_evaluate): For case
  1766. RASQAL_EXPR_LT, RASQAL_EXPR_GT, RASQAL_EXPR_LE, RASQAL_EXPR_GE -
  1767. invert the test for the result of rasqal_literal_compare test as
  1768. it was totally backwards for ints and doubles.
  1769. * rasqal/rasqal_literal.c (rasqal_literal_compare): Return correct
  1770. <0, 0, >0 for integers and doubles. It was formerly negative the
  1771. right result.
  1772. * rasqal/rasqal_internal.h: Added struct rasqal_query_result_row
  1773. internal for now. rasqal_query_results gains field row for use as
  1774. the current result row when streaming results.
  1775. * rasqal/tests/sparql/check-sparql: tidy messages
  1776. * rasqal/rasqal_query.c (rasqal_new_query_result_row): Just do
  1777. allocations here, and use rasqal_query_result_row_update to update
  1778. the contents from the current query engine result.
  1779. (rasqal_query_result_row_update): Added, updating the given row
  1780. with the current query engine result.
  1781. 2005-06-23 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1782. * rasqal/rasqal_literal.c (rasqal_literal_print): Fix formats for
  1783. decimal, datetime
  1784. * rasqal/rasqal_query.c (rasqal_query_results_write_xml_20041221,
  1785. rasqal_query_results_write_xml_result2,
  1786. rasqal_query_results_get_triple): Handle RASQAL_LITERAL_FLOAT (as
  1787. a double), RASQAL_LITERAL_DECIMAL (as a string) and
  1788. RASQAL_LITERAL_DATETIME (as a string).
  1789. * rasqal/rasqal_literal.c (rasqal_new_double_literal): Added,
  1790. based on rasqal_new_floating_literal.
  1791. (rasqal_new_floating_literal): Now a wrapper around the above.
  1792. (rasqal_literal_string_to_native): Promote xsd:float too.
  1793. (rasqal_free_literal, rasqal_literal_print,
  1794. rasqal_literal_as_boolean, rasqal_literal_as_integer,
  1795. rasqal_literal_as_floating, rasqal_literal_as_string,
  1796. rasqal_literal_compare, rasqal_literal_equals,
  1797. rasqal_literal_as_node): Handle RASQAL_LITERAL_FLOAT (as a
  1798. double), RASQAL_LITERAL_DECIMAL (as a string) and
  1799. RASQAL_LITERAL_DATETIME (as a string).
  1800. * rasqal/rasqal_redland.c: Use RASQAL_LITERAL_DOUBLE instead of
  1801. RASQAL_LITERAL_FLOATING
  1802. * rasqal/sparql_lexer.l, rasqal/rdql_lexer.l,
  1803. rasqal/rasqal_expr.c: Replace rasqal_new_floating_literal with
  1804. rasqal_new_double_literal
  1805. * rasqal/rasqal_general.c: Added rasqal_xsd_float_uri URI
  1806. constant.
  1807. (rasqal_uri_init, rasqal_uri_finish): Init/free it.
  1808. * rasqal/rasqal_internal.h: Added rasqal_xsd_float_uri.
  1809. * rasqal/rasqal.h: Added RASQAL_LITERAL_DOUBLE (formerly
  1810. RASQAL_LITERAL_FLOATING), RASQAL_LITERAL_FLOAT,
  1811. RASQAL_LITERAL_DECIMAL and RASQAL_LITERAL_DATETIME. float uses
  1812. the 'double floating' field. decimal and datetime use the string
  1813. field, for now. Deprecated rasqal_new_floating_literal Added
  1814. prototype for rasqal_new_double_literal
  1815. * rasqal/roqet.c: Added a -e/--exec option to execute a query
  1816. string directly. Usage updated to show the two forms.
  1817. 2005-06-22 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1818. * librdf/rdf_storage_mysql.c, rasqal/win32_rasqal_config.h: win32
  1819. fixes from John Barstow.
  1820. 2005-06-17 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1821. * librdf/rdf_hash.c: Ignore fwrite return values (gcc4 warning).
  1822. It's not like anyone ever checks fprintf, fputs either...
  1823. * rasqal/sparql_lexer.l, rasqal/rdql_lexer.l: Check for sscanf
  1824. failure and return errors for hex, floating, \u and \U constants.
  1825. * rasqal/rasqal_literal.c (rasqal_literal_string_to_native): Add
  1826. error handler and data args. Use it if sscanf fails on converting
  1827. a float string.
  1828. (rasqal_new_string_literal): If rasqal_literal_string_to_native
  1829. fails, tidy up and return NULL.
  1830. (rasqal_literal_expand_qname): if rasqal_literal_string_to_native
  1831. fails, tidy up and return 1.
  1832. * rasqal/rasqal_internal.h: Update rasqal_literal_string_to_native
  1833. prototype to take an error handler and data.
  1834. * rasqal/rasqal_general.c (rasqal_escaped_name_to_utf8_string):
  1835. Check for sscanf failure with \u and \U such as \uGHIJ which isn't
  1836. hex.
  1837. * librdf/rdf_storage_list.c: remove librdf_node_encode2
  1838. * librdf/redland.spec.in, rasqal/rasqal.spec.in,
  1839. raptor/raptor.spec.in: License not Copyright header
  1840. 2005-06-16 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1841. * librdf/rdf_storage.c, librdf/rdf_storage_hashes.c,
  1842. librdf/rdf_storage_list.c, librdf/rdf_storage_mysql.c,
  1843. librdf/rdf_storage_sqlite.c, librdf/rdf_storage_tstore.c,
  1844. librdf/rdf_stream.c, librdf/rdf_hash_bdb.c,
  1845. librdf/rdf_hash_memory.c, librdf/rdf_list.c,
  1846. librdf/rdf_parser_raptor.c, librdf/rdf_query.c,
  1847. librdf/rdf_query_rasqal.c, librdf/rdf_serializer_raptor.c,
  1848. librdf/rdf_statement.c, librdf/rdf_hash.c: Remove \n from the end
  1849. of log messages.
  1850. * librdf/rdf_node.c (librdf_node_encode): Give an error when a
  1851. node cannot be encoded due to string data being too long. Remove
  1852. legacy 0.9.12+ #if-defed out encoding code. It remains in
  1853. librdf_node_decode.
  1854. 2005-06-15 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1855. * rasqal/tests/sparql/check-sparql: updated messages
  1856. * rasqal/tests/sparql/regex/Makefile.am: 1 failure
  1857. * rasqal/tests/sparql/ExprEquals/Makefile.am: 4 failures. Add
  1858. explicit count.
  1859. * rasqal/tests/sparql/ExprBuiltins/Makefile.am: 4 failures
  1860. * rasqal/tests/sparql/Expr2/Makefile.am: 6 failures. Add explict
  1861. count.
  1862. * rasqal/tests/sparql/Expr1/Makefile.am: 2 failures. Add explict
  1863. count.
  1864. * rasqal/tests/sparql/ExprBuiltins/Makefile.am: manifest.ttl
  1865. * rasqal/configure.ac: Add tests/sparql regex, Expr1, Expr2,
  1866. ExprBuiltins, ExprEquals dirs
  1867. * rasqal/tests/sparql/ExprEquals/data-eq.ttl,
  1868. rasqal/tests/sparql/ExprEquals/manifest.n3,
  1869. rasqal/tests/sparql/ExprEquals/query-eq-1.rq,
  1870. rasqal/tests/sparql/ExprEquals/query-eq-2.rq,
  1871. rasqal/tests/sparql/ExprEquals/query-eq-3.rq,
  1872. rasqal/tests/sparql/ExprEquals/query-eq-4.rq,
  1873. rasqal/tests/sparql/ExprEquals/query-eq-5.rq,
  1874. rasqal/tests/sparql/ExprEquals/query-eq2-1.rq,
  1875. rasqal/tests/sparql/ExprEquals/query-eq2-2.rq,
  1876. rasqal/tests/sparql/ExprEquals/result-eq-1.ttl,
  1877. rasqal/tests/sparql/ExprEquals/result-eq-2.ttl,
  1878. rasqal/tests/sparql/ExprEquals/result-eq-3.ttl,
  1879. rasqal/tests/sparql/ExprEquals/result-eq-4.ttl,
  1880. rasqal/tests/sparql/ExprEquals/result-eq-5.ttl,
  1881. rasqal/tests/sparql/ExprEquals/result-eq2-1.ttl,
  1882. rasqal/tests/sparql/ExprEquals/result-eq2-2.ttl,
  1883. rasqal/tests/sparql/regex/Makefile.am,
  1884. rasqal/tests/sparql/regex/manifest.n3,
  1885. rasqal/tests/sparql/regex/regex-data-01.n3,
  1886. rasqal/tests/sparql/regex/regex-query-001.rq,
  1887. rasqal/tests/sparql/regex/regex-query-002.rq,
  1888. rasqal/tests/sparql/regex/regex-query-003.rq,
  1889. rasqal/tests/sparql/regex/regex-query-004.rq,
  1890. rasqal/tests/sparql/regex/regex-result-001.n3,
  1891. rasqal/tests/sparql/regex/regex-result-002.n3,
  1892. rasqal/tests/sparql/regex/regex-result-003.n3,
  1893. rasqal/tests/sparql/regex/regex-result-004.n3,
  1894. rasqal/tests/sparql/Expr2/data-1.ttl,
  1895. rasqal/tests/sparql/Expr2/data-2.ttl,
  1896. rasqal/tests/sparql/Expr2/manifest.n3,
  1897. rasqal/tests/sparql/Expr2/query-bev-1.rq,
  1898. rasqal/tests/sparql/Expr2/query-bev-2.rq,
  1899. rasqal/tests/sparql/Expr2/query-bev-3.rq,
  1900. rasqal/tests/sparql/Expr2/query-bev-4.rq,
  1901. rasqal/tests/sparql/Expr2/query-bev-5.rq,
  1902. rasqal/tests/sparql/Expr2/query-bev-6.rq,
  1903. rasqal/tests/sparql/Expr2/result-bev-1.ttl,
  1904. rasqal/tests/sparql/Expr2/result-bev-2.ttl,
  1905. rasqal/tests/sparql/Expr2/result-bev-3.ttl,
  1906. rasqal/tests/sparql/Expr2/result-bev-4.ttl,
  1907. rasqal/tests/sparql/Expr2/result-bev-5.ttl,
  1908. rasqal/tests/sparql/Expr2/result-bev-6.ttl,
  1909. rasqal/tests/sparql/ExprBuiltins/Makefile.am,
  1910. rasqal/tests/sparql/ExprBuiltins/data-builtin-1.ttl,
  1911. rasqal/tests/sparql/ExprBuiltins/manifest.ttl,
  1912. rasqal/tests/sparql/ExprBuiltins/q-blank-1.rq,
  1913. rasqal/tests/sparql/ExprBuiltins/q-datatype-1.rq,
  1914. rasqal/tests/sparql/ExprBuiltins/q-str-1.rq,
  1915. rasqal/tests/sparql/ExprBuiltins/q-str-2.rq,
  1916. rasqal/tests/sparql/ExprBuiltins/q-str-3.rq,
  1917. rasqal/tests/sparql/ExprBuiltins/q-str-4.rq,
  1918. rasqal/tests/sparql/ExprBuiltins/q-uri-1.rq,
  1919. rasqal/tests/sparql/ExprBuiltins/result-blank-1.ttl,
  1920. rasqal/tests/sparql/ExprBuiltins/result-datatype-1.ttl,
  1921. rasqal/tests/sparql/ExprBuiltins/result-str-1.ttl,
  1922. rasqal/tests/sparql/ExprBuiltins/result-str-2.ttl,
  1923. rasqal/tests/sparql/ExprBuiltins/result-str-3.ttl,
  1924. rasqal/tests/sparql/ExprBuiltins/result-str-4.ttl,
  1925. rasqal/tests/sparql/ExprBuiltins/result-uri-1.ttl,
  1926. rasqal/tests/sparql/ExprEquals/Makefile.am,
  1927. rasqal/tests/sparql/Expr1/Makefile.am,
  1928. rasqal/tests/sparql/Expr1/data-1.ttl,
  1929. rasqal/tests/sparql/Expr1/expr-1-result.ttl,
  1930. rasqal/tests/sparql/Expr1/expr-1.rq,
  1931. rasqal/tests/sparql/Expr1/expr-2-result.ttl,
  1932. rasqal/tests/sparql/Expr1/expr-2.rq,
  1933. rasqal/tests/sparql/Expr1/expr-3-result.ttl,
  1934. rasqal/tests/sparql/Expr1/expr-3.rq,
  1935. rasqal/tests/sparql/Expr1/manifest.n3,
  1936. rasqal/tests/sparql/Expr2/Makefile.am,
  1937. rasqal/tests/sparql/Makefile.am: Import Expr1 Expr2 ExprBuiltins
  1938. ExprEquals regex from DAWG tests
  1939. 2005-06-14 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1940. * rasqal/rasqal_engine.c (rasqal_select_NULL_last_compare): Added
  1941. helper for removing duplicate select variables.
  1942. (rasqal_engine_assign_variables): Look for duplicate select
  1943. variables, warn about them and remove them by sorting and then
  1944. deleting NULL variables.
  1945. * rasqal/tests/sparql/syntax/Makefile.am: Added select-dup.rq
  1946. * rasqal/tests/sparql/syntax/select-dup.rq: Test for duplicates in
  1947. select
  1948. 2005-06-13 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1949. * rasqal/tests/sparql/examples/Makefile.am:
  1950. sparql-query-example-Testing-Values-isBlank now works
  1951. * rasqal/tests/sparql/survey/Makefile.am: survey-2 now works.
  1952. * rasqal/rasqal_query.c (rasqal_query_prepare): Call
  1953. rasqal_engine_merge_basic_graph_patterns
  1954. * rasqal/rasqal_engine.c
  1955. (rasqal_engine_join_basic_graph_patterns): Move the triples and
  1956. constraints from a source to a destination graph pattern.
  1957. (rasqal_engine_make_basic_graph_pattern): Use
  1958. rasqal_engine_join_basic_graph_patterns to merge: 1) a group of
  1959. all basic graph patterns 2) an optional group of all basic graph
  1960. patterns 3) a graph pattern with 1 sub-graph pattern Have to play
  1961. some games with graph pattern operators.
  1962. (rasqal_engine_merge_basic_graph_patterns): Use
  1963. rasqal_engine_join_basic_graph_patterns to merge all basic graph
  1964. patterns in a group into group of a single basic graph pattern of
  1965. all the triples and constraints.
  1966. * rasqal/rasqal_internal.h: Added prototypes for
  1967. rasqal_engine_join_basic_graph_patterns and
  1968. rasqal_engine_merge_basic_graph_patterns
  1969. * rasqal/rasqal_query.c (rasqal_query_execute): For ordering
  1970. results, directly use rasqal_engine_get_next_result to avoid doing
  1971. limit and offset checks too early. Start off from result_count 1.
  1972. (rasqal_query_results_next): For ordered results, handle limit and
  1973. offset with a loop and a check with
  1974. rasqal_engine_check_limit_offset. For streaming results, move
  1975. check code to rasqal_engine_check_limit_offset and use it.
  1976. (rasqal_query_results_get_bindings,
  1977. rasqal_query_results_get_binding_value,
  1978. rasqal_query_results_get_binding_value_by_name): For ordered
  1979. results, use result_count-1 as an index.
  1980. * rasqal/rasqal_engine.c (rasqal_engine_check_limit_offset): Added
  1981. to check the current query result is in the range specified by
  1982. limit and offset
  1983. * rasqal/rasqal_internal.h: Added prototype for
  1984. rasqal_engine_check_limit_offset
  1985. 2005-06-12 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1986. * raptor/raptor_rss.c: update for INN parsedate
  1987. * raptor/configure.ac: Look for parsedate in libINN
  1988. 2005-06-11 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1989. * raptor/Makefile.am: Add parsedate.y to EXTRA_DIST
  1990. * raptor/configure.ac: Better check for parsedate function
  1991. * raptor/raptor_rss.c: Add the time includes for AC_HEADER_TIME
  1992. * raptor/configure.ac: Add the standard AC_HEADER_TIME checks.
  1993. * raptor/raptor_rss.c: Turn rss091:date into dc:date using a date
  1994. parsing function PARSEDATE_FUNCTION to decode it and strftiem to
  1995. make the new ISO format.
  1996. * raptor/configure.ac: Get date parsing code from parsedate, curl
  1997. curl_getdate or raptor parsedate if neither is available.
  1998. * raptor/Makefile.am: Add parsedate.c if PARSEDATE defined Build
  1999. parsedate.c from parsedate.y
  2000. * raptor/parsedate.y: Fixes to build in raptor
  2001. * raptor/parsedate.y: Imported from
  2002. http://cvs.php.net/php-src/ext/standard/parsedate.y
  2003. 2005-06-10 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2004. * librdf/win32_rdf_config.h, configure.ac: Bumped version to 1.0.3
  2005. * Snapshotted redland_1_0_2 for 1.0.2 release
  2006. * raptor/raptor_rss.c: Added Suzan Foster to copyright
  2007. 2005-06-09 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2008. * configure.ac: raptor min 1.4.4 (same as rasqal) rasqal min
  2009. 0.9.10
  2010. * rasqal/: Snapshotted rasqal_0_9_10 for 0.9.10 release
  2011. * rasqal/tests/sparql/ValueTesting/Makefile.am:
  2012. extendedType-eq-pass passes
  2013. * rasqal/rasqal_query.c (rasqal_new_query_result_row): Added
  2014. offset to store original sort order in case it is needed to order
  2015. two identical literals.
  2016. (rasqal_query_result_row_print): Print offset.
  2017. (rasqal_engine_query_results_compare): Renamed from
  2018. rasqal_engine_query_results_sort. Lots more debug messages and
  2019. checks. Order NULL literals before other types.
  2020. (rasqal_query_execute): Pass result offset into
  2021. rasqal_new_query_result_row.
  2022. * rasqal/rasqal_literal.c (rasqal_literal_compare): Make
  2023. comparison stable for URIs and datatyped strings - use strcmp on
  2024. string values of URIs.
  2025. * rasqal/tests/sparql/sort/Makefile.am: sort-3 works
  2026. * rasqal/librasqal.3: Updates for 0.9.10
  2027. 2005-06-08 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2028. * rasqal/win32_rasqal_config.h: Undefine OPTIONAL as something in
  2029. win32 defines it.
  2030. * rasqal/sparql_parser.y, rasqal/roqet.c, rasqal/rasqal_query.c,
  2031. rasqal/rasqal_internal.h, rasqal/rasqal_graph_pattern.c,
  2032. rasqal/rasqal_engine.c: Rename rasqal_graph_pattern_operator
  2033. variables called 'operator' to 'op' for C++. Other casts for C++
  2034. * rasqal/rasqal_internal.h: Added RASQAL_DEPRECATED_WARNING to
  2035. generate a rasqal warning once only.
  2036. * rasqal/sparql_parser.y (OrderCondition): Use
  2037. RASQAL_DEPRECATED_WARNING to explain ASC[] and DESC[] have been
  2038. replaced.
  2039. * rasqal/sparql_parser.y (OrderCondition): Use
  2040. RASQAL_EXPR_ORDER_COND_ASC or DESC not NONE which is deleted.
  2041. * rasqal/rasqal_query.c, rasqal/rasqal_expr.c, rasqal/rasqal.h:
  2042. Deleted RASQAL_EXPR_ORDER_COND_NONE
  2043. * rasqal/rasqal_query.c (rasqal_engine_query_results_sort): If
  2044. result is 0 at the end, use the difference between the object
  2045. pointers to create a stable sort when duplicates occur.
  2046. * rasqal/Makefile.am: Do not build rasqal_xsd_datatypes_test
  2047. unless RASQAL_DATATYPES makefile conditional is enabled.
  2048. * rasqal/configure.ac: Add makefile conditional RASQAL_DATATYPES
  2049. true when datatypes enabled.
  2050. * rasqal/rasqal.pc.in: Add PKGCONFIG_REQUIRES, PKGCONFIG_LIBS and
  2051. PKGCONFIG_CFLAGS
  2052. * rasqal/configure.ac: Tidy specification of min versions Added
  2053. pkgconfig specific additions: +PKGCONFIG_REQUIRES, PKGCONFIG_LIBS
  2054. and PKGCONFIG_CFLAGS substituted into rasqal.pc.in Add PCRE
  2055. cflags, libs to PKGCONFIG cflags/libs when used. Add libxml-2.0
  2056. to PKGCONFIG requires when used.
  2057. * raptor/: Snapshotted raptor_1_4_7 for 1.4.7 release
  2058. * raptor/libraptor.3: Note no changes in 1.4.6 and 1.4.7
  2059. * rasqal/rasqal_query.c (rasqal_query_execute): When sorting, set
  2060. finished flag if there are no results.
  2061. (rasqal_query_results_next): When sorting, set finished flag if
  2062. match or exceed number of results.
  2063. (rasqal_query_results_get_binding_value,
  2064. rasqal_query_results_get_binding_value_by_name): When sorting, set
  2065. finished flag if current row is beyond results.
  2066. 2005-06-07 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2067. * raptor/raptor_serialize_rdfxmla.c
  2068. (raptor_new_qname_from_resource): Fail to split predicate if
  2069. entire uri is an XML name - it's probably not an absolute URI.
  2070. * raptor/raptor_serialize.c (raptor_rdfxml_serialize_statement):
  2071. Fail to split predicate if entire uri is an XML name - it's
  2072. probably not an absolute URI.
  2073. * raptor/raptor_namespace.c
  2074. (raptor_namespaces_find_namespace_by_uri): Return NULL if ns_uri
  2075. is NULL.
  2076. * rasqal/tests/sparql/ValueTesting/extendedType-ne-fail.rq,
  2077. rasqal/tests/sparql/ValueTesting/extendedType-eq-pass-result.n3:
  2078. Update to DAWG cvs
  2079. * rasqal/tests/sparql/ValueTesting/extendedType-eq-pass-result.n3:
  2080. delete results from extendedType-eq-pass-result.n3
  2081. * rasqal/tests/sparql/ValueTesting/Makefile.am: 2 fail
  2082. * rasqal/configure.ac: Added tests/sparql/ValueTesting
  2083. * rasqal/tests/sparql/Makefile.am,
  2084. rasqal/tests/sparql/ValueTesting/Makefile.am,
  2085. rasqal/tests/sparql/ValueTesting/extendedType-0.n3,
  2086. rasqal/tests/sparql/ValueTesting/extendedType-eq-pass-result.n3,
  2087. rasqal/tests/sparql/ValueTesting/extendedType-eq-pass.rq,
  2088. rasqal/tests/sparql/ValueTesting/extendedType-ne-fail-result.n3,
  2089. rasqal/tests/sparql/ValueTesting/extendedType-ne-fail.rq,
  2090. rasqal/tests/sparql/ValueTesting/manifest.n3: Added ValueTesting
  2091. * rasqal/rasqal_engine.c (rasqal_engine_make_basic_graph_pattern):
  2092. Allow OPTIONAL to gather up inner basic graph patterns. Print
  2093. operator type when debugging.
  2094. * rasqal/rasqal_engine.c (rasqal_engine_make_basic_graph_pattern):
  2095. More debug explanations of why merging/not merging. Only work on
  2096. a GROUP graph pattern.
  2097. * rasqal/rasqal_query.c (rasqal_new_query, rasqal_free_query):
  2098. Init/free query->results_sequence. Added internal
  2099. rasqal_query_result_row
  2100. (rasqal_new_query_result_row): Added to make a row out from a copy
  2101. of all of the values of the current query result including the
  2102. values of the ordering expressions for this row.
  2103. (rasqal_free_query_result_row): Added to free a row.
  2104. (rasqal_query_result_row_print): Added to print a row.
  2105. (rasqal_engine_query_results_sort): Sequence helper function to do
  2106. the query results ordering using rasqal_literal_compare.
  2107. (rasqal_query_execute): If an ordering condition sequence is
  2108. present, gather all the results, order them and store them in
  2109. query->results_sequence.
  2110. (rasqal_query_results_next, rasqal_query_results_get_bindings,
  2111. rasqal_query_results_get_binding_value,
  2112. rasqal_query_results_get_binding_value_by_name): Handle getting
  2113. ordered result values from query->results_sequence.
  2114. * rasqal/rasqal_expr.c (rasqal_expression_evaluate): Return the
  2115. expression argumetn for ordering conditions.
  2116. * rasqal/tests/sparql/sort/Makefile.am: Fail 4 now it does
  2117. something
  2118. * rasqal/tests/sparql/check-sparql: Handle sorted results by not
  2119. sorting, and unsorted results by sorting. Clear?
  2120. * rasqal/rasqal_internal.h: rasqal_query structure gains internal
  2121. results_sequence
  2122. * rasqal/rasqal_literal.c (rasqal_literal_as_node): Handle unbound
  2123. variable values.
  2124. * rasqal/librasqal.3: rasqal_query_results_write: Note 2005-05-27
  2125. WD and add format uris
  2126. * rasqal/rasqal_query.c (rasqal_query_results_write): Note
  2127. 2005-05-27 WD and add format uris
  2128. * rasqal/sparql_parser.y (PatternElementsList 2): Added debugging.
  2129. * rasqal/sparql_parser.y (PatternElementsList): Doesn't need mygp
  2130. 2005-06-06 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2131. * raptor/raptor_rss.c (raptor_rss_emit): Fix crash when no RSS
  2132. channel is present (Suzan Foster)
  2133. 2005-06-04 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2134. * rasqal/rasqal_engine.c: wrods
  2135. * rasqal/rasqal_engine.c (rasqal_engine_execute_init): Update the
  2136. hack modification to report it with a debug dump after, and set
  2137. top graph pattern operator to GROUP
  2138. * rasqal/sparql_parser.y (PatternElementsList): Set graph pattern
  2139. operator to GROUP bydefault.
  2140. * rasqal/configure.ac: Simplify libxml check Add message/report
  2141. for datatypes support
  2142. * rasqal/configure.ac: Check for libxml2, add xml2-config and
  2143. xmlschema header files. Added --enable-datatypes method to enable
  2144. linking libxml for datatypes.
  2145. * rasqal/rasqal_xsd_datatypes.c: Protect xml includes with
  2146. HAVE_LIBXML_XMLSCHEMAS_H
  2147. 2005-06-03 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2148. * rasqal/Makefile.am: Remove XML2_CONFIG
  2149. 2005-06-02 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2150. * rasqal/rasqal_engine.c (rasqal_engine_make_basic_graph_pattern):
  2151. Change resulting graph parent pattern operator to BASIC if it was
  2152. GROUP
  2153. * rasqal/tests/sparql/SyntaxFull/Makefile.am: 0 failures now
  2154. * rasqal/sparql_parser.y: Document the 12 shift/reduce conflicts
  2155. now.
  2156. (PropertyListOpt): Docs.
  2157. (PropertyListTail): Use PropertyListOpt to allow ending on a ';'
  2158. * rasqal/sparql_parser.y (AskClause): ASK is done
  2159. * rasqal/tests/sparql/SyntaxFull/Makefile.am: Update lists
  2160. * rasqal/tests/sparql/SyntaxFull/syntax-forms-03.arq: Remove
  2161. unused tests
  2162. * rasqal/tests/sparql/SyntaxFull/syntax-query-pat-01.rq,
  2163. rasqal/tests/sparql/SyntaxFull/syntax-query-pat-02.rq,
  2164. rasqal/tests/sparql/SyntaxFull/syntax-query-pat-03.rq,
  2165. rasqal/tests/sparql/SyntaxFull/syntax-query-pat-04.rq,
  2166. rasqal/tests/sparql/SyntaxFull/syntax-query-pat-05.rq: Delete old
  2167. tests
  2168. * rasqal/tests/sparql/SyntaxFull/syntax-bnodes-09.rq,
  2169. rasqal/tests/sparql/SyntaxFull/syntax-bnodes-08.rq: Remove unused
  2170. tests
  2171. * rasqal/tests/sparql/SyntaxFull/Makefile.am: Added
  2172. check-sparql-correct target
  2173. * rasqal/tests/sparql/SyntaxFull/syntax-query-pat-05.rq,
  2174. rasqal/tests/sparql/SyntaxFull/syntax-bnodes-08.rq,
  2175. rasqal/tests/sparql/SyntaxFull/syntax-bnodes-09.rq,
  2176. rasqal/tests/sparql/SyntaxFull/syntax-query-pat-01.rq,
  2177. rasqal/tests/sparql/SyntaxFull/syntax-query-pat-02.rq,
  2178. rasqal/tests/sparql/SyntaxFull/syntax-query-pat-03.rq,
  2179. rasqal/tests/sparql/SyntaxFull/syntax-query-pat-04.rq: Added
  2180. syntax-bnodes-08.rq syntax-bnodes-09.rq syntax-query-pat-01.rq
  2181. syntax-query-pat-02.rq syntax-query-pat-03.rq
  2182. syntax-query-pat-04.rq syntax-query-pat-05.rq tests
  2183. * rasqal/tests/sparql/SyntaxFull/Makefile.am: 3 to 1 failure
  2184. * rasqal/rasqal_xsd_datatypes.c: Pull in libxml schema headers
  2185. * rasqal/sparql_parser.y (OrderClauseOpt, LimitClauseOpt,
  2186. OffsetClauseOpt): Check that ORDER BY is not used with ASK, LIMIT
  2187. or OFFSET rather than put in grammar now.
  2188. (OrderCondition): Allow FunctionCall, Var and '(' Expression ')'
  2189. after rq23 latest.
  2190. * rasqal/Makefile.am: Added XML2_CONFIG for datatypes testing
  2191. * rasqal/rasqal_xsd_datatypes.c (main): run rasqal_init/finish.
  2192. * rasqal/sparql_parser.y: Document 6 shift/reduce
  2193. * rasqal/tests/sparql/SyntaxFull/Makefile.am: from 4 to 3 failures
  2194. * rasqal/sparql_lexer.l: Ensure <> does not get grabbed as LT GT
  2195. * rasqal/tests/sparql/SyntaxFull/Makefile.am: from 8 to 4 failures
  2196. * rasqal/sparql_parser.y: Added PropertyListOpt as an outer triple
  2197. in SPARQL can be just a subject [ :a :b ]
  2198. (ObjectTail): Added to tidy up Object lists, remove duplicates.
  2199. * rasqal/rasqal_graph_pattern.c (rasqal_graph_pattern_print): No
  2200. \n after (
  2201. * rasqal/sparql_parser.y (GraphPattern): Do not set graph pattern
  2202. operator here.
  2203. (PropertyListTail): Added after last WD grammer to aid in allowing
  2204. a trailing ;
  2205. (PatternElementsList): Set default operator to basic.
  2206. (PropertyList): Use PropertyListTail
  2207. (PropertyList): Added
  2208. (VarOrBnodeOrURI): Moved '[' ']' to BlankNode.
  2209. (BlankNode): Allow '[' ']' in all cases.
  2210. * librdf/rdf_stream.c (librdf_free_stream): Only call
  2211. finished_method if it exists. This likely caused crashes with
  2212. empty iterators
  2213. 2005-06-01 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2214. * rasqal/tests/sparql/SyntaxFull/Makefile.am: crashes stopped
  2215. * rasqal/sparql_parser.y (VarOrBnodeOrURI): Added, used for
  2216. Predicate and allows explicit bnode or []
  2217. * rasqal/rasqal_graph_pattern.c (rasqal_graph_pattern_init): Add
  2218. init of current_graph_pattern field when there are sub-graph
  2219. patterns. Moved from rasqal_engine_execute_init.
  2220. * rasqal/rasqal_engine.c (rasqal_engine_execute_init): Move init
  2221. of current_graph_pattern field into rasqal_graph_pattern_init
  2222. * rasqal/tests/sparql/examples/ex11.2.3.1_0-result.n3,
  2223. rasqal/tests/sparql/examples/ex11.2.3.2_0-result.n3,
  2224. rasqal/tests/sparql/examples/ex11.2.3.5_0-result.n3,
  2225. rasqal/tests/sparql/examples/ex11_0-result.n3,
  2226. rasqal/tests/sparql/examples/ex11_1-result.n3: Updated examples
  2227. * rasqal/tests/sparql/sort/query-sort-6.rq,
  2228. rasqal/tests/sparql/sort/query-sort-5.rq,
  2229. rasqal/tests/sparql/sort/query-sort-4.rq,
  2230. rasqal/tests/sparql/sort/query-sort-3.rq,
  2231. rasqal/tests/sparql/sort/query-sort-2.rq: Use ASC() and DESC()
  2232. * rasqal/tests/sparql/sort/manifest.ttl: rdfs:comment
  2233. * rasqal/tests/sparql/SyntaxFull/Makefile.am: 10 failures
  2234. * rasqal/tests/sparql/SyntaxFull/Makefile.am: note latest failures
  2235. * rasqal/tests/sparql/SyntaxFull/Makefile.am: Added new tests
  2236. * rasqal/tests/sparql/SyntaxFull/manifest.ttl: Added tests
  2237. syntax-bnodes-0[567] syntax-limit-offset-0[789] and
  2238. syntax-order[06]
  2239. * rasqal/tests/sparql/SyntaxFull/syntax-limit-offset-07.rq,
  2240. rasqal/tests/sparql/SyntaxFull/syntax-limit-offset-08.rq,
  2241. rasqal/tests/sparql/SyntaxFull/syntax-limit-offset-09.rq: tests
  2242. for limit and offset
  2243. * rasqal/tests/sparql/SyntaxFull/syntax-bnodes-03.rq,
  2244. rasqal/tests/sparql/SyntaxFull/syntax-bnodes-04.rq,
  2245. rasqal/tests/sparql/SyntaxFull/syntax-bnodes-05.rq,
  2246. rasqal/tests/sparql/SyntaxFull/syntax-bnodes-06.rq,
  2247. rasqal/tests/sparql/SyntaxFull/syntax-bnodes-07.rq: More bnodes
  2248. forms
  2249. * rasqal/tests/sparql/SyntaxFull/syntax-order-02.rq,
  2250. rasqal/tests/sparql/SyntaxFull/syntax-order-03.rq,
  2251. rasqal/tests/sparql/SyntaxFull/syntax-order-04.rq,
  2252. rasqal/tests/sparql/SyntaxFull/syntax-order-05.rq,
  2253. rasqal/tests/sparql/SyntaxFull/syntax-order-06.rq: ASC/DESC using
  2254. () not []s
  2255. * rasqal/tests/sparql/examples/Makefile.am:
  2256. sparql-query-example-Testing-Values-RDFterm-equal now passes
  2257. * rasqal/sparql_parser.y (OrderCondition): Accept ASC() and DESC()
  2258. deprecating ASC[] and DESC[]
  2259. * rasqal/sparql_lexer.l: ASC and DESC are just the tokens, no [
  2260. * raptor/Makefile.am: Added ChangeLog.[2-5]
  2261. * raptor/ChangeLog: 2004 to ChangeLog.5
  2262. * raptor/raptor_rss.c (raptor_rss_parser_processNode): Copy
  2263. attribute value before storing in the item field.
  2264. 2005-05-31 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2265. * rasqal/roqet.c (roqet_graph_pattern_walk): Print graph pattern
  2266. operator
  2267. * rasqal/sparql_parser.y: Updates for graph pattern operators, not
  2268. flags.
  2269. (GraphPattern): Set group graph pattern operator.
  2270. (PatternElementsList): Start off with an unknown grpah pattern
  2271. operator, to catch missing cases.
  2272. (PatternElement): Set basic graph pattern operator.
  2273. (OptionalGraphPattern): Set optional graph pattern operator.
  2274. (GraphGraphPattern): Set graph graph pattern operator.
  2275. (UnionGraphPattern): Set union graph pattern operator.
  2276. * rasqal/rdql_parser.y (rasqal_rdql_query_engine_prepare): Make a
  2277. root basic graph pattern.
  2278. * rasqal/rasqal_engine.c (rasqal_engine_get_next_result): Print
  2279. the graph pattern operator and update to check for optional step
  2280. by operator.
  2281. (rasqal_engine_make_basic_graph_pattern): Fold in a set of
  2282. sub-graph patterns that are all basic graph patterns.
  2283. * rasqal/rasqal_graph_pattern.c
  2284. (rasqal_new_graph_pattern_from_sequence,
  2285. rasqal_graph_pattern_add_triples): Final argument is now a graph
  2286. pattern operator.
  2287. (rasqal_graph_pattern_order): Sort optionals by operator.
  2288. (rasqal_graph_pattern_init): Check for graph pattern operator.
  2289. (rasqal_graph_pattern_get_operator,
  2290. rasqal_graph_pattern_operator_as_string): Added.
  2291. (rasqal_graph_pattern_print): Print the graph pattern operator.
  2292. * rasqal/rasqal_query.c (rasqal_graph_pattern_get_flags):
  2293. Deprecated, always returns 0.
  2294. * rasqal/rasqal_internal.h:
  2295. Added operator field to rasqal_graph_pattern.
  2296. Change final argument of rasqal_new_graph_pattern_from_sequence and
  2297. rasqal_graph_pattern_add_triples to operator.
  2298. * rasqal/rasqal.h: Added rasqal_graph_pattern_operator
  2299. Deprecated rasqal_graph_pattern_get_flags
  2300. Added prototypes for rasqal_graph_pattern_get_operator and
  2301. rasqal_graph_pattern_operator_as_string
  2302. * rasqal/sparql_parser.y: Update grammar doc references to use
  2303. SPARQL Query Language for RDF, 19 April 2005
  2304. http://www.w3.org/TR/2005/WD-rdf-sparql-query-20050419/
  2305. 2005-05-29 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2306. * configure.ac, librdf/win32_rdf_config.h: Bumped version to 1.0.2
  2307. * Snapshotted redland_1_0_1 for 1.0.1 release
  2308. * librdf/rdf_storage_mysql.c: remove errbuff
  2309. * configure.ac: remove mysql -fno-common fix, breaks regular stuff
  2310. 2005-05-28 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2311. * librdf/rdf_storage_mysql.c: Define mysql common symbol errbuff
  2312. if NEED_MYSQL_ERRBUFF defined.
  2313. * configure.ac: If -fno-common is in the PIC compile args, define
  2314. the mysql errbuff common symbol.
  2315. * configure.ac: Only look for BDB in /sw (fink) if /sw/bin is in
  2316. the path.
  2317. 2005-05-25 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2318. * raptor/raptor_xslt.c: docs
  2319. 2005-05-24 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2320. * rasqal/roqet.c: Removed deprecated flags -f and -o
  2321. * rasqal/rasqal_expr.c (rasqal_triple_set_flags,
  2322. rasqal_triple_get_flags): Removed deprecated functions.
  2323. * rasqal/rasqal_engine.c (rasqal_new_triples_match): Removed
  2324. rasqal_triples_source deprecated factory method new_triples_match.
  2325. * rasqal/rasqal_query.c:
  2326. (rasqal_new_query, rasqal_free_query,
  2327. rasqal_query_add_data_graph): Removed rasqal_query deprecated list
  2328. sources.
  2329. (rasqal_query_add_source, rasqal_query_get_source_sequence,
  2330. rasqal_query_get_source, rasqal_query_add_constraint,
  2331. rasqal_query_get_constraint_sequence,
  2332. rasqal_query_get_constraint): Removed deprecated functions.
  2333. * rasqal/rasqal_internal.h: Removed rasqal_query deprecated list
  2334. sources.
  2335. * rasqal/rasqal.h: Removed deprecated functions:
  2336. rasqal_query_add_source, rasqal_query_get_source_sequence,
  2337. rasqal_query_get_source, rasqal_query_add_constraint,
  2338. rasqal_query_get_constraint_sequence, rasqal_query_get_constraint,
  2339. rasqal_triple_set_flags and rasqal_triple_get_flags. Removed
  2340. rasqal_triples_source deprecated factory method new_triples_match
  2341. * rasqal/rasqal_engine.c (rasqal_set_triples_source_factory): Does
  2342. not need RASQAL_API in the C
  2343. * rasqal/rasqal_engine.c (rasqal_reset_triple_meta): Removed code
  2344. that will never be called, freeing triples_match field for the
  2345. second time
  2346. * rasqal/rasqal_engine.c (rasqal_engine_expand_wildcards): Added,
  2347. containing code from rasqal_engine_assign_variables to handle
  2348. wildcard *. Handle remaining query verbs.
  2349. (rasqal_engine_assign_variables): Moved wildcard handling code
  2350. above.
  2351. (rasqal_engine_prepare): Call rasqal_engine_expand_wildcards.
  2352. 2005-05-23 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2353. * librdf/Makefile.am: Added COMPILE_LINK rule for making tests in
  2354. one step.
  2355. * configure.ac: syntax - delete ;s
  2356. * librdf/rdf_digest_sha1.c (SHA1Transform): Take const buffer
  2357. * librdf/rdf_digest_md5.c: duplicate const
  2358. * librdf/rdf_hash.c: docs
  2359. * Redland.i: Added digest and hash classes to API emphasising
  2360. methods for creating hex-strings digests of strings and making
  2361. hashes for model options.
  2362. * librdf/rdf_uri.c (librdf_uri_get_digest): No need to call
  2363. librdf_digest_init as the constructor does that.
  2364. * librdf/rdf_digest.c: Docs.
  2365. (librdf_new_digest_from_factory): Call init factory method here.
  2366. (librdf_digest_init): Note this is a re-init.
  2367. * librdf/rdf_digest.c (librdf_digest_update_string): Added.
  2368. * librdf/rdf_digest.h: Added prototype for
  2369. librdf_digest_update_string
  2370. * librdf/rdf_digest_sha1.c, librdf/rdf_digest_openssl.c,
  2371. librdf/rdf_digest_md5.c: Update the factory method to take a const
  2372. buffer.
  2373. * librdf/rdf_digest.c (librdf_digest_get_digest_length): Added.
  2374. * librdf/rdf_digest.h: Factory method update takes const buffer.
  2375. Reduced public API removing methods mentioning
  2376. librdf_digest_factory. Added prototype for
  2377. librdf_digest_get_digest_length
  2378. * librdf/rdf_hash.c (librdf_hash_get_as_boolean,
  2379. librdf_hash_get_as_long librdf_hash_get_del): Take const key args
  2380. * librdf/rdf_hash.h: Make librdf_hash_get_as_boolean,
  2381. librdf_hash_get_as_long and librdf_hash_get_del take const key
  2382. args
  2383. * librdf/rdf_hash.c:
  2384. (librdf_new_hash_from_string,
  2385. librdf_new_hash_from_array_of_strings): return NULL if inner
  2386. constructor fails.
  2387. * librdf/rdf_hash.h: Make public API smaller; do not mention
  2388. librdf_hash_factory or librdf_hash_datum. Added prototypes for
  2389. new public constructors librdf_new_hash_from_string and
  2390. librdf_new_hash_from_array_of_strings
  2391. * librdf/rdf_hash.c:
  2392. (librdf_new_hash_from_string,
  2393. librdf_new_hash_from_array_of_strings): Added constructors around
  2394. internal functions for use by public API.
  2395. (librdf_hash_from_array_of_strings): Take const array.
  2396. (main): Update for const args.
  2397. * librdf/win32/README.txt: Add win32 README.txt
  2398. 2005-05-22 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2399. * raptor/configure.ac: Test for libxslt/xslt.h as well as library,
  2400. and disable if missing.
  2401. 2005-05-20 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2402. * librdf/Makefile.am, librdf/rdf_internal.h, librdf/librdf.h:
  2403. Add rdf_digest.h and rdf_hash.h to public includes.
  2404. * librdf/rdf_digest.h, librdf/rdf_hash.h:
  2405. Make API public, declare with REDLAND_API
  2406. * librdf/rdf_digest.h, librdf/rdf_hash.h:
  2407. Moved class init/finish methods into internal
  2408. * librdf/rdf_query.c: (main) option of memory/disk test and comments
  2409. * librdf/rdf_model.c: (main) comments
  2410. * librdf/Makefile.am: clean any sqlite test file
  2411. * librdf/rdf_storage_sqlite.c: The change below
  2412. fixes Issue #0000006 - http://bugs.librdf.org/mantis/view.php?id=6
  2413. * librdf/rdf_storage_sqlite.c (librdf_storage_sqlite_serialise):
  2414. Do not free query stringbuffer before reporting error.
  2415. (librdf_storage_sqlite_serialise_next_statement): Finish if
  2416. failed.
  2417. (librdf_storage_sqlite_find_statements): Restructure need_and code
  2418. and fix AND string count. Do not free query stringbuffer before
  2419. reporting error.
  2420. (librdf_storage_sqlite_find_statements_end_of_stream): Do not read
  2421. an extra statement when testing for end, only if there is no
  2422. current statement.
  2423. (librdf_storage_sqlite_find_statements_next_statement): Finish if
  2424. failed.
  2425. (librdf_storage_sqlite_context_serialise): Do not free query
  2426. stringbuffer before reporting error.
  2427. (librdf_storage_sqlite_context_serialise_end_of_stream): Do not
  2428. read an extra context when testing for end, only if there is no
  2429. current context.
  2430. (librdf_storage_sqlite_context_serialise_next_statement): Finish
  2431. if failed.
  2432. (librdf_storage_sqlite_get_contexts_is_end): Do not read an extra
  2433. context when testing for end, only if there is no current context.
  2434. (librdf_storage_sqlite_get_contexts_next_method): Finish if
  2435. failed.
  2436. (librdf_storage_sqlite_get_contexts): Do not free query
  2437. stringbuffer before reporting error.
  2438. * librdf/rdf_storage_sqlite.c
  2439. (librdf_storage_sqlite_serialise_end_of_stream): Do not read an
  2440. extra statement when testing for end, only if there is no current
  2441. statement.
  2442. * configure.ac: Edit mysql_config --cflags output to prevent it
  2443. defining -O<n> Edit *CFLAGS and *CPPFLAGS to delete -O options
  2444. just before writing files.
  2445. 2005-05-19 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2446. * rasqal/win32_rasqal_config.h, rasqal/configure.ac:
  2447. Bumped version to 0.9.10
  2448. * Snapshotted rasqal_0_9_9 for 0.9.9 release
  2449. * rasqal/rasqal_engine.c (rasqal_new_triples_match): Restore but
  2450. deprecate rasqal_triples_source factory method new_triples_match
  2451. for now.
  2452. * rasqal/rasqal.h: Restore rasqal_triples_source factory method
  2453. new_triples_match for now.
  2454. * Makefile.am: added redland.sln
  2455. * redland.sln: Import configuration from John Barstow
  2456. * configure.ac: Added librdf/win32 subdir
  2457. * librdf/Makefile.am: Added win32 subdir
  2458. * librdf/win32/msvc.def, librdf/win32/Makefile.am,
  2459. librdf/win32/librdf.vcproj, raptor/win32/Makefile.am,
  2460. rasqal/win32/README.txt, rasqal/win32/Makefile.am,
  2461. rasqal/win32/rasqal.vcproj, raptor/win32/rapper.vcproj,
  2462. raptor/win32/raptor.sln, raptor/win32/raptor.vcproj,
  2463. raptor/win32/raptortest.vcproj: Import configuration from John
  2464. Barstow
  2465. * raptor/win32/README.txt: updates
  2466. * librdf/rdf_internal.h: Added REDLAND_INLINE
  2467. * librdf/librdf.h: REDLAND_API before public statics
  2468. * librdf/win32_rdf_config.h: Added REDLAND_INLINE Defines updated
  2469. for win32 (John Barstow)
  2470. * librdf/rdf_model.c (librdf_model_supports_contexts): Use
  2471. REDLAND_INLINE
  2472. * raptor/win32_raptor_config.h: Switch to libxml
  2473. * rasqal/rasqal.h: RASQAL_API before public statics
  2474. * rasqal/win32_rasqal_config.h: Added #define YY_NO_UNISTD_H
  2475. * raptor/win32_raptor_config.h: Spelling: RAPTOR_INLINE
  2476. * raptor/raptor_general.c (raptor_init): Added conditionals around
  2477. serializers: RAPTOR_SERIALIZER_RDFXML/NTRIPLES/RDFXML_ABBREV
  2478. * raptor/Makefile.am: Added conditionally included
  2479. RAPTOR_SERIALIZER_RDFXML_ABBREV
  2480. * raptor/configure.ac: Added --enable-serializers=LIST and
  2481. serializers to summary. Reformat other help messages to match.
  2482. 2005-05-18 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2483. * raptor/turtle_parser.y: (main) Move filename here
  2484. * raptor/configure.ac: Add proper check for libxslt
  2485. * rasqal/sparql_parser.y: Add print handler to all sequences, not
  2486. conditional on debugging.
  2487. * configure.ac, rasqal/configure.ac, raptor/configure.ac: default
  2488. memory-signing no
  2489. * configure.ac: usage formatting
  2490. * configure.ac: Added --with-memory-sign default no. DANGER: When
  2491. enabled, memory returned to bindings which is freed, such as the
  2492. node/uri/.._to_string() memory is off by 4 bytes from the pointer
  2493. that free() expects. Typically causes crashes.
  2494. * librdf/rdf_log.h: Added LIBRDF_FROM_MEMORY
  2495. * librdf/rdf_init.c (librdf_sign_malloc, librdf_sign_calloc,
  2496. librdf_sign_realloc, librdf_sign_free): Added for signed memory
  2497. checking.
  2498. * librdf/rdf_internal.h: Added signed memory functions
  2499. * librdf/rdf_storage_sqlite.c, librdf/rdf_storage_mysql.c,
  2500. librdf/rdf_storage_list.c, librdf/rdf_storage_hashes.c,
  2501. librdf/rdf_storage.c: Revert returning an empty iterator on
  2502. failure to create an inner iterator, which is caused only by out
  2503. of memory.
  2504. * librdf/rdf_storage_list.c (librdf_storage_list_serialise):
  2505. Return empty stream if list iterator ends.
  2506. (librdf_storage_list_context_serialise): Return empty stream if
  2507. contexts hash iterator ends.
  2508. * librdf/rdf_storage_hashes.c
  2509. (librdf_storage_hashes_serialise_common): Return empty stream if
  2510. hash iterator ends.
  2511. (librdf_storage_hashes_context_serialise): Return empty stream if
  2512. contexts hash iterator ends.
  2513. * librdf/rdf_model.c (librdf_model_find_statements_in_context):
  2514. Return empty stream if context_as_stream returns nULL
  2515. * librdf/rdf_stream.c (librdf_new_empty_stream): Added helper for
  2516. empty stream.
  2517. * librdf/rdf_stream.h: Added prototype for librdf_new_empty_stream
  2518. * librdf/rdf_storage_sqlite.c
  2519. (librdf_storage_sqlite_get_contexts): Return an empty iterator
  2520. when the iterator fails to be constructed.
  2521. * librdf/rdf_storage_mysql.c (librdf_storage_mysql_get_context):
  2522. Return an empty iterator when the contexts returns NULL
  2523. immediately or the iterator fails to be constructed.
  2524. * librdf/rdf_storage_list.c (librdf_storage_list_get_contexts):
  2525. Return an empty iterator when the hashes keys iterator returns
  2526. NULL or the hashes iterator fails to be constructed.
  2527. * librdf/rdf_storage_hashes.c
  2528. (librdf_storage_hashes_node_iterator_create): Return an empty
  2529. iterator when the hahes node iterator returns NULL.
  2530. * librdf/rdf_storage.c
  2531. (librdf_storage_node_stream_to_node_create): Return an empty
  2532. iterator when find_statements returns NULL.
  2533. * librdf/rdf_iterator.c (librdf_new_empty_iterator): Added helper
  2534. to make an always-empty iterator.
  2535. * librdf/rdf_iterator.h: Added prototype for
  2536. librdf_new_empty_iterator
  2537. * librdf/rdf_query_rasqal.c (redland_node_to_rasqal_literal): Use
  2538. rasqal_alloc_memory to make things for inside rasqal.
  2539. * rasqal/rasqal_general.c:
  2540. (rasqal_free_memory, rasqal_alloc_memory, rasqal_calloc_memory):
  2541. Added, for allocating and freeingmemory inside rasqal.
  2542. * rasqal/rasqal.h: Added prototypes for rasqal_free_memory,
  2543. rasqal_alloc_memory and rasqal_calloc_memory
  2544. * rasqal/librasqal.3: Updates for 0.9.9
  2545. * rasqal/rasqal_query.c: thethe
  2546. * utils/rdfproc.c, configure.ac, rasqal/roqet.c,
  2547. rasqal/configure.ac, raptor/rdfdump.c, raptor/configure.ac: Bugs
  2548. to http://bugs.librdf.org/
  2549. * rasqal/sparql_lexer.l (NCCHAR): Add _ which the comment says but
  2550. wasn't actually done.
  2551. (NCCHARV): Adjust comment to match regex
  2552. 2005-05-17 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2553. * raptor/raptor_identifier.c, raptor/raptor_parse.c,
  2554. raptor/raptor_serialize_rdfxmla.c, raptor/raptor_serialize.c,
  2555. raptor/raptor_sax2.c, raptor/raptor_rdfxml.c: Casts for
  2556. RAPTOR_FREE
  2557. * librdf/rdf_init.c (librdf_world_open): Init query after parser
  2558. and explain why.
  2559. * librdf/rdf_query_rasqal.c (rasqal_redland_init_triples_match):
  2560. Renamed from rasqal_redland_new_triples_match. Update for rasqal
  2561. 0.9.9. Takes an existing rasqal_triples_match structure and
  2562. returns non-0 on failure.
  2563. * rasqal/rasqal_redland.c (rasqal_redland_init_triples_match):
  2564. Renamed from rasqal_redland_new_triples_match. Takes an existing
  2565. rasqal_triples_match structure and returns non-0 on failure.
  2566. * rasqal/rasqal_raptor.c (rasqal_raptor_init_triples_match):
  2567. Renamed from rasqal_raptor_new_triples_match. Takes an existing
  2568. rasqal_triples_match structure and returns non-0 on failure.
  2569. * rasqal/rasqal_engine.c (rasqal_new_triples_match): Call
  2570. init_triples_match factory method with an already alloced
  2571. rasqal_triples_match structure. Free it here on error.
  2572. * rasqal/rasqal.h: rasqal_triples_source factory method
  2573. new_triples_match changed to init_triples_match, taking an
  2574. initialised rtm field, returning a status.
  2575. * rasqal/rasqal_general.c, rasqal/rasqal_literal.c,
  2576. rasqal/rasqal.h, rasqal/rasqal_engine.c, rasqal/rasqal_expr.c:
  2577. Casts for RASQAL_FREE.
  2578. * raptor/configure.ac: usage message formatting
  2579. * rasqal/rdql_lexer.l, rasqal/sparql_lexer.l: Use
  2580. RASQAL_MALLOC/CALLOC/FREE
  2581. * rasqal/configure.ac: Added --with-memory-signing rasqal signing
  2582. memory debugging
  2583. * raptor/raptor_general.c (raptor_free_statement): Casts for
  2584. RAPTOR_FREE
  2585. * rasqal/rasqal_general.c (rasqal_sign_malloc, rasqal_sign_calloc,
  2586. rasqal_sign_realloc, rasqal_sign_free): Added rasqal signing
  2587. memory debugging trigged by RASQAL_MEMORY_SIGN.
  2588. * rasqal/rasqal_internal.h: Added rasqal signing memory debugging
  2589. trigged by RASQAL_MEMORY_SIGN
  2590. * rasqal/rasqal_query_test.c (main): Use RASQAL_MALLOC/FREE
  2591. * raptor/configure.ac: Added --with-memory-signing raptor signing
  2592. memory debugging Reformatted some other --with help messages.
  2593. * raptor/raptor_general.c (raptor_sign_malloc, raptor_sign_calloc,
  2594. raptor_sign_realloc, raptor_sign_free): Added raptor signing
  2595. memory debugging trigged by RAPTOR_MEMORY_SIGN.
  2596. * raptor/raptor_internal.h: Added raptor signing memory debugging
  2597. trigged by RAPTOR_MEMORY_SIGN
  2598. * raptor/n3_lexer.l: Use RAPTOR_MALLOC, RAPTOR_FREE
  2599. * raptor/n3_parser.y, raptor/turtle_parser.y (directive,
  2600. resource): Use RAPTOR_MALLOC, RAPTOR_FREE
  2601. * raptor/turtle_lexer.l: Use RAPTOR_MALLOC, RAPTOR_FREE
  2602. * raptor/rdfdiff.c:
  2603. (rdfdiff_new_file, rdfdiff_new_blank) Use RAPTOR_MALLOC rather
  2604. than strdup.
  2605. * raptor/raptor_www_curl.c (raptor_www_curl_header_callback): Use
  2606. RAPTOR_MALLOC on type field data.
  2607. * raptor/rdfdump.c: Add raptor_finish() before usage exit
  2608. 2005-05-14 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2609. * rasqal/sparql_parser.y (TriplesList): Do not lose triples
  2610. sequence after sequence join.
  2611. * rasqal/rasqal_expr.c: docs
  2612. 2005-05-13 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2613. * raptor/raptor_rss.c, rasqal/rasqal_query.c, rasqal/roqet.c,
  2614. rasqal/sparql_parser.y, rasqal/rasqal_expr.c: Casts for C++
  2615. * rasqal/sparql_parser.y (DefaultGraphClause, NamedGraphClause):
  2616. Free URI literal
  2617. * rasqal/sparql_parser.y: ItemList is now a raptor_sequence of
  2618. rasqal_formula.
  2619. (ItemList): Update to do that, copy over any underlying triples
  2620. (Collection): Walk the list of formula to create the RDF
  2621. collection triples.
  2622. * raptor/raptor_serialize_rdfxmla.c:
  2623. (raptor_rdfxmla_serialize_init,
  2624. raptor_rdfxmla_serialize_terminate): Init/free rdf_xml_literal_uri
  2625. for the rdf:XMLLiteral URI.
  2626. (raptor_rdfxmla_serialize_statement): Turn datatyped literals that
  2627. are rdf:XMLLiteral into inline XML, not escaped.
  2628. 2005-05-12 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2629. * raptor/raptor_serialize.c:
  2630. (raptor_rdfxml_serialize_init, raptor_rdfxml_serialize_terminate):
  2631. Init/free rdf_xml_literal_uri for the rdf:XMLLiteral URI.
  2632. (raptor_rdfxml_serialize_statement): Turn datatyped literals that
  2633. are rdf:XMLLiteral into inline XML, not escaped.
  2634. * rasqal/tests/sparql/survey/Makefile.am: survey-11 works
  2635. * rasqal/rasqal_engine.c (rasqal_engine_assign_variables): adjust
  2636. anon variables offsets to point to absolute index in full list of
  2637. variables (rasqal_query field variables)
  2638. * rasqal/sparql_parser.y (Triples): When predicate list is empty,
  2639. return subject formula.
  2640. * rasqal/sparql_parser.y (Triples): Protect when list is empty
  2641. * rasqal/sparql_parser.y (Triples): Copy along any triples from
  2642. subject formula.
  2643. * rasqal/rasqal_engine.c, rasqal/rasqal_query.c
  2644. (rasqal_query_prepare, rasqal_engine_execute_init): Move
  2645. rasqal_engine_make_basic_graph_pattern call to
  2646. rasqal_query_prepare after factory has prepared (parsed)
  2647. * rasqal/roqet.c: Really make sparql the default
  2648. * rasqal/roqet.c (roqet_graph_pattern_walk): space
  2649. * rasqal/roqet.c (roqet_graph_pattern_walk): Add {}s around
  2650. constraints
  2651. * rasqal/roqet.c (roqet_query_walk): Print bound variables.
  2652. * rasqal/roqet.1: Updates for 0.9.9 Do not mention deprecated
  2653. -f/--format and -o/--output. Merge -f and -o into in -r/--results
  2654. and complete the list. Added V1 and V2 of sparql query results
  2655. xml format. For -i, note sparql is default query language.
  2656. * rasqal/rasqal_general.c (rasqal_init): sparql is now the default
  2657. query language.
  2658. * rasqal/roqet.c: Deprecated -f/--format and -o/--output both now
  2659. in -r/--results. Add V1 and V2 xml results formats. Deleted
  2660. invalid argument help for -r, see usage instead.
  2661. * rasqal/roqet.c (roqet_write_indent): Added.
  2662. (roqet_graph_pattern_walk): Add lots of {...}s around blocks. use
  2663. #number for gps, triples. Change to use roqet_write_indent.
  2664. (roqet_query_walk): Take indent arg, use it with
  2665. roqet_write_indent. Walk constructed triples.
  2666. * rasqal/rasqal_query.c
  2667. (rasqal_query_get_construct_triples_sequence,
  2668. rasqal_query_get_construct_triple): Added, to get access to
  2669. construct triples via API.
  2670. (rasqal_query_verb_as_string): Added to get a string for a verb.
  2671. (rasqal_query_print): Use the above.
  2672. * rasqal/rasqal.h: Added prototypes for
  2673. rasqal_query_get_construct_triples_sequence and
  2674. rasqal_query_get_construct_triple
  2675. * Redland.i: Added librdf_query_get_limit, librdf_query_set_limit,
  2676. librdf_query_get_offset and librdf_query_set_offset
  2677. * librdf/rdf_query_rasqal.c (librdf_query_rasqal_get_limit,
  2678. librdf_query_rasqal_set_limit, librdf_query_rasqal_get_offset,
  2679. librdf_query_rasqal_set_offset): Added to implement factory
  2680. methods for get/setting of query results limit and offsets.
  2681. (librdf_query_rasqal_register_factory): Register the above
  2682. methods.
  2683. * librdf/rdf_query.c (librdf_query_get_limit,
  2684. librdf_query_set_limit, librdf_query_get_offset,
  2685. librdf_query_set_offset): Added to provide access to new factory
  2686. methods for get/setting of query results limit - max results to
  2687. return and offset - initial results to skip.
  2688. * librdf/rdf_query.h: Added factory methods: get_limit, set_limit,
  2689. get_offset and set_offset. Added prototypes for
  2690. librdf_query_get_limit, librdf_query_set_limit,
  2691. librdf_query_get_offset and librdf_query_set_offset
  2692. * configure.ac: require rasqal 0.9.9
  2693. * rasqal/roqet.c: Make -c/--count work properly.
  2694. Print count to stdout.
  2695. Tidy result format wording.
  2696. * rasqal/rasqal_query.c (rasqal_query_results_get_count):
  2697. Adjust the returned count by any offset.
  2698. (rasqal_query_results_next): Implement limit and offset.
  2699. Addresses Issue#0000005 - http://bugs.librdf.org/mantis/view.php?id=5
  2700. * rasqal/rasqal_query.c (rasqal_query_results_next):
  2701. Adjust result_count here.
  2702. * rasqal/rasqal_engine.c (rasqal_engine_get_next_result): Move
  2703. result_count to rasqal_query_results_next.
  2704. 2005-05-10 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2705. * raptor/configure.ac: Change quotes around bison test
  2706. * raptor/configure.ac: Try to work for older bison version styles
  2707. 2005-05-08 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2708. * raptor/raptor_rss.c:
  2709. Update from Suzan Foster to reflect the latest status of the
  2710. enclosure vocabulary and allow multiple common items and fields.
  2711. Fields in items are now a linked list of raptor_rss_field items.
  2712. (raptor_rss_context_init): Empty common area.
  2713. (raptor_enclosure_free): Use raptor_enclosure_free to empty enclosure
  2714. list.
  2715. (raptor_rss_field_free): Added to free a list of rss fields.
  2716. (raptor_clear_rss_item): Use raptor_rss_field_free for freeing
  2717. duplicate fields.
  2718. (raptor_clear_rss_common_items): added to empty common item field
  2719. lists.
  2720. (raptor_rss_context_terminate): Empty common item fields with
  2721. raptor_clear_rss_common_items.
  2722. (raptor_rss_new_field): Added.
  2723. (raptor_rss_enclosure_add): Added.
  2724. (raptor_rss_field_add): Added to add a new field value to the list of
  2725. values for one field item.
  2726. (raptor_rss_common_add): Added to add a new common item to the list
  2727. of common items for the current type.
  2728. (raptor_rss_common_get): Added to get the last common item for the
  2729. current type.
  2730. (raptor_rss_parser_processNode): Updates for new fields structure.
  2731. (raptor_rss_insert_enclosure_identifiers): Update for handling uris
  2732. and bnodes.
  2733. (raptor_rss_insert_identifiers): Update for lists for common items
  2734. and lists of ields.
  2735. (raptor_rss_emit_enclosure): Update for handling uris and bnodes.
  2736. (raptor_rss_emit_item, raptor_rss_emit, raptor_rss10_move_statements,
  2737. raptor_rss10_store_statement, raptor_rss10_serialize_statement,
  2738. raptor_rss10_build_xml_names): Updates for lists of common items and
  2739. lists of fields.
  2740. (raptor_rss10_emit_item): Added fix for moving fields to the item
  2741. when they got stuck on the enclosure when the enclosure uri = the guid.
  2742. Updates for lists of common items and lists of fields.
  2743. (raptor_rss10_serialize_end): Updates for lists of common items and
  2744. lists of fields.
  2745. * rasqal/rasqal_query.c (rasqal_query_results_write_xml_20041221):
  2746. Check only variable bindings are asked for.
  2747. (rasqal_query_results_write_xml_result2): Check only variable
  2748. bindings or boolean are asked for. Add boolean results format.
  2749. * rasqal/rasqal_query.c (rasqal_query_results_write_xml_result2):
  2750. Write <binding> with name attribute.
  2751. * rasqal/rasqal_query.c (rasqal_query_results_write_xml_result2):
  2752. Write out bnode strings right.
  2753. * rasqal/roqet.c:
  2754. Default to unpublished version2 of the XML results format.
  2755. * rasqal/rasqal_query.c (rasqal_query_results_write_xml_20041221):
  2756. Added, renamed from
  2757. rasqal_query_results_write contents to emit the 2004-12-21 XML format
  2758. (rasqal_query_results_write_xml_result2): Added, to emit the
  2759. unpublished version2 of the XML format.
  2760. (rasqal_query_results_write): Call above functions depending on the
  2761. format_uri.
  2762. * librdf/rdf_storage_mysql.c:
  2763. Added MySQL connection handle pooling by Morten Frederiksen.
  2764. Added librdf_storage_mysql_connection_status enum and
  2765. staruct librdf_storage_mysql_connection to store used/opened
  2766. connections.
  2767. (librdf_storage_mysql_init_connections,
  2768. librdf_storage_mysql_finish_connections): Added to init/finish
  2769. connections
  2770. (librdf_storage_mysql_get_handle): Added helper to get a connection
  2771. handle either from the pool or make a new one.
  2772. (librdf_storage_mysql_release_handle): Release a connection handle
  2773. back to the pool.
  2774. (librdf_storage_mysql_*): Use the connection pool to get handles
  2775. using librdf_storage_mysql_get_handle.
  2776. No longer return 0-mysql_errno(&context->connection) error codes,
  2777. just -1 as the connection is strictly no longer available.
  2778. Fixes Issue#0000027 - http://bugs.librdf.org/mantis/view.php?id=27
  2779. 2005-05-06 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2780. * utils/rdfproc.1: Document query command
  2781. Fixes Issue#0000024 - http://bugs.librdf.org/mantis/view.php?id=24
  2782. * librdf/rdf_storage_mysql.c (librdf_storage_mysql_hash):
  2783. Copy the first 8 bytes of digest into
  2784. unsigned 64bit hash using a method portable across big/little
  2785. endianness.
  2786. Fixes Issue#0000023 - http://bugs.librdf.org/mantis/view.php?id=23
  2787. * rasqal/librasqal.3: Updated for 0.9.9
  2788. * rasqal/rasqal_query.c: typo
  2789. 2005-05-05 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2790. * rasqal/rasqal.h: Added prototype for rasqal_query_get_wildcard
  2791. * rasqal/rasqal_query.c (rasqal_query_get_wildcard): Added
  2792. * rasqal/rasqal.h:
  2793. Added prototypes for rasqal_query_get_order_conditions_sequence
  2794. rasqal_query_get_order_condition
  2795. * rasqal/rasqal_query.c (rasqal_query_get_order_conditions_sequence,rasqal_query_get_order_condition):
  2796. Added to return query order conditions.
  2797. 2005-05-06 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2798. * librdf/rdf_storage_mysql.c (librdf_storage_mysql_hash): Copy the
  2799. first 8 bytes of digest into unsigned 64bit hash using a method
  2800. portable across big/little endianness. Fixes Issue#0000023 -
  2801. http://bugs.librdf.org/mantis/view.php?id=23
  2802. (Morten Frederiksen)
  2803. * rasqal/librasqal.3: Updated for 0.9.9
  2804. * rasqal/rasqal_query.c: typo
  2805. 2005-05-05 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2806. * rasqal/rasqal_query.c (rasqal_query_get_wildcard): Added
  2807. * rasqal/rasqal.h: Added prototype for rasqal_query_get_wildcard
  2808. * rasqal/rasqal.h: Added prototypes for
  2809. rasqal_query_get_order_conditions_sequence
  2810. rasqal_query_get_order_condition
  2811. * rasqal/rasqal_query.c:
  2812. (rasqal_query_get_order_conditions_sequence,
  2813. rasqal_query_get_order_condition): Added to return query order
  2814. conditions.
  2815. 2005-05-04 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2816. * rasqal/sparql_lexer.l (VARNAME): Use NCCHARV to allow vars to
  2817. start with _, [0-9] too.
  2818. * raptor/win32_raptor_config.h: Added SIZEOF_UNSIGNED_SHORT
  2819. 2005-05-03 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2820. * rasqal/configure.ac: Added tests/sparql/sort dir
  2821. * rasqal/tests/sparql/Makefile.am: Added sort dir
  2822. * rasqal/tests/sparql/sort/result-sort-3.rdf,
  2823. rasqal/tests/sparql/sort/result-sort-4.rdf,
  2824. rasqal/tests/sparql/sort/result-sort-5.rdf,
  2825. rasqal/tests/sparql/sort/result-sort-6.rdf,
  2826. rasqal/tests/sparql/sort/result-sort-7.rdf,
  2827. rasqal/tests/sparql/sort/result-sort-8.rdf,
  2828. rasqal/tests/sparql/sort/Makefile.am,
  2829. rasqal/tests/sparql/sort/data-sort-1.ttl,
  2830. rasqal/tests/sparql/sort/data-sort-3.ttl,
  2831. rasqal/tests/sparql/sort/data-sort-4.ttl,
  2832. rasqal/tests/sparql/sort/data-sort-6.ttl,
  2833. rasqal/tests/sparql/sort/data-sort-7.ttl,
  2834. rasqal/tests/sparql/sort/data-sort-8.ttl,
  2835. rasqal/tests/sparql/sort/manifest.ttl,
  2836. rasqal/tests/sparql/sort/query-sort-1.rq,
  2837. rasqal/tests/sparql/sort/query-sort-2.rq,
  2838. rasqal/tests/sparql/sort/query-sort-3.rq,
  2839. rasqal/tests/sparql/sort/query-sort-4.rq,
  2840. rasqal/tests/sparql/sort/query-sort-5.rq,
  2841. rasqal/tests/sparql/sort/query-sort-6.rq,
  2842. rasqal/tests/sparql/sort/result-sort-1.rdf,
  2843. rasqal/tests/sparql/sort/result-sort-2.rdf: added dawg sort tests
  2844. 2005-05-02 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2845. * rasqal/tests/sparql/survey/Makefile.am: More diagnosis of
  2846. failures
  2847. * rasqal/rasqal_engine.c (rasqal_engine_assign_variables): Add
  2848. anonymous variables to the variables/variables_declared_in arrays.
  2849. (rasqal_query_graph_pattern_build_declared_in_variable): Added
  2850. helper.
  2851. (rasqal_query_graph_pattern_build_declared_in): Use above
  2852. (rasqal_engine_do_optional_step): Check any outermost constraint
  2853. expression if there is a match.
  2854. (rasqal_engine_make_basic_graph_pattern): Use
  2855. rasqal_graph_pattern_add_constraint when moving constraints.
  2856. Rebuild constraints expression after moving constraints.
  2857. * rasqal/tests/sparql/survey/Makefile.am: 5 failures now
  2858. * rasqal/roqet.c (roqet_query_walk): Start from top graph pattern,
  2859. not contents of it.
  2860. * rasqal/rasqal_query.c (rasqal_query_get_query_graph_pattern):
  2861. Added to get the top graph pattern.
  2862. * rasqal/rasqal.h: Added prototype for
  2863. rasqal_query_get_query_graph_pattern
  2864. * rasqal/rasqal_engine.c (rasqal_engine_assign_variables): Use the
  2865. wildcard flag for SELECT * and CONSTRUCT *
  2866. * rasqal/rasqal_query.c: Added rasqal_query_verb_labels for debug
  2867. printing.
  2868. (rasqal_query_print): Print out the query verb.
  2869. (rasqal_query_results_is_bindings,
  2870. rasqal_query_results_is_boolean, rasqal_query_results_is_graph):
  2871. Use the query verb to decide this.
  2872. (rasqal_query_get_verb): Added.
  2873. * rasqal/sparql_parser.y (Report): Set the query verb to SELECT,
  2874. CONSTRUCT, DESCRIBE or ASK. Do not use select_is_describe or ask.
  2875. (SelectClause): Set wildcard flag with SELECT (DISTINCT) *
  2876. (ConstructClause): Set the wildcard flag with CONSTRUCT *
  2877. * rasqal/rdql_parser.y (Query): Set query verb to SELECT.
  2878. (SelectClause): Set wildcard flag with SELECT *
  2879. * rasqal/rasqal_internal.h: rasqal_query gains a verb and wildcard
  2880. fields replacing select_all, select_is_describe, construct_all and
  2881. ask
  2882. * rasqal/rasqal.h: Added rasqal_query_verb enum. Added prototype
  2883. for rasqal_query_get_verb
  2884. * rasqal/sparql_parser.y (OptionalGraphPattern): Do not set
  2885. optional flags on triples.
  2886. * rasqal/rasqal_graph_pattern.c (rasqal_graph_pattern_init):
  2887. Record triple_meta is_exact field.
  2888. * rasqal/rasqal_expr.c: Removed rasqal_triple_flag_strings
  2889. (rasqal_triple_print): Removed printing flags.
  2890. (rasqal_triple_set_flags, rasqal_triple_get_flags): Note
  2891. deprecated.
  2892. * rasqal/rasqal_engine.c (rasqal_graph_pattern_get_next_match):
  2893. Use triple_meta file is_exact instead of rasqal_triple flag field
  2894. (rasqal_engine_prepare): No longer init triple flags.
  2895. * rasqal/rasqal.h: Deprecated rasqal_triple flags field. - the
  2896. value EXACT was only used in the execution engine and properly
  2897. lives in rasqal_triple_meta. The value OPTIONAL was never used.
  2898. Added is_exact file to rasqal_triple_meta. Deprecated
  2899. rasqal_triple_set_flags and rasqal_triple_get_flags.
  2900. * rasqal/rasqal_engine.c (rasqal_engine_execute_init): Transform
  2901. the query graph pattern for execution purposes - make basic graph
  2902. patterns and make sure the top is always a sequence of graph
  2903. patterns, for now.
  2904. * rasqal/sparql_parser.y (rasqal_sparql_query_engine_prepare):
  2905. Remove the building of basic graph patterns from here. Just build
  2906. the simplest graph pattern and let the execution engine change it
  2907. if it needs to.
  2908. * rasqal/rdql_parser.y (rasqal_rdql_query_engine_prepare): Just
  2909. build the simplest graph pattern here, let the executionengine
  2910. change it if it needs to.
  2911. 2005-05-01 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2912. * rasqal/tests/sparql/SyntaxFull/Makefile.am: Updated for tests
  2913. updates, removals for required top level graph pattern.
  2914. * rasqal/tests/sparql/SyntaxFull/syntax-bnodes-06.rq,
  2915. rasqal/tests/sparql/SyntaxFull/syntax-bnodes-07.rq,
  2916. rasqal/tests/sparql/SyntaxFull/syntax-bnodes-08.rq,
  2917. rasqal/tests/sparql/SyntaxFull/syntax-bnodes-09.rq: Removed
  2918. renamed syntax-bnodes tests
  2919. * rasqal/tests/sparql/SyntaxFull/syntax-query-pat-01.rq,
  2920. rasqal/tests/sparql/SyntaxFull/syntax-query-pat-02.rq,
  2921. rasqal/tests/sparql/SyntaxFull/syntax-query-pat-03.rq,
  2922. rasqal/tests/sparql/SyntaxFull/syntax-query-pat-04.rq,
  2923. rasqal/tests/sparql/SyntaxFull/syntax-query-pat-05.rq: Removed
  2924. WHERE no {} tests
  2925. 2005-04-27 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2926. * rasqal/tests/sparql/examples/Makefile.am:
  2927. sparql-query-example-Testing-Values-str works with right data
  2928. * rasqal/tests/sparql/examples/Makefile.am:
  2929. sparql-query-example-Testing-Values-str fails
  2930. * rasqal/sparql_parser.y (CallExpression): use nflags for pattern
  2931. expression flags
  2932. * rasqal/tests/sparql/SyntaxFull/Makefile.am: fix dup terms
  2933. * rasqal/tests/sparql/SyntaxFull/Makefile.am: Added empty.nt
  2934. * rasqal/tests/sparql/SyntaxFull/empty.nt: empty.nt
  2935. * rasqal/tests/sparql/SyntaxFull/syntax-bnodes-03.rq,
  2936. rasqal/tests/sparql/SyntaxFull/syntax-bnodes-04.rq,
  2937. rasqal/tests/sparql/SyntaxFull/manifest.ttl,
  2938. rasqal/tests/sparql/SyntaxFull/syntax-bnodes-01.rq,
  2939. rasqal/tests/sparql/SyntaxFull/syntax-bnodes-02.rq,
  2940. rasqal/tests/sparql/SyntaxFull/Makefile.am: Added
  2941. syntax-bnodes-01,02,03 and 04
  2942. * rasqal/tests/sparql/check-sparql: Handle no result in manifest
  2943. * rasqal/rasqal_engine.c
  2944. (rasqal_engine_convert_blank_node_to_anonymous_variable): Helper
  2945. added.
  2946. (rasqal_engine_build_anonymous_variables): Added to turn bnodes
  2947. inside graph pattern triples into variables. ISSUE: should not do
  2948. this with construct triples
  2949. * rasqal/rasqal_query.c (rasqal_new_query, rasqal_free_query):
  2950. init/free anon_variables_sequence
  2951. (rasqal_query_print): Print anonymous variables
  2952. * rasqal/rasqal_expr.c (rasqal_new_variable_typed): Added with
  2953. type parameter.
  2954. (rasqal_new_variable): Changed to use it.
  2955. (rasqal_variable_print): Print variable type.
  2956. * rasqal/rasqal_internal.h: Added anon_variables_sequence and
  2957. anon_variables_count
  2958. * rasqal/rasqal.h: typoo
  2959. * rasqal/rasqal.h: Added rasqal_variable_type enum.
  2960. rasqal_variable gained field 'type' Added prototypes for
  2961. rasqal_query_set_distinct, rasqal_query_set_limit,
  2962. rasqal_query_set_offset and rasqal_new_variable_typed
  2963. * rasqal/rasqal_query.c (rasqal_query_set_distinct,
  2964. rasqal_query_set_limit, rasqal_query_set_offset): Added.
  2965. * rasqal/sparql_lexer.l, rasqal/sparql_parser.y: Removed unused
  2966. tokens PATTERN_LITERAL and '&'.
  2967. * rasqal/tests/sparql/survey/Makefile.am: fix failure count
  2968. * rasqal/tests/sparql/syntax/cast1.rq: no == operator
  2969. * rasqal/tests/sparql/bound/Makefile.am,
  2970. rasqal/tests/sparql/part1/Makefile.am,
  2971. rasqal/tests/sparql/simple/Makefile.am,
  2972. rasqal/tests/sparql/survey/Makefile.am: Remove check-sparql-works
  2973. targets - check-sparql-correct does it better and using manifest
  2974. * rasqal/tests/sparql/examples/ex11.2.3.5_0-result.n3,
  2975. rasqal/tests/sparql/examples/ex11.2.3.5_0.n3,
  2976. rasqal/tests/sparql/examples/ex11.2.3.6_0-result.n3: Fix what I
  2977. think are test query/data bugs
  2978. * rasqal/tests/sparql/examples/Makefile.am: Added ex11_1.rq
  2979. ex11_1-result.n3 Note which query files have the failing query.
  2980. * rasqal/tests/sparql/examples/ex11_1-result.n3,
  2981. rasqal/tests/sparql/examples/ex11_1.rq: example ex11_1
  2982. * rasqal/tests/sparql/examples/ex11.2.3.6_0-result.n3,
  2983. rasqal/tests/sparql/examples/ex11_0-result.n3,
  2984. rasqal/tests/sparql/examples/manifest.n3: Sync tests to dawg
  2985. 2005-04-26 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2986. * rasqal/tests/rdql/testsuite/check-rdql,
  2987. rasqal/tests/sparql/check-sparql (toDebug): Handle no value.
  2988. * rasqal/tests/sparql/survey/Makefile.am: Added expected failures
  2989. * rasqal/sparql_lexer.l: Remove == token
  2990. * rasqal/sparql_lexer.l: Align name tokens with rq23 post WD
  2991. 2005-04-19 CVS 1.326
  2992. * rasqal/tests/sparql/bound/bound1.rq: new turtley syntax
  2993. * rasqal/tests/sparql/examples/Makefile.am: Annotate failures.
  2994. * rasqal/sparql_parser.y: less super-debuggy
  2995. * rasqal/sparql_parser.y:
  2996. (CallExpression) Copy the string from rasqal_literal_as_string
  2997. when making pattern literals or flags. Free the unused literal
  2998. args.
  2999. * rasqal/rasqal_expr.c:
  3000. (rasqal_expression_evaluate) For the RASQAL_EXPR_STR operation,
  3001. copy the string from rasqal_literal_as_string.
  3002. * rasqal/sparql_parser.y (rasqal_sparql_query_engine_prepare):
  3003. Restore hack to build an outer list of GPs if the folding made it
  3004. all into one.
  3005. * rasqal/sparql_parser.y (rasqal_sparql_query_engine_prepare):
  3006. Just call rasqal_engine_make_basic_graph_pattern on the query
  3007. graph pattern.
  3008. * rasqal/rasqal_engine.c (rasqal_engine_make_basic_graph_pattern):
  3009. More debug messages. Always merge a GP with a GP of size 1
  3010. inside. Ignore any inner OPTIONAL GPs Merge sequences of triples
  3011. if seen.
  3012. * rasqal/tests/sparql/SyntaxFull/Makefile.am: syntax-struct-01.rq
  3013. no longer crashes
  3014. * rasqal/sparql_parser.y (OptionalGraphPattern): Don't die if no
  3015. GraphPattern.
  3016. * rasqal/sparql_parser.y: Debug messages
  3017. * rasqal/rasqal_graph_pattern.c (rasqal_graph_pattern_print):
  3018. Print graph pattern/triple sequence sizes.
  3019. * rasqal/rasqal_query.c (rasqal_new_query): Set initial offset to
  3020. unset (<0)
  3021. * rasqal/rasqal_engine.c (rasqal_query_build_declared_in): warning
  3022. wording
  3023. * rasqal/rasqal_engine.c (rasqal_query_build_declared_in): No \n
  3024. in warning.
  3025. * rasqal/sparql_parser.y (UnionGraphPatternList): Added.
  3026. (UnionGraphPattern): Make a graph pattern with the contained union
  3027. graphs. Renamed from OptionalGraphPatternList.
  3028. * rasqal/tests/sparql/SyntaxFull/Makefile.am: Fixed
  3029. syntax-union-02.rq
  3030. * rasqal/sparql_parser.y (OptionalGraphPatternList): Require UNION
  3031. between GPs
  3032. * rasqal/tests/sparql/SyntaxFull/Makefile.am: Typo
  3033. * rasqal/rasqal_expr.c (rasqal_expression_evaluate): Warn and then
  3034. return false for function expressions - not implemented.
  3035. * rasqal/sparql_parser.y: Removed string operators STR_EQ STR_NE
  3036. STR_MATCH STR_NMATCH
  3037. (OptionalGraphPatternList): List cannnot be empty Lots of renaming
  3038. of grammar terms to match rq23 / WD 19 April 2005
  3039. (RelationalExpression): Renamed from ValueLogical and merged with
  3040. former RelationalExpression.
  3041. (CallExpression): Renamed from BuiltinExpression and reordered to
  3042. match rq23
  3043. * rasqal/sparql_lexer.l: Removed regex pattern literals, PATTERN
  3044. state, sparql_copy_regex_token, EQ/eq, NE/NE, =~, ~~, !~
  3045. * rasqal/sparql_parser.y (OptionalGraphPatternList): Added, to
  3046. allow GraphPattern UNION GraphPattern*
  3047. * rasqal/rasqal_engine.c (rasqal_engine_make_basic_graph_pattern):
  3048. Verbose debugging if RASQAL_DEBUG > 1
  3049. 2005-04-25 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  3050. * rasqal/tests/sparql/SyntaxFull/Makefile.am: Note failures so far
  3051. * rasqal/sparql_parser.y (BuiltinExpression): Move URIBrace work
  3052. into FunctionCall
  3053. (FunctionCall): Pick cast or function, I choose function
  3054. * rasqal/sparql_lexer.l: Widen QUOTEDURI and include <>
  3055. * rasqal/sparql_parser.y (WhereClauseOpt): Warn WHERE omitted.
  3056. (BuiltinExpression): Call FunctionCall
  3057. (PrimaryExpression): Add '(' Expression ')'
  3058. (FunctionCall): Add URI name.
  3059. (ArgList): Now a list of expressions
  3060. * rasqal/sparql_parser.y (OrderClauseOpt): Use OrderConditionList
  3061. and store it in query field order_conditions_seequence.
  3062. (OrderConditionList): Added, making a raptor_sequence of
  3063. expressions
  3064. (OrderCondition): Implemented ASC/DESC/none
  3065. (OrderExpression): Added, using FunctionCall or Var
  3066. (ItemList): Init $$->triples and set formula.
  3067. (PrimaryExpression): Use FunctionCall
  3068. (FunctionCall): Restored, now it's used twice.
  3069. * rasqal/rasqal.h: Added RASQAL_EXPR_ORDER_COND_ASC,
  3070. RASQAL_EXPR_ORDER_COND_DESC and RASQAL_EXPR_ORDER_COND_NONE
  3071. * rasqal/rasqal_internal.h: Added order_conditions_sequence to
  3072. query
  3073. * rasqal/rasqal_query.c (rasqal_query_print): Print order
  3074. conditions.
  3075. * rasqal/rasqal_query.c (rasqal_new_query,rasqal_free_query): Init
  3076. and free order_conditions_sequence
  3077. * rasqal/rasqal_expr.c (rasqal_free_expression,
  3078. rasqal_expression_foreach, rasqal_expression_evaluate,
  3079. rasqal_expression_print): Added cases for
  3080. RASQAL_EXPR_ORDER_COND_ASC, RASQAL_EXPR_ORDER_COND_DESC and
  3081. RASQAL_EXPR_ORDER_COND_NONE
  3082. * rasqal/sparql_lexer.l: ASC, DESC take following [ too
  3083. (sparql_token_print): Added ASC, DESC
  3084. * rasqal/sparql_parser.y, rasqal/sparql_lexer.l: Added ASC, DESC
  3085. * rasqal/sparql_lexer.l (PREFIX, NAME): Allow . after first char
  3086. * rasqal/sparql_lexer.l: Added '''strings''' (not in Turtle)
  3087. * rasqal/sparql_lexer.l: Added """string""" literals
  3088. * rasqal/tests/sparql/SyntaxFull/syntax-union-01.rq,
  3089. rasqal/tests/sparql/SyntaxFull/syntax-union-02.rq,
  3090. rasqal/tests/sparql/SyntaxFull/syntax-struct-09.rq,
  3091. rasqal/tests/sparql/SyntaxFull/syntax-struct-10.rq,
  3092. rasqal/tests/sparql/SyntaxFull/syntax-struct-07.rq,
  3093. rasqal/tests/sparql/SyntaxFull/syntax-struct-08.rq,
  3094. rasqal/tests/sparql/SyntaxFull/syntax-struct-06.rq,
  3095. rasqal/tests/sparql/SyntaxFull/syntax-struct-03.rq,
  3096. rasqal/tests/sparql/SyntaxFull/syntax-struct-04.rq,
  3097. rasqal/tests/sparql/SyntaxFull/syntax-struct-05.rq,
  3098. rasqal/tests/sparql/SyntaxFull/syntax-query-pat-04.rq,
  3099. rasqal/tests/sparql/SyntaxFull/syntax-query-pat-05.rq,
  3100. rasqal/tests/sparql/SyntaxFull/syntax-struct-01.rq,
  3101. rasqal/tests/sparql/SyntaxFull/syntax-struct-02.rq,
  3102. rasqal/tests/sparql/SyntaxFull/syntax-qname-14.rq,
  3103. rasqal/tests/sparql/SyntaxFull/syntax-query-pat-01.rq,
  3104. rasqal/tests/sparql/SyntaxFull/syntax-query-pat-02.rq,
  3105. rasqal/tests/sparql/SyntaxFull/syntax-query-pat-03.rq,
  3106. rasqal/tests/sparql/SyntaxFull/syntax-qname-12.rq,
  3107. rasqal/tests/sparql/SyntaxFull/syntax-qname-13.rq,
  3108. rasqal/tests/sparql/SyntaxFull/syntax-qname-11.rq,
  3109. rasqal/tests/sparql/SyntaxFull/syntax-qname-09.rq,
  3110. rasqal/tests/sparql/SyntaxFull/syntax-qname-10.rq,
  3111. rasqal/tests/sparql/SyntaxFull/syntax-qname-07.rq,
  3112. rasqal/tests/sparql/SyntaxFull/syntax-qname-08.rq,
  3113. rasqal/tests/sparql/SyntaxFull/syntax-pat-04.rq,
  3114. rasqal/tests/sparql/SyntaxFull/syntax-pat-03.rq,
  3115. rasqal/tests/sparql/SyntaxFull/syntax-pat-01.rq,
  3116. rasqal/tests/sparql/SyntaxFull/syntax-pat-02.rq,
  3117. rasqal/tests/sparql/SyntaxFull/syntax-order-04.rq,
  3118. rasqal/tests/sparql/SyntaxFull/syntax-order-05.rq,
  3119. rasqal/tests/sparql/SyntaxFull/syntax-order-01.rq,
  3120. rasqal/tests/sparql/SyntaxFull/syntax-order-02.rq,
  3121. rasqal/tests/sparql/SyntaxFull/syntax-order-03.rq,
  3122. rasqal/tests/sparql/SyntaxFull/syntax-lit-14.rq,
  3123. rasqal/tests/sparql/SyntaxFull/syntax-lit-13.rq,
  3124. rasqal/tests/sparql/SyntaxFull/syntax-lit-12.rq,
  3125. rasqal/tests/sparql/SyntaxFull/syntax-lit-11.rq,
  3126. rasqal/tests/sparql/SyntaxFull/syntax-lit-10.rq,
  3127. rasqal/tests/sparql/SyntaxFull/syntax-lit-09.rq,
  3128. rasqal/tests/sparql/SyntaxFull/syntax-lit-07.rq,
  3129. rasqal/tests/sparql/SyntaxFull/syntax-lit-08.rq,
  3130. rasqal/tests/sparql/SyntaxFull/syntax-lit-06.rq,
  3131. rasqal/tests/sparql/SyntaxFull/syntax-lit-05.rq,
  3132. rasqal/tests/sparql/SyntaxFull/syntax-lit-04.rq,
  3133. rasqal/tests/sparql/SyntaxFull/syntax-lit-02.rq,
  3134. rasqal/tests/sparql/SyntaxFull/syntax-lit-03.rq,
  3135. rasqal/tests/sparql/SyntaxFull/syntax-lists-03.rq,
  3136. rasqal/tests/sparql/SyntaxFull/syntax-lists-04.rq,
  3137. rasqal/tests/sparql/SyntaxFull/syntax-lists-05.rq,
  3138. rasqal/tests/sparql/SyntaxFull/syntax-lit-01.rq,
  3139. rasqal/tests/sparql/SyntaxFull/syntax-lists-01.rq,
  3140. rasqal/tests/sparql/SyntaxFull/syntax-lists-02.rq,
  3141. rasqal/tests/sparql/SyntaxFull/syntax-forms-01.rq,
  3142. rasqal/tests/sparql/SyntaxFull/syntax-forms-02.rq,
  3143. rasqal/tests/sparql/SyntaxFull/syntax-forms-03.arq,
  3144. rasqal/tests/sparql/SyntaxFull/syntax-expr-04.rq,
  3145. rasqal/tests/sparql/SyntaxFull/syntax-expr-05.rq,
  3146. rasqal/tests/sparql/SyntaxFull/syntax-expr-06.rq,
  3147. rasqal/tests/sparql/SyntaxFull/syntax-expr-01.rq,
  3148. rasqal/tests/sparql/SyntaxFull/syntax-expr-02.rq,
  3149. rasqal/tests/sparql/SyntaxFull/syntax-expr-03.rq,
  3150. rasqal/tests/sparql/SyntaxFull/syntax-bnodes-07.rq,
  3151. rasqal/tests/sparql/SyntaxFull/syntax-bnodes-08.rq,
  3152. rasqal/tests/sparql/SyntaxFull/syntax-bnodes-09.rq,
  3153. rasqal/tests/sparql/SyntaxFull/syntax-basic-05.rq,
  3154. rasqal/tests/sparql/SyntaxFull/syntax-basic-06.rq,
  3155. rasqal/tests/sparql/SyntaxFull/syntax-bnodes-06.rq,
  3156. rasqal/tests/sparql/SyntaxFull/syntax-basic-01.rq,
  3157. rasqal/tests/sparql/SyntaxFull/syntax-basic-02.rq,
  3158. rasqal/tests/sparql/SyntaxFull/syntax-basic-03.rq,
  3159. rasqal/tests/sparql/SyntaxFull/syntax-basic-04.rq,
  3160. rasqal/tests/sparql/Makefile.am,
  3161. rasqal/tests/sparql/SyntaxFull/Makefile.am,
  3162. rasqal/tests/sparql/SyntaxFull/manifest.ttl, rasqal/configure.ac:
  3163. Added SyntaxFull tests from dawg
  3164. 2005-04-20 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  3165. * rasqal/tests/sparql/survey/Makefile.am: data is
  3166. survey-sample.ttl
  3167. 2005-04-19 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  3168. * rasqal/rasqal_expr.c (rasqal_expression_evaluate): Handle
  3169. unbound variable values in RASQAL_EXPR_DATATYPE,
  3170. RASQAL_EXPR_ISURI, RASQAL_EXPR_ISBLANK, RASQAL_EXPR_ISLITERAL
  3171. * rasqal/sparql_lexer.l: Make keyword tokens case independent not
  3172. just upper or lowercase.
  3173. * rasqal/tests/sparql/examples/Makefile.am: Update for new example
  3174. files
  3175. * rasqal/sparql_parser.y: No conflicts
  3176. * rasqal/tests/sparql/examples/ex11.2.3.1_0.n3,
  3177. rasqal/tests/sparql/examples/ex11.2.3.1_0.rq,
  3178. rasqal/tests/sparql/examples/ex11.2.3.1_1.n3,
  3179. rasqal/tests/sparql/examples/ex11.2.3.1_1.rq,
  3180. rasqal/tests/sparql/examples/ex11.2.3.2_0.n3,
  3181. rasqal/tests/sparql/examples/ex11.2.3.2_0.rq,
  3182. rasqal/tests/sparql/examples/ex11.2.3.2_1.rq,
  3183. rasqal/tests/sparql/examples/ex11.2.3.3_0.n3,
  3184. rasqal/tests/sparql/examples/ex11.2.3.3_0.rq,
  3185. rasqal/tests/sparql/examples/ex11.2.3.4_0.n3,
  3186. rasqal/tests/sparql/examples/ex11.2.3.4_0.rq,
  3187. rasqal/tests/sparql/examples/ex11.2.3.5_0.n3,
  3188. rasqal/tests/sparql/examples/ex11.2.3.5_0.rq,
  3189. rasqal/tests/sparql/examples/ex11.2.3.6_0.n3,
  3190. rasqal/tests/sparql/examples/ex11.2.3.6_0.rq,
  3191. rasqal/tests/sparql/examples/ex11.2.3.7_0.n3,
  3192. rasqal/tests/sparql/examples/ex11.2.3.7_0.rq,
  3193. rasqal/tests/sparql/examples/ex11.2.3.8_0.n3,
  3194. rasqal/tests/sparql/examples/ex11.2.3.8_0.rq,
  3195. rasqal/tests/sparql/examples/ex11_0.n3,
  3196. rasqal/tests/sparql/examples/ex11_0.rq,
  3197. rasqal/tests/sparql/examples/ex3.rq,
  3198. rasqal/tests/sparql/examples/ex11.2.3.1_0-result.n3,
  3199. rasqal/tests/sparql/examples/ex11.2.3.1_1-result.n3,
  3200. rasqal/tests/sparql/examples/ex11.2.3.2_0-result.n3,
  3201. rasqal/tests/sparql/examples/ex11.2.3.2_1-result.n3,
  3202. rasqal/tests/sparql/examples/ex11.2.3.3_0-result.n3,
  3203. rasqal/tests/sparql/examples/ex11.2.3.4_0-result.n3,
  3204. rasqal/tests/sparql/examples/ex11.2.3.5_0-result.n3,
  3205. rasqal/tests/sparql/examples/ex11.2.3.6_0-result.n3,
  3206. rasqal/tests/sparql/examples/ex11.2.3.7_0-result.n3,
  3207. rasqal/tests/sparql/examples/ex11.2.3.8_0-result.n3,
  3208. rasqal/tests/sparql/examples/ex11_0-result.n3,
  3209. rasqal/tests/sparql/examples/manifest.n3: Imported updated
  3210. examples
  3211. * rasqal/tests/sparql/check-sparql: remove debug print
  3212. * rasqal/sparql_parser.y: Make construct work again. Now %type
  3213. <seq>: TriplesList ConstructTemplate
  3214. (ConstructClause): Take triples from seq ConstructTemplate
  3215. (ConstructTemplate): Use TriplesList
  3216. (TriplesList): Added, making a raptor_sequence of triples from
  3217. triples in Triples formulas.
  3218. * rasqal/rasqal_graph_pattern.c (rasqal_new_graph_pattern): Init
  3219. columns to defaults here.
  3220. * rasqal/rasqal_engine.c (rasqal_engine_make_basic_graph_pattern):
  3221. Added.
  3222. * rasqal/rasqal_internal.h: Added
  3223. rasqal_engine_make_basic_graph_pattern prototype.
  3224. * rasqal/sparql_parser.y (rasqal_sparql_query_engine_prepare):
  3225. Call rasqal_engine_make_basic_graph_pattern on the top level
  3226. subgraph patterns.
  3227. * rasqal/tests/sparql/syntax/Makefile.am: Print failure summaries
  3228. * rasqal/tests/sparql/syntax/offset0.rq,
  3229. rasqal/tests/sparql/syntax/cast0.rq,
  3230. rasqal/tests/sparql/syntax/cast1.rq: updates for turtle sparql
  3231. syntax
  3232. * rasqal/tests/sparql/check-sparql: Read manfiest.ttl or
  3233. manifest.n3
  3234. * rasqal/tests/rdql/testsuite/check-rdql,
  3235. rasqal/tests/sparql/check-sparql: Emit failing roqet line when
  3236. roqet returns errors.
  3237. * rasqal/tests/rdql/testsuite/check-rdql,
  3238. rasqal/tests/sparql/check-sparql: Emit failing roqet line on
  3239. FAILURE
  3240. 2005-04-18 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  3241. * librdf/rdf_storage_list.c (librdf_storage_list_node_equals): Not
  3242. equal if only one context is NULL.
  3243. 2005-04-17 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  3244. * rasqal/sparql_parser.y: Updates to SPARQL rq23 around $Revision:
  3245. 1.303 $ of $Date: 2005/04/16 17:13:51 $ Removed AND, WITH. Added
  3246. NAMED. Removed many %type that were used with NULL value or none.
  3247. (DatasetClauseOpt, DefaultGraphClause): Added after rq23
  3248. (NamedGraphClauseList): Added
  3249. (PatternElementsList): Renamed from PatternElementList and now in
  3250. rq23, returns a graph pattern. FILTER handled here, not in older
  3251. PatternElementConstraint.
  3252. (PatternElementConstraint): Deleted.
  3253. (ItemList): Moved adjacent to Collection which it serves.
  3254. (URIList): Deleted, no longer used.
  3255. * rasqal/rasqal_engine.c
  3256. (rasqal_engine_build_constraints_expression): Handle no graph
  3257. pattern.
  3258. (rasqal_engine_execute_init): Handle no graph pattern.
  3259. * rasqal/tests/sparql/syntax/describe1.rq,
  3260. rasqal/tests/sparql/syntax/groups.rq,
  3261. rasqal/tests/sparql/syntax/construct1.rq,
  3262. rasqal/tests/sparql/syntax/limit0.rq,
  3263. rasqal/tests/sparql/syntax/construct0.rq,
  3264. rasqal/tests/sparql/syntax/construct2.rq,
  3265. rasqal/tests/sparql/syntax/distinct0.rq,
  3266. rasqal/tests/sparql/syntax/ask0.rq: Update to turtle query syntax
  3267. * rasqal/rasqal_graph_pattern.c
  3268. (rasqal_new_graph_pattern_from_sequence): Do not flatten gps.
  3269. * rasqal/tests/sparql/part1/Makefile.am,
  3270. rasqal/tests/sparql/part1/dawg-query-001,
  3271. rasqal/tests/sparql/part1/dawg-query-001.rq,
  3272. rasqal/tests/sparql/part1/dawg-query-002,
  3273. rasqal/tests/sparql/part1/dawg-query-002.rq,
  3274. rasqal/tests/sparql/part1/dawg-query-003,
  3275. rasqal/tests/sparql/part1/dawg-query-003.rq,
  3276. rasqal/tests/sparql/part1/dawg-query-004,
  3277. rasqal/tests/sparql/part1/dawg-query-004.rq,
  3278. rasqal/tests/sparql/part1/manifest.n3: Updated to turtle query
  3279. syntax and renamed dawg-query-001.rq dawg-query-002.rq
  3280. dawg-query-003.rq dawg-query-004.rq
  3281. * rasqal/tests/sparql/examples/ex2-1a.rq,
  3282. rasqal/tests/sparql/examples/ex2-1b.rq,
  3283. rasqal/tests/sparql/examples/ex2-1c.rq,
  3284. rasqal/tests/sparql/examples/ex2-1e.rq,
  3285. rasqal/tests/sparql/examples/ex2-2a.rq,
  3286. rasqal/tests/sparql/examples/ex2-3a.rq,
  3287. rasqal/tests/sparql/examples/ex2-4a.rq,
  3288. rasqal/tests/sparql/examples/manifest.n3: update to turtle syntax
  3289. queries, latest naming
  3290. * rasqal/tests/sparql/simple/data-03.n3,
  3291. rasqal/tests/sparql/simple/dawg-tp-05.rq: import from dawg
  3292. * rasqal/tests/sparql/simple/dawg-tp-01.rq,
  3293. rasqal/tests/sparql/simple/dawg-tp-02.rq,
  3294. rasqal/tests/sparql/simple/dawg-tp-03.rq,
  3295. rasqal/tests/sparql/simple/dawg-tp-04.rq,
  3296. rasqal/tests/sparql/simple/manifest.n3: update to turtle syntax
  3297. queries
  3298. * rasqal/rdql_parser.y (rasqal_rdql_query_engine_prepare): Init
  3299. query graph pattern.
  3300. * rasqal/rasqal_query.c (rasqal_new_query): Start with a NULL
  3301. query graph pattern.
  3302. * rasqal/sparql_lexer.l: -AND
  3303. * rasqal/sparql_lexer.l: -WITH, +NAMED
  3304. * rasqal/tests/sparql/survey/manifest.ttl: Added manifest.ttl
  3305. * rasqal/tests/sparql/survey/query-survey-1.rq,
  3306. rasqal/tests/sparql/survey/query-survey-10.rq,
  3307. rasqal/tests/sparql/survey/query-survey-11.rq,
  3308. rasqal/tests/sparql/survey/query-survey-12.rq,
  3309. rasqal/tests/sparql/survey/query-survey-13.rq,
  3310. rasqal/tests/sparql/survey/query-survey-2.rq,
  3311. rasqal/tests/sparql/survey/query-survey-3.rq,
  3312. rasqal/tests/sparql/survey/query-survey-8.rq,
  3313. rasqal/tests/sparql/survey/query-survey-9.rq,
  3314. rasqal/tests/sparql/survey/result-survey-10.ttl,
  3315. rasqal/tests/sparql/survey/result-survey-3.ttl,
  3316. rasqal/tests/sparql/survey/survey-sample.ttl: Update to latest
  3317. DAWG versions of test
  3318. * rasqal/tests/sparql/survey/Makefile.am: manifest file is
  3319. manifest.ttl
  3320. * ChangeLog, ChangeLog.5, Makefile.am: Added ChangeLog.5 for 2004
  3321. * librdf/rdf_query.c: Mark class librdf_init/finish_FOO as INTERNAL.
  3322. Tidy head doc
  3323. * librdf/rdf_log.c:
  3324. Export several useful internal documented functions marked INTERNAL.
  3325. * librdf/rdf_serializer.c, librdf/rdf_storage.c, librdf/rdf_uri.c,
  3326. librdf/rdf_init.c, librdf/rdf_model.c, librdf/rdf_parser.c,
  3327. librdf/rdf_digest.c, librdf/rdf_hash.c, librdf/rdf_concepts.c:
  3328. Mark class librdf_init/finish_FOO as INTERNAL. Tidy head doc,
  3329. 2005.
  3330. * autogen.sh, raptor/autogen.sh, rasqal/autogen.sh: allow
  3331. envariables to override the programs
  3332. 2005-04-16 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  3333. * raptor/raptor_iostream.c: (raptor_string_iostream_finish): Fixes
  3334. bug 0000021: the output of to_string for an empty model should
  3335. always be parsable and result in an empty model
  3336. http://bugs.librdf.org/mantis/view.php?id=21
  3337. * Redland.i: Typo: fraptor_locator_line -> raptor_locator_line
  3338. * raptor/raptor_iostream.c (raptor_string_iostream_finish): Return
  3339. an empty string "" (aka 1 byte, \0) when the stringbuffer is NULL,
  3340. do not return the NULL.
  3341. 2005-04-14 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  3342. * rasqal/sparql_parser.y: First set of sparql turtle syntax
  3343. changes Added %token: ORDER, BY, REGEX Added %type:
  3344. OrderClauseOpt, PatternElementList, DotOptional,
  3345. ConstructTemplate, Triples, PropertyList, ObjectList, ItemList
  3346. Collection, Subject, Predicate Object, TriplesNode, GraphPattern,
  3347. GraphGraphPattern, UnionGraphPattern (based on rq23) Removed
  3348. %type: VarOrURIOrBNode as turtle syntax rules cover it Many terms
  3349. renamed to match rq23 terms, updated to use formula. Other
  3350. changes:
  3351. (Query): Added OrderClauseOpt
  3352. (BaseDeclOpt, PrefixDeclOpt): moved in source, no change.
  3353. (WhereClauseOpt): Just assign GraphPattern value
  3354. (OrderClauseOpt): Skeletal and incomplete.
  3355. (GraphPattern): Take a list of .-separated triples, with optional
  3356. . or an empty {}
  3357. (DotOptional): Added
  3358. (Triples, PropertyList, ObjectList, ItemList, Subject, Predicate,
  3359. Object, Collection): imported for turtle and updated to pass
  3360. around rasqal_formula and use them to store triples + literal
  3361. value.
  3362. (TriplesNode): Imported from rq23 partially.
  3363. (BuiltinExpression): Added REGEX
  3364. * rasqal/sparql_lexer.l: Added tokens: ORDER, By, REGEX, ., ; for
  3365. rq23 sparql Noted FIXME to remove old comparison ops EQ/eq, NE/ne,
  3366. ==, !=
  3367. * rasqal/rasqal.h: Added rasqal_generate_bnodeid_handler typedef.
  3368. Added prototypes for
  3369. rasqal_query_set_default_generate_bnodeid_parameters and
  3370. rasqal_query_set_generate_bnodeid_handler
  3371. * rasqal/rasqal_graph_pattern.c: docs
  3372. * rasqal/rasqal_internal.h: Added bnodeid handler params to query.
  3373. Added prototype for rasqal_query_set_generate_bnodeid_handler.
  3374. Added extern references for rasqal_rdf_namespace_uri,
  3375. rasqal_rdf_first_uri, rasqal_rdf_rest_uri and rasqal_rdf_nil_uri
  3376. * rasqal/rasqal_general.c: Add rdf uris for namespace, rdf:first,
  3377. rdf:rest, rdf:nul
  3378. (rasqal_uri_init, rasqal_uri_finish): Init and tidy up above.
  3379. (rasqal_query_set_default_generate_bnodeid_parameters,
  3380. rasqal_query_set_generate_bnodeid_handler,
  3381. rasqal_default_generate_bnodeid_handler,
  3382. rasqal_query_generate_bnodeid): Added, import from raptor.
  3383. * raptor/raptor_parse.c: docs typo
  3384. * rasqal/rasqal_literal.c: Added rasqal_formula for sparql parser.
  3385. (rasqal_new_formula): Added constructor
  3386. (rasqal_free_formula): Added destructor
  3387. (rasqal_formula_print): Added print method, for sequences of
  3388. formulas
  3389. * rasqal/rasqal_internal.h: Added rasqal_formula for sparql
  3390. parser. Added prototypes for rasqal_new_formula,
  3391. rasqal_free_formula and rasqal_formula_print
  3392. * rasqal/tests/sparql/syntax/cast0.rq,
  3393. rasqal/tests/sparql/syntax/cast1.rq: AND to FILTER
  3394. * rasqal/tests/sparql/syntax/Makefile.am: Added offset0.rq
  3395. * rasqal/sparql_parser.y: Added tokens FILTER OFFSET A Now up to
  3396. expecting 3 shift/reduce (filter + offset can both be missing)
  3397. Added LimitClauseOpt OffsetClauseOpt types
  3398. (Query): Added OffsetClause
  3399. (OffsetClauseOpt): Added, not in 2005-02-17 SPARQL WD
  3400. (PatternElementConstraint): Deprecate AND (removed 2005-04-19
  3401. SPARQL WD) and add FILTER.
  3402. * rasqal/roqet.c (roqet_query_walk): Print any result offset
  3403. (main): Fix help message
  3404. * rasqal/tests/sparql/syntax/offset0.rq: LIMIT and OFFSET test
  3405. * rasqal/rasqal_engine.c
  3406. (rasqal_engine_query_constraints_has_qname): Handle no
  3407. query_graph_pattern present.
  3408. * rasqal/sparql_lexer.l: Added FILTER, OFFSET, A tokens
  3409. * rasqal/rasqal_query.c (rasqal_query_get_offset): Added,
  3410. returning the query results offset.
  3411. (rasqal_query_print): Print query results offset
  3412. * rasqal/rasqal.h: Added rasqal_query_get_offset prototype.
  3413. * rasqal/rasqal_internal.h: Added offset to query structure
  3414. 2005-04-11 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  3415. * rasqal/sparql_lexer.l: Deleted keyword LOAD
  3416. * rasqal/sparql_parser.y (LoadClauseOpt): Deleted, along with old
  3417. keyword LOAD
  3418. * rasqal/sparql_parser.y: Removed deprecated [ ... ] syntax for
  3419. optionals
  3420. * rasqal/sparql_lexer.l, rasqal/sparql_parser.y: Removed
  3421. deprecated SOURCE keyword
  3422. * rasqal/configure.ac: Added tests/sparql/survey/Makefile
  3423. * rasqal/tests/sparql/Makefile.am: Added survey dir
  3424. * rasqal/tests/sparql/survey/Makefile.am,
  3425. rasqal/tests/sparql/survey/query-survey-1.rq,
  3426. rasqal/tests/sparql/survey/query-survey-10.rq,
  3427. rasqal/tests/sparql/survey/query-survey-11.rq,
  3428. rasqal/tests/sparql/survey/query-survey-12.rq,
  3429. rasqal/tests/sparql/survey/query-survey-13.rq,
  3430. rasqal/tests/sparql/survey/query-survey-2.rq,
  3431. rasqal/tests/sparql/survey/query-survey-3.rq,
  3432. rasqal/tests/sparql/survey/query-survey-8.rq,
  3433. rasqal/tests/sparql/survey/query-survey-9.rq,
  3434. rasqal/tests/sparql/survey/result-survey-1.ttl,
  3435. rasqal/tests/sparql/survey/result-survey-10.ttl,
  3436. rasqal/tests/sparql/survey/result-survey-11.ttl,
  3437. rasqal/tests/sparql/survey/result-survey-12.ttl,
  3438. rasqal/tests/sparql/survey/result-survey-13.ttl,
  3439. rasqal/tests/sparql/survey/result-survey-2.ttl,
  3440. rasqal/tests/sparql/survey/result-survey-3.ttl,
  3441. rasqal/tests/sparql/survey/result-survey-8.ttl,
  3442. rasqal/tests/sparql/survey/result-survey-9.ttl,
  3443. rasqal/tests/sparql/survey/survey-sample.ttl: dawg suvey tests
  3444. * raptor/tests/Makefile.am, raptor/tests/ex-56.out,
  3445. raptor/tests/ex-56.rdf: Added ex-56 test that relative URIs in
  3446. datatypes work (Graham Klyne)
  3447. 2005-04-10 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  3448. * rasqal/configure.ac, rasqal/win32_rasqal_config.h: Bumped
  3449. version to 0.9.9
  3450. * rasqal: Snapshotted rasqal_0_9_8 for 0.9.8 release
  3451. 2005-04-08 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  3452. * librdf/rdf_serializer.c: Add missing switch cases to make
  3453. -Wswitch-enum happy.
  3454. * configure.ac: More gcc -W flags in maintainer mode. Require
  3455. rasqal 0.9.8
  3456. * librdf/rdf_stream.c, librdf/rdf_storage_sqlite.c,
  3457. librdf/rdf_storage.c, librdf/rdf_serializer_raptor.c,
  3458. librdf/rdf_node.c, librdf/rdf_log.c: Add missing switch cases to
  3459. make -Wswitch-enum happy.
  3460. * librdf/rdf_query_rasqal.c (rasqal_redland_new_triples_source):
  3461. Use new rasqal 0.9.8+ rasqal_query_get_data_graph_sequence
  3462. * librdf/rdf_node.h: Remove unused LIBRDF_NODE_TYPE_RESERVED1 (#3)
  3463. from librdf_node_type enum
  3464. * raptor/raptor_xml_writer.c, raptor/raptor_serialize_rdfxmla.c,
  3465. raptor/raptor_serialize.c, raptor/raptor_rdfxml.c,
  3466. raptor/raptor_parse.c, raptor/raptor_general.c: Add missing switch
  3467. cases to make -Wswitch-enum happy.
  3468. * raptor/configure.ac: More gcc -W flags in maintainer mode.
  3469. * raptor/raptor_xslt.c: Casts for C++
  3470. * rasqal/configure.ac: More gcc -W flags in maintainer mode.
  3471. * rasqal/rasqal_literal.c, rasqal/rasqal_general.c: Casts for C++
  3472. 2005-04-07 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  3473. * raptor/raptor_xslt.c (raptor_init_parser_grddl): Expand grddl
  3474. parser description.
  3475. * raptor/libraptor.3: Added missing 1.4.5 API changes, adding XML
  3476. writer features and support functions as used by the
  3477. rdf/xml-abbrev serializer.
  3478. * raptor/tests/Makefile.am: test should use = not == for string
  3479. compare portability
  3480. 2005-04-06 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  3481. * raptor/raptor_xslt.c: Added a list of XPaths to try, fixed
  3482. searching for a profile. Now handles 2 XHTML forms and XML.
  3483. (raptor_xslt_parse_chunk): Walk through the list of XPaths. Do
  3484. not give an error if no GRDDL is found, 0 triples are ok.
  3485. * raptor/raptor_libxml.c (raptor_libxml_error_common): Added,
  3486. passing in prefix and is_fatal flag. Handle NULL ctx and hence
  3487. NULL parser.
  3488. (raptor_libxml_error, raptor_libxml_generic_error,
  3489. raptor_libxml_fatal_error, raptor_libxml_validation_error): Use
  3490. the new function, share very common code.
  3491. * raptor/raptor_parse.c (raptor_parser_error_varargs): Survive a
  3492. NULL parser.
  3493. * raptor/raptor_rdfxml.c (raptor_get_libxml_context,
  3494. raptor_set_libxml_document_locator,
  3495. raptor_get_libxml_document_locator): Survive NULL rdf_parser
  3496. calls.
  3497. * raptor/raptor_internal.h: Added
  3498. raptor_libxml_init_generic_error_handlers prototype
  3499. * raptor/raptor_xslt.c (raptor_xslt_parse_start): Init column,
  3500. byte to -1
  3501. (raptor_xslt_xmlStructuredErrorFunc): Added, not tested.
  3502. (raptor_xslt_parse_chunk): Ensure last chunk with is_end is always
  3503. run. Report error if no XML DOM made. Set xslt context
  3504. structured error handler to raptor_xslt_xmlStructuredErrorFunc.
  3505. 2005-04-04 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  3506. * raptor/raptor_xslt.c (raptor_xslt_parse_chunk): Declare 'nodes'
  3507. at top of block. Init doc_txt/doc_txt_len earlier so do not free
  3508. junk. Get the base URI string from the XML doc if it exists.
  3509. 2005-03-25 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  3510. * raptor/configure.ac: Added --with-xslt-config Added grddl parser
  3511. and checking. Added simple search for libxslt needed by grddl.
  3512. * raptor/Makefile.am: Added grddl if RAPTOR_PARSER_GRDDL
  3513. * raptor/raptor_general.c (raptor_init): Added grddl
  3514. * raptor/raptor_libxml.c (raptor_libxml_init_sax_error_handlers):
  3515. Added to just init the static error handlers for libxml for grddl.
  3516. * raptor/raptor_internal.h: Export
  3517. raptor_libxml_init_sax_error_handlers for grddl. Added
  3518. raptor_init_parser_grddl
  3519. * raptor/raptor_xslt.c: Generates triples via in internal rdf/xml
  3520. parser.
  3521. (raptor_xslt_parse_start): Copy any user-set handlers to the
  3522. internal rdf/xml parser.
  3523. (main): Deleted, experimental code merged.
  3524. * raptor/raptor_xslt.c: Reformed test code into parser named
  3525. 'grddl'
  3526. (raptor_xslt_parse_init, raptor_xslt_parse_terminate,
  3527. raptor_xslt_parse_start, raptor_xslt_parse_chunk,
  3528. raptor_xslt_parse_recognise_syntax,
  3529. raptor_xslt_parser_register_factory, raptor_init_parser_xslt):
  3530. Added
  3531. 2005-03-24 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  3532. * raptor/raptor_xslt.c: Fix memory leaks.
  3533. * raptor/raptor_xslt.c: Remove commented out standalone xslt
  3534. * raptor/Makefile.am: Added bodge raptor_xslt_test
  3535. * raptor/raptor_xslt.c: Raptor GRDDL XSLT
  3536. * raptor/raptor_parse.c (raptor_parse_chunk): docs
  3537. * librdf/rdf_storage.c
  3538. (librdf_storage_node_stream_to_node_create): node1 or node2 can be
  3539. NULL but not both - edit docs and assertion.
  3540. 2005-03-21 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  3541. * rasqal/rasqal_graph_pattern.c (rasqal_graph_pattern_init): Set
  3542. origin parts only if there is an origin.
  3543. * rasqal/rasqal_engine.c
  3544. (rasqal_query_graph_pattern_build_declared_in): Set origin vars
  3545. only if there is an origin.
  3546. * rasqal/rasqal_query.c (rasqal_graph_pattern_set_origin): Set all
  3547. columns, not 1 less.
  3548. * rasqal/rasqal_graph_pattern.c (rasqal_graph_pattern_init): Add
  3549. origin triple parts.
  3550. * rasqal/rasqal_engine.c
  3551. (rasqal_query_graph_pattern_build_declared_in): Mark vars declared
  3552. in origin.
  3553. * rasqal/rdql_parser.y (Query): Add background data graphs as this
  3554. rdql does not allow origin queries.
  3555. * rasqal/sparql_parser.y (LoadClauseOpt): Add named data graphs
  3556. from LOAD
  3557. (GraphOrPattern, NamedGraphPattern, OptionalGraphPattern): Add
  3558. FIXMEs for UNION, GRAPH *, SOURCE *, deprecated SOURCE, deprecated
  3559. []
  3560. * rasqal/rasqal_query.c (rasqal_query_add_data_graph,
  3561. rasqal_query_add_variable, rasqal_query_add_prefix): Add data
  3562. graphs, sources, variables, prefixes to the end of the sequence -
  3563. more sensible and also quicker.
  3564. * rasqal/rasqal_graph_pattern.c
  3565. (rasqal_graph_pattern_add_constraint): Add constraints to end of
  3566. sequence - more sensible and also quicker.
  3567. * rasqal/rdql_parser.y (Query): Make data graphs here, don't edit
  3568. deprecated sources list.
  3569. * rasqal/rasqal_raptor.c (rasqal_raptor_new_triples_source): Pass
  3570. in graph names as base URIs to parsing.
  3571. * rasqal/rasqal_redland.c (rasqal_redland_new_triples_source): Use
  3572. data graphs to gather source URIs and graph URI names. Pass in
  3573. graph names as base URIs to parsing.
  3574. * rasqal/rasqal_raptor.c (rasqal_raptor_new_triples_source): Use
  3575. data graphs to gather source URIs and graph URI names
  3576. 2005-03-20 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  3577. * rasqal/sparql_parser.y (NamedGraphClauseOpt): Set name uri when
  3578. adding a data graph, to same uri as source uri
  3579. * rasqal/librasqal.3: 0.9.8 API changes, style, refs
  3580. * rasqal/rasqal.h, rasqal/rasqal_query.c:
  3581. (rasqal_query_get_variable_sequence, rasqal_query_add_triple):
  3582. Removed. Were announced deprecated in 0.9.7
  3583. * rasqal/rasqal_expr.c (main): Call rasqal_uri_init and
  3584. rasqal_uri_finish around test code.
  3585. * rasqal/rasqal_literal.c (rasqal_new_integer_literal): Use
  3586. rasqal_xsd_integer_uri.
  3587. (rasqal_new_floating_literal): Use rasqal_xsd_double_uri.
  3588. (rasqal_literal_string_to_native): Use rasqal_xsd_integer_uri and
  3589. rasqal_xsd_double_uri. Also convert xsd:boolean rdf literals into
  3590. internal RASQAL_LITERAL_BOOLEAN
  3591. * rasqal/rasqal_general.c (rasqal_init): Call rasqal_uri_init
  3592. (rasqal_finish): Call rasqal_uri_finish and always call
  3593. raptor_finish.
  3594. (rasqal_uri_init, rasqal_uri_finish): Added to initialise/free
  3595. URIs used in the library.
  3596. * rasqal/rasqal_internal.h: Added interanl URIs
  3597. rasqal_xsd_namespace_uri, rasqal_xsd_integer_uri,
  3598. rasqal_xsd_double_uri and rasqal_xsd_boolean_uri. Added
  3599. prototypes for rasqal_uri_init and rasqal_uri_finish to make them.
  3600. * rasqal/tests/sparql/syntax/cast1.rq: Type check should be
  3601. xsd:integer.
  3602. 2005-03-17 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  3603. * rasqal/rasqal_engine.c (rasqal_engine_get_next_result): Finish
  3604. if the query has query graph or the query graph has no graph
  3605. patterns in it.
  3606. 2005-03-16 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  3607. * rasqal/tests/sparql/syntax/Makefile.am,
  3608. rasqal/tests/sparql/syntax/cast1.rq: Added cast1.rq
  3609. * Redland.i: Added librdf_log_message_code,
  3610. librdf_log_message_level, librdf_log_message_facility,
  3611. librdf_log_message_message, librdf_log_message_locator,
  3612. fraptor_locator_line, raptor_locator_column, raptor_locator_byte,
  3613. raptor_locator_file, raptor_locator_uri for raptor locators.
  3614. * rasqal/sparql_parser.y (PatternElementConstraint): Added, Taking
  3615. the AND Expression out of PatternElement, ensuring the constraint
  3616. gets added to the adjacent graph pattern rather than one with no
  3617. other content. Replaced all other references to PatternElement
  3618. with this term.
  3619. [now have 2 shift/reduce conflicts]
  3620. * rasqal/rasqal_engine.c (rasqal_query_build_declared_in): Less
  3621. debug noise for defined variables
  3622. * rasqal/tests/sparql/syntax/describe1.rq: use ?p in the query
  3623. * rasqal/tests/sparql/syntax/groups.rq: select ?mbox mentioned in
  3624. query
  3625. 2005-03-15 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  3626. * rasqal/Makefile.am, rasqal/rasqal_engine.c,
  3627. rasqal/rasqal_internal.h, rasqal/rasqal_graph_pattern.c: Move
  3628. rasqal_graph_pattern to new rasqal_graph_pattern.c
  3629. 2005-03-14 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  3630. * rasqal/rasqal_engine.c
  3631. (rasqal_engine_query_constraints_has_qname): Check for query
  3632. constraints in sub-graph patterns via
  3633. rasqal_engine_graph_pattern_constraints_has_qname on
  3634. query_graph_pattern.
  3635. (rasqal_engine_graph_pattern_constraints_has_qname): Check in
  3636. sub-graph patterns here.
  3637. (rasqal_engine_expand_graph_pattern_constraints_qnames): Expand
  3638. qnames in sub graph patterns via recursion.
  3639. (rasqal_engine_expand_query_constraints_qnames): Expand via
  3640. rasqal_engine_expand_graph_pattern_constraints_qnames on
  3641. query_graph_pattern.
  3642. (rasqal_engine_build_constraints_expression): Build constraints in
  3643. sub graph patterns via recursion.
  3644. (rasqal_new_graph_pattern_from_triples): Use
  3645. rasqal_graph_pattern_add_triples to init.
  3646. (rasqal_graph_pattern_add_triples): Added, to add triples to an
  3647. existing graph pattern.
  3648. (rasqal_graph_pattern_init): Init sub graph_patterns by recusion.
  3649. Optional flags are now stored per graph pattern.
  3650. (rasqal_query_graph_pattern_build_declared_in): Added to build the
  3651. variables_declared_in fields per graph_pattern.
  3652. (rasqal_query_build_declared_in): Use the above to init from the
  3653. query_graph_pattern down.
  3654. (rasqal_engine_prepare): Use
  3655. rasqal_engine_build_constraints_expression to init
  3656. query_graph_pattern constraints.
  3657. (rasqal_engine_execute_init): Moved graph pattern sequence init
  3658. into rasqal_graph_pattern_init.
  3659. (rasqal_engine_move_to_graph_pattern): Move within an outer graph
  3660. pattern not a query.
  3661. (rasqal_engine_do_step, rasqal_engine_do_optional_step): Perform a
  3662. step within an outer graph_pattern containing graph pattern gp.
  3663. (rasqal_engine_get_next_result): Execute over contents of query's
  3664. query_graph_pattern.
  3665. * rasqal/sparql_parser.y (WhereClauseOpt): Append to
  3666. query_graph_pattern
  3667. * rasqal/rdql_parser.y (rasqal_rdql_query_engine_prepare): Use
  3668. rasqal_graph_pattern_add_sub_graph_pattern on query_graph_pattern
  3669. * rasqal/rasqal_query.c (rasqal_new_query, rasqal_free_query):
  3670. Remove graph_patterns and optional_graph_pattern fields.
  3671. (rasqal_query_add_constraint,
  3672. rasqal_query_get_constraint_sequence,
  3673. rasqal_query_get_constraint): Still deprecated, but now use the
  3674. query's query_graph_pattern field.
  3675. (rasqal_query_get_graph_pattern_sequence,
  3676. rasqal_query_get_graph_pattern): Use the graph pattern sequence
  3677. inside the query's query_graph_pattern.
  3678. (rasqal_graph_pattern_add_sub_graph_pattern): Added.
  3679. (rasqal_query_print): Print from the query_graph_pattern.
  3680. * rasqal/rasqal_internal.h: Moved from structure rasqal_query to
  3681. rasqal_graph_pattern fields: current_graph_pattern,
  3682. max_optional_graph_pattern, optional_graph_pattern_matches_count
  3683. to graph_pattern structure for execution of sub-graph patterns.
  3684. Added prototype of rasqal_graph_pattern_add_triples.
  3685. * rasqal/rasqal.h: Added prototype for
  3686. rasqal_graph_pattern_add_sub_graph_pattern
  3687. 2005-03-13 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  3688. * rasqal/rasqal_engine.c (rasqal_new_graph_pattern): Added.
  3689. * rasqal/rasqal_query.c (rasqal_new_query, rasqal_free_query):
  3690. Init query_graph_pattern using rasqal_new_graph_pattern.
  3691. * rasqal/rasqal_internal.h: Added prototype for
  3692. rasqal_new_graph_pattern
  3693. * rasqal/sparql_parser.y, rasqal/rdql_parser.y: execute factory
  3694. method takes rasqal_query_results* arg
  3695. * rasqal/rasqal_engine.c: style
  3696. * rasqal/rasqal_query.c (rasqal_query_execute): execute factory
  3697. method takes rasqal_query_results*
  3698. * rasqal/rasqal_internal.h: execute method takes
  3699. rasqal_query_results*
  3700. * rasqal/rasqal_internal.h: style
  3701. 2005-03-10 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  3702. * rasqal/sparql_parser.y (rasqal_sparql_query_engine_prepare):
  3703. Move qname expansion checks from sparql_parse.
  3704. * rasqal/sparql_parser.y: Restore TriplePatternList as first part
  3705. of PatternElement.
  3706. * rasqal/tests/sparql/syntax/data.n3: Add something for casting
  3707. * rasqal/rasqal_expr.c (rasqal_expression_evaluate): Evaluate
  3708. RASQAL_EXPR_CAST.
  3709. * rasqal/rdql_parser.y (main): Cast for C++
  3710. * rasqal/tests/sparql/syntax/Makefile.am: Added cast0.rq
  3711. * rasqal/tests/sparql/syntax/cast0.rq: Added cast test
  3712. * rasqal/sparql_lexer.l: and {QUOTEDURI} add optional ')' and
  3713. return URI_LITERAL_BRACE, QNAME_LITERAL_BRACE instead of
  3714. URI_LITERAL / QNAME_LITERAL.
  3715. * rasqal/sparql_parser.y: Added tokens URI_LITERAL_BRACE
  3716. QNAME_LITERAL_BRACE for URI+'(' and QNAME+'('
  3717. (URIBrace): Added for handling the two above, replacing two
  3718. alternatives in BuiltinExpression, removing a conflict.
  3719. * raptor/tests/turtle/Makefile.am: add test-17.out
  3720. * rasqal/rasqal_expr.c (rasqal_new_cast_expression): Added for
  3721. type casting
  3722. (rasqal_free_expression, rasqal_expression_foreach,
  3723. rasqal_expression_evaluate, rasqal_expression_print): Added
  3724. RASQAL_EXPR_CAST support
  3725. * rasqal/rasqal.h: Added RASQAL_EXPR_CAST for sparql type casting
  3726. Added prototype for rasqal_new_cast_expression
  3727. * rasqal/sparql_lexer.l, rasqal/rdql_lexer.l,
  3728. raptor/turtle_lexer.l, raptor/n3_lexer.l: Tidy to use .|\n to
  3729. match any char
  3730. * raptor/n3_lexer.l, raptor/turtle_lexer.l: Added """long
  3731. literals""" Use yyterminate() to end on errors
  3732. * raptor/tests/turtle/test-17.out: test-17
  3733. * raptor/tests/turtle/bad-14.ttl, raptor/tests/turtle/test-17.ttl:
  3734. long literals
  3735. * raptor/tests/turtle/Makefile.am: Added test-17.ttl bad-14.ttl for
  3736. long literals
  3737. * rasqal/rdql_lexer.l, rasqal/sparql_lexer.l ('-strings, and
  3738. "-strings): Count passed into sparql_copy_string_token is one too
  3739. small.
  3740. * rasqal/rasqal_query.c (rasqal_graph_pattern_set_origin): Set
  3741. origin only on this graph pattern's columns/triples.
  3742. * rasqal/roqet.c: Indenting tidying
  3743. 2005-03-09 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  3744. * rasqal/roqet.c (roqet_graph_pattern_walk): Print constraints
  3745. per-graph pattern.
  3746. * rasqal/rasqal_engine.c (rasqal_graph_pattern_get_constraint):
  3747. use idx
  3748. * rasqal/sparql_lexer.l: Remove NOT
  3749. * rasqal/sparql_parser.y: Updates to grammar structure to match
  3750. that of the 17 February 2005 WD in
  3751. http://www.w3.org/TR/2005/WD-rdf-sparql-query-20050217/ Remove
  3752. unused NOT token 1 shift/reduce conflcit near: URI '(' which can
  3753. be a cast in a rule part of BuiltinExpression or a Literal.
  3754. * rasqal/sparql_parser.y (sparql_parse): Use
  3755. rasqal_engine_query_constraints_has_qname.
  3756. * rasqal/rdql_parser.y: Construct constraints in parsing via query
  3757. field constraints_sequence
  3758. (rasqal_rdql_query_engine_prepare): Init constraints_sequence and
  3759. after parsing, assign to the main graph pattern and delete it.
  3760. Then do the qname expansion.
  3761. (rdql_parse): Remove qname expansion to above function.
  3762. (main): Use rasqal_query_prepare rather than writing internal
  3763. fields directly.
  3764. * rasqal/rasqal.h: Deprecate rasqal_query_add_constraint,
  3765. rasqal_query_get_constraint_sequence and
  3766. rasqal_query_get_constraint Added prototypes for
  3767. rasqal_graph_pattern_add_constraint,
  3768. rasqal_graph_pattern_get_constraint_sequence and
  3769. rasqal_graph_pattern_get_constraint
  3770. * rasqal/rasqal_query.c: Moved constraints code to graph_pattern
  3771. (rasqal_free_query): Removed constraints code.
  3772. (rasqal_query_add_source, rasqal_query_get_source_sequence,
  3773. rasqal_query_get_source, rasqal_query_get_variable_sequence): Add
  3774. RASQAL_DEPRECATED_MESSAGE pointing at new choice.
  3775. (rasqal_query_add_constraint,
  3776. rasqal_query_get_constraint_sequence,
  3777. rasqal_query_get_constraint): Deprecated to methods on a
  3778. rasqal_graph_pattern
  3779. (rasqal_query_print): Remove constraints printing.
  3780. * rasqal/rasqal_engine.c
  3781. (rasqal_engine_query_constraints_has_qname): Renamed from
  3782. rasqal_engine_constraints_has_qname
  3783. (rasqal_engine_graph_pattern_constraints_has_qname): Added.
  3784. (rasqal_engine_expand_graph_pattern_constraints_qnames): Renamed
  3785. from rasqal_engine_expand_constraints_qnames
  3786. (rasqal_engine_expand_query_constraints_qnames): Added.
  3787. (rasqal_free_graph_pattern): Free constraints_expression and
  3788. constraints when present (moved from rasqal_free_query).
  3789. (rasqal_graph_pattern_add_constraint): Added, based on
  3790. rasqal_query_add_constraint.
  3791. (rasqal_graph_pattern_get_constraint_sequence): Added, based on
  3792. rasqal_query_get_constraint_sequence
  3793. (rasqal_graph_pattern_get_constraint): Added, based on
  3794. rasqal_query_get_constraint
  3795. (rasqal_graph_pattern_print): Add printing of constraints
  3796. (rasqal_engine_prepare): Build constraints expressions per graph
  3797. pattern.
  3798. (rasqal_engine_check_constraint, rasqal_engine_do_step,
  3799. rasqal_engine_do_optional_step): Operate constraints per-current
  3800. graph pattern.
  3801. * rasqal/rasqal_internal.h: RASQAL_DEPRECATED_MESSAGE gains a
  3802. count so it warns just once. rasqal_graph_pattern gains
  3803. constraints, constraints_expression fields. rasqal_query internal
  3804. looses constraints. Gains constraints_equence for rdql parsing
  3805. use. Added prototypes for
  3806. rasqal_engine_query_constraints_has_qname,
  3807. rasqal_engine_graph_pattern_constraints_has_qname,
  3808. rasqal_engine_expand_query_constraints_qnames and
  3809. rasqal_engine_expand_graph_pattern_constraints_qnames
  3810. 2005-03-06 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  3811. * raptor/raptor_serialize_rdfxmla.c
  3812. (raptor_new_qname_from_resource): Use maximal xml name length for
  3813. splitting predicate.
  3814. * raptor/raptor_serialize.c (raptor_rdfxml_serialize_statement):
  3815. Use maximal xml name length for splitting predicate.
  3816. 2005-03-01 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  3817. * rasqal/roqet.c: Update to use rasqal_data_graph* and methods.
  3818. * rasqal/rasqal_query.c (rasqal_query_print): Prefer printing
  3819. query->data_graphs not sources.
  3820. * rasqal/sparql_parser.y (FromClauseOpt): Add either a NAMED or
  3821. BACKGROUND rasqal_data_graph with FROM and WITH respectively.
  3822. * rasqal/rasqal_internal.h: rasqal_query gains data_graphs field,
  3823. note sources is DEPRECATED.
  3824. * rasqal/rasqal_query.c (rasqal_new_query, rasqal_free_query):
  3825. Added data_graphs field init, tidy.
  3826. (rasqal_query_add_data_graph,
  3827. rasqal_query_get_data_graph_sequence,
  3828. rasqal_query_get_data_graph): Added for rasqal_data_graph access
  3829. (rasqal_query_add_source, rasqal_query_get_source_sequence,
  3830. rasqal_query_get_source): Added deprecated docs
  3831. * rasqal/rasqal_expr.c (rasqal_query_add_source,
  3832. rasqal_query_get_source_sequence and rasqal_query_get_source):
  3833. Added deprecated notices.
  3834. (rasqal_new_data_graph, rasqal_free_data_graph,
  3835. rasqal_data_graph_print): Added for rasqal_data_graph class.
  3836. * rasqal/rasqal.h: Added rasqal_data_graph and
  3837. rasqal_data_graph_flags. Deprecated rasqal_query_add_source,
  3838. rasqal_query_get_source_sequence and rasqal_query_get_source Added
  3839. prototypes for rasqal_query_add_data_graph,
  3840. rasqal_query_get_data_graph_sequence, rasqal_query_get_data_graph,
  3841. rasqal_new_data_graph, rasqal_free_data_graph,
  3842. rasqal_data_graph_print
  3843. 2005-02-27 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  3844. * rasqal/win32_rasqal_config.h, rasqal/configure.ac,
  3845. rasqal/ChangeLog: Bumped version to 0.9.8
  3846. 2005-02-24 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  3847. * rasqal/roqet.1: roqet is a query util
  3848. * rasqal/roqet.c (roqet_graph_pattern_walk): Renamed from
  3849. roqet_walk_graph_pattern
  3850. * rasqal/roqet.c (roqet_query_walk): Added to do all query API
  3851. walking.
  3852. * rasqal/rasqal_query.c (rasqal_query_print): Tweak distinct,
  3853. limits wording>
  3854. * rasqal/tests/sparql/syntax/Makefile.am: Added distinct0.rq
  3855. limit0.rq
  3856. * rasqal/tests/sparql/syntax/distinct0.rq,
  3857. rasqal/tests/sparql/syntax/limit0.rq: Tests for DISTINCT and LIMIT
  3858. syntax
  3859. * rasqal/librasqal.3: Added rasqal_query_get_distinct and
  3860. rasqal_query_get_limit
  3861. * rasqal/sparql_parser.y (LimitClauseOpt): Set limit field.
  3862. * rasqal/rasqal_query.c: Tidy some docucomments.
  3863. (rasqal_new_query): Initialise distinct, limit fields.
  3864. (rasqal_query_get_distinct): Added, returning if query results
  3865. should be distinct.
  3866. (rasqal_query_get_limit): Added, returning the query results limit
  3867. specified in the query.
  3868. (rasqal_query_print): Print distinct, limit fields.
  3869. * rasqal/rasqal.h: Added rasqal_query_get_distinct and
  3870. rasqal_query_get_limit
  3871. * rasqal/rasqal_internal.h: Added limit field to struct
  3872. rasqal_query_s
  3873. * rasqal/rasqal_literal.c (rasqal_literal_compare): Recheck for
  3874. NULL variable values so that ?var1 compare ?var2 fails properly
  3875. when one is not bound.
  3876. * rasqal/sparql_parser.y: tweak optional warning
  3877. 2005-02-23 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  3878. * rasqal/roqet.c: Casts for C++
  3879. * rasqal/rasqal_redland.c (rasqal_redland_new_triples_source):
  3880. Return -1 on no data.
  3881. * rasqal/rasqal_raptor.c (rasqal_raptor_new_triples_source):
  3882. Return -1 on no data.
  3883. * rasqal/rasqal_query.c (rasqal_query_prepare): Init line, column,
  3884. byte to undefined.
  3885. * rasqal/rasqal_engine.c (rasqal_new_triples_source): Throw no
  3886. data/general error when new triple source factory fails to
  3887. construct.
  3888. (rasqal_engine_execute_init): Remove error throwing from here.
  3889. * rasqal/rasqal.h: new_triples_source factory method document
  3890. return value
  3891. * rasqal/roqet.c: Use raptor_stringbuffer to read large queries
  3892. from files, > buffer size.
  3893. 2005-02-21 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  3894. * raptor/examples/Makefile.am: Add gconf-2.0 to grapper args
  3895. 2005-02-19 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  3896. * rasqal/tests/sparql/part1/Makefile.am: Add dawg-query-004
  3897. dawg-result-004.n3
  3898. * rasqal/tests/sparql/part1/dawg-query-001,
  3899. rasqal/tests/sparql/part1/dawg-query-002,
  3900. rasqal/tests/sparql/part1/dawg-query-003,
  3901. rasqal/tests/sparql/part1/dawg-query-004: 2005-02-17 WD syntax
  3902. changes
  3903. 2005-02-18 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  3904. * rasqal/roqet.c: help typo
  3905. * rasqal/tests/sparql/syntax/construct2.rq,
  3906. rasqal/tests/sparql/syntax/construct1.rq,
  3907. rasqal/tests/sparql/syntax/construct0.rq,
  3908. rasqal/tests/sparql/syntax/ask0.rq: FROM to WITH for 2005-02-17 WD
  3909. * rasqal/sparql_parser.y (PatternElementForms): Remove unused
  3910. vars.
  3911. * rasqal/sparql_parser.y: Some updates for 2005-02-17 SPARQL query
  3912. WD. Added GRAPH, WITH tokens
  3913. (FromClauseOpt): Warn about FROM, add WITH.
  3914. (PatternElementForms): Warn with SOURCE, add GRAPH. Use
  3915. rasqal_graph_pattern_set_origin to pass on the varOrURI
  3916. (PatternElementForms): Warn about []
  3917. * rasqal/sparql_lexer.l: Added graph, with
  3918. * rasqal/rasqal_internal.h: Added rasqal_graph_pattern_set_origin
  3919. prototype.
  3920. * rasqal/rasqal_query.c (rasqal_graph_pattern_set_origin): Added,
  3921. to recursively set the origin on all triples inside.
  3922. 2005-02-17 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  3923. * rasqal/librasqal.3: Document 0.9.7 and graph pattern api calls.
  3924. * rasqal/roqet.1: Document -d, -n
  3925. * rasqal/roqet.c: Added -n/--dryrun to stop after preparing the
  3926. query. Added -w/--walk-query to walk and print the query using
  3927. the API.
  3928. (roqet_walk_graph_pattern): Added to walk the tree.
  3929. * rasqal/rasqal_query.c (rasqal_graph_pattern_get_triple): fix
  3930. range check
  3931. * rasqal/rasqal_query.c (rasqal_query_add_triple): Deprecated as
  3932. it doesn't construct the graph patterns and is of little use.
  3933. (rasqal_query_get_graph_pattern_sequence,
  3934. rasqal_query_get_graph_pattern): Added to get the
  3935. rasqal_graph_patterns inside a query.
  3936. (rasqal_graph_pattern_get_triple): Added to get a rasqal_triple
  3937. inside a graph_pattern.
  3938. (rasqal_graph_pattern_get_sub_graph_pattern_sequence,
  3939. (rasqal_graph_pattern_get_sub_graph_pattern): Added to get a
  3940. sub-graph pattern inside a graph pattern.
  3941. (rasqal_graph_pattern_get_flags): Added to get graph pattern
  3942. flags.
  3943. * rasqal/rasqal.h: Typo
  3944. * rasqal/rasqal_internal.h: Move rasqal_graph_pattern typedef,
  3945. rasqal_pattern_flags and rasqal_graph_pattern_print to public api.
  3946. Added RASQAL_DEPRECATED_MESSAGE macro.
  3947. * rasqal/rasqal.h: Export rasqal_graph_pattern typedef Export
  3948. rasqal_pattern_flags enum with value RASQAL_PATTERN_FLAGS_OPTIONAL
  3949. Deprecate rasqal_query_add_triple as it doesn't construct the
  3950. graph patterns and is of little use. Added prototypes for
  3951. rasqal_query_get_graph_pattern_sequence,
  3952. rasqal_query_get_graph_pattern, rasqal_graph_pattern_get_triple,
  3953. rasqal_graph_pattern_get_sub_graph_patterns_sequence,
  3954. rasqal_graph_pattern_get_sub_graph_pattern,
  3955. rasqal_graph_pattern_get_flags and exported
  3956. rasqal_graph_pattern_print
  3957. * rasqal/tests/rdql/testsuite/check-rdql,
  3958. rasqal/tests/sparql/check-sparql: Handle roqet select: and bound
  3959. variables:
  3960. * rasqal/rasqal.h: Added RASQAL_DEPRECATED macro. Deprecated
  3961. rasqal_query_get_variable_sequence Added
  3962. rasqal_query_get_bound_variable_sequence and
  3963. rasqal_query_get_all_variable_sequence.
  3964. * rasqal/rasqal_query.c (rasqal_query_get_variable_sequence):
  3965. Deprecate, prefer rasqal_query_get_bound_variable_sequence
  3966. (rasqal_query_get_bound_variable_sequence): Added, returning the
  3967. sequence of rasqal_variable* that are to be bound - appearing in
  3968. the query result.
  3969. (rasqal_query_get_all_variable_sequence): Added, return the
  3970. sequence of all rasqal_variable* mentioned in the query.
  3971. (rasqal_query_print): Print all variables as well as selected.
  3972. * rasqal/rasqal_literal.c (rasqal_literal_as_integer,
  3973. rasqal_literal_as_floating, rasqal_literal_as_string,
  3974. rasqal_literal_compare): Added remaining LITERAL enums for
  3975. -Wswitch-enum.
  3976. (rasqal_literal_compare): Handle two literal values.
  3977. (rasqal_literal_as_node): Handle RASQAL_LITERAL_BOOLEAN into a
  3978. xsd:boolean typed value.
  3979. * rasqal/rasqal_query.c (rasqal_query_results_get_binding_name):
  3980. Work even when query results are finished.
  3981. * rasqal/rasqal_query.c (rasqal_query_set_feature): Added
  3982. RASQAL_FEATURE_LAST case for -Wswitch-enum (there are no
  3983. features).
  3984. (rasqal_query_results_write, rasqal_query_results_get_triple):
  3985. Added RASQAL_LITERAL_UNKNOWN case for -Wswitch-enum.
  3986. (rasqal_query_results_get_triple): Added remaining LITERAL enums
  3987. for -Wswitch-enum. Note why forbidden - literal subjects,
  3988. predicates, bnode predicates.
  3989. * rasqal/rasqal_expr.c (rasqal_free_expression,
  3990. rasqal_expression_foreach, rasqal_expression_evaluate,
  3991. rasqal_expression_print): Added RASQAL_EXPR_UNKNOWN case for
  3992. -Wswitch-enum. Deleted "pattern" from rasqal_op_labels.
  3993. (rasqal_expression_print): Deleted RASQAL_EXPR_PATTERN Handle
  3994. RASQAL_EXPR_FUNCTION.
  3995. * rasqal/rasqal_literal.c (rasqal_free_literal,
  3996. rasqal_literal_print, rasqal_literal_as_boolean,
  3997. rasqal_literal_as_integer, rasqal_literal_as_floating,
  3998. rasqal_literal_as_string, rasqal_literal_compare,
  3999. rasqal_literal_equals): Added RASQAL_LITERAL_UNKNOWN case for
  4000. -Wswitch-enum.
  4001. (rasqal_literal_as_integer, rasqal_literal_as_floating): Return
  4002. RASQAL_LITERAL_BLANK as an error.
  4003. * rasqal/rasqal.h: Deleted RASQAL_EXPR_PATTERN - never used.
  4004. * rasqal/configure.ac: Add -Wswitch-enum to maintainer-mode gcc
  4005. switches to catch missing enum values in switches. Lots of those
  4006. near expression and literal handling.
  4007. * librdf/rdf_statement.c (librdf_free_statement): with threads fix
  4008. 2005-02-16 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  4009. * raptor/examples/grapper.c: Added gconf storing of window
  4010. width/height at namespace /apps/grapper
  4011. 2005-02-14 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  4012. * raptor/win32_raptor_config.h: Define RASQAL_INLINE to __inline
  4013. * raptor/raptor_nfc.c: Change inline to RAPTOR_INLINE
  4014. * raptor/raptor_internal.h:
  4015. Define RAPTOR_INLINE to inline if not alerady defined to something
  4016. else
  4017. * rasqal/win32_rasqal_config.h: Define RASQAL_INLINE to __inline
  4018. * rasqal/rasqal_query.c: Change inline to RASQAL_INLINE
  4019. * rasqal/rasqal_internal.h: Add RASQAL_INLINE protection and set
  4020. RASQAL_DEBUG if LIBRDF_DEBUG set.
  4021. * rasqal/rasqal.h: rasqal_query_results_write with RASQAL_API prefix.
  4022. 2005-02-12 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  4023. * raptor/raptor_serialize_rdfxmla.c
  4024. (raptor_rdfxmla_emit_subject_list_items,
  4025. raptor_rdfxmla_emit_subject_properties,
  4026. raptor_rdfxmla_emit_subject, raptor_rdfxmla_serialize_start): Copy
  4027. base URIs only when they are not NULL.
  4028. (raptor_rdfxmla_serialize_statement): Handle
  4029. predicate type RAPTOR_IDENTIFIER_TYPE_RESOURCE as an alternative.
  4030. * librdf/rdf_query_rasqal.c (librdf_query_rasqal_execute): Free
  4031. any existing stored rasqal result before executing.
  4032. (librdf_query_rasqal_free_results): Zap results pointer after
  4033. freeing rasqal results.
  4034. * rasqal/rasqal_engine.c (rasqal_reset_triple_meta): End any
  4035. triples match when resetting rasqal_triple_meta; this frees any
  4036. resources that were providing a source of triples.
  4037. 2005-02-10 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  4038. * raptor/raptor_xml.c (raptor_valid_xml_ID): Just return an error
  4039. status, don't error out here.
  4040. * rasqal/rasqal_query_test.c (main): Execute a query/free twice
  4041. with no checking of results in between.
  4042. 2005-02-08 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  4043. * rasqal/tests/sparql/bound/Makefile.am,
  4044. rasqal/tests/sparql/examples/Makefile.am,
  4045. rasqal/tests/sparql/part1/Makefile.am,
  4046. rasqal/tests/sparql/simple/Makefile.am,
  4047. rasqal/tests/sparql/syntax/Makefile.am, rasqal/configure.ac,
  4048. rasqal/tests/rdql/testsuite/Makefile.am: Add @RAPPER_PATH@ to the
  4049. PATH before check-rdql/sparql calls so that if both raptor and
  4050. rasqal are being built, rapper can be found before installation.
  4051. * raptor/Makefile.am: Add n3_lexer.l n3_parser.y to EXTRA_DIST
  4052. otherwise building with --enable-maintainer-mode from tarball will
  4053. fail.
  4054. * raptor/raptor_rss.c: Add RSS enclosures serializing into RSS 1.0
  4055. raptor_rss10_serializer_context gains enclosures sequence
  4056. (raptor_rss10_serialize_init, raptor_rss10_serialize_terminate):
  4057. Init, free enclosures sequence.
  4058. (raptor_rss10_store_statement): If subject isn't an RSS item, see
  4059. if it is an enclosure and if so, set the type.
  4060. (raptor_rss10_serialize_statement): If type is enclosure, walk the
  4061. list of enclosures and add a new one if not seen already.
  4062. (raptor_rss10_emit_item): Add indent arg as this is called
  4063. recursively. Use it to print spaces from teh raptor_rss10_spaces
  4064. constant. Only serialize an rdf:about if the item has a URI. If
  4065. field is enc:enclosure, find the enclosure item and write it
  4066. indented further recursively calling raptor_rss10_emit_item.
  4067. * raptor/raptor_rss.c: re-comment back item enclosure thing
  4068. 2005-02-07 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  4069. * raptor/raptor_rss.c (raptor_rss_parser_processNode): Do not
  4070. assign 'alternate' attribute values when there's no field to use.
  4071. * librdf/rdf_node.c (librdf_node_encode): init datatype_uri_string
  4072. to prevent a gcc warning.
  4073. 2005-02-06 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  4074. * configure.ac, librdf/win32_rdf_config.h:
  4075. Bumped version to 1.0.1
  4076. * rasqal/configure.ac, rasqal/win32_rasqal_config.h:
  4077. Bumped version to 0.9.7
  4078. * raptor/configure.ac, raptor/win32_raptor_config.h:
  4079. Bumped version to 1.4.6
  4080. * librdf/win32_rdf_config.h, configure.ac: 1.0.0
  4081. * Snapshotted redland_1_0_0 for 1.0.0 release
  4082. 2005-02-04 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  4083. * Redland.i: librdf_query_results_to_string returns a char*
  4084. * Redland.i: librdf_query_results_to_file returns an int.
  4085. %newobject librdf_query_results_to_string
  4086. * rasqal/autogen.sh, raptor/autogen.sh: Add autoheader to the path
  4087. search.
  4088. * rasqal/configure.ac, raptor/configure.ac, configure.ac:
  4089. AM_PROG_LIBTOOL to AC_PROG_LIBTOOL seems to make things happier
  4090. * autogen.sh: fix
  4091. * autogen.sh: Add autoheader to the fun
  4092. * rasqal/autogen.sh: Add libtoolize to the path search.
  4093. * raptor/autogen.sh: tidy
  4094. * raptor/autogen.sh: Add libtoolize to the path search.
  4095. * autogen.sh: No need for swig here. Add libtoolize to the path
  4096. search.
  4097. 2005-02-03 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  4098. * utils/rdfproc.c, rasqal/sparql_lexer.l, rasqal/rasqal_expr.c:
  4099. casts for C++
  4100. * rasqal/configure.ac: In maintainer mode, stop if flex is too
  4101. old, no flex or YACC is not GNU bison.
  4102. * raptor/configure.ac: In maintainer mode, stop if there is no
  4103. flex.
  4104. * raptor/configure.ac: In maintainer mode, stop if flex is too old
  4105. or YACC is not GNU bison.
  4106. * rasqal/sparql_lexer.l (sparql_copy_string_token): Fix wrong
  4107. length on checking qname.
  4108. * rasqal/sparql_lexer.l ({QNAME}): Now assigns a uri using
  4109. sparql_copy_qname.
  4110. (sparql_copy_qname): expands and returns a raptor_uri* here. When
  4111. running standalone as rasqal_lexer_test, ignore unexpanded qnames.
  4112. (sparql_copy_string_token): When running standalone as
  4113. rasqal_lexer_test, ignore unexpanded qnames.
  4114. * rasqal/sparql_lexer.l (sparql_copy_string_token): Check and
  4115. expand datatype qnames here, since prefixes are always defined
  4116. before qname use..
  4117. * rasqal/rasqal_expr.c: Added support for expressions:
  4118. STR, LANG, DATATYPE, ISURI, ISBLANK and ISLITERAL
  4119. (rasqal_free_expression, rasqal_expression_foreach,
  4120. rasqal_expression_print_op, rasqal_expression_print): Updated to
  4121. handle the expression types above.
  4122. (rasqal_expression_evaluate): Print evaluation before and after debug
  4123. messages. Edit main body to not return in cases.
  4124. Implement the expressions above.
  4125. * rasqal/sparql_parser.y:
  4126. Added tokens STR, LANG, DATATYPE, ISURI, ISBLANK and ISLITERAL
  4127. (BuiltinExpression): Use the tokens above to implement built in
  4128. functions of the same names.
  4129. * rasqal/sparql_lexer.l:
  4130. Added keywords STR, LANG, DATATYPE, ISURI, ISBLANK and ISLITERAL
  4131. * rasqal/rasqal.h: Added rasqal_op RASQAL_EXPR_STR, RASQAL_EXPR_LANG,
  4132. RASQAL_EXPR_DATATYPE, RASQAL_EXPR_ISURI, RASQAL_EXPR_ISBLANK,
  4133. RASQAL_EXPR_ISLITERAL,
  4134. * rasqal/librasqal.3, rasqal/rasqal_literal.c: Updates for 0.9.6
  4135. * raptor/raptor_libxml.c:
  4136. Use RAPTOR_LIBXML_XMLSAX2INTERNALSUBSET test for a function rather
  4137. than HAVE_LIBXML_SAX2_H test for a header to work on OSX 10.3.x which
  4138. has inconsistent system libxml shared library/headers.
  4139. * raptor/configure.ac:
  4140. Test for xmlSAX2InternalSubset so that it checks for the broken OSX
  4141. 10.3.x libxml features in the shared library rather than the ones
  4142. declared in the inconsistent header.
  4143. 2005-02-02 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  4144. * rasqal/rasqal.rdf.in: Updates for schema
  4145. * configure.ac, Makefile.am: Added redland.rdf.in DOAP
  4146. * redland.rdf.in: Redland DOAP
  4147. * raptor/raptor.rdf.in: Updates for schema
  4148. * configure.ac: need rasqal 0.9.6
  4149. * configure.ac: Sleepycat/BDB 4.3
  4150. * raptor/tests/Makefile.am (check-rdfxmla):
  4151. rdfdiff should read $name-rdfxmla.rdf from builddir
  4152. 2005-02-01 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  4153. * raptor/rdfdiff.c: C style
  4154. Move more declarations to start of blocks.
  4155. * raptor/rdfdiff.c (rdfdiff_free_file): Restore what I broke.
  4156. * raptor/rdfdiff.c: C style
  4157. Move more declarations to start of blocks.
  4158. * raptor/raptor_xml_writer.c (raptor_xml_writer_end_element):
  4159. Move int decl to start of block.
  4160. * raptor/raptor_serialize_rdfxmla.c (raptor_unique_id):
  4161. Terminate string right.
  4162. * raptor/rdfdiff.c, raptor/raptor_serialize_rdfxmla.c: Casts for C++
  4163. * raptor/raptor_serialize_rdfxmla.c: C style
  4164. (raptor_rdfxmla_emit_subject_list_items,
  4165. raptor_rdfxmla_emit_subject_properties): Declare i at start of block.
  4166. * raptor/rdfdiff.c, raptor/raptor_serialize_rdfxmla.c: Import
  4167. rdf/xml with abbreviations serializer 'rdfxml-abbrev' written by
  4168. Steve Shepard
  4169. * raptor/rapper.1: rdfxml-abbrev
  4170. * raptor/rdfdump.c: Widen help formatting for longer serializer name
  4171. * raptor/raptor_xml_writer.c: Various C style fixes.
  4172. Make an enum for raptor_xml_writer_flags.
  4173. Added XML_WRITER_ prefixes to macro and defines.
  4174. Moved spaces_buffer to module static.
  4175. Noted struct nsd and namespaces sorting are duplicated code.
  4176. Docucomments for several methods (not yet used by doc system) noting
  4177. use of the flags.
  4178. * raptor/Makefile.am: clean rdfdiff
  4179. * raptor/Makefile.am: rdfdiff to EXTRA_PROGRAMS for now
  4180. * raptor/ChangeLog, raptor/Makefile.am, raptor/raptor.h,
  4181. raptor/raptor_feature.c, raptor/raptor_general.c,
  4182. raptor/raptor_internal.h, raptor/raptor_xml_writer.c,
  4183. raptor/tests/Makefile.am: Import rdf/xml with abbreviations
  4184. serializer 'rdfxml-abbrev' written by Steve Shepard
  4185. * rasqal/rasqal_engine.c (rasqal_engine_do_optional_step):
  4186. When the constraint fails, zero the
  4187. new_bindings_count since none matter now.
  4188. * rasqal/sparql_lexer.l: Added BNAME token
  4189. ({BNAME}): Added to just do a blank node.
  4190. * rasqal/configure.ac: Added dir tests/sparql/bound
  4191. * rasqal/tests/sparql/syntax/Makefile.am,
  4192. rasqal/tests/sparql/syntax/construct2.rq: Construct with bnodes in
  4193. construct2.rq
  4194. * rasqal/tests/sparql/bound/Makefile.am,
  4195. rasqal/tests/sparql/bound/bound1-result.n3,
  4196. rasqal/tests/sparql/bound/bound1.rq,
  4197. rasqal/tests/sparql/bound/data.n3,
  4198. rasqal/tests/sparql/bound/manifest.n3: DAWG BOUND tests
  4199. * rasqal/tests/sparql/Makefile.am: added bound
  4200. * rasqal/sparql_lexer.l ({QNAME}): If it starts _:, make a
  4201. BLANK_LITERAL
  4202. (sparql_token_print, sparql_token_free): Added BLANK_LITERAL
  4203. support.
  4204. * rasqal/sparql_parser.y:
  4205. Added tokens BLANK_LITERAL ConstructPattern (rq23) BNode (rq23),
  4206. TripleTemplate (rq23) and VarOrLiteralOrBNode VarOrURIOrBNode
  4207. (ConstructClause): Now using ConstructPattern
  4208. (ConstructPattern): Added from rq23, using TripleTemplate
  4209. (TripleTemplate): Added from rq23, using VarOrURIOrBNode for subject
  4210. and VarOrLiteralOrBNode for object.
  4211. (VarOrURIOrBNode): Added, using BNode
  4212. (VarOrLiteralOrBNode): Added, using BNode
  4213. (BNode): Added from rq23
  4214. * rasqal/rasqal_expr.c (rasqal_free_expression,
  4215. rasqal_expression_evaluate, rasqal_expression_print_op): Added
  4216. RASQAL_EXPR_BOUND support.
  4217. * rasqal/rasqal.h: Added RASQAL_EXPR_BOUND
  4218. * rasqal/sparql_parser.y:
  4219. Updates from http://www.w3.org/2001/sw/DataAccess/rq23/
  4220. $Revision: 1.187 $ of $Date: 2005/02/01 10:56:24 $
  4221. Added tokens BASE LOAD BOUND
  4222. Renumbered some of comments to rq23 above.
  4223. (ReportFormat) Moved big () inside Query here
  4224. (SelectClause, DescribeClause, ConstructClause): Note now in rq23
  4225. (AskClause): Added from rq23.
  4226. (LoadClauseOpt): Added from rq23.
  4227. (LimitCaluseOpt): Added from rq23.
  4228. (PatternElementForms OPTIONAL GraphPattern1): Mark the graph pattern
  4229. as optional in the flags.
  4230. (BaseDeclOpt): Added from rq23.
  4231. (UnaryExpression): Call BuiltinExpression
  4232. (BuiltinExpression): Added from rq23 just with BOUND
  4233. * rasqal/sparql_lexer.l: Added OPTIONAL, BASE, LOAD and BOUND
  4234. tokens and keywords
  4235. * librdf/rdf_query_rasqal.c
  4236. (librdf_query_rasqal_query_results_update_statement): Handle empty
  4237. rstatement right away.
  4238. (librdf_query_rasqal_results_as_stream): If no statements at all,
  4239. return NULL.
  4240. * librdf/rdf_query_rasqal.c:
  4241. (librdf_query_rasqal_query_results_next_statement) Remove unused
  4242. vars.
  4243. * utils/rdfproc.c: Handle bindings, boolean and RDF graph query
  4244. results.
  4245. * librdf/rdf_query_rasqal.c
  4246. (librdf_query_rasqal_query_results_update_statement): Return 0
  4247. * librdf/rdf_query_rasqal.c:
  4248. Protect all query results from NULL pointers.
  4249. (librdf_query_rasqal_query_results_end_of_stream,
  4250. librdf_query_rasqal_query_results_update_statement,
  4251. librdf_query_rasqal_query_results_next_statement,
  4252. librdf_query_rasqal_query_results_get_statement
  4253. librdf_query_rasqal_query_results_finished): Added, implementing
  4254. RDF graph query results.
  4255. (librdf_query_rasqal_results_as_stream): Updated to use the above.
  4256. 2005-01-31 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  4257. * Redland.i: Added librdf_query_results_is_bindings,
  4258. librdf_query_results_is_boolean, librdf_query_results_is_graph,
  4259. and librdf_query_results_get_boolean
  4260. * librdf/rdf_query_rasqal.c
  4261. (librdf_query_rasqal_results_is_bindings,
  4262. librdf_query_rasqal_results_is_boolean,
  4263. librdf_query_rasqal_results_is_graph,
  4264. librdf_query_rasqal_results_get_boolean):
  4265. Added, calling rasqal.
  4266. (librdf_query_rasqal_results_as_stream): Added, not implemented.
  4267. * librdf/rdf_query_results.c (librdf_query_results_as_stream):
  4268. Moved to end to match new query results.
  4269. (librdf_query_results_is_bindings, librdf_query_results_is_boolean,
  4270. librdf_query_results_is_graph, librdf_query_results_get_boolean,
  4271. librdf_query_results_as_stream): Added.
  4272. * librdf/rdf_query.h: Added results_is_bindings,
  4273. results_is_boolean, results_is_grpah and results_get_boolean
  4274. factory methods.
  4275. Added prototypes for librdf_query_results_is_bindings,
  4276. librdf_query_results_is_boolean, librdf_query_results_is_graph and
  4277. librdf_query_results_get_boolean
  4278. * rasqal/rasqal_query.c (rasqal_query_execute): Init ask_result.
  4279. (rasqal_free_query_results, rasqal_query_results_is_bindings,
  4280. rasqal_query_results_is_boolean, rasqal_query_results_is_graph):
  4281. Docs.
  4282. (rasqal_query_results_next, rasqal_query_results_get_triple,
  4283. rasqal_query_results_next_triple): C style.
  4284. (rasqal_query_results_get_triple): FIXME about bnodeids is done.
  4285. (rasqal_query_results_get_boolean): Docs and implement by getting
  4286. first result and storing if it worked.
  4287. * rasqal/rasqal_internal.h: Added ask_result to rasqal_query.
  4288. * rasqal/tests/sparql/syntax/Makefile.am: Added ask0.rq
  4289. * rasqal/tests/sparql/syntax/ask0.rq: ASK test
  4290. 2005-01-30 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  4291. * librdf/rdf_query.c: docs
  4292. * librdf/rdf_query.c (main): C99
  4293. * rasqal/rasqal_engine.c (rasqal_engine_assign_variables): C99
  4294. * librdf/rdf_storage_sqlite.c: Casts for C++
  4295. * librdf/rdf_query_rasqal.c (rasqal_redland_bind_match): Casts for C++
  4296. and calculate, return the matched parts.
  4297. Updated untested origin code.
  4298. (librdf_query_rasqal_execute): Remove code for rasqal < 0.9.4 fixes.
  4299. * rasqal/rasqal_xsd_datatypes.c: Casts for C++
  4300. * rasqal/rasqal_redland.c (rasqal_redland_bind_match):
  4301. Updated untested redland origin code.
  4302. * rasqal/rasqal_query.c: Casts for C++
  4303. * rasqal/rasqal_engine.c (rasqal_graph_pattern_get_next_match):
  4304. int parts
  4305. * rasqal/librasqal.3: Updates for API changes to 2005-01-30
  4306. 2005-01-29 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  4307. * rasqal/roqet.1: Document -f/--format. Reference -o xml spec
  4308. * rasqal/roqet.c: Note that -o xml writes the SPARQL xml format.
  4309. * rasqal/rasqal_engine.c (rasqal_engine_assign_variables):
  4310. variables_declared_in is now an array of integer (triple) column
  4311. numbers not pointers to graph patterns.
  4312. (rasqal_reset_triple_meta): Return number of variables that were
  4313. set to NULL.
  4314. (rasqal_graph_pattern_init): Update to compare triple column
  4315. numbers, not graph patterns for defining vars.
  4316. (rasqal_query_build_declared_in): Update for variables_declared_in
  4317. changed.
  4318. (rasqal_graph_pattern_get_next_match): Adjust new_bindings_count
  4319. by number of variables reset by rasqal_reset_triple_meta. Only
  4320. run the bind_match factory method if there are triple parts to
  4321. bind. If it is run, adjust the new_bindings_count when variables
  4322. are set.
  4323. (rasqal_engine_do_optional_step): If there were new bindings,
  4324. return a result otherwise continue searching.
  4325. (rasqal_engine_get_next_result): Reset new_bindings_count on
  4326. entry.
  4327. * rasqal/rasqal_internal.h: rasqal_query: variables_declared_in is
  4328. now an array of integer column numbers. Added new_bindings_count
  4329. * rasqal/rasqal_query.c (rasqal_free_query): tidy free of
  4330. variables_declared_in, now an intarray.
  4331. 2005-01-28 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  4332. * rasqal/roqet.c: Add -f / --format to set output syntax format
  4333. for graph results.
  4334. * rasqal/roqet.c: Update for rasqal_query_results_get_triple
  4335. returning a shared raptor_statement. Use a raptor_serializer to
  4336. format it.
  4337. * rasqal/rasqal_query.c (rasqal_free_query): Free rasqal_triple
  4338. allocated.
  4339. (rasqal_prefix_id): Prefix a blank node id with 'r'<query result
  4340. number>'_'
  4341. (rasqal_query_results_get_triple): Return a shared
  4342. raptor_statement.
  4343. (rasqal_query_results_next_triple): Free the internal
  4344. rasqal_triple before moving on.
  4345. * rasqal/rasqal_internal.h: Added rasqal_triple internal to
  4346. rasqal_query
  4347. * rasqal/rasqal.h: Changed rasqal_query_results_get_triple to
  4348. return raptor_statement
  4349. * rasqal/rasqal_internal.h: Added raptor_statement to rasqal_query
  4350. 2005-01-27 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  4351. * rasqal/tests/rdql/testsuite/check-rdql,
  4352. rasqal/tests/sparql/check-sparql (run_test): don't delete test
  4353. output files here, let main do it.
  4354. * rasqal/roqet.c: Free returned triple result
  4355. * rasqal/roqet.c: Tidy the query result messages
  4356. * rasqal/roqet.c (main): Format bindings, triples and boolean
  4357. results.
  4358. * rasqal/rasqal_query.c (rasqal_query_execute): Init
  4359. current_triple_result.
  4360. (rasqal_query_results_is_bindings,
  4361. rasqal_query_results_is_boolean, rasqal_query_results_is_graph):
  4362. Added to test query result formats.
  4363. (rasqal_query_results_get_count, rasqal_query_results_next,
  4364. rasqal_query_results_finished, rasqal_query_results_get_bindings,
  4365. rasqal_query_results_get_binding_value,
  4366. rasqal_query_results_get_binding_name,
  4367. rasqal_query_results_get_binding_value_by_name,
  4368. rasqal_query_results_get_bindings_count): Fail if result type is
  4369. not bindings.
  4370. (rasqal_query_results_get_triple): Added, to get the current
  4371. triple from a graph result.
  4372. (rasqal_query_results_next_triple): Added, to move to the next
  4373. triple in a graph result.
  4374. (rasqal_query_results_get_boolean): Added, always false for now.
  4375. * rasqal/rasqal_literal.c (rasqal_literal_as_node): Handle
  4376. variable values, convert the variable result.
  4377. * rasqal/rasqal_internal.h: Added current_triple_result to
  4378. rasqal_query
  4379. * rasqal/rasqal.h: Added rasqal_query_results_is_bindings,
  4380. rasqal_query_results_is_boolean, rasqal_query_results_get_boolean,
  4381. rasqal_query_results_is_graph, rasqal_query_results_get_triple and
  4382. rasqal_query_results_next_triple
  4383. * rasqal/rasqal_engine.c (rasqal_engine_assign_variables): Build
  4384. construct triples when CONSTRUCT * is given
  4385. * rasqal/rasqal_expr.c (rasqal_new_triple_from_triple): Added copy
  4386. constructor
  4387. * rasqal/rasqal.h: Added rasqal_new_triple_from_triple
  4388. * rasqal/tests/sparql/syntax/Makefile.am,
  4389. rasqal/tests/sparql/syntax/construct1.rq,
  4390. rasqal/tests/sparql/syntax/construct0.rq: CONSTRUCT syntax
  4391. 2005-01-26 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  4392. * raptor/rapper.1: mention what RSS tag soup can do
  4393. * raptor/turtle_parser.y, raptor/n3_parser.y: Rename
  4394. raptor_new_triple/raptor_free_triple to have n3/turtle in the
  4395. name.
  4396. * raptor/raptor_internal.h, raptor/raptor_general.c,
  4397. raptor/n3_parser.y, raptor/n3_lexer.l, raptor/n3_common.h,
  4398. raptor/configure.ac, raptor/Makefile.am: Update Notation3 code
  4399. with later Turtle improvements. Built it with maintainer mode
  4400. only.
  4401. * raptor/turtle_lexer.l (turtle_copy_token): Renamed from
  4402. copy_token
  4403. (turtle_copy_string_token): Renamed from copy_string_token.
  4404. (main): filename moved here from global!
  4405. 2005-01-24 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  4406. * raptor/raptor_rss.c (raptor_rss_emit_item): Do not emit an items
  4407. property, that's only done by raptor_rss_emit_connection.
  4408. * rasqal/rasqal_expr.c (rasqal_new_function_expression): Added to
  4409. create a function call expression.
  4410. (rasqal_free_expression, rasqal_expression_print): Handle
  4411. RASQAL_EXPR_FUNCTION.
  4412. * rasqal/rasqal.h: Added name, args fields to rasqal_expression
  4413. Added rasqal_new_function_expression
  4414. * rasqal/Makefile.am: Added rasqal_xsd_datatypes_test
  4415. * rasqal/rasqal_xsd_datatypes.c: Rasqal XSD datatypes
  4416. 2005-01-22 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  4417. * raptor/raptor_rss.c: Added RSS1.1 namespace
  4418. http://inamidst.com/rss1.1/
  4419. (raptor_rss_parser_processNode): Turn Channel into RSS type
  4420. channel.
  4421. (raptor_rss_emit_type_triple, raptor_rss_emit_enclosure,
  4422. raptor_rss_emit_item, raptor_rss_emit_connection,
  4423. raptor_rss_emit): Add error return value and stop if there is no
  4424. identifier.
  4425. (raptor_rss_emit): Stop if channel or any item has no identifier.
  4426. (raptor_rss_parse_chunk): Pass on failures from above to user.
  4427. (raptor_rss10_build_xml_names): Replace RSS1.1 namespace with
  4428. RSS1.0
  4429. (raptor_rss10_emit_item): Add item_type arg and use it to only
  4430. emit items for the channel.
  4431. 2005-01-21 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  4432. * raptor/raptor.h: Added const to src arg of
  4433. raptor_ntriples_string_as_utf8_string.
  4434. * rasqal/tests/rdql/testsuite/Makefile.am: S-03, S-04, S-05 work
  4435. * rasqal/sparql_lexer.l (PREFIX): Allow \
  4436. (NAME): Allow \
  4437. (<ID>{NAME}, <PREF>{PREFIX}, {QNAME}) Terminate when a name is not
  4438. created.
  4439. (sparql_copy_name, sparql_copy_qname): Use
  4440. rasqal_escaped_name_to_utf8_string to turn the escaped name into
  4441. just UTF-8, then check it is a legal XML name.
  4442. * rasqal/rdql_lexer.l (PREFIX): Allow \
  4443. (NAME): Allow \
  4444. (<*>{NAME}, {QNAME}, <{QNAME}>) Terminate when a name is not
  4445. created.
  4446. (rdql_copy_name, rdql_copy_qname): Use
  4447. rasqal_escaped_name_to_utf8_string to turn the escaped name into
  4448. just UTF-8, then check it is a legal XML name.
  4449. * rasqal/rasqal_internal.h: Added prototype for
  4450. rasqal_escaped_name_to_utf8_string
  4451. * rasqal/rasqal_general.c (rasqal_escaped_name_to_utf8_string):
  4452. Added to turn a UTF-8 and/or \u-escaped name as a UTF-8 string.
  4453. Intended as a lexer helper function. A combination of
  4454. raptor_ntriples_string_as_utf8_string and raptor_ntriples_term
  4455. with the parsing part stripped out, and just \u, \U allowed,
  4456. always allowing UTF-8 and working just on full strings.
  4457. * raptor/libraptor.3: Deprecate
  4458. raptor_ntriples_string_as_utf8_string
  4459. * raptor/raptor.h: Deprecate raptor_ntriples_string_as_utf8_string
  4460. - rather too internal to be useful, since it only works with a
  4461. parser.
  4462. * raptor/ntriples_parse.c (raptor_ntriples_term_valid): Remove
  4463. rdf_parser arg; only for a fatal error - just die.
  4464. (raptor_ntriples_term): Make start a const arg. When copying UTF8
  4465. bytes, move on the correct number of bytes in src and dest.
  4466. Update use of raptor_ntriples_term_valid.
  4467. (raptor_ntriples_string_as_utf8_string,
  4468. raptor_ntriples_parse_line): Update uses of
  4469. raptor_ntriples_term_valid.
  4470. 2005-01-18 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  4471. * rasqal/tests/rdql/testsuite/Makefile.am: Remove S-02 from
  4472. expected failures now that the formatting matches the expected
  4473. N-Triples escaped output.
  4474. * rasqal/rasqal_literal.c (rasqal_literal_print): Print string as
  4475. N-Triples-escaped using raptor_print_ntriples_string.
  4476. 2005-01-17 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  4477. * raptor/raptor_general.c
  4478. (raptor_statement_part_as_counted_string): Declare language_len to
  4479. NULL, uri_string as unsigned char*.
  4480. 2005-01-16 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  4481. * raptor/raptor_rss.c (raptor_rss10_emit_item): Copy original
  4482. base_uri each time, a raptor_new_xml_element is made and don't
  4483. lose the original reference.
  4484. * raptor/raptor_xml_writer.c (main): Copy original base_uri each
  4485. time, don't lose the original reference.
  4486. * rasqal/rasqal_query.c (rasqal_query_results_write): Copy
  4487. original base_uri each time, don't lose the original reference.
  4488. * rasqal/rasqal_query.c (rasqal_query_results_write): Handle
  4489. RASQAL_LITERAL_BLANK. Doh!
  4490. * rasqal/win32_rasqal_config.h, rasqal/configure.ac: Bumped
  4491. version to 0.9.6
  4492. * rasqal/Makefile.am: Add @RASQAL_EXTERNAL_LIBS@ $(MEM_LIBS) to
  4493. all *_LDADD It seems to help mysterious shared library linking
  4494. problems on Solaris.
  4495. * rasqal/Makefile.am: Remove AM_LDFLAGS, libtool works that out
  4496. from the LIBADD for librasqal and adds it into the .la and uses it
  4497. from there.
  4498. * rasqal/Makefile.am: Make the tests using automake rules rather
  4499. than hand-crafted compile and link rules which were tricky to
  4500. maintain. Added EXTRA_PROGRAMS for the tests.
  4501. * rasqal/rasqal_query_test.c: Handle rdql or sparql tests
  4502. * rasqal/rasqal_query_test.c:
  4503. (main) Handle no rdql available with an warning and exit 0
  4504. 2005-01-15 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  4505. * rasqal/rasqal_literal.c (rasqal_literal_compare): Move
  4506. declarations to start of block.
  4507. * rasqal/librasqal.3: Updates for 0.9.5
  4508. * rasqal/configure.ac: Require raptor 1.4.4
  4509. * raptor/raptor_general.c
  4510. (raptor_statement_part_as_counted_string): Initialise
  4511. language_len, uri_string used in some cases to prevent gcc
  4512. warnings.
  4513. * raptor/win32_raptor_config.h, raptor/configure.ac: Bumped
  4514. version to 1.4.5
  4515. * raptor/Makefile.am: Add ChangeLog.2 ChangeLog.3 ChangeLog.4
  4516. * raptor/raptor_rss.c (raptor_rss10_emit_item): Portability -
  4517. declare rdf_Seq* variables at start of block.
  4518. * rasqal/rasqal_redland.c, rasqal/rasqal_raptor.c,
  4519. rasqal/rasqal_engine.c: Casts for C++
  4520. * rasqal/sparql_parser.y (URIList): Copy the URI before freeing
  4521. the rasqal_literal.
  4522. 2005-01-14 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  4523. * Redland.i: Added librdf_model_contains_context
  4524. * rasqal/tests/sparql/part1/dawg-result-004.n3,
  4525. rasqal/tests/sparql/part1/manifest.n3,
  4526. rasqal/tests/sparql/part1/dawg-query-004: Import dawg-query-004
  4527. dawg-result-004.n3
  4528. * librdf/rdf_model.h: Added librdf_model_contains_context
  4529. * librdf/rdf_model.c (librdf_model_contains_context): Added, to
  4530. find a context node in a model.
  4531. (main): Added test.
  4532. 2005-01-13 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  4533. * raptor/win32_raptor_config.h: win32 build update (patch from
  4534. Dave Viner)
  4535. * raptor/win32/Makefile.am: Added rapepr.dsp
  4536. * raptor/win32/rapper.dsp, raptor/win32/raptor.dsp,
  4537. raptor/win32/raptor.dsw, raptor/win32/raptortest.dsp: win32 build
  4538. update (patch from Dave Viner)
  4539. * raptor/win32_raptor_config.h: RAPTOR_INTERNAL should be defined
  4540. in the build configuration
  4541. * rasqal/win32_rasqal_config.h: RASQAL_INTERNAL should be defined
  4542. in the build configuration
  4543. * librdf/win32_rdf_config.h: Do not define REDLAND_INTERNAL at
  4544. all. LIBRDF_INTERNAL should be defined in the build configuration
  4545. * librdf/librdf.h: Use LIBRDF_INTERNAL not REDLAND_INTERNAL
  4546. 2005-01-12 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  4547. * raptor/raptor_rss.c: Recognise old RSS 0.9 namespace and handle
  4548. it as rss 1.0.
  4549. * rasqal/sparql_lexer.l: Updated to use yyterminate() when an
  4550. error is reported, either in the lexer or in a failing function
  4551. called. Deleted use of ERROR_TOKEN. Mention SPARQL in all the
  4552. error and warning messages.
  4553. * rasqal/rdql_lexer.l: Updated to use yyterminate() when an error
  4554. is reported, either in the lexer or in a failing function called.
  4555. Deleted use of ERROR_TOKEN. Mention RDQL in all the error and
  4556. warning messages.
  4557. * rasqal/sparql_parser.y: Delete ERROR_TOKEN
  4558. (PatternElementForms): Add SPARQL to warning message.
  4559. (sparql_parse): Add SPARQL to error message.
  4560. * rasqal/rdql_parser.y: Delete ERROR_TOKEN
  4561. * Redland.i: Export librdf_query_results_to_file and
  4562. librdf_query_results_to_string
  4563. * rasqal/rasqal_expr.c (rasqal_expression_evaluate): For
  4564. STR_MATCH, STR_NMATCH ensure the literal returned from the lhs
  4565. expression evaluation is always freed.
  4566. 2005-01-11 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  4567. * rasqal/rdql_parser.y (rdql_parse): set parsing debug flag before
  4568. starting parse when RASQAL_DEBUG > 2
  4569. * librdf/rdf_serializer.c (main): Update latest raptor 1.4.3+
  4570. style serialised rdf/xml length.
  4571. * librdf/rdf_serializer.c
  4572. (librdf_serializer_serialize_model_to_file_handle): Require FILE*
  4573. to be not null.
  4574. * librdf/rdf_query_rasqal.c (rasqal_redland_bind_match): Update
  4575. return to add parts arg, return.
  4576. (librdf_query_rasqal_results_to_counted_string): Added to
  4577. implement query results as string factory method, via Rasqal.
  4578. (librdf_query_rasqal_results_to_file_handle): Added to implement
  4579. query results to a file handle factory method, via Rasqal.
  4580. * librdf/rdf_query_results.c
  4581. (librdf_query_results_to_counted_string,
  4582. librdf_query_results_to_string): Added to write formatted query
  4583. results as a syntax in a string (via Rasqal).
  4584. (librdf_query_results_to_file_handle,
  4585. librdf_query_results_to_file): Added to write formatted query
  4586. results as a syntax to a file or already open FILE* handle (via
  4587. Rasqal)
  4588. * librdf/rdf_query.c (main): Add query results to string test.
  4589. * librdf/rdf_query.h: Added results_to_counted_string,
  4590. results_to_file_handle to librdf_query_factory. Added prototypes
  4591. for librdf_query_results_to_counted_string,
  4592. librdf_query_results_to_string,
  4593. librdf_query_results_to_file_handle and
  4594. librdf_query_results_to_file to public api.
  4595. * rasqal/rasqal_engine.c (rasqal_engine_do_optional_step): Handle
  4596. an all optional query and finish all results when first optional
  4597. finishes.
  4598. * rasqal/rasqal_query.c (rasqal_query_results_write): Handle NULL
  4599. base_uri, pass it on the XML writer.
  4600. * rasqal/tests/sparql/examples/ex2-4a.rq: Kill the , between
  4601. SELECT vars
  4602. * rasqal/rasqal_xml.c: Removed, not used
  4603. 2005-01-10 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  4604. * rasqal/rasqal_raptor.c (rasqal_raptor_finish_triples_match):
  4605. Free any literals copied into the triple used for comparing
  4606. matches.
  4607. * rasqal/rasqal_raptor.c (rasqal_raptor_bind_match): Reformatting.
  4608. (rasqal_raptor_new_triples_match): Set unbound triple matches
  4609. literal values as shared pointers, not copies of literals.
  4610. * rasqal/rasqal_redland.c (rasqal_redland_bind_match): Update
  4611. return value.
  4612. * rasqal/rasqal_engine.c (rasqal_free_graph_pattern): Zap
  4613. triple_meta pointer when done.
  4614. * rasqal/sparql_lexer.l, rasqal/rdql_lexer.l (<PATTERN>.): Recover
  4615. state after an error in a regex.
  4616. * rasqal/rasqal_engine.c (rasqal_graph_pattern_order): Sort using
  4617. pointers in data, not array pointers.
  4618. * rasqal/rasqal_query.c (rasqal_free_query): Delete
  4619. ordered_triples tidy.
  4620. (rasqal_query_print): Delete ordered_triples tidy.
  4621. * rasqal/rasqal_engine.c:
  4622. (rasqal_query_order_triples_score, rasqal_query_order_triples):
  4623. Deleted - no longer used.
  4624. * rasqal/rasqal_internal.h: Deleted unused ordered_triples field
  4625. from rasqal_query.
  4626. 2005-01-09 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  4627. * rasqal/tests/sparql/part1/Makefile.am: All tests pass, empty
  4628. EXPECTED_SPARQL_CORRECT_FAILURES
  4629. * rasqal/rasqal_internal.h: Added max_optional_graph_pattern to
  4630. query.
  4631. * rasqal/rasqal_engine.c (rasqal_engine_do_step): Set gp->matched
  4632. flag here
  4633. (rasqal_engine_do_optional_step): Set gp->matched flag
  4634. (rasqal_engine_get_next_result): Do not set gp->matched flag here.
  4635. For an optional step, if no bound values were returned ensure
  4636. search continues.
  4637. * rasqal/rasqal_engine.c: Add a few more debug messages.
  4638. * rasqal/rasqal_engine.c: delete a #if 1
  4639. * rasqal/rasqal_engine.c (rasqal_engine_move_to_graph_pattern):
  4640. Use max_optional_graph_patterns to walk through combinations of
  4641. optional graph patterns.
  4642. (rasqal_engine_do_optional_step): CHeck against
  4643. max_optional_graph_patterns limit and lower it when backtracking.
  4644. (rasqal_engine_get_next_result): Count # returned values and
  4645. continue searching when=0. This is a fixup hack, not a final
  4646. solution.
  4647. * rasqal/rasqal_engine.c (rasqal_engine_move_to_graph_pattern):
  4648. Take a delta since only ever moving by +1 or -1. When there are
  4649. no optionals, just move. When backtracking optionals, re-init the
  4650. finished graph pattern.
  4651. (rasqal_engine_do_step, rasqal_engine_do_optional_step): Update
  4652. calls to above.
  4653. 2005-01-08 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  4654. * rasqal/rasqal_engine.c (rasqal_reset_triple_meta): Added.
  4655. (rasqal_free_graph_pattern, rasqal_graph_pattern_get_next_match):
  4656. Call new rasqal_reset_triple_meta
  4657. (rasqal_engine_do_optional_step): Comment out duff test
  4658. * rasqal/rasqal_engine.c: messages
  4659. * rasqal/rasqal_engine.c (rasqal_engine_do_optional_step): Copy
  4660. tidying
  4661. * rasqal/rasqal_engine.c (rasqal_engine_get_next_result): Debug
  4662. messages.
  4663. * rasqal/rasqal_engine.c (rasqal_engine_check_constraint): Added,
  4664. from body of rasqal_engine_get_next_result.
  4665. (rasqal_engine_do_step): Now just for mandatory graph patterns
  4666. rasqal_engine_do_optional_step): Added, just for optional graph
  4667. patterns.
  4668. (rasqal_engine_get_next_result): Call rasqal_engine_do_step or
  4669. rasqal_engine_do_optional_step depending on graph pattern optional
  4670. flag.
  4671. * rasqal/rasqal_engine.c (rasqal_engine_do_step): Added, from body
  4672. of rasqal_engine_get_next_result
  4673. (rasqal_engine_get_next_result): Smaller, see above.
  4674. * rasqal/rasqal_engine.c: Added rasqal_engine_step and use in
  4675. (rasqal_engine_get_next_result): Replace step=X; break with
  4676. step=X; continue to let the loop do the work
  4677. * rasqal/rasqal_engine.c: Added rasqal_engine_step and use in
  4678. rasqal_engine_get_next_result
  4679. * rasqal/rasqal_engine.c (rasqal_engine_move_to_graph_pattern): No
  4680. need for return
  4681. * rasqal/rasqal_engine.c (rasqal_engine_get_next_result): Init all
  4682. matched flags to 0 at start.
  4683. * rasqal/rasqal_engine.c: Comment out not-used triple ordering
  4684. code.
  4685. (rasqal_triples_match_bind_match): Add parts arg and pass on to
  4686. factory bind_match method.
  4687. (rasqal_new_graph_pattern_from_triples): Add query arg at start.
  4688. Init query, finished, matches_returned.
  4689. (rasqal_new_graph_pattern_from_sequence): Add query arg at start.
  4690. Init query, finished, matches_returned.
  4691. (rasqal_free_graph_pattern): Free variables matching the parts.
  4692. (rasqal_graph_pattern_init): Initialise the triple meta parts
  4693. depending on the variables_declared_in information.
  4694. (rasqal_query_build_declared_in): Added to mark which in graph
  4695. pattern variables are first declared in the query so that they are
  4696. never bound multiple times. Also warns of selected but never used
  4697. variables.
  4698. (rasqal_graph_pattern_get_next_match): After a triple match ends,
  4699. free variables matching the parts only.
  4700. (rasqal_engine_prepare): Disable ordering triples. Call
  4701. rasqal_query_build_declared_in.
  4702. (rasqal_engine_move_to_graph_pattern): Helper added for:
  4703. (rasqal_engine_get_next_result): Many changes trying to get
  4704. optionals working.
  4705. * rasqal/rasqal_internal.h: Add query, finished, matches fields to
  4706. graph_pattern. Add query arg to start of
  4707. rasqal_new_graph_pattern_from_triples and
  4708. rasqal_new_graph_pattern_from_sequence Add variables_declared_in
  4709. array field, optional_graph_pattern_matches_count field to query.
  4710. * rasqal/rasqal_redland.c (rasqal_redland_bind_match): Take parts
  4711. argument and use to just bind those parts of the triple.
  4712. * rasqal/rasqal_raptor.c (rasqal_raptor_bind_match): Take parts
  4713. argument and use to just bind those parts of the triple.
  4714. * rasqal/rdql_parser.y, rasqal/sparql_parser.y: Add query arg at
  4715. start of rasqal_new_graph_pattern_from_triples and
  4716. rasqal_new_graph_pattern_from_sequence calls.
  4717. * rasqal/rasqal.h: Added triple parts to rasqal_triple_meta.
  4718. * rasqal/rasqal_query.c (rasqal_free_query): Tidy
  4719. query->variables_declared_in.
  4720. 2005-01-06 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  4721. * rasqal/rasqal.h: Added rasqal_triple_parts rasqal_triples_match
  4722. factory method bind_match now takes and returns
  4723. rasqal_triple_parts, returns 0 on failure
  4724. * librdf/rdf_query_rasqal.c, rasqal/rasqal_redland.c,
  4725. rasqal/rasqal_raptor.c, rasqal/rasqal_engine.c, rasqal/rasqal.h:
  4726. Invert return value of rasqal_triples_match factory method
  4727. bind_match. Now returns 0 on failure.
  4728. * rasqal/rasqal_engine.c (rasqal_engine_get_next_result): Handle
  4729. failed constraint by moving to next match.
  4730. * rasqal/tests/sparql/part1/dawg-data-01.n3,
  4731. rasqal/tests/sparql/part1/dawg-result-003.n3: <fred@edu> to
  4732. <mailto:fred@edu>
  4733. * rasqal/tests/sparql/check-sparql: Remove =NULL from roqet output
  4734. to handle optionals
  4735. * rasqal/rasqal_query.c (rasqal_new_query): Init
  4736. gp->optional_graph_pattern.
  4737. * rasqal/rasqal_internal.h: Add finished, matches,
  4738. optional_graph_pattern to rasqal_graph_pattern Add
  4739. optional_graph_pattern to rasqal_query.
  4740. * rasqal/rasqal_engine.c (rasqal_new_graph_pattern_from_triples):
  4741. Init gp->optional_graph_pattern.
  4742. (rasqal_graph_pattern_init): Init optional_graph_pattern, finished
  4743. and matches.
  4744. (rasqal_graph_pattern_order): Added, to sort graph_patterns in a
  4745. query into mandatory first, optional last.
  4746. (rasqal_engine_execute_init): Sort graph_patterns using
  4747. raptor_sequence_sort and above helper Initialise
  4748. query->optional_graph_pattern to the index of the first optional
  4749. graph_pattern.
  4750. (rasqal_engine_get_next_result): Many changes on the way to
  4751. getting optionals working. Track what patterns have ended with
  4752. the finished flag, and count matches to determine when nothing
  4753. matched.
  4754. 2005-01-05 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  4755. * librdf/rdf_storage_sqlite.c: Implement get_contexts.
  4756. (librdf_storage_sqlite_get_next_context_common,
  4757. librdf_storage_sqlite_get_contexts_is_end,
  4758. librdf_storage_sqlite_get_contexts_next_method,
  4759. librdf_storage_sqlite_get_contexts_get_method,
  4760. librdf_storage_sqlite_get_contexts_finished,
  4761. librdf_storage_sqlite_get_contexts): Implement, based on
  4762. find_statements technique. No special database schema support for
  4763. contexts at present.
  4764. 2005-01-04 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  4765. * raptor/raptor_serialize.c:
  4766. (raptor_rdfxml_serialize_start,
  4767. raptor_rdfxml_serialize_statement): Only copy non-NULL base URIs
  4768. * raptor/raptor_rss.c:
  4769. (raptor_rss10_move_statements, raptor_rss10_store_statement,
  4770. raptor_rss10_build_xml_names, raptor_rss10_emit_item):Handle
  4771. predicates of type RAPTOR_IDENTIFIER_TYPE_RESOURCE as well as type
  4772. RAPTOR_IDENTIFIER_TYPE_PREDICATE
  4773. * raptor/raptor_general.c (raptor_free_statement): Free predicate
  4774. URIs that were RAPTOR_IDENTIFIER_TYPE_RESOURCE
  4775. * raptor/raptor_uri.c (raptor_uri_to_relative_counted_uri_string):
  4776. Handle no path in base URI
  4777. (main): Add test for that and test for no path in both.
  4778. * raptor/raptor_uri.c (raptor_uri_to_relative_counted_uri_string):
  4779. Handle no path in reference URI
  4780. (main): Add test for that
  4781. * rasqal/rasqal_query.c (rasqal_new_query): Init sources sequence
  4782. always.
  4783. (rasqal_query_add_source): No need to init sources sequence here.
  4784. * rasqal/sparql_parser.y (WhereClauseOpt): Don't overwrite
  4785. query->graph_patterns sequence, append if necessary.
  4786. * rasqal/sparql_parser.y (FromClauseOpt): Don't overwrite
  4787. query->sources sequence, append if necessary.
  4788. * rasqal/rdql_parser.y (Query): Don't overwrite query->sources
  4789. sequence, append if necessary.
  4790. (TriplePattern): Append to query->triples sequence, don't
  4791. overwrite it.
  4792. 2005-01-03 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  4793. * rasqal/roqet.c (main): Declare query_string as void* to prevent
  4794. type punning warning.
  4795. * rasqal/sparql_lexer.l, rasqal/roqet.c, rasqal/rdql_lexer.l,
  4796. rasqal/rasqal_query.c: casts for c++
  4797. * raptor/win32_raptor_config.h, raptor/configure.ac: Bumped
  4798. version to 1.4.4
  4799. * raptor/raptor_rdfxml.c (raptor_xml_start_element_handler):
  4800. Updates for unsigned char* string namespace URI strings.
  4801. * raptor/raptor_namespace.c: Turn namespace URI string constants
  4802. into unsigned char* strings.
  4803. * raptor/raptor_identifier.c (raptor_identifier_print): Casts for
  4804. printing rdf:XMLLiteral URI string constant.
  4805. * raptor/raptor_general.c: Turn rdf:XMLLiteral URI string constant
  4806. into a unsigned char* string.
  4807. (raptor_print_statement, raptor_print_statement_part_as_ntriples):
  4808. Casts for printing above constants.
  4809. * raptor/raptor_uri.c (raptor_default_new_uri_for_rdf_concept):
  4810. Use RDF namespace URI string constants.
  4811. * raptor/Makefile.am: Link libraptor.la for URI tests, to get the
  4812. namespace URI string constants.
  4813. * raptor/raptor.h: Turn namespace URI string constants into
  4814. unsigned char* strings. Change namespace URI defines into uses of
  4815. the constants.
  4816. * raptor/rdfdump.c (main): Init parser_feature and
  4817. serializer_feature to -1 to avoid compiler warnings.
  4818. * raptor/raptor_rss.c (raptor_rss10_serialize_statement): Init
  4819. item to NULL to avoid a compiler warning.
  4820. * raptor/rdfdump.c, raptor/raptor_uri.c,
  4821. raptor/raptor_serialize.c, raptor/raptor_rss.c,
  4822. raptor/raptor_parse.c: Casts for c++
  4823. * raptor/raptor.h: remove old comment re xml writer
  4824. 2005-01-02 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  4825. * raptor/rdfdump.c: set serializer features before starting to
  4826. serialize
  4827. * raptor/rdfdump.c: Actually set parser feature values again. Set
  4828. strings for parser or serializer string feature values.
  4829. * raptor/raptor_general.c: 2005 copyrights
  4830. * raptor/rapper.1: No simple output format anymore
  4831. * raptor/rapper.1: Added RSS 1.0 ref
  4832. 2005-01-01 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  4833. * raptor/rapper.1: Update for new parser, serializers, xmlns
  4834. syntax
  4835. * raptor/raptor_serialize.c
  4836. (raptor_serializer_set_feature_string): Docs, and return values
  4837. for integer value features
  4838. (raptor_serializer_get_feature_string): Return a new string for
  4839. the start uri if set.
  4840. * raptor/raptor_parse.c (raptor_parser_set_feature_string): Docs,
  4841. and return values for integer value features
  4842. * raptor/libraptor.3, raptor/raptor.h: Added
  4843. raptor_uri_to_counted_string and raptor_uri_to_string
  4844. * raptor/raptor_uri.c
  4845. (raptor_uri_to_counted_string,raptor_uri_to_string): Added.
  4846. * raptor/raptor_feature.c: doc
  4847. * raptor/libraptor.3: changelog edit - cluster 1.4.3 entries by
  4848. class
  4849. * raptor/libraptor.3: Added raptor_parser_get_feature_string,
  4850. raptor_parser_set_feature_string,
  4851. raptor_serializer_set_feature_string,
  4852. raptor_serializer_get_feature_string, raptor_feature_value_type,
  4853. raptor_namespaces_find_namespace_by_uri
  4854. * raptor/raptor_serialize.c, raptor/raptor_general.c: Use
  4855. raptor_rdf_namespace_uri and raptor_rdf_namespace_uri_len to
  4856. replace some constants.
  4857. * raptor/raptor_serialize.c (raptor_rdfxml_serialize_statement):
  4858. Handle ordinal subject and objects.
  4859. * raptor/raptor_serialize.c: Add XML Writer to
  4860. raptor_rdfxml_serializer_context, delete depth.
  4861. (raptor_rdfxml_serialize_init): Delete depth stuff.
  4862. (raptor_rdfxml_serialize_terminate): Tidy up xml writer,
  4863. namespaces and rdf:RDF element.
  4864. (raptor_rdfxml_serialize_declare_namespace): Don't copy uri,
  4865. prefixes since raptor_new_namesapce_from_uri copies them anyway.
  4866. (raptor_rdfxml_serialize_start): Convert to use xml writer.
  4867. (raptor_rdfxml_serialize_write_xml_attribute): Deleted.
  4868. (raptor_rdfxml_serialize_statement, raptor_rdfxml_serialize_end):
  4869. Convert to use xml writer.
  4870. * raptor/raptor_xml_writer.c (raptor_xml_writer_empty_element):
  4871. Ensure namespace declarations are removed at end of element.
  4872. * raptor/raptor.h: Added raptor_namespaces_find_namespace_by_uri
  4873. * raptor/raptor_namespace.c
  4874. (raptor_namespaces_find_namespace_by_uri): Added.
  4875. * raptor/libraptor.3, raptor/raptor_sax2.c, raptor/raptor_rss.c,
  4876. raptor/raptor.h: raptor_xml_declare_namespace renamed to
  4877. raptor_xml_element_declare_namespace
  4878. * raptor/raptor_rss.c (raptor_rss10_build_xml_names): Use
  4879. raptor_xml_declare_namespace
  4880. * raptor/raptor_rss.c: 9raptor_rss10_build_xml_names): Use
  4881. raptor_xml_declare_namespace
  4882. * raptor/raptor_sax2.c, raptor/raptor.h:
  4883. raptor_sax2_declare_namespace renamed to
  4884. raptor_xml_declare_namespace
  4885. * raptor/raptor_serialize.c (raptor_new_serializer): Default to
  4886. emitting relative URIs
  4887. * raptor/raptor_serialize.c (raptor_rdfxml_serialize_ok_xml_name):
  4888. Deleted.
  4889. (raptor_rdfxml_serialize_statement): Replace use of
  4890. raptor_rdfxml_serialize_ok_xml_name with raptor_xml_name_check for
  4891. XML 1.0 names.
  4892. * raptor/raptor_sax2.c, raptor/raptor_rdfxml.c, raptor/raptor.h,
  4893. raptor/libraptor.3: Rename raptor_xml_element_get_element to
  4894. raptor_xml_element_get_name
  4895. * rasqal/roqet.c (roqet_xml_print_xml_attribute): Deleted
  4896. (roqet_query_results_print_as_xml): Replaced with call to
  4897. rasqal_query_results_write.
  4898. (main): Set error and fatal_error handlers for query. Remove xml
  4899. format warning.
  4900. * rasqal/rasqal_query.c (rasqal_query_results_write): Added
  4901. docs. Declare own namespace stack and free up elements.
  4902. * rasqal/rasqal.h: Added rasqal_query_results_write
  4903. * raptor/raptor_rss.c: Added rss:image and rss:textinput
  4904. properties
  4905. * raptor/raptor_rss.c (raptor_rss10_store_statement): Don't lose
  4906. statements that are about a known type node, but of unknown
  4907. predicate.
  4908. (raptor_rss10_serialize_end): Add more debug info on remaining
  4909. statements.
  4910. * raptor/raptor_rdfxml.c (raptor_start_element_grammar): Update
  4911. raptor_new_xml_writer call.
  4912. * raptor/raptor.h: raptor_new_xml_writer gets nstack parameter.
  4913. raptor_xml_writer_start_namespace_full deleted
  4914. * raptor/libraptor.3: raptor_new_xml_writer gets nstack param.
  4915. raptor_xml_writer_start_namespace_full gone
  4916. * raptor/raptor_general.c (raptor_free_statement): Don't free null
  4917. pointers.