ChangeLog.3 106 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268
  1. 2002-12-28 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2. * Redland.i: Added model methods for add/remove/serialize contexts.
  3. * examples/example4.c: Updated to test contexts (not enabled by
  4. default) and print out context nodes of results (always, when they
  5. are present).
  6. * Redland.i, python/RDF.py, perl/lib/RDF/Redland/Stream.pm,
  7. perl/lib/RDF/Redland/Iterator.pm,
  8. java/org/librdf/redland/Stream.java,
  9. java/org/librdf/redland/Iterator.java: Updated Stream, Iterator
  10. classes with context methods returning a Node
  11. * librdf/rdf_storage_list.c: All experimental group methods now
  12. context. List now always stores a small struct instead of a
  13. statement (less conditional code at a small overhead of
  14. alloc/dealloc).
  15. (librdf_storage_list_init): Use contexts on user option
  16. ("contexts").
  17. (librdf_storage_list_node_equals): Added for comparing the list
  18. node structs.
  19. * librdf/rdf_storage_hashes.c: All experimental group methods now
  20. context.
  21. (librdf_storage_get_hash_description_by_name): Now used, returning
  22. a librdf_hash_descriptor.
  23. (librdf_storage_hashes_register): Added, for registering the
  24. hashes more dynamically.
  25. (librdf_storage_hashes_init_common): Use
  26. librdf_storage_hashes_register to index predicates, contexts on
  27. user option ("index-predicates", "contexts").
  28. Use librdf_statement_encode_parts and
  29. librdf_statement_decode_parts to de/en-code with context node if
  30. necessary.
  31. (librdf_storage_hashes_serialise*): Hold knowledge if current
  32. deserialized statement is fresh and only do once on demand.
  33. * librdf/rdf_model.c: All experimental group methods now context.
  34. (librdf_model_print): Docs
  35. (librdf_model_add_statements): Does not free stream at end of
  36. work.
  37. (main): Demo updated to use context+nodes (not group+uris)
  38. * librdf/rdf_model.h, librdf/rdf_storage.c, librdf/rdf_storage.h:
  39. All experimental group methods now context.
  40. * librdf/rdf_stream.c (librdf_stream_print): Docs. Prints
  41. contexts of statements if there are any.
  42. * librdf/rdf_statement.c (librdf_statement_print): Docs
  43. (librdf_statement_encode): Update for changed
  44. librdf_statement_encode_parts.
  45. (librdf_statement_encode_parts): Takes context node arg.
  46. (librdf_statement_decode): Uses librdf_statement_decode_parts.
  47. (librdf_statement_decode_parts): New, takes context node arg.
  48. * librdf/rdf_statement.h: Prototype for
  49. librdf_statement_decode_parts Statement ID, FLAGS parts gone (were
  50. never used)
  51. * librdf/rdf_node.c (librdf_node_print): Docs
  52. 2002-12-22 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  53. * raptor/raptor_uri.c:
  54. (main) Try test again with /etc - surely that is least likely to
  55. be a symlink?
  56. * raptor/tests/Makefile.am: check-bad-rdf: turn off bourne shell
  57. exiting while running tests expected to fail.
  58. * raptor/tests/Makefile.am: Set baseuri from test file basename;
  59. ensure no dirs are in the base URI
  60. * Makefile.am: Added acconfig.h to dist - some automake versions
  61. don't do this automatically such as 1.4-p5 which comes with Redhat
  62. 7.3
  63. * java/org/librdf/redland/Makefile.am, java/Makefile.am:
  64. coreJNI.java is not for dist
  65. * perl/test.pl: test.pl now t/*.t
  66. * librdf/Makefile.am: No need for ex1.rdf ex2.rdf in deps
  67. * librdf/Makefile.am, librdf/ex1.rdf, librdf/ex2.rdf: Remove test
  68. files; generated from strings in rdf_model.c (main) when needed
  69. * librdf/rdf_model.c (main): Create test files from string content
  70. here rather than rely on ex1.rdf and ex2.rdf being present.
  71. * librdf/rdf_parser_repat.c, librdf/rdf_parser_raptor.c: Don't
  72. declare extern errno, the optional errno.h header does that.
  73. * librdf/rdf_parser_repat.c, librdf/rdf_parser_raptor.c: Include
  74. errno.h if present to get the write definition.
  75. * configure.in: check for errno.h (again?)
  76. * perl/Makefile.am: Fix for 5.8 install
  77. 2002-12-21 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  78. * raptor/configure.ac: Removed just for now
  79. 2002-12-20 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  80. * raptor/NEWS.html: tweak
  81. * raptor/configure.in: Bumped version to 0.9.8
  82. * raptor/NEWS.html: date
  83. * raptor/raptor.spec.in: Updated for 0.9.7 release
  84. 2002-12-19 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  85. * raptor/INSTALL.html, raptor/README.html, raptor/NEWS.html:
  86. Updated for 0.9.7 release
  87. * raptor/acconfig.h: Seems like PACKAGE and VERSION are not needed
  88. here, and later autoconfs generate headers that moan.
  89. * raptor/raptor_parse.c, raptor/raptor_general.c: castings
  90. * raptor/raptor.h: Indent CPP directives after column 1 # for lame
  91. C compiler
  92. * raptor/tests/Makefile.am: test(1) string equality is = not ==
  93. * docs/stylesheet.css: Remove some of the boxes in sidebar; turn
  94. category header to white on blue.
  95. 2002-12-18 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  96. * raptor/autogen.sh: Delete autom4te too
  97. * raptor/configure.ac: auto-configure source for newer autoconfs
  98. 2002-12-16 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  99. * raptor/raptor_uri.c (main): Use /bin to test, seems more likely
  100. to be around on more posix systems such as OSX
  101. * raptor/raptor_parse.c (raptor_generate_statement): Handle NULL
  102. reified being passed.
  103. (raptor_process_property_attributes): Property attributes are
  104. never reified explicitly but may be in a bag.
  105. (raptor_start_element_grammar,raptor_end_element_grammar): Turn
  106. bad uses of bag:ID into errors not warnings.
  107. * raptor/tests/Makefile.am: Added more bag:ID checks (44-45) and
  108. errors (bad 05-09) Make test failures stop the 'make check'.
  109. * raptor/tests/bad-05.rdf, raptor/tests/bad-06.rdf,
  110. raptor/tests/bad-07.rdf, raptor/tests/bad-08.rdf,
  111. raptor/tests/bad-09.rdf, raptor/tests/ex-48.rdf,
  112. raptor/tests/ex-49.rdf, raptor/tests/ex-50.rdf,
  113. raptor/tests/ex-46.rdf, raptor/tests/ex-47.rdf,
  114. raptor/tests/ex-48.out, raptor/tests/ex-49.out,
  115. raptor/tests/ex-50.out, raptor/tests/ex-46.out,
  116. raptor/tests/ex-47.out: Turned rdf:bagID property element checks
  117. into errors
  118. * raptor/raptor_parse.c: Add rdf:bagID checks - only allow it in
  119. the two cases it is in the grammar - on a node element and an
  120. empty property element. Otherwise emit warnings since there is no
  121. error test case yet.
  122. * raptor/tests/ex-50.out, raptor/tests/ex-50.rdf,
  123. raptor/tests/ex-44.out, raptor/tests/ex-45.out,
  124. raptor/tests/ex-46.out, raptor/tests/ex-47.out,
  125. raptor/tests/ex-48.out, raptor/tests/ex-49.out,
  126. raptor/tests/ex-44.rdf, raptor/tests/ex-45.rdf,
  127. raptor/tests/ex-46.rdf, raptor/tests/ex-47.rdf,
  128. raptor/tests/ex-48.rdf, raptor/tests/ex-49.rdf: Checking rdf:bagID
  129. ignored on other property element cases
  130. * raptor/raptor_parse.c (raptor_generate_statement): Handles
  131. generating a reified statement ID for use with bagID and then
  132. reiifying the statement too.
  133. * raptor/tests/Makefile.am: Add ex-43
  134. * raptor/tests/ex-43.out, raptor/tests/ex-43.rdf: Test rdf:bagID
  135. when property elements need generated reified ID
  136. * raptor/raptor_parse.c (raptor_generate_statement): Gain
  137. bag_element argument, use it throughout to indicate the element to
  138. find the rdf:bagID if any.
  139. (raptor_start_element_grammar): Generate _:bagid rdf:type rdf:Bag
  140. when rdf:bagID appears on node element.
  141. * raptor/tests/ex-42.out: Correct for actual output order
  142. 2002-12-15 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  143. * raptor/tests/ex-03.rdf, raptor/tests/ex-03.out: correct this now
  144. that rdf:bagID support begins to work
  145. * raptor/tests/Makefile.am: Added ex-42
  146. * raptor/tests/ex-42.out, raptor/tests/ex-42.rdf: rdf:bagID
  147. * raptor/tests/bad-04.rdf: Check rdf:ID and rdf:bagID with same
  148. value fails
  149. * raptor/tests/bad-02.rdf: Duplicate rdf:ID names
  150. * raptor/raptor_parse.c: Make debug less chatty about cdata,
  151. unless RAPTOR_DEBUG_CDATA defined.
  152. * raptor/raptor_parse.c (raptor_record_ID): Added, notes rdf:ID
  153. and rdf:bagID values, checks for duplicates (per in-scope
  154. base-URI).
  155. (raptor_free_ID_list): Added, frees structure above.
  156. (raptor_xml_start_element_handler): Handle xml:base using
  157. raptor_new_uri_for_xmlbase to strip/fix parts that aren't used.
  158. (raptor_start_element_grammar): Check for illegal rdf:ID,
  159. rdf:bagID and rdf:nodeID using raptor_valid_xml_ID. Check for
  160. duplicate rdf:ID and rdf:bagID values using raptor_record_ID.
  161. Only allow parsetype "Literal", "Resource" and "Collection", not
  162. case-equivalents. Check for and forbid property attributes on a
  163. literal property elemnent.
  164. * raptor/Makefile.am: Added raptor_utf8.c
  165. * raptor/raptor_internal.h: Export less from raptor_utf8.c
  166. * raptor/raptor_general.c (raptor_valid_xml_ID): Use
  167. raptor_unicode_is_namestartchar and raptor_unicode_is_namechar.
  168. * raptor/raptor_utf8.c: Raptor UTF-8 and Unicode support
  169. * raptor/tests/bad-03.rdf: Check rdf:ID and rdf:bagID values
  170. * raptor/tests/Makefile.am: Added bad-02 to bad-04
  171. * raptor/raptor_uri.c (raptor_uri_construct): Internal; constructs
  172. a uri-ref string from the parts.
  173. (raptor_new_uri_for_xmlbase): Ad
  174. (raptor_uri_resolve_uri_reference): Copy reference path across
  175. when reference URI has one. Work for path components that are >1
  176. letter long.
  177. (raptor_new_uri_for_xmlbase): Added, makes a new uri from an
  178. existing one, suitable for xml:base (no fragment, query; path must
  179. be present).
  180. (main): Make test cases use example.org. Add checks for the above
  181. bugs.
  182. * raptor/raptor.h: Added prototype for raptor_new_uri_for_xmlbase
  183. * raptor/ntriples_parse.c: raptor_ntriples_unicode_char_to_utf8
  184. now raptor_unicode_char_to_utf8
  185. raptor_ntriples_utf8_to_unicode_char now
  186. raptor_unicode_utf8_to_unicode_char
  187. (raptor_print_ntriples_string): Allow no delimiter.
  188. * raptor/raptor_internal.h: Added prototypes for
  189. raptor_valid_xml_ID Added prototypes for raptor_unicode_is_*
  190. methods. The ntriples_* utf8/unicode methods are now
  191. raptor_unicode_*
  192. * raptor/raptor_general.c (raptor_print_statement_as_ntriples):
  193. N-Triples escape URIs (for IRI compatibility).
  194. (raptor_validate_xml_ID): Added, checks that the syntax of
  195. attributes matching xml:ID are correct matching
  196. http://www.w3.org/TR/REC-xml-names/#NT-NCName
  197. * raptor/rdfdump.c: Exit 1 on error, 2 on warnings.
  198. * raptor/README.html: Words
  199. 2002-12-13 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  200. * raptor/tests/ex-41.rdf, raptor/tests/ex-41.out: Add rdf:datatype
  201. test with xml:lang
  202. * raptor/raptor_parse.c: Don't care state about numbers
  203. * raptor/raptor_parse.c (raptor_xml_end_element_handler): Don't
  204. check for unbalanced XML; the XML parsers do that
  205. * raptor/raptor_parse.c: Update parser states to match
  206. http://www.w3.org/TR/rdf-syntax-grammar/ names. Fix comments to
  207. also match. rdf_syntax_terms_info - added to describe forbidden
  208. nodeEl, propEl, propAttr
  209. (raptor_forbidden_nodeElement_name,
  210. raptor_forbidden_propertyElement_name): Added, using above
  211. * raptor/rdfdump.c: Exit with code 2 if there were warnings.
  212. * raptor/raptor_parse.c: Zap xml:lang attr
  213. 2002-12-12 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  214. * java/Makefile.am: die, extra ;
  215. * php/Makefile.am: _ not -
  216. * perl/lib/RDF/Redland.pm (DESTROY): call librdf_perl_world_finish
  217. at exit.
  218. * php/Makefile.am: Tidy clean
  219. * docs/php.html: Updated for current state (not working yet).
  220. * php/test.php, php/Makefile.am: PHP updates. Still not working yet.
  221. * php/php.ini: testing php.ini config
  222. * docs/ruby.html, docs/tcl.html: Updated, tested
  223. * tcl/example.tcl: fix stream typo
  224. * tcl/test.tcl: comment out non-working serializer test
  225. * python/example.py: fix arg
  226. * python/example.py: Added serializer code
  227. * docs/python.html: updated example output
  228. * tcl/Makefile.am: tidy clean
  229. * python/RDF.py: consistency things
  230. * python/RDF.py: Added yet more pydoc
  231. * python/RDF.py: Added more pydoc
  232. * docs/python.html: Reference, link ot pydoc/RDF.html
  233. * docs/fix-python-xhtml: Fix exceptions.html
  234. * docs/Makefile.am: Added pydoc and pydoc/RDF.html
  235. * docs/fix-python-xhtml: Fix pydoc output to be xhtml
  236. * docs/fix-pod-xhtml: minor changes
  237. * docs/python.html: Added RDFLib.net
  238. * python/example.py: Fixed for stream updates
  239. * docs/python.html: Added Serializer class
  240. * docs/perl.html: moved serializer around
  241. * docs/perl.html: Updated example output
  242. * docs/perl.html: Added Serializer class
  243. * docs/Makefile.am: Added perl POD Serializer
  244. * perl/example.pl: Tidy, add serializer example.
  245. * perl/Makefile.am: clean test-out.rdf
  246. * librdf/rdf_storage_hashes.c (librdf_storage_hashes_find_map):
  247. Don't free filtered shared statement, just return NULL.
  248. * docs/java.html: Updated.
  249. Added Serializer.
  250. * java/Makefile.am: More javac fixes
  251. * java/example.java: Tidy up
  252. * java/Makefile.am:
  253. Build redland-java.jar for tests and -classpath to use it.
  254. * java/test2.java:
  255. Replaced finalize() method with finished() that apps should call
  256. to release resources since Java never guarantees it is.
  257. * java/skeleton.java: Added Serializer
  258. * java/org/librdf/redland/World.java,
  259. java/org/librdf/redland/URI.java,
  260. java/org/librdf/redland/Stream.java,
  261. java/org/librdf/redland/Storage.java,
  262. java/org/librdf/redland/Statement.java,
  263. java/org/librdf/redland/Serializer.java,
  264. java/org/librdf/redland/Parser.java,
  265. java/org/librdf/redland/Node.java,
  266. java/org/librdf/redland/Model.java,
  267. java/org/librdf/redland/Iterator.java: Replaced finalize() method
  268. with finished() that apps should call to release resources since
  269. Java never guarantees it is.
  270. * java/test1.java: free uri after finishing with it
  271. * java/Makefile.am:
  272. Added lots of bodges to get around SWIG 1.3.15+ broken Java API.
  273. sed editing of the generated files to remove the stupid coreJNI
  274. class.
  275. * java/org/librdf/redland/Model.java (add - literal):
  276. Use librdf_model_add_typed_literal_statement
  277. * java/org/librdf/redland/Stream.java: Updated for stream changes
  278. * java/org/librdf/redland/Iterator.java: Updated for iterator changes
  279. 2002-12-11 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  280. * python/RDF.py:
  281. Big update, lots of new docucomments, encouraged by pydoc.
  282. * python/Makefile.am:
  283. Added build target for RDF.html; should work if pydoc is around.
  284. * perl/lib/RDF/Redland/Model.pm (add_typed_literal_statement):
  285. Replacing add_string_literal_statement.
  286. * perl/Makefile.am: test.pl now in t/* tests dir.
  287. * configure.in: Added perl/t dir
  288. * Redland.i: Added librdf_model_add_typed_literal_statement
  289. to replace librdf_model_add_string_literal_statement
  290. * librdf/rdf_model.h, librdf/rdf_model.c:
  291. Added librdf_model_add_typed_literal_statement
  292. * perl/lib/RDF/Redland/Node.pm: Updated node types
  293. * python/test/test.py: add some more output messages
  294. * python/Makefile.am: tidy cleanfiles
  295. * Redland.i:
  296. Discovered the %newobject directive; use it to free() returned
  297. malloc() memory from the *_to_string methods.
  298. * perl/t/test1.t: Test updates, fixes.
  299. * perl/t/Makefile.am, perl/t/test1.t, perl/t/test2.t, perl/t/test3.t:
  300. perl test ftest.pl split into t/test1-3.t
  301. 2002-12-10 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  302. * python/test/test.py: test Serializer class
  303. * python/Makefile.am: Add clean for serializer output
  304. * python/RDF.py: Serializer class fix
  305. * raptor/configure.in: Added raptor-config
  306. * redland-src-config.in: Call raptor/raptor-src-config
  307. * raptor/Makefile.am: Added raptor-src-config
  308. * raptor/raptor-src-config.in: raptor-src-config source
  309. * librdf/rdf_storage_hashes.c
  310. (librdf_storage_hashes_serialise_get_statement): Clear shared
  311. statement in context before decoding into it.
  312. (librdf_storage_hashes_node_iterator_get_method): Clear appropriate
  313. node/nodes of shared statement before decoding into it.
  314. For p2so case, use statement2 in context as shared statement result.
  315. (librdf_storage_hashes_node_iterator_finished): Tidy up shared
  316. statements or predicate from p2so statement2.
  317. (librdf_storage_hashes_node_iterator_create) Copy query nodes,
  318. initialise statement2 for p2so case.
  319. (librdf_storage_hashes_group_serialise_get_statement): Clear shared
  320. statement before decoding into it.
  321. * configure.in, acconfig.h, librdf/rdf_hash.c,
  322. librdf/rdf_hash_gdbm.c, librdf/rdf_hash_gdbm.h,
  323. librdf/Makefile.am: GDBM dead
  324. * examples/example1.c: Revert to memory storage for test
  325. * examples/example4.c: Do free statements added, used in queries.
  326. Don't free nodes returned from sources/targets/arcs
  327. * librdf/rdf_storage_list.c
  328. (librdf_storage_list_group_serialise_get_statement):
  329. clear statement of any previous nodes before overwriting.
  330. * librdf/rdf_statement.c (librdf_statement_decode):
  331. Revert freeing overwritten nodes; some
  332. code relies on this for shared nodes. Use librdf_statement_clear
  333. before to ensure this.
  334. * librdf/rdf_storage_list.c:
  335. Use librdf_stream_map_free_context_handler for calling
  336. librdf_stream_set_map
  337. * librdf/rdf_stream.h:
  338. Added librdf_stream_map_free_context_handler typedef
  339. * librdf/rdf_serializer.h:
  340. Added librdf_serializer_serialize_model_to_file
  341. * librdf/rdf_storage_hashes.c (librdf_storage_hashes_init_common):
  342. Added 'index-predicates=<boolean>'
  343. config to turn on p2so index.
  344. (librdf_storage_get_hash_description_by_name): Comment out, unused for
  345. now.
  346. * examples/example1.c (main): Free added statement
  347. * examples/example1.c (main):
  348. Don't free shared node returned by iterator
  349. * librdf/rdf_storage_list.c (librdf_storage_list_find_map):
  350. Don't free statement on discard, just
  351. return NULL.
  352. * java/org/librdf/redland/Makefile.am: Added Serializer.java
  353. * java/org/librdf/redland/Serializer.java: Java Serializer class
  354. * python/RDF.py: Added Serializer class (not tested)
  355. * perl/lib/RDF/Redland/Serializer.pm:
  356. call librdf_serializer_serialize_model_to_file properly
  357. * python/RDF.py:
  358. When building sequences from iterated nodes, copy them.
  359. * perl/lib/RDF/Redland/Serializer.pm:
  360. method serialize_model now serialize_model_to_file
  361. * Redland.i:
  362. Replaced librdf_serializer_serialize_model with more suitable method
  363. librdf_serializer_serialize_model_to_file
  364. * librdf/rdf_serializer.c (librdf_serializer_serialize_model_to_file):
  365. Added - more suitable for
  366. calling from other langs than something with a FILE* arg.
  367. * librdf/PrintConsumer.java, librdf/PrintParser.java:
  368. Removed java wrapper parsers
  369. * librdf/rdf_parser.h, librdf/rdf_parser.c, librdf/Makefile.am,
  370. docs/api.sgml.in, docs/Makefile.am, configure.in, acconfig.h:
  371. Deleted old parsers: libwww, java sirpac-stanford, java sirpac-w3c
  372. * librdf/rdf_query.h: Include rdf_query_triples.h internally
  373. * librdf/rdf_node.h: Added librdf_node_static_iterator_create
  374. * librdf/rdf_hash.c: doc fix
  375. * librdf/Makefile.am: added rdf_stream_test rdf_iterator_test
  376. * librdf/rdf_stream.c (librdf_stream_from_node_iterator*): Changed
  377. implementation; copy the prototype statement, ensuring no problems
  378. if it goes away.
  379. (main): Added, testing librdf_new_stream_from_node_iterator using
  380. librdf_node_static_iterator_create to make a simple node iterator.
  381. * librdf/rdf_iterator.c (main): Added, testing general iterator
  382. features using librdf_node_static_iterator_create
  383. * librdf/rdf_node.c (librdf_node_static_iterator_is_end,
  384. librdf_node_static_iterator_next_method,
  385. librdf_node_static_iterator_get_method,
  386. librdf_node_static_iterator_finished,
  387. librdf_node_static_iterator_create): Added, to create an iterator
  388. over a static array of nodes. Mostly intended for testing
  389. iterator code.
  390. (main): style tweaks.
  391. * librdf/rdf_storage_hashes.c
  392. (librdf_storage_hashes_find_statements): Copy the passed in
  393. statement and use librdf_stream_set_map free map context argument
  394. to free it when the stream is closed.
  395. * librdf/rdf_storage_list.c (librdf_storage_list_find_statements):
  396. Copy the passed in statement and use librdf_stream_set_map free
  397. map context argument to free it when the stream is closed.
  398. * librdf/rdf_stream.c (librdf_free_stream): Use free map context
  399. method if present argument
  400. (librdf_stream_set_map): Added a free map context method argument
  401. * librdf/rdf_stream.h: librdf_stream_set_map gains a free context
  402. method argument
  403. 2002-12-09 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  404. * perl/lib/RDF/Redland/RSS.pm (properties_with_ns_prefix): Updated
  405. pod
  406. * librdf/rdf_statement.c (librdf_statement_init): Zap s,p,o
  407. pointers
  408. (librdf_statement_set_subject, librdf_statement_set_predicate,
  409. librdf_statement_set_object): Revert; don't free old pointers,
  410. some code is using this to update shared pointers.
  411. * librdf/rdf_hash.c (librdf_hash_keys_iterator_get_method): Return
  412. something for the GET_OBJECT method, so that
  413. librdf_iterator_update_current_element works OK
  414. * Redland.i: Add some prototypes.
  415. * librdf/rdf_statement.h, librdf/rdf_statement.c,
  416. librdf/rdf_node.h, librdf/rdf_node.c, librdf/librdf.h:
  417. librdf_statement is no longer a type of librdf_node. This
  418. implementation issue was never visible or used in the public API.
  419. * librdf/rdf_statement.c:
  420. (librdf_statement_set_subject, librdf_statement_set_predicate,
  421. librdf_statement_set_object): Free any existing node before setting.
  422. * perl/serialize.pl: More playing, still incomplete.
  423. 2002-12-08 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  424. * librdf/rdf_storage_hashes.c
  425. (librdf_storage_hashes_add_remove_statement): Remove
  426. librdf_free_statement from here; wrong place.
  427. (librdf_storage_hashes_add_statements): Do not statement copy
  428. before add_statement method.
  429. * librdf/rdf_storage_hashes.c
  430. (librdf_storage_hashes_serialise_finished): Clear static
  431. statement.
  432. * librdf/rdf_storage_hashes.c
  433. (librdf_storage_hashes_add_remove_statement): Free passed in
  434. statement
  435. 2002-12-04 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  436. * librdf/rdf_storage_list.c:
  437. (librdf_storage_list_group_serialise_finished) Use
  438. librdf_statement_clear to empty static statment.
  439. * librdf/rdf_statement.c (librdf_statement_clear): Added, for
  440. clearing static statements of nodes.
  441. (librdf_statement_decode): Check/remove existing nodes before
  442. overwriting them.
  443. * librdf/rdf_statement.h: Added librdf_statement_clear
  444. * raptor/raptor_parse.c (raptor_xml_start_element_handler): Save
  445. away the element attributes in an allocated array, restore the
  446. pointers later. This allows the XML parser to free them
  447. correctly.
  448. (raptor_xml_end_element_handler): Call raptor_free_qname again to
  449. tidy up.
  450. (raptor_init_parser_rdfxml): Initialise libxml2 explicitly
  451. (raptor_terminate_parser_rdfxml): Added, cleaning up libxml2.
  452. * raptor/raptor_libxml.c (raptor_libxml_endDocument): free the
  453. libxml2 Doc that is created but never freed by the SAX methods.
  454. * raptor/raptor_internal.h, raptor/raptor_general.c: Added
  455. raptor_terminate_parser_rdfxml() for closing rdfxml parser
  456. factory.
  457. * librdf/rdf_stream.c, librdf/rdf_iterator.c: Use is_finished and
  458. current fields to track when finished/empty. Rename
  459. iterator/stream *get_next_mapped* to *update_current*
  460. element/statement
  461. * librdf/rdf_storage.c
  462. (librdf_storage_stream_to_node_iterator_get_method): Do not touch
  463. fields in shared statement from stream.
  464. * librdf/rdf_statement.c: Fix comment.
  465. * librdf/rdf_storage_list.c
  466. (librdf_storage_list_group_serialise_get_statement): Use iterator
  467. (hash) value to decode context correctly.
  468. * librdf/rdf_hash.c (librdf_hash_get_all_iterator_get_method):
  469. Return something for get_object to enable general iterator to work
  470. 2002-12-03 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  471. * raptor/raptor_libxml.c
  472. (raptor_libxml_internalSubset,raptor_libxml_externalSubset): No
  473. return value.
  474. * raptor/raptor.h: Update prototype for unsigned char arg.
  475. * raptor/raptor_parse.c: Yet more casts, for expat XML_Char as
  476. char*
  477. * raptor/raptor_uri.c (raptor_free_uri): There is no return value
  478. * raptor/raptor_uri.c, raptor/raptor_qname.c,
  479. raptor/raptor_parse.c, raptor/raptor_namespace.c,
  480. raptor/raptor_general.c, raptor/raptor.h, raptor/ntriples_parse.c:
  481. More unsigned char to char fixes, other castings enough to make
  482. g++ happy.
  483. * raptor/raptor_parse.c, raptor/raptor_qname.c,
  484. raptor/raptor_namespace.c, raptor/raptor_general.c,
  485. raptor/raptor_internal.h: Use unsigned char for UTF-8 strings
  486. rather than char (That means all XML names, content, buffers)
  487. * raptor/raptor_parse.c:
  488. Delete HAVE_XML_SetNamespaceDeclHandler - never used
  489. Don't merge expat XML_Char (char) and libxml2 xmlChar (unsigned char).
  490. Work with unsigned char always.
  491. * raptor/raptor_internal.h:
  492. Don't merge expat XML_Char (char) and libxml2 xmlChar (unsigned char).
  493. Work with unsigned char always.
  494. * raptor/configure.in, raptor/acconfig.h:
  495. Delete HAVE_XML_SetNamespaceDeclHandler - never used
  496. * raptor/raptor_parse.c (raptor_element_has_property_attributes):
  497. Unused rdf_parser arg
  498. zapped.
  499. * raptor/raptor_parse.c (raptor_xml_parse_chunk_):
  500. Don't assign a negative number to size_t
  501. len, it is probably unsigned.
  502. * raptor/raptor_parse.c (raptor_free_element):
  503. Use raptor_free_uri on datatype URI
  504. * raptor/raptor_parse.c, raptor/raptor.h:
  505. Removed trailing ','s in enums
  506. 2002-12-02 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  507. * librdf/rdf_utf8.c:
  508. Updates for Unicode 3.2 UTF-8 encoding; forbid ranges and encodings
  509. that aren't used or allowed.
  510. * raptor/ntriples_parse.c (raptor_ntriples_string): sscanf format lx
  511. 2002-11-27 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  512. * raptor/INSTALL.html:
  513. Now works with old libxml 2.3.5 (released 2001-03-23)
  514. * raptor/raptor_libxml.c (raptor_libxml_init):
  515. Use RAPTOR_LIBXML_XMLSAXHANDLER_INITIALIZED
  516. to see if libxml xmlSAXHandler has an initialized field
  517. * raptor/configure.in: Check libxml xmlSAXHandler has initialized
  518. field defining RAPTOR_LIBXML_XMLSAXHANDLER_INITIALIZED if so
  519. * raptor/acconfig.h: Added RAPTOR_LIBXML_XMLSAXHANDLER_INITIALIZED
  520. * raptor/INSTALL.html: Updated supported versions
  521. 2002-11-26 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  522. * librdf/rdf_utf8.c, librdf/rdf_uri.c, librdf/rdf_stream.c,
  523. librdf/rdf_storage_list.c, librdf/rdf_storage_hashes.c,
  524. librdf/rdf_storage.c, librdf/rdf_statement.c,
  525. librdf/rdf_serializer_rdfxml.c, librdf/rdf_serializer_raptor.c,
  526. librdf/rdf_serializer.c, librdf/rdf_query_triples.c,
  527. librdf/rdf_query.c, librdf/rdf_parser_sirpac.c,
  528. librdf/rdf_parser_repat.c, librdf/rdf_parser_raptor.c,
  529. librdf/rdf_parser_libwww.c, librdf/rdf_parser.c,
  530. librdf/rdf_node.c, librdf/rdf_model.c, librdf/rdf_memory.c,
  531. librdf/rdf_list.c, librdf/rdf_iterator.c, librdf/rdf_init.c,
  532. librdf/librdf.h, configure.in, raptor/win32_config.h,
  533. raptor/configure.in, raptor/rdfdump.c, raptor/raptor_uri.c,
  534. raptor/raptor_parse.c, raptor/raptor_libxml.c,
  535. raptor/raptor_general.c, raptor/ntriples_parse.c:
  536. stdarg.h is now a required header.
  537. * raptor/configure.in, configure.in:
  538. Added --with-xml2-config to set location of libxml xml2-config program.
  539. * librdf/rdf_serializer_rdfxml.c: Fix broken comment
  540. * librdf/rdf_serializer_rdfxml.c: Documentation. Added some.
  541. (rdf_serializer_rdfxml_ok_xml_name): Correct the check.
  542. 2002-11-25 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  543. * librdf/rdf_serializer.h: Added librdf_serializer_rdfxml_constructor
  544. * librdf/rdf_serializer.c: Use librdf_serializer_rdfxml_constructor
  545. * librdf/rdf_serializer_rdfxml.c: s/stream/handle/ for file handles
  546. (rdf_serializer_rdfxml_print_as_xml_content): Added to print
  547. XML-escaped element content
  548. (rdf_serializer_rdfxml_print_as_xml_attribute): Added to print
  549. XML-escaped attribute content
  550. (rdf_serializer_rdfxml_print_xml_attribute): Added to print attribute
  551. plus escaped content.
  552. (librdf_serializer_print_statement_as_rdfxml): Use above to properly
  553. handle attributes and element content.
  554. * librdf/Makefile.am: Added rdf_serializer_rdfxml.c
  555. * librdf/rdf_serializer_rdfxml.c: Dumb RDF/XML Serializer
  556. * INSTALL.html: Tested with BDB 4.1.24
  557. * acconfig.h, configure.in, librdf/rdf_hash_bdb.c (librdf_hash_bdb_open):
  558. Updated to handle BDB V4.1 DB->open which now
  559. has 7 arguments.
  560. 2002-11-24 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  561. * raptor/raptor_parse.c (raptor_xml_start_element_handler): Don't free
  562. raptor_free_qname(element_name) here, raptor_free_element does it.
  563. * perl/lib/Makefile.am, perl/lib/RDF.pm: RDF.pm removed as promised
  564. 2002-11-21 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  565. * librdf/rdf_parser_libwww.c: parse into model always works
  566. * librdf/rdf_parser_libwww.c: Updated for stream method changes.
  567. * ruby/example.rb, tcl/test.tcl, tcl/example.tcl,
  568. python/test/test.py, python/example.py, python/RDF.py,
  569. perl/lib/RDF/Redland/Stream.pm, perl/lib/RDF/Redland/Model.pm,
  570. perl/lib/RDF/Redland/Iterator.pm: Updated for stream and iterator
  571. method changes.
  572. * perl/test.pl, perl/serialize.pl, perl/example.pl,
  573. examples/example4.c, examples/example1.c: Updated for stream
  574. method changes.
  575. * Redland.i: Updated for stream method changes.
  576. Added librdf_node_set_typed_literal_value
  577. Added librdf_stream_get_object, split from librdf_stream_next
  578. * librdf/rdf_parser_repat.c: Updated for stream method changes.
  579. * librdf/rdf_parser_raptor.c: Updated for stream method changes.
  580. (librdf_parser_raptor_get_next_statement): Call Raptor using new
  581. raptor_parse_chunk API allowing better handling of large content.
  582. (librdf_parser_raptor_destructor): Added, to tidy up raptor on module
  583. close.
  584. * librdf/rdf_storage_list.c, librdf/rdf_storage_hashes.c,
  585. librdf/rdf_storage.h, librdf/rdf_storage.c: Updated for stream
  586. method changes.
  587. * librdf/rdf_parser.h: Added librdf_parser_raptor_destructor
  588. * librdf/rdf_parser.c (librdf_finish_parser):
  589. Call librdf_parser_raptor_destructor on
  590. module close.
  591. * librdf/rdf_serializer_raptor.c
  592. (librdf_serializer_print_statement_as_ntriple):
  593. Updated for N-Triples
  594. language changes, XML Literal
  595. (librdf_serializer_raptor_serialize_model): Updated for stream method
  596. changes.
  597. * librdf/rdf_serializer.c (librdf_get_serializer_factory):
  598. Fix call to librdf_uri_equals.
  599. * librdf/rdf_model.c: (librdf_model_add_statements_group,
  600. librdf_model_remove_statements_group) Updated for stream method
  601. changes.
  602. * librdf/rdf_stream.c:
  603. Stream changed to more cursor-like, matching Iterator class.
  604. (librdf_new_stream): Updated args - next_method and get_method
  605. (librdf_free_stream): Updated for renamed method.
  606. (librdf_stream_get_next_mapped_statement,
  607. librdf_stream_end,librdf_stream_next): Updated for new methods.
  608. (librdf_stream_get_object): Added
  609. (librdf_stream_get_context): Added
  610. (librdf_new_stream_from_node_iterator,
  611. librdf_stream_from_node_iterator_next_statement,
  612. librdf_stream_from_node_iterator_get_statement): Added / updated for
  613. stream changes. Use a static statement instead of creating new ones
  614. on each call.
  615. (librdf_stream_print): Updated for stream method changes.
  616. * librdf/rdf_stream.h:
  617. Stream changed to more cursor-like, matching Iterator class.
  618. Split get_next method into get/next methods.
  619. Added librdf_stream_get_object, librdf_stream_get_context
  620. * librdf/rdf_iterator.h:
  621. iterator structure - is_end now is_end_method, finished now
  622. finished_method
  623. * librdf/rdf_iterator.c (librdf_new_iterator,librdf_free_iterator):
  624. Parameter and structure
  625. renamings; use is_end_method instead of is_end
  626. * librdf/rdf_uri.c (librdf_uri_equals):
  627. Added defensive check, any NULL parameters is
  628. failure.
  629. * librdf/rdf_statement.c (librdf_statement_init):
  630. Added stronger usage instructions.
  631. * librdf/rdf_concepts.h, librdf/rdf_concepts.c: Added rdf:XMLLiteral
  632. * librdf/rdf_node.h:
  633. Remove is_wf_xml field, add datatype URI field to node structure
  634. Added prototypes for:
  635. librdf_new_node_from_typed_literal,
  636. librdf_node_get_literal_value_datatype_uri,
  637. librdf_node_set_typed_literal_value
  638. * librdf/rdf_node.c (librdf_node_set_typed_literal_value): Added
  639. (librdf_new_node_from_typed_literal): Added
  640. (librdf_node_get_literal_value_datatype_uri): Added
  641. Remove is_wf_xml field, add datatype URI field to node structure
  642. (librdf_node_equals): Updated for datatypes
  643. (librdf_node_encode, librdf_node_decode): Added datatyped node
  644. encoding 'M'.
  645. * raptor/configure.in:
  646. Make it use expat sources if this is part of Redland, ../expat dir
  647. exists and there is no installed expat system library
  648. * raptor/raptor_parse.c (raptor_xml_parse_chunk_):
  649. Only use the libxml2 bug workaround for small
  650. buffers for libxml2 versions lower than 2.4.25
  651. * raptor/tests/Makefile.am:
  652. Report error status from standard rdf/xml tests, even if the answer
  653. was correct.
  654. * raptor/tests/ex-03.rdf: Remove aboutEach* and bare bagID
  655. 2002-11-20 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  656. * php/test.php, php/example.php: Do nothing
  657. * php/Makefile.am:
  658. Run test (does nothing so far apart from import Redland)
  659. * docs/php.html: typo
  660. * docs/Makefile.am: Added php.html (no API in release though)
  661. * docs/php.html: PHP API doc
  662. 2002-11-19 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  663. * raptor/tests/test.out, raptor/tests/test.nt,
  664. raptor/tests/ex-11.out, raptor/tests/ex-07.out,
  665. raptor/raptor_parse.c, raptor/raptor_general.c,
  666. raptor/ntriples_parse.c:
  667. rdfs:XMLLiteral now rdf:XMLLiteral
  668. Add rdf:nil to allowed rdf namespace terms
  669. * raptor/raptor_parse.c: More error/warnings rewordings
  670. * raptor/raptor_parse.c:
  671. Remove M&S from some comments, messages. Use RDF namespace.
  672. * raptor/raptor_parse.c:
  673. Improve warning about multiple object nodes for a property element.
  674. 2002-11-12 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  675. * perl/lib/RDF/Redland/RSS.pm (inchannel):
  676. Delete; never part of RSS 1.0
  677. 2002-11-11 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  678. * perl/lib/RDF/Makefile.am, perl/lib/RDF/Stream.pm,
  679. perl/lib/RDF/URI.pm, perl/lib/RDF/Model.pm, perl/lib/RDF/Node.pm,
  680. perl/lib/RDF/Parser.pm, perl/lib/RDF/RSS.pm,
  681. perl/lib/RDF/Statement.pm, perl/lib/RDF/Storage.pm,
  682. perl/lib/RDF/Iterator.pm:
  683. Removed old perl namespaced modules
  684. * Redland.i: Removed duplicate and clashing extern declarations.
  685. 2002-11-07 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  686. * raptor/tests/test.out: typo
  687. * raptor/tests/test.nt:
  688. Remove xml"foo" tests, replacing with "foo"<...> form.
  689. 2002-11-06 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  690. * raptor/tests/test.out, raptor/tests/ex-11.out,
  691. raptor/tests/ex-07.out:
  692. Remove xml"foo" tests, replacing with "foo"<...> form.
  693. * raptor/raptor_general.c: Remove xml"foo" (stage 1).
  694. (raptor_print_statement_detailed): Output this as a datatyped literal.
  695. (raptor_print_statement_as_ntriples): Output the "foo"<..> datatype
  696. N-Triples form.
  697. * raptor/ntriples_parse.c:
  698. Remove xml"foo" (stage 1). Parsing it works but gives an error.
  699. Never output.
  700. (raptor_ntriples_generate_statement): Output "foo"<...> for xml
  701. literal. Remove is_xml argument.
  702. (raptor_ntriples_parse_line): For XML literal (old xml"foo"), parse,
  703. give an error and emit it in the datatype form.
  704. 2002-11-02 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  705. * raptor/configure.in: Bumped version to 0.9.7
  706. * raptor/raptor_parse.c:
  707. rdf_attr_info gains allowed_unprefixed_on_attribute to suppress warning.
  708. * raptor/libraptor.3: Updated for 0.9.6
  709. * raptor/tests/test.out: minor fix
  710. * raptor/rdfdump.1: Add -a/--assume option.
  711. * raptor/raptor.h:
  712. Tweak uri factory method typedefs, prefix with raptor_
  713. * raptor/raptor.h: raptor_start_parse_file: Made an internal method
  714. * raptor/raptor_general.c (raptor_start_parse_file):
  715. Made an internal method
  716. * raptor/tests/test.nt: minor fix
  717. * raptor/tests/test.out, raptor/tests/test.nt:
  718. Added tests for datatyped literals with/without language
  719. * raptor/ntriples_parse.c (raptor_ntriples_string):
  720. Added N-Triples datatype (^^<uri-ref>) parsing.
  721. 2002-11-01 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  722. * raptor/ntriples_parse.c (raptor_ntriples_generate_Statement):
  723. Added datatypes argument,
  724. will set the URI if the string is passed in.
  725. 2002-10-31 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  726. * raptor/raptor_parse.c:
  727. Check for rdf:datatype on property/member elements
  728. * raptor/tests/Makefile.am: Added ex-41
  729. * raptor/tests/ex-41.out, raptor/tests/ex-41.rdf:
  730. Added rdf:datatype tests
  731. * raptor/raptor_parse.c (raptor_free_element): Free xml:lang values
  732. * raptor/raptor_parse.c:
  733. alternatively, don't zap the pointer and let cleanup grab it.
  734. * raptor/raptor_parse.c:
  735. free rdf:about attribute value before discarding pointer.
  736. * raptor/raptor_general.c (raptor_parse_file): Always free filename.
  737. * raptor/raptor_uri.c (raptor_uri_filename_to_uri_string):
  738. Fix length of buffer
  739. for unix when file name is recalculated from getcwd().
  740. * raptor/raptor_namespace.c (raptor_namespaces_free):
  741. Don't need non-NULL context to do freeing.
  742. * librdf/rdf_parser_raptor.c (librdf_parser_raptor_constructor):
  743. raptor_init(), not just URI class.
  744. * raptor/ntriples_parse.c:
  745. Update to handle xml"string"@lang format (and warn about older one)
  746. * raptor/ntriples_parse.c:
  747. Update to handle "string"@lang format (and warn about older one)
  748. * raptor/tests/test.out, raptor/tests/test.nt,
  749. raptor/tests/rdfs-namespace.out, raptor/tests/rdf-schema.out,
  750. raptor/tests/ex-29.out:
  751. Update to "string"@lang format.
  752. * raptor/raptor_general.c (raptor_print_statement_as_ntriples):
  753. Update to "string"@lang format.
  754. Add datatype URI.
  755. * raptor/rdfdump.c (main): Init uri_string variables
  756. * raptor/raptor_internal.h, raptor/ntriples_parse.c,
  757. raptor/raptor_namespace.c, raptor/raptor_parse.c,
  758. raptor/raptor_qname.c, raptor/raptor_uri.c,
  759. raptor/raptor_general.c, raptor/raptor_libxml.c:
  760. LIBRDF_ macros now RAPTOR_
  761. * raptor/raptor_internal.h: Remove raptor_uri_init
  762. * librdf/rdf_parser_raptor.c: Update to new raptor API
  763. * raptor/raptor.h: Added raptor_uri_init
  764. * raptor/raptor_namespace.c:
  765. (main) Updates for initialising URI class in/outside redland
  766. * raptor/rdfdump.c: When RAPTOR_IN_REDLAND, include <librdf.h>
  767. * raptor/rdfdump.c: Use raptor URI calls.
  768. Use raptor_init/raptor_finish - now required.
  769. * raptor/raptor_general.c (raptor_init): Now compulsory
  770. * raptor/raptor_parse.c, raptor/raptor_locator.c,
  771. raptor/raptor_namespace.c:
  772. macro RAPTOR_URI_AS_STRING -> raptor_uri_as_string
  773. * raptor/raptor_internal.h: Removed macro RAPTOR_URI_AS_STRING
  774. * raptor/raptor_general.c:
  775. macro RAPTOR_URI_AS_STRING -> raptor_uri_as_string
  776. * raptor/raptor.h: Added raptor_uri_as_string and uri class method
  777. * librdf/rdf_parser_raptor.c (librdf_raptor_uri_as_string):
  778. Added, registered for raptor uri
  779. class.
  780. * raptor/raptor_uri.c (raptor_default_uri_as_string): Added
  781. (raptor_uri_as_string): Added, using above for default class.
  782. (raptor_uri_init_default_handler): Register the above
  783. * raptor/raptor_general.c:
  784. Use RAPTOR_URI_AS_STRING for getting uri string to make a filename.
  785. * raptor/raptor_parse.c:
  786. Remove uses of IS_RDF_MS_CONCEPT with raptor_uri_equals.
  787. Define more concepts for rdf:RDF, rdf:Description and rdf:li
  788. * raptor/raptor_internal.h: remove IS_RDF_MS_CONCEPT
  789. * raptor/raptor_qname.c: macro RAPTOR_FREE_URI -> raptor_free_uri
  790. * raptor/raptor_internal.h:
  791. delete macros RAPTOR_FREE_URI, RAPTOR_URI_TO_FILENAME
  792. * raptor/raptor_general.c: macro RAPTOR_FREE_URI -> raptor_free_uri
  793. macro RAPTOR_URI_TO_FILENAME -> raptor_uri_uri_string_to_filename
  794. (only use)
  795. * raptor/ntriples_parse.c: macro RAPTOR_FREE_URI => raptor_free_uri
  796. * raptor/raptor_uri.c:
  797. Add some casts now raptor_uri is a typedef for void*
  798. * raptor/raptor_internal.h, raptor/raptor.h:
  799. Remove more RAPTOR_IN_REDLAND prototypes
  800. * raptor/ntriples.h: Remove more RAPTOR_IN_REDLAND
  801. * raptor/rdfdump.c: Remove more RAPTOR_IN_REDLAND and old API
  802. * raptor/raptor_parse.c:
  803. Re-add DAML Collection info to rdf_content_type_info table - just
  804. plain luck that this was working without it.
  805. Add concept URIs table to rdf_xml_parser structure.
  806. Change concepts macros to point to the parts of that table.
  807. Remove most of the RAPTOR_IN_REDLAND stuff, consequently.
  808. * raptor/raptor_namespace.c (raptor_namespaces_free):
  809. Handle being called when handler/context
  810. empty.
  811. * raptor/raptor_namespace.c:
  812. Use raptor_namespace struct raptor_namespace_stack field
  813. to get uri handler/context
  814. * raptor/raptor_internal.h:
  815. raptor_namespace: add raptor_namespace_stack field
  816. * raptor/raptor_general.c (raptor_start_parse):
  817. Use changed raptor_namespaces_init call.
  818. * raptor/raptor_namespace.c:
  819. Remove RAPTOR_REDLAND code and use uri_handlre/context args
  820. (raptor_namespaces_init): Now takes uri handler, context args.
  821. Initialises rdf/rdfs namespace URIs.
  822. (raptor_namespaces_free): Free rdf/rdfs namespace URIs.
  823. * raptor/raptor_general.c: Remove RAPTOR_REDLAND code
  824. Call raptor_namespaces_init with raptor URI handler, context
  825. * raptor/raptor_internal.h:
  826. Remove RAPTOR_REDLAND definitions and double prototypes.
  827. Added uri_handler, uri_context, rdf_ms_uri, rdf_schema_uri to
  828. raptor_namespace_stack.
  829. * raptor/ntriples_parse.c: Remove RAPTOR_REDLAND code
  830. * raptor/raptor_uri.c (raptor_uri_get_handler): Added
  831. * raptor/raptor.h: Added raptor-uri_get_handler.
  832. * raptor/raptor_uri.c:
  833. rename raptor_current_uri_* -> raptor_uri_current_*
  834. * librdf/rdf_parser_raptor.c:
  835. Added raptor uri factory initialisation calls, untested yet.
  836. * raptor/raptor_uri.c:
  837. Use raptor_current_uri_handler, raptor_current_uri_context
  838. throughout.
  839. 2002-10-30 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  840. * raptor/raptor_uri.c (raptor_uri_set_handler):
  841. Added, initialising the static
  842. variables raptor_current_uri_handler, raptor_current_uri_context.
  843. raptor_init_uri_class -> raptor_uri_init
  844. * raptor/raptor_general.c, raptor/raptor_internal.h:
  845. raptor_init_uri_class -> raptor_uri_init
  846. * raptor/raptor.h: Added raptor_uri_set_handler
  847. * raptor/raptor_uri.c: raptor_copy_uri -> raptor_uri_copy
  848. (raptor_default_uri_copy): Added
  849. (raptor_init_uri_default_handler): Added to re-init the default uri
  850. class.
  851. (raptor_init_uri_class): To initialise the uri class with default
  852. handler
  853. * raptor/raptor_internal.h: Declare uri class init prototypes.
  854. * raptor/raptor_parse.c, raptor/raptor_general.c:
  855. raptor_copy_uri -> raptor_uri_copy
  856. * raptor/raptor.h: raptor_copy_uri -> raptor_uri_copy
  857. Added uri handler func definitions.
  858. Added raptor_uri_handler, using above funcs
  859. 2002-10-15 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  860. * raptor/raptor_qname.c:
  861. Remove only RAPTOR_IN_REDLAND use - not required.
  862. * raptor/raptor_uri.c: Updated copyright
  863. * raptor/ntriples_parse.c:
  864. Removed raptor_make_uri; use raptor_new_uri_relative_to_base directly.
  865. * raptor/raptor.h: Removed raptor_new_uri_from_base_name prototype
  866. * raptor/raptor.h: Removed all raptor_make_uri prototypes.
  867. Added prototypes for raptor_new_uri_relative_to_base,
  868. raptor_new_uri_from_id, raptor_new_uri_from_base_name,
  869. raptor-new_uri_for_rdf_concept.
  870. * raptor/raptor_parse.c:
  871. RAPTOR_FREE_URI (macro) to raptor_free_uri (method)
  872. Removed raptor_make_uri; use raptor_new_uri_relative_to_base directly.
  873. Removed raptor_make_uri_from_id: use raptor_new_uri_from_id directly
  874. Use raptor_new_uri_for_rdf_concept
  875. * raptor/raptor_uri.c: Typo.
  876. Removed raptor_make_uri; use raptor_new_uri_relative_to_base directly.
  877. (raptor_default_new_uri_for_rdf_concept,
  878. raptor_new_uri_for_rdf_concept): Added to get URI of rdf:thing
  879. 2002-10-13 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  880. * raptor/raptor_uri.c (raptor_default_new_uri_relative_to_base, raptor_new_uri_relative_to_base):
  881. Added
  882. (raptor_new_uri_from_id): Added, was make_uri_from_id
  883. (raptor_new_uri_from_base_name): Added, was make_uri_from_base_name
  884. * raptor/raptor.h:
  885. Added new uri methods, soon-to-be old make_uri_* ones
  886. * raptor/raptor_internal.h: Move uri calls to raptor.h
  887. * raptor/raptor_parse.c:
  888. Remove unused rdf_parser argument of raptor_make_uri_from_id calls.
  889. * raptor/raptor_uri.c (raptor_make_uri_from_id):
  890. Remove unused rdf_parser argument
  891. * raptor/raptor_uri.c:
  892. Start of skeleton code for URI class, along with default methods.
  893. (raptor_default_new_uri, raptor_new_uri): Added
  894. (raptor_default_new_uri_from_uri_local_name,
  895. raptor_new_uri_from_uri_local_name): Added
  896. (raptor_default_free_uri,raptor_free_uri): Added
  897. (raptor_default_uri_equals, raptor_uri_equals): Added
  898. (raptor_make_uri, raptor_make_uri_from_id,
  899. raptor_make_uri_from_base_name):Moved from raptor_general.c
  900. * raptor/raptor_general.c:
  901. Move raptor_make_uri, raptor_make_uri_from_id,
  902. raptor_make_uri_from_base_name to raptor_uri.c
  903. 2002-10-12 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  904. * raptor/raptor_parse.c (raptor_xml_parse_terminate):
  905. Moved all of raptor_xml_parse_clean
  906. here, deleted it.
  907. * raptor/rdfdump.c:
  908. Updated to newest calling API - no special ntriples calls.
  909. * raptor/raptor_general.c, raptor/raptor.h:
  910. Tweak raptor_new_parser prototype.
  911. * raptor/libraptor.3: Updated to describe features
  912. * raptor/libraptor.3: Updated for shared parser core api
  913. * raptor/raptor_parse.c: Add raptor_xml_parser here - private struct.
  914. * raptor/raptor_internal.h: Moved raptor_xml_parser to private file.
  915. * raptor/raptor_general.c: Tidy raptor_new old api note.
  916. * raptor/ntriples.h: Updated ntriples parser to new registering API.
  917. * raptor/ntriples_parse.c: Converted to the new factory-based API.
  918. raptor_ntriples_parser_context (and struct version _s) now allocated
  919. by main parser code.
  920. Use raptor_parser for most methods and calls.
  921. (raptor_ntriples_parse_init, raptor_ntriples_parse_terminate): Added
  922. (raptor_ntriples_new): Replaced with wrapper around raptor_new_parser("ntriples").
  923. (raptor_ntriples_free): Replaced with wrapper around raptor_free_parser
  924. (raptor_ntriples_set_error_handler, raptor_ntriples_set_fatal_error_handler,
  925. raptor_ntriples_set_statement_handler, raptor_ntriples_parser_error,
  926. raptor_ntriples_parser_fatal_error, raptor_ntriples_parse_file):
  927. Replaced with wrappers around general methods.
  928. (raptor_ntriples_parse_chunk): Renamed from raptor_ntriples_parse
  929. (raptor_ntriples_parse_start): Added from parts of old
  930. raptor_ntriples_parse_file.
  931. (raptor_ntriples_parser_register_factory): Added to register this
  932. with the main system.
  933. (raptor_init_parser_ntriples): Added to register this module.
  934. 2002-10-11 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  935. * raptor/raptor_internal.h:
  936. Moved raptor_parser_s here, for use across the library.
  937. Lots of rearranging and reordering to move structs earlier.
  938. Added raptor_parser_factory_s and typedef.
  939. Added prototypes for factory registration calls.
  940. * raptor/raptor_parse.c: Now uses factory and parser-specific context.
  941. (raptor_xml_new, raptor_xml_free, raptor_xml_parse_init): Moved most
  942. code to raptor_new_parser, raptor_free_parser, raptor_start_parse
  943. (raptor_xml_parse_init_file): Gone.
  944. Renamed to match factory methods - raptor_xml_parse_terminate.
  945. (raptor_parse_file): Moved to raptor_general.c
  946. (raptor_xml_parser_register_factory): Added, for registering factory.
  947. (raptor_init_parser_rdfxml): Register parser type "rdfxml".
  948. * raptor/raptor_general.c:
  949. Added parser factory functions and use them via new API.
  950. (raptor_init, raptor_finish): Added to start/end raptor.
  951. (raptor_delete_parser_factories): Added, helper for cleanup.
  952. (raptor_parser_register_factory): Added, for registering parsers
  953. (raptor_get_parser_factory): Added, helper for finding a parser
  954. (raptor_new_parser): New constructor, uses factory and initialises
  955. only general parts of parser.
  956. (raptor_start_parse): New method to (re)initialise a particular
  957. parse.
  958. (raptor_start_parse_file): New method to start parsing from a
  959. filename.
  960. (raptor_parse_chunk): New method to parse content from memory.
  961. (raptor_free_parser): New destructor.
  962. (raptor_parse_file): Moved from raptor_parse.c and made general.
  963. (raptor_new): Old API constructor, now written over new constructor.
  964. (raptor_free): Old API destructor, now just calls new destructor.
  965. (raptor_set_world): Temporary redland support.
  966. * raptor/raptor_namespace.c (raptor_namespaces_free):
  967. Zap top of stack when done, so
  968. can work when called multiple times.
  969. * raptor/raptor.h: Added raptor_init(), raptor_finish()
  970. Deprecate raptor_new(), raptor_free().
  971. Added raptor_new_praser(), raptor_free_parser(),
  972. raptor_start_parser(), raptor_start_parse_file(), raptor_parse_chunk()
  973. Temporarily use raptor_set_redland_world.
  974. 2002-10-10 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  975. * raptor/Makefile.am: Added raptor_general.c
  976. * raptor/raptor.h: raptor_print_statement_detailed: Now public.
  977. * raptor/raptor_internal.h, raptor/raptor_parse.c,
  978. raptor/raptor_general.c:
  979. Split general parsing routines into raptor_general.c leaving
  980. the rdf/xml parsing specific parts in raptor_parse.c.
  981. The general raptor_parser structure moved to raptor_internal.h
  982. leaving a new raptor_xml_parser for raptor_parse.c [rdf/xml].
  983. 2002-10-07 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  984. * raptor/tests/test.html, raptor/tests/test.svg: Embedded rdf:RDF
  985. tests
  986. * raptor/raptor_general.c, raptor/raptor_parse.c:
  987. Call dummy (length calculating) vsnprintf call with a 1-byte buffer
  988. rather than NULL - OSX seems unhappy with that.
  989. Try to get rdf:RDF scanning working by adding at_grammar_start check
  990. rather than apply at all state unknown points.
  991. 2002-09-30 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  992. * php/Makefile.am: PHP interface
  993. * configure.in, Makefile.am: Added php interface
  994. 2002-09-29 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  995. * raptor/tests/Makefile.am:
  996. Split the checks into classes; ex-19.rdf is for when rdf is assumed
  997. since it ommits rdf:RDF, and hence is not really rdf/xml.
  998. * raptor/rdfdump.c: Added -a,--assume to set feature assume_is_rdf
  999. * raptor/raptor_general.c, raptor/raptor_parse.c:
  1000. Added rdf:datatype built in.
  1001. Literal datatype URI stored in containing property element.
  1002. Added feature_assume_is_rdf to make rdf:RDF optional.
  1003. (raptor_generate_statement): Add literal datatype URI argument.
  1004. (raptor_xml_parse_chunk_): Return parser errors in initial XML_Parse
  1005. correctly - check if it happens even if end of data. Similarly for
  1006. libxml's xmlParseChunk.
  1007. (raptor_set_feature): Added feature assume_is_rdf
  1008. (raptor_print_statement_detailed): Added literal datatype URI
  1009. printing.
  1010. (raptor_process_property_attributes): Warn about unqualified
  1011. (property) attributes, don't try to process them.
  1012. (raptor_start_element_grammar): Added feature assume_is_rdf
  1013. splitting scanning for rdf:RDF (feature scanning) and ignoring it
  1014. (feature assume)
  1015. * raptor/raptor_qname.c (raptor_new_qname):
  1016. Don't die on non-namespaced XML; could be used in
  1017. skipping or other processing.
  1018. * raptor/raptor.h: added assume_is_feature
  1019. datatypes built in
  1020. raptor_print_ntriples_string now returns an int
  1021. * raptor/LICENSE.html: Tidy intro, update dates
  1022. * raptor/ntriples_parse.c: change anon->bnodeid
  1023. Add ASCII rather than is* locale-tests and validate bnodeIDs with
  1024. the macros
  1025. (parse_ntriples_string): Check for invalid ASCII chars.
  1026. Tidy error reporting for end of line.
  1027. (raptor_ntriples_parse_line): Add validation of bnodeIDs
  1028. (raptor_ntriples_parse_file): Comments
  1029. (raptor_print_ntriples_string): Handle failure, add a return code
  1030. * raptor/ntriples.h: change anon->bnodeid
  1031. * raptor/configure.in: datatypes built in now
  1032. * raptor/Makefile.am: Clean the test programs
  1033. 2002-09-27 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1034. * perl/Makefile.am:
  1035. Updates to make swig re-run and build lib/RDF/Redland/CORE.pm when
  1036. it is needed.
  1037. * python/RDF.py:
  1038. Check for == None as well as == "NULL" as return from SWIG methods.
  1039. (Change to the SWIG calling convention in newer version)
  1040. 2002-09-19 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1041. * NEWS.html: Update old N-Triples link
  1042. * raptor/Makefile.am:
  1043. Restore rule to make librdf.la for when embedded in Redland
  1044. * raptor/raptor_libxml.c (raptor_libxml_init):
  1045. Enable handling of cdata blocks -
  1046. <![CDATA[...]> by registering callback to raptor_xml_cdata_handler
  1047. * raptor/tests/ex-40.out: Fix node
  1048. * raptor/tests/Makefile.am: Added ex-40
  1049. * raptor/tests/ex-40.out, raptor/tests/ex-40.rdf:
  1050. Check XML CDATA sections
  1051. * raptor/Makefile.am:
  1052. dist-hook added to copy pre-built README and NEWS to release
  1053. * librdf/Makefile.am:
  1054. Remove dist-hook, rpm, finish - not needed or usable any longer.
  1055. 2002-09-18 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1056. * raptor/raptor_namespace.c (raptor_namespace_new):
  1057. Fix debug message to report no URI for namespace.
  1058. * raptor/raptor_namespace.c (raptor_namespace_new):
  1059. Make xmlns="" work when compiling inside Redland.
  1060. 2002-09-17 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1061. * examples/example1.c:
  1062. Add another statement by hand so we get multiple statements and
  1063. targets
  1064. * librdf/rdf_storage.c
  1065. (librdf_storage_stream_to_node_iterator_get_method):
  1066. Handle being
  1067. called before librdf_storage_stream_to_node_iterator_next_method
  1068. and initialising statement.
  1069. * librdf/rdf_storage_hashes.c
  1070. (librdf_storage_hashes_serialise_next_statement,
  1071. librdf_storage_hashes_group_serialise_next_statement):
  1072. Move
  1073. librdf_iterator_next call till after the data is fetched.
  1074. * docs/api.sgml.in: minor rewordings
  1075. * docs/kernel-doc: Updated to new linux version.
  1076. Fix minor error reporting bug.
  1077. * examples/example1.c: Fix subject to work with updated ../perl/dc.rdf
  1078. * Redland.i:
  1079. Added librdf_node_equals which was already being used by language
  1080. interfaces!
  1081. 2002-09-16 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1082. * raptor/raptor_parse.c (raptor_xml_parse_chunk_):
  1083. For libxml, don't pass in filename to
  1084. xmlCreatePushParserCtxt, we may not always have one.
  1085. For lbixml, return correctly from initial parsing.
  1086. (raptor_xml_parse_chunk): Add docucomments.
  1087. (raptor_parse_file): Terminate loop on end of file as well as error.
  1088. * raptor/Makefile.am:
  1089. Added REDLAND_LIBS to raptor_namespace_test to make it work inside
  1090. redland
  1091. 2002-09-12 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1092. * raptor/raptor_parse.c (raptor_parse_file): Split into:
  1093. raptor_xml_parse_init, raptor_xml_parse_init_file,
  1094. raptor_xml_parse_clean and raptor_xml_parse_chunk to allow more
  1095. flexible APIs.
  1096. (raptor_xml_parse_chunk_): Added, doing the main work of
  1097. raptor_xml_parse_chunk but without error checking.
  1098. (raptor_xml_parse_handle_errors): Added to process errors from an XML
  1099. parser during parsing.
  1100. * raptor/raptor_namespace.c: Make it work inside redland too.
  1101. Fix standalone tests inside redland.
  1102. 2002-09-11 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1103. * raptor/raptor_internal.h:
  1104. Moved namespace and qname definitions and prototypes here from
  1105. raptor_parse.c
  1106. * raptor/Makefile.am: Added raptor_namespace.c raptor_qname.c
  1107. * raptor/raptor_parse.c:
  1108. Moved namespace code to raptor_namespace.c, qname code to
  1109. raptor_qname.c and renamed raptor_ns_map, raptor_ns_na,e
  1110. to match.
  1111. * raptor/raptor_qname.c: Raptor XML qname
  1112. * raptor/raptor_namespace.c: Raptor XML namespace classes
  1113. 2002-09-06 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1114. * repat/Makefile.am:
  1115. Use REPAT_LIBS to link tests with an expat XML parser
  1116. * configure.in:
  1117. Added REPAT_LIBS to link internal repat tests with an expat XML
  1118. parser (only)
  1119. * librdf/rdf_digest_md5.c: Include rdf_types.h for u32
  1120. 2002-09-05 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1121. * python/Makefile.am: Use SWIG_PYTHON_ARGS
  1122. * configure.in:
  1123. Check for swig 1.3.14+ and add SWIG_PYTHON_ARGS=-noproxy
  1124. * configure.in:
  1125. Add warning if BDB library cannot be found in dir, then default to 'db'
  1126. * autogen.sh: Remove config.cache before running new configure
  1127. 2002-09-04 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1128. * python/RDF.py:
  1129. Add some defensive checks for __str__ calls on null nodes/statements
  1130. 2002-09-03 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1131. * autogen.sh: Fix swig check
  1132. * python/test/test.py: test with raptor parser
  1133. * autogen.sh: Require swig, min 1.3.10
  1134. * configure.in:
  1135. SWIG 1.3.10 required; warn appropriately if pre-generated files are
  1136. present, is OK but no generating possible.
  1137. * autogen.sh:
  1138. Move copying of local copies of config.guess, config.sub to after
  1139. automake, libtool to ensure it overwrides.
  1140. 2002-09-02 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1141. * librdf/rdf_storage_hashes.c:
  1142. Re-include some headers for internal prototypes
  1143. 2002-09-01 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1144. * raptor/raptor_parse.c: Use updated LIBRDF_RS URI names
  1145. * librdf/rdf_concepts.h:
  1146. Rename new syntax terms to be CONCEPT_RS (revised syntax) etc.
  1147. Add URI terms too.
  1148. * raptor/raptor_parse.c:
  1149. Added rdf:parseType="Collection" after daml:collection code
  1150. * raptor/tests/Makefile.am: Added test ex-39 for parseType Collection
  1151. * raptor/tests/ex-39.out, raptor/tests/ex-39.rdf:
  1152. rdf:parseType="Collection" test
  1153. * librdf/rdf_concepts.h, librdf/rdf_concepts.c:
  1154. Add new concepts rdf:nodeID, rdf:List, rdf:first, rdf:rest, rdf:nil
  1155. * librdf/rdf_query.c:
  1156. Include rdf_query.h and rdf_query_triples.h again for prototypes
  1157. * librdf/rdf_storage.c:
  1158. Include rdf_storage.h and rdf_storage_hashes.h again for prototypes
  1159. * librdf/rdf_uri.h:
  1160. librdf_uri_to_filename renamed from librdf_uri_as_filename.
  1161. * librdf/rdf_uri.c (librdf_uri_to_filename):
  1162. Renamed from librdf_uri_as_filename.
  1163. * librdf/rdf_parser_repat.c (librdf_parser_repat_parse_file_as_stream):
  1164. librdf_uri_as_filename
  1165. now librdf_uri_to_filename.
  1166. * librdf/rdf_parser.c (librdf_parser_parse_as_stream,librdf_parser_parse_into_model):
  1167. filename not needed
  1168. * librdf/rdf_hash_memory.c:
  1169. Include rdf_hash_memory.h again for prototypes
  1170. * raptor/raptor_parse.c:
  1171. Change daml:Collection, daml:* comments to Collection, rdf:List etc.
  1172. 2002-08-31 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1173. * raptor/raptor_parse.c (raptor_end_element_grammar):
  1174. Generate rdf:nodeID, store in id, not
  1175. URI field.
  1176. Rearrange three calls of raptor_process_property_attributes into one.
  1177. * raptor/tests/Makefile.am:
  1178. Use ECHO_N and ECHO_C to do portable echo without newline
  1179. * raptor/configure.in:
  1180. Pass on echo pre/postfix args needed for echoing without a newline
  1181. * raptor/tests/Makefile.am:
  1182. Instead of ignoring warnings, make make ignore exit codes from rdfdump
  1183. * raptor/tests/Makefile.am: Ignore warnings (for now) in tests
  1184. * raptor/tests/Makefile.am: Remove RDF_TEST_ANSWER_FILES - not used
  1185. * raptor/raptor_parse.c (raptor_start_element_grammar):
  1186. Don't copy URIs from daml:collection
  1187. to the contained nodes.
  1188. * raptor/tests/ex-34.out: Now correct.
  1189. 2002-08-29 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1190. * raptor/tests/Makefile.am: Added ex-38
  1191. * raptor/tests/ex-38.rdf, raptor/tests/ex-38.out:
  1192. Test daml:Collection with rdf:ID
  1193. * raptor/tests/ex-37.out: switch order again
  1194. * raptor/raptor_parse.c (raptor_element_has_property_attributes):
  1195. Check for rdf: properties
  1196. too
  1197. * raptor/tests/ex-37.out: Correct order, nodes in result
  1198. * raptor/tests/ex-37.out, raptor/tests/ex-37.rdf:
  1199. rdf:type attribute on empty property
  1200. * raptor/tests/Makefile.am: Added ex-37
  1201. 2002-08-28 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1202. * raptor/tests/ex-13.nt: deleted
  1203. * raptor/raptor_parse.c: Fixed empty daml:Collection handling
  1204. * raptor/raptor_uri.c: Minor strcat/strcpy optimisation
  1205. * raptor/tests/ex-34.rdf: Renamed nodes so prop2 goes with node2 etc.
  1206. * raptor/tests/ex-34.out: renamed genids to more match output
  1207. * raptor/tests/ex-35.out, raptor/tests/ex-35.rdf,
  1208. raptor/tests/ex-36.out, raptor/tests/ex-36.rdf:
  1209. Added more daml:Collection checks
  1210. * raptor/tests/ex-24.out: output order changed, same triples
  1211. * raptor/tests/Makefile.am:
  1212. Added ex-35, ex-36 for more daml:Collection checks
  1213. * raptor/tests/ex-12.out: output order changed, same triples
  1214. 2002-08-22 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1215. * raptor/raptor_parse.c: removed fn not used
  1216. * raptor/raptor_parse.c: Update xml namespaces comment with NE05 errata
  1217. * raptor/raptor_parse.c:
  1218. Removed use of obsolete object_is_literal statement field
  1219. Added rdf datatypes test code
  1220. * raptor/ntriples_parse.c:
  1221. Removed use of obsolete object_is_literal statement field
  1222. * raptor/raptor.h: Add statement object datatype uri
  1223. * raptor/configure.in:
  1224. Add rdf datatypes test flag --enable-rdf-datatypes
  1225. * raptor/acconfig.h: Add rdf datatypes test flag
  1226. 2002-08-20 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1227. * raptor/raptor_uri.c (raptor_uri_uri_string_to_filename):
  1228. Freeing wrong things
  1229. * raptor/ntriples_parse.c, raptor/raptor_parse.c,
  1230. raptor/raptor_internal.h:
  1231. Remove RAPTOR_URI_AS_FILENAME
  1232. * raptor/raptor.h: Added raptor_uri_is_file_uri
  1233. * raptor/configure.in: Added limits.h check
  1234. * librdf/rdf_uri.c (librdf_uri_is_file_uri): Use raptor_uri_is_file_uri
  1235. * raptor/raptor_internal.h: Added raptor_strncasecmp
  1236. * raptor/raptor_uri.c (raptor_uri_is_file_uri): Added.
  1237. * raptor/Makefile.am: Added strcasecmp_test
  1238. * raptor/strcasecmp.c (raptor_strncasecmp): Added
  1239. (assert_strcasecmp, assert_strncasecmp): Added for testing.
  1240. (main) Added to run tests
  1241. * raptor/raptor_uri.c:
  1242. (raptor_uri_filename_to_uri_string); For unix filename "foo", get dir
  1243. and name it "/dir/foo".
  1244. (main): Check above works using /tmp dir - warn if can't chdir(/tmp)
  1245. * raptor/raptor_internal.h:
  1246. Replaced raptor_file_uri_to_filename with aptor_file_uri_to_filename
  1247. * raptor/raptor_parse.c, raptor/ntriples_parse.c:
  1248. Removed raptor_file_uri_to_filename
  1249. * raptor/raptor_uri.c (raptor_uri_filename_to_uri_string, (raptor_uri_uri_string_to_filename):
  1250. fix unix relative file file:foo
  1251. and bad win32 authority check.
  1252. (main): Check unix foo/file:foo works
  1253. * raptor/raptor.h: Added raptor_uri_filename_to_uri_string and
  1254. raptor_uri_uri_string_to_filename
  1255. * raptor/raptor_uri.c (raptor_uri_filename_to_uri_string):
  1256. Added for filename to file: URI
  1257. for win32 and unix.
  1258. (raptor_uri_uri_string_to_filename): Added for file: URI to filename
  1259. for win32 and unix.
  1260. (assert_filename_to_uri,assert_uri_to_filename): Added for
  1261. regression testing.
  1262. (main): Tests for win32 / unix filename / file:URIs
  1263. 2002-08-19 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1264. * perl/test.pl: Added tests for error and warning callbacks.
  1265. * python/RDF.py:
  1266. Added Python message callback support - generate raise on error or
  1267. warnings.
  1268. * Redland.i: Added Python message callback support.
  1269. * raptor/INSTALL.html: Added some more xml library versions
  1270. * raptor/raptor_parse.c:
  1271. Remove a lot of raptor_update_document_locator calls
  1272. and add them to the start of several functions.
  1273. Replace some expat-specific stuff with general calls.
  1274. * raptor/raptor_parse.c:
  1275. Add raptor_update_document_locator calls before every parser error
  1276. or warning.
  1277. (raptor_expat_update_document_locator): Added.
  1278. * raptor/raptor_internal.h:
  1279. Export raptor_libxml_update_document_locator
  1280. Export raptor_expat_update_document_locator
  1281. Export raptor_update_document_locator
  1282. * raptor/raptor_libxml.c (raptor_libxml_update_document_locator):
  1283. Now not static.
  1284. Remove column numbers - they seem to be total fiction.
  1285. * raptor/raptor_locator.c (raptor_update_document_locator): Added.
  1286. * perl/lib/RDF/Redland.pm: fix docs
  1287. * perl/lib/RDF/Redland.pm: Move subroutines to documented package
  1288. * docs/fix-pod-xhtml: Fix relative URIs
  1289. * docs/perl.html: fix RDF::Redland link
  1290. * perl/lib/RDF/Redland.pm:
  1291. Call new librdf_perl_world_init method to init perl callbacks.
  1292. (message): Added, to dispatch callbacks.
  1293. (set_error_handler,set_warning_handler): Allow users to change handlers
  1294. * librdf/rdf_utf8.c, librdf/rdf_uri.c, librdf/rdf_stream.c,
  1295. librdf/rdf_storage_list.c, librdf/rdf_storage_hashes.c,
  1296. librdf/rdf_storage.c, librdf/rdf_statement.c,
  1297. librdf/rdf_serializer_raptor.c, librdf/rdf_serializer.c,
  1298. librdf/rdf_query_triples.c, librdf/rdf_query.c,
  1299. librdf/rdf_parser_sirpac.c, librdf/rdf_parser_repat.c,
  1300. librdf/rdf_parser_raptor.c, librdf/rdf_parser_libwww.c,
  1301. librdf/rdf_parser.c, librdf/rdf_node.c, librdf/rdf_memory.c,
  1302. librdf/rdf_list.c, librdf/rdf_iterator.c, librdf/rdf_init.c,
  1303. librdf/rdf_heuristics.c, librdf/rdf_hash_memory.c,
  1304. librdf/rdf_hash_gdbm.c, librdf/rdf_hash_cursor.c,
  1305. librdf/rdf_hash_bdb.c, librdf/rdf_hash.c,
  1306. librdf/rdf_digest_openssl.c, librdf/rdf_digest_md5.c,
  1307. librdf/rdf_digest.c:
  1308. Tidying header files.
  1309. stdarg.h required for all sources now.
  1310. Remove rdf_*.h headers that are included by librdf.h
  1311. * librdf/rdf_storage_hashes.c:
  1312. revert default number hashes to 3 for now
  1313. * librdf/Makefile.am:
  1314. Always have compiled java class files in distribution.
  1315. * raptor/raptor_parse.c (raptor_xml_cdata_handler):
  1316. Allow to be ignored when there is no
  1317. element (XML very damaged)
  1318. * raptor/rdfdump.c: Tidy output formatting
  1319. * raptor/raptor_libxml.c:
  1320. Delete extra '\n' at end of XML parsing messages; that's up to the
  1321. app to add.
  1322. * raptor/raptor_parse.c: Removed some \n-s from warning/error messages
  1323. * raptor/raptor_locator.c (raptor_format_locator):
  1324. Don't count \0 in buffer size.
  1325. * raptor/Makefile.am: Added raptor_locator.c
  1326. * raptor/raptor.h: Added raptor_foramt_locator
  1327. * raptor/raptor_locator.c: Raptor parsing locator functions
  1328. * raptor/raptor_parse.c: Moved raptor_print_locator to raptor_locator.c
  1329. * raptor/rdfdump.c:
  1330. Updated for raptor error handlers passed on as strings, not va_list
  1331. * raptor/ntriples_parse.c:
  1332. raptor errors passed on as strings, not va_list
  1333. (raptor_ntriples_parser_error,
  1334. raptor_ntriples_parser_fatal_error): Turn va_list into a string.
  1335. * raptor/raptor_parse.c:
  1336. raptor errors passed on as strings, not va_list
  1337. (raptor_parser_fatal_error_varargs,
  1338. raptor_parser_error_varargs,
  1339. raptor_parser_warning_varargs): Turn va_list into a string.
  1340. * raptor/raptor.h: raptor errors passed on as strings, not va_list
  1341. 2002-08-18 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1342. * raptor/Makefile.am: Add LTLIBOBJS to raptor library, not rdfdump
  1343. * raptor/configure.in: Set LIBOBJS and LTLIBOBJS
  1344. * raptor/configure.in:
  1345. Check for strcasecmp, stricmp or use compatibility version
  1346. * raptor/raptor_internal.h:
  1347. Define raptor_strcasecmp to library routine, or leave alone for
  1348. compatibility function.
  1349. * raptor/Makefile.am: Added @LIBOBJS@
  1350. and strcasecmp.c
  1351. * raptor/strcasecmp.c: strcasecmp compatibility
  1352. * raptor/raptor_parse.c:
  1353. strcasecmp now raptor_strcasecmp, will be defined to right function
  1354. * raptor/win32_config.h:
  1355. Don't use macros for strcasecmp; now handled generally
  1356. * raptor/Makefile.am:
  1357. Added raptor_internal.h, win32_config.h to noinst headers
  1358. Added raptor_win32.c
  1359. * raptor/raptor_win32.c: Raptor WIN32 support functions
  1360. * raptor/win32_config.h: Raptor WIN32 hard-coded config
  1361. * raptor/rdfdump.c: Tidying up stdlib.h, dmalloc.h includes.
  1362. Include win32_config.h #ifdef WIN32
  1363. * raptor/raptor_parse.c, raptor/raptor_uri.c:
  1364. Tidying up stdlib.h, dmalloc.h includes.
  1365. Removed stuff duplicated in raptor.h/raptor_internal.h
  1366. Include win32_config.h #ifdef WIN32
  1367. * raptor/raptor_libxml.c: Tidying up stdlib.h, dmalloc.h includes.
  1368. Include win32_config.h #ifdef WIN32
  1369. * raptor/ntriples_parse.c: Tidying up stdlib.h, dmalloc.h includes.
  1370. Removed stuff duplicated in raptor.h/raptor_internal.h
  1371. Include win32_config.h #ifdef WIN32
  1372. * raptor/raptor_internal.h:
  1373. Moved libxml includes, defines and structs here.
  1374. Declared extern function prototypes for libxml interface.
  1375. * raptor/raptor_parse.c: Use errno.h, not extern int errno
  1376. Moved most libxml code to new raptor_libxml.c
  1377. Moved necessary includes, defines and structs to raptor_internal.h
  1378. Some renaming of functions; raptor_libxml* for those related to libxml
  1379. Some functions now not static.
  1380. Added some necessary methods for accessing raptor_parser structure
  1381. for libxml.
  1382. (raptor_get_locator): Added; new public method.
  1383. * raptor/raptor.h: Added raptor_get_locator
  1384. * raptor/ntriples_parse.c: Use errno.h, not extern int errno
  1385. * raptor/Makefile.am: Added raptor_libxml.c
  1386. * raptor/raptor_uri.c: Use errno.h if present
  1387. * raptor/raptor_libxml.c: Raptor libxml functions
  1388. * raptor/raptor_parse.c:
  1389. Added 12 wrapper functions for libxml handlers, passing on the right
  1390. context to them, to enable handling of entities and resolving them.
  1391. (raptor_xml_update_document_locator): Handle if in document subset
  1392. Changed internal raptor fatal_error, error, warning functions
  1393. to have varargs versions that libxml can use.
  1394. (raptor_new): Initialise new libxml handler wrappers
  1395. 2002-08-17 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1396. * Redland.i (librdf_call_perl_message):
  1397. Free malloced buffer, not argument
  1398. * librdf/rdf_init.c, librdf/rdf_init.h:
  1399. Make error/warning functions pass in a message (aka format string)
  1400. * Redland.i (librdf_call_perl_message):
  1401. Added to invoke PERL message handler subroutine
  1402. RDF::Redland::World::message for error/warning message handling.
  1403. (librdf_perl_error_handler): Added
  1404. (librdf_perl_warning_handler): Added
  1405. (librdf_perl_world_init): Added - to initialise above two routines
  1406. (librdf_internal_test_error,librdf_internal_test_warning): Added
  1407. for testing
  1408. * librdf/Makefile.am: Added LIBRDF_XML_OBJS again
  1409. * configure.in: More fixes trying to get expat linked in and working
  1410. * examples/example4.c, examples/example3.c, examples/example2.c,
  1411. examples/example1.c, librdf/rdf_utf8.c, librdf/rdf_uri.c,
  1412. librdf/rdf_storage.c, librdf/rdf_statement.c,
  1413. librdf/rdf_serializer_raptor.c, librdf/rdf_serializer.c,
  1414. librdf/rdf_query.c, librdf/rdf_parser_sirpac.c,
  1415. librdf/rdf_parser_raptor.c, librdf/rdf_parser.c,
  1416. librdf/rdf_node.c, librdf/rdf_model.c, librdf/rdf_heuristics.c,
  1417. librdf/rdf_hash.c, librdf/rdf_files.c, librdf/rdf_digest.c,
  1418. librdf/rdf_concepts.c:
  1419. Add stdarg.h to required headers.
  1420. * librdf/rdf_init.c:
  1421. API change: internal error/warning functions now pass va_list
  1422. Add stdarg.h to headers.
  1423. (librdf_world_set_error): API change. Passed in function takes va_list.
  1424. (librdf_world_set_warning): API change. Passed in function takes va_list.
  1425. * librdf/rdf_init.h: internal error/warning functions now pass va_list
  1426. * librdf/Makefile.am: Added compiling java classes
  1427. * Redland.i: delete I/O stuff not used
  1428. * raptor/rdfdump.c: Set ntriples error handler
  1429. * raptor/ntriples_parse.c:
  1430. Added fatal/non-fatal error handlers/functions.
  1431. (raptor_ntriples_set_error_handler): Added.
  1432. (raptor_ntriples_string): Documented args; now returns failure status.
  1433. (raptor_ntriples_parser_error): Added for non-fatal errors (bad lines).
  1434. (raptor_ntriples_parser_fatal_error): Fix passing on va_list arguments.
  1435. * raptor/ntriples.h: Added raptor_ntriples_set_error_handler
  1436. 2002-08-16 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1437. * perl/lib/RDF/Redland/Model.pm (sources,arcs,targets):
  1438. Use new Iterator methods.
  1439. 2002-08-13 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1440. * perl/lib/RDF/Redland/Node.pm (blank_identifier):
  1441. Added to get/set blank node ids
  1442. * perl/serialize.pl: More stuff
  1443. * expat/xmlparse/Makefile.am: Don't include CFLAGS twice
  1444. * configure.in: Don't give error when no libdb name can be guessed
  1445. Only link dmalloc if dmalloc.h is present (maintainer mode)
  1446. * Redland.i: Added librdf_node set/get blank_identifier methods
  1447. * raptor/configure.in: Add check for errno.h
  1448. Only link dmalloc if dmalloc.h is present (maintainer mode)
  1449. * raptor/ntriples_parse.c: Add use of errno.h if present
  1450. * raptor/raptor_parse.c: Add use of errno.h if present
  1451. Minor comments fix
  1452. When rdf:Description seen, go straight to state DESCRIPTION rather
  1453. than via OBJ
  1454. 2002-08-11 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1455. * INSTALL.html: Added --with-xml-parser docs
  1456. * perl/test.pl: Replace iterator get_next method with get and next
  1457. * perl/lib/RDF/Redland/Iterator.pm (next):
  1458. Replaced with get, next methods
  1459. * python/RDF.py: Change iterator methods from get to get/next
  1460. 2002-08-07 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1461. * raptor/raptor_parse.c:
  1462. Added rdf:List, rdf:first, rdf:rest (not used yet)
  1463. Added rdf:nodeID for bnodes as subject/objects like
  1464. rdf:about/rdf:resource
  1465. * raptor/raptor.h: Added RAPTOR_URI_SOURCE_BLANK_ID (for rdf:nodeID)
  1466. 2002-08-04 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1467. * librdf/rdf_hash.c (librdf_free_hash):
  1468. Call librdf_hash_close() to cleanup, not factory
  1469. close
  1470. * configure.in: do test compare right; test a = b, not test a=b
  1471. * Redland.i: Updated interface for changed iterator methods.
  1472. librdf_iterator_get_next: deleted
  1473. librdf_iterator_get_object, librdf_iterator_next: added
  1474. * examples/example4.c, examples/example1.c:
  1475. Updated for changed iterator methods.
  1476. Replaced librdf_iterator_get_next call with
  1477. librdf_iterator_get_object and librdf_iterator_next calls.
  1478. * librdf/rdf_hash.c: (librdf_hash_get_all,
  1479. librdf_hash_get_all_iterator_is_end,
  1480. librdf_hash_get_all_iterator_next_method,
  1481. librdf_hash_get_all_iterator_get_method,
  1482. librdf_hash_keys,
  1483. librdf_hash_keys_iterator_next_method,
  1484. librdf_hash_keys_iterator_get_method,
  1485. librdf_hash_print,
  1486. librdf_hash_print_keys,
  1487. librdf_hash_print_values,
  1488. main):
  1489. Updated for changed iterator methods.
  1490. Replaced librdf_iterator_get_next call with
  1491. librdf_iterator_get_object and librdf_iterator_next calls.
  1492. * librdf/rdf_storage_hashes.c:
  1493. (librdf_storage_hashes_serialise_next_statement,
  1494. librdf_storage_hashes_node_iterator_next_method,
  1495. librdf_storage_hashes_node_iterator_get_method,
  1496. librdf_storage_hashes_node_iterator_create,
  1497. librdf_storage_hashes_group_serialise_next_statement):
  1498. Updated for changed iterator methods.
  1499. Replaced librdf_iterator_get_next call with
  1500. librdf_iterator_get_object and librdf_iterator_next calls.
  1501. * librdf/rdf_storage.c:
  1502. (librdf_storage_stream_to_node_iterator_next_method,
  1503. librdf_storage_stream_to_node_iterator_get_method,
  1504. librdf_storage_stream_to_node_iterator_finished):
  1505. Updated for changed iterator methods.
  1506. Replaced librdf_iterator_get_next call with
  1507. librdf_iterator_get_object and librdf_iterator_next calls.
  1508. * librdf/rdf_hash_memory.c:
  1509. (librdf_hash_memory_clone,librdf_hash_memory_cursor_get,
  1510. librdf_hash_memory_cursor_finish):
  1511. Updated for changed iterator methods.
  1512. Replaced librdf_iterator_get_next call with
  1513. librdf_iterator_get_object and librdf_iterator_next calls.
  1514. * librdf/rdf_model.c:
  1515. (librdf_free_model,librdf_model_get_source,librdf_model_get_arc,
  1516. librdf_model_get_target):
  1517. Updated for changed iterator methods.
  1518. Replaced librdf_iterator_get_next call with
  1519. librdf_iterator_get_object and librdf_iterator_next calls.
  1520. * librdf/rdf_hash_bdb.c: (librdf_hash_bdb_clone):
  1521. Updated for changed iterator methods.
  1522. Replaced librdf_iterator_get_next call with
  1523. librdf_iterator_get_object and librdf_iterator_next calls.
  1524. * librdf/rdf_hash_gdbm.c: (librdf_hash_gdbm_clone):
  1525. Updated for changed iterator methods.
  1526. Replaced librdf_iterator_get_next call with
  1527. librdf_iterator_get_object and librdf_iterator_next calls.
  1528. * librdf/rdf_stream.c:
  1529. (librdf_stream_from_node_iterator_next_statement):
  1530. Updated for changed iterator methods.
  1531. Replaced librdf_iterator_get_next call with
  1532. librdf_iterator_get_object and librdf_iterator_next calls.
  1533. * librdf/rdf_storage_list.c: (librdf_storage_list_close,
  1534. librdf_storage_list_serialise_next_statement,
  1535. librdf_storage_list_group_serialise_next_statement)
  1536. Updated for changed iterator methods.
  1537. Replaced librdf_iterator_get_next call with
  1538. librdf_iterator_get_object and librdf_iterator_next calls.
  1539. * librdf/rdf_node.c: Deleted bogus comment.
  1540. * librdf/rdf_list.c:
  1541. Updated for iterator class change: get_next split into
  1542. next_method, get_method
  1543. * librdf/rdf_iterator.c:
  1544. Updated iterator class for get_next split into get_object, next
  1545. (librdf_iterator_get_next): Deleted - API CHANGE
  1546. (librdf_iterator_get_object, librdf_iterator_get_context,
  1547. librdf_iterator_get_key, librdf_iterator_get_value): Added,
  1548. wrappers around function pointer iterator->get_method, with
  1549. appropriate flags.
  1550. * librdf/rdf_iterator.h:
  1551. Iterator methods get_next split into get_object, next
  1552. Added next_method, get_method function pointers to iterator
  1553. structure.
  1554. Defined flags for get_method - object, context, (hash)key, (hash)value
  1555. librdf_iterator_get_next - DELETED - API CHANGE
  1556. librdf_iterator_get_object, librdf_iterator_get_context,
  1557. librdf_iterator_get_key, librdf_iterator_get_value: Added - API CHANGE
  1558. * configure.in: Fix parser_modules with 'no' now working
  1559. * configure.in:
  1560. pick xml parser for raptor using $xml_parser from --with-xml-parser
  1561. 2002-08-01 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1562. * librdf/rdf_model.c: docucomment fix
  1563. * docs/Makefile.am: added kernel-doc to the dist
  1564. * docs/kernel-doc: Process C docucomments
  1565. 2002-07-29 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1566. * raptor/configure.in: default xml parser now libxml
  1567. * raptor/INSTALL.html: Update --with-xml-parser docs
  1568. * INSTALL.html: Added docs for extra BDB options to configure
  1569. * ruby/Makefile.am: s/repat/raptor/
  1570. * ruby/example.rb: s/repat/raptor/ in instructions
  1571. * ruby/Makefile.am: use mkdir -p for installdir
  1572. 2002-07-28 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1573. * docs/README.html: Update papers
  1574. * raptor/autogen.sh: Fix use of srcdir/find
  1575. * raptor/Makefile.am: Add -I's for compiling test programs
  1576. * docs/Makefile.am: Fix #comment in rule (portability)
  1577. * autogen.sh: Fix use of srcdir/find
  1578. * redland-src-config.in:
  1579. Quote libs, static-libs since they may have $s in them for make
  1580. * configure.in:
  1581. For perl path tests, use perl itself to print, rather than sourcing
  1582. BDB config - added --with-bdb-li,include,dbname to specify more
  1583. detailed BDB values.
  1584. 2002-07-26 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1585. * configure.in: Check for libxml function xmlCreatePushParserCtxt using
  1586. the library from XML_CONFIG, not always -lxml
  1587. * configure.in:
  1588. Added AC_ARG_WITH for xml-parser, so is documented for passing
  1589. it on to raptor
  1590. * perl/serialize.pl: test pretty xml serializing code
  1591. 2002-07-23 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1592. * NEWS.html: Added XML Space change warning and pointer to script
  1593. * librdf/rdf_model.c, librdf/rdf_statement.c, librdf/rdf_node.c:
  1594. Update librdf_new_node_from_literal calls
  1595. * configure.in, Makefile.am: Added aux dir
  1596. * aux/Makefile.am: aux dir automakefile
  1597. * aux/update-api-0912.pl: update api to 0.9.12 script
  1598. * perl/test.pl, perl/example.pl: Update perl literal calls
  1599. * perl/lib/RDF/Redland/Node.pm: Fix docs
  1600. * ruby/Makefile.am: Fix cflags
  1601. * java/Makefile.am:
  1602. Append to (Linux? only) dynamic lib search path var LD_LIBRARY_PATH
  1603. * tcl/Makefile.am: Fix cflags
  1604. * tcl/test.tcl, python/RDF.py, perl/test.pl, examples/example2.c,
  1605. examples/example4.c, examples/example3.c, librdf/rdf_model.c,
  1606. librdf/rdf_parser_repat.c, librdf/rdf_parser_libwww.c,
  1607. librdf/rdf_query_triples.c, librdf/rdf_parser_raptor.c,
  1608. librdf/rdf_node.c:
  1609. Update librdf_node_set_literal_value calls
  1610. * java/org/librdf/redland/Model.java,
  1611. java/org/librdf/redland/Node.java, python/RDF.py,
  1612. perl/lib/RDF/Redland/Model.pm, perl/lib/RDF/Redland/Node.pm,
  1613. Redland.i, librdf/rdf_model.h, librdf/rdf_model.c,
  1614. librdf/rdf_node.c, librdf/rdf_node.h:
  1615. zap former xml_space args entirely
  1616. * python/RDF.py: Zap xml_space
  1617. * Redland.i: zap xml_space
  1618. 2002-07-22 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1619. * librdf/rdf_storage_hashes.c:
  1620. Remove more fixed things - first 4 hashes are used.
  1621. Removed all LIBRDF_STORAGE_HASH_GROUPS and stub code - compiled in now
  1622. Added indexes field to hash context for declaring indexes wanted
  1623. Added all_statements_hash_index to hash context for hash to use to
  1624. serialise the entire model, replacing ANY_OLD_HASH_INDEX
  1625. (librdf_storage_get_hash_description_by_name): Added, not yet used
  1626. (librdf_storage_hashes_init_common): Added indexes parameter
  1627. Updated to handle all_statements_hash_index
  1628. (librdf_storage_hashes_init): Create indexes parameter
  1629. (librdf_storage_hashes_terminate): Delete indexes if seen.
  1630. (librdf_storage_hashes_clone): Copy indexes field.
  1631. * librdf/rdf_parser_repat.c: errno only on non-WIN32
  1632. * librdf/rdf_model.c (librdf_model_add_string_literal_statement):
  1633. Remove all references to
  1634. XML Space. Keep the arg around but ignore it.
  1635. * librdf/rdf_model.h:
  1636. Remove all references to XML Space. Keep the arg around but ignore it.
  1637. * librdf/rdf_node.h:
  1638. Remove all references to XML Space. Keep the arg around but ignore it.
  1639. (Private) enum librdf_node_literal_xml_space removed
  1640. Removed prototype for librdf_node_get_literal_value_xml_space
  1641. * librdf/rdf_node.c:
  1642. Remove all references to XML Space. Keep the arg around but ignore it.
  1643. (librdf_new_node_from_literal,librdf_node_set_literal_value):
  1644. xml_space arg now unused1
  1645. (librdf_node_get_literal_value_xml_space): Removed - API change
  1646. (librdf_node_encode,librdf_node_decode): Removed xml space en/decoding.
  1647. * librdf/rdf_storage_hashes.c:
  1648. Removed static hash/hash_descriptor/names - now allocated from
  1649. NUMBER_OF_HASHES in librdf_storage_hashes_init_common
  1650. * librdf/librdf.h:
  1651. Include stdlib.h before dmalloc.h when dmalloc is used
  1652. * autogen.sh: zap ltconfig too - generated if needed.
  1653. 2002-07-20 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1654. * INSTALL.html: typo: sleepcat
  1655. * INSTALL.html: Sleepycat DB 4.0.14 works
  1656. * raptor/tests/Makefile.am: Added ex-34
  1657. * raptor/tests/ex-34.out, raptor/tests/ex-34.rdf:
  1658. Test daml:collection lists with blank nodes
  1659. * configure.in: Removed AC_PROG_RANLIB - obsoleted by AM_PROG_LIBTOOL
  1660. Catch some LIBRDF_CFLAGS that should have been LIBRDF_CPPFLAGS
  1661. * raptor/configure.in: Modify cflags to use redland srcdir not builddir
  1662. * python/setup.py: Ignore -lraptor like -lrdf
  1663. * python/Makefile.am: clean-python isn't good enough
  1664. * perl/Makefile.PL: Use redland-src-config --static-libs
  1665. * redland-src-config.in: added --static-libs
  1666. * tcl/Makefile.am, ruby/Makefile.am, python/setup.py,
  1667. perl/Makefile.PL, java/Makefile.am:
  1668. Update for using ../redland-src-config
  1669. * raptor/Makefile.am, Makefile.am: zap 'finish' stuff
  1670. * redland-src-config.in: Link to .libs dirs for redland, raptor
  1671. 2002-07-17 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1672. * raptor/raptor_parse.c (raptor_end_element_grammar):
  1673. Get rdf:ID working on empty propertyElt
  1674. with rdf:parseType="Resource"
  1675. * raptor/raptor_parse.c:
  1676. Added reified raptor_identifier, changed code to use it for rdf:ID value
  1677. Store rdf:bagID in bag raptor_identifier
  1678. * raptor/raptor_parse.c (raptor_element_has_property_attributes):
  1679. Created, returns true iff a
  1680. property element has property attributes
  1681. (raptor_start_element_grammar): For property elements, move
  1682. handing property attributes to close of element, only then can
  1683. the resource URI be known.
  1684. (raptor_end_element_grammar): Update after above change.
  1685. For property elements that are empty (empty literal), create
  1686. a new blank node and hang the property attributes off that.
  1687. * raptor/raptor_parse.c:
  1688. Warn and continue when element content is seen inside a
  1689. <propElt rdf:resource="..."/>
  1690. 2002-07-16 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1691. * Makefile.am, configure.in: Moved redland-config to top dir
  1692. * redland-config.in, librdf/redland-config.in: Moved to top dir
  1693. * librdf/Makefile.am: Moved redland-config to top dir
  1694. 2002-07-15 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1695. * INSTALL.html: Update example4 example again, with line breaks
  1696. * INSTALL.html: Update example4 example
  1697. * raptor/tests/Makefile.am: make check sh stuff not echo
  1698. * raptor/tests/Makefile.am: Add ex-33
  1699. * raptor/tests/ex-33.out, raptor/tests/ex-33.rdf:
  1700. Check properties work off node generated by empty propertyElt
  1701. 2002-07-14 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1702. * INSTALL.html: Updated CVS instructions for source reorganisation
  1703. * configure.in: Generate redland-src-config in top dir
  1704. * Makefile.am: Added redland-src-config.in
  1705. More rules to build various things in subdirs, not really working
  1706. yet.
  1707. * configure.in: Create abs_top_srcdir, abs_top_builddir subst vars
  1708. Create redland-src-config
  1709. * redland-src-config.in:
  1710. Script to get flags for compiling against the source tree
  1711. * raptor/Makefile.am: Add REDLAND_LIBS to rdfdump dependencies
  1712. Add rule to build librdf.la if needed
  1713. * python/RDF.py: Updates from Edd Dumbill:
  1714. (class RedlandError): Added, an Exception class
  1715. (class NodeTypeError): Added, an RedlandError exception class
  1716. (node_type): Added package function to turn a node name to a Redland
  1717. (node_type_name): Added package function to get the node name for a
  1718. Redland node type
  1719. (_get_uri): Now throw an NodeTypeError exception if node has no URI
  1720. (is_resource): Added, returns true if node is a resource
  1721. (is_literal): Added, returns true if node is a literal
  1722. (class Storage, __init__): Raise exception if a null URI given to
  1723. constructor.
  1724. 2002-07-13 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1725. * raptor/Makefile.am:
  1726. Zap -static arg for rdfdump, seems to annoy libtool
  1727. Pass on redland libs, cflags as necessary
  1728. * raptor/ntriples.h: Change all LIBRDF_INTERNAL to RAPTOR_IN_REDLAND
  1729. * raptor/rdfdump.c: Change all LIBRDF_INTERNAL to RAPTOR_IN_REDLAND
  1730. Update to newest librdf world open/close calls
  1731. * raptor/raptor_parse.c: Tidy - 2 includes of stdlib.h
  1732. Change all LIBRDF_INTERNAL to RAPTOR_IN_REDLAND
  1733. * raptor/raptor_internal.h: Lose all redland includes - for app code
  1734. * raptor/raptor.h: Include librdf and uri headers when in Redland
  1735. Change all LIBRDF_INTERNAL to RAPTOR_IN_REDLAND
  1736. * raptor/configure.in:
  1737. Define REDLAND_LIBS, REDLAND_CPPFLAGS for use when building in redland
  1738. * librdf/Makefile.am: Add finish rules, not yet complete
  1739. * librdf/rdf_uri.c, librdf/rdf_serializer_raptor.c,
  1740. librdf/rdf_parser_raptor.c:
  1741. Define RAPTOR_IN_REDLAND before including raptor headers
  1742. * raptor/raptor_parse.c: Moved debugging stuff to raptor_internal.h
  1743. Use updated raptor includes
  1744. * raptor/rdfdump.c: Use updated raptor includes
  1745. * raptor/raptor_uri.c: Don't include Redland rdf_config.h
  1746. Use updated raptor includes
  1747. * raptor/ntriples_parse.c: Use updated raptor includes
  1748. * raptor/raptor.h: Removed all standard includes
  1749. Moved URI stuff to raptor_internal.h except for typedef (needed
  1750. for prototypes)
  1751. * raptor/raptor_internal.h: Internal raptor definitions
  1752. * raptor/Makefile.am: Added raptor_internal.h
  1753. * raptor/configure.in: Fix raptor in redland check.
  1754. * raptor/ntriples_parse.c, raptor/raptor_parse.c:
  1755. don't include redland rdf_config.h - use ours
  1756. * raptor/configure.in, raptor/acconfig.h: added RAPTOR_IN_REDLAND
  1757. 2002-07-12 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1758. * raptor/raptor.h: include stdarg.h here
  1759. * raptor/tests/Makefile.am: Added ex-32
  1760. * raptor/tests/ex-32.out, raptor/tests/ex-32.rdf:
  1761. Test property attributes with rdf:resource
  1762. * raptor/raptor_parse.c (raptor_process_property_attributes):
  1763. Pass in an optional
  1764. identifier to use for the resource node.
  1765. Use that to process property attributes along with rdf:resource,
  1766. at the close of the (empty) propertyElt.
  1767. * Redland.i: revert (im)mutable back to readonly/write
  1768. 2002-07-11 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1769. * raptor/raptor_uri.c (raptor_uri_resolve_uri_reference):
  1770. Handle base URI without a path
  1771. such as "http://example.org"
  1772. * raptor/Makefile.am:
  1773. Tidy test program args +$(DEFS) to add crucial -DHAVE_CONFIG_H
  1774. * raptor/rdfdump.c (rdfdump_error_handler): Use va_list form
  1775. (rdfdump_warning_handler): Use va_list form
  1776. * raptor/raptor_parse.c (raptor_xml_start_element_handler):
  1777. Warn about unqualified rdf:
  1778. attributes
  1779. * raptor/ntriples_parse.c (raptor_ntriples_parser_fatal_error):
  1780. now passes on va_list
  1781. * raptor/raptor.h:
  1782. API change: raptor_message_handler callback now takes a va_list as
  1783. final argument
  1784. * raptor/rdfdump.c: Make warning/error messages neater
  1785. * raptor/rdfdump.c: Added -w - ignore warnings
  1786. (rdfdump_warning_handler): Added
  1787. (rdfdump_error_handler): Added
  1788. Count warnings, errors and exit with #errors, or 128+#warnings
  1789. * raptor/raptor_parse.c:
  1790. When a property has multiple objects, give an error and skip the rest
  1791. of that element
  1792. * raptor/tests/Makefile.am: Added bad-01.rdf
  1793. * raptor/tests/bad-01.rdf: A property must have only one node value
  1794. * raptor/rdfdump.c:
  1795. (rdfdump_error_handler) Added. Exit 1 on an error, don't keep going
  1796. * raptor/tests/Makefile.am: Fix bad test checking again
  1797. 2002-07-10 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1798. * raptor/Makefile.am: Added LOCAL_LIB_DIR for finish
  1799. * raptor/Makefile.am: Fix args for compiling tests
  1800. 2002-07-07 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1801. * raptor/Makefile.am: Added finish target to install to lib
  1802. Tidy up test program building
  1803. * raptor/raptor_parse.c:
  1804. Allow non-namespaced elements to be recognised and skipped
  1805. 2002-07-05 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1806. * debian/redland1.files: redland1 files
  1807. * examples/Makefile.am: Make tidier and work when srcdir isn't builddir
  1808. * librdf/Makefile.am: Use $(CPPFLAGS) for tests
  1809. * configure.in: repat, raptor stuff should be internal flags
  1810. * librdf/rdf_parser_repat.c: Return repat dir in include
  1811. * librdf/redland-config.in: Use LIBRDF_ versions of macros now
  1812. * librdf/rdf_parser_repat.c: No need for repat dir in include
  1813. * repat/Makefile.am, librdf/Makefile.am, examples/Makefile.am,
  1814. configure.in, Makefile.am:
  1815. Update CPPFLAGS, LDFLAGS, LIBS to have external, internal versions
  1816. and ones just for xml parsers (expat, libxml) used by internal
  1817. RDF/XML parsers
  1818. * repat/Makefile.am: Replace XML_OBJS with LIBRDF_XML_LIBS
  1819. * librdf/Makefile.am: Replace XML_OBJS with LIBRDF_EXTRA_LIBS
  1820. * Makefile.am: Add more subdirs, tidy
  1821. * configure.in:
  1822. Replace XML_OBJS with LIBRDF_EXTRA_LIBS and LIBRDF_XML_LIBS
  1823. 2002-06-30 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1824. * raptor/tests/Makefile.am: typo
  1825. * raptor/Makefile.am: Added 'make deb' target
  1826. * raptor/tests/rdf-schema.out, raptor/tests/rdfs-namespace.out:
  1827. RDFS schema answers
  1828. * raptor/tests/Makefile.am: Fix rdfs checks
  1829. * raptor/tests/Makefile.am: Add two RDFS schema namespaces
  1830. * raptor/tests/rdf-schema.rdf, raptor/tests/rdfs-namespace.rdf:
  1831. RDFS schemas
  1832. * raptor/raptor_parse.c:
  1833. (raptor_parser_error) Make this default to exit(1)
  1834. (raptor_start_element_grammar): Die when a second object is tried
  1835. to be set for a statement
  1836. * raptor/tests/Makefile.am: Check negative tests correctly
  1837. * raptor/autogen.sh: Add libtoolize cleanup, check and run
  1838. * raptor/configure.in: fix AC_OUTPUT
  1839. * raptor/Makefile.am, raptor/configure.in: Added debian dir
  1840. 2002-06-26 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1841. * raptor/win32/README: win32 README
  1842. * librdf/Makefile.am: zap more stuff not in this part of dist
  1843. * librdf/Makefile.am: Changelog not here now
  1844. * configure.in, Makefile.am: Updated for moved sources
  1845. * librdf/Makefile.am: Updated for moved sources
  1846. * examples/Makefile.am: Automakefile for examples
  1847. * docs/Makefile.am: Updated for moved sources
  1848. * autogen.sh: Remove raptor source hunting
  1849. * Redland.i: Update for newer swigs
  1850. Added commented-out typemaps for FILE*
  1851. * raptor/autogen.sh: Added GNU config.* copy test
  1852. * perl/MANIFEST: Added RDF::Redland::Serializer
  1853. * perl/example.pl: Added (comment out) serializer test
  1854. * perl/lib/RDF/Redland/Makefile.am: Added Serializer i/f
  1855. * perl/lib/RDF/Redland/Serializer.pm: RDF::Redland::Serializer class
  1856. * perl/lib/RDF/Redland.pm: Added RDF::Redland::Serializer
  1857. * Redland.i: added serializer class, methods
  1858. 2002-06-21 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1859. * perl/update-perl-api.pl:
  1860. Fix typo in use RDF:RSS; actually didn't matter, class thing later on
  1861. fixed it.
  1862. 2002-06-19 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1863. * debian/scanpackages.override: Added libraptor overrides
  1864. * autogen.sh: Import nearby fresh autoconf config.* files
  1865. * docs/stylesheet.css: make catfonts 75%
  1866. * docs/stylesheet.css: More CSS, like latest ILRT style
  1867. 2002-06-14 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1868. * raptor/tests/Makefile.am: Added bad test checking
  1869. Added bad-00.rdf
  1870. * raptor/tests/bad-00.rdf: Added bad test 00
  1871. * raptor/configure.in: Added raptor-config
  1872. * raptor/libraptor.3, raptor/rdfdump.1: Raptor manual pages
  1873. * raptor/Makefile.am: Added raptor-config
  1874. Added manual pages
  1875. Make rdfdump static only for maintainer
  1876. * raptor/raptor-config.in: Raptor configuration script
  1877. 2002-06-11 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1878. * librdf/rdf_storage_hashes.c: typo
  1879. * librdf/rdf_storage_hashes.c:
  1880. Hack in indexing of predicate->(subject,object) - p2so
  1881. Still using the table of indexes; needs fixing.
  1882. (librdf_storage_hashes_serialise_common): Created from
  1883. librdf_storage_hashes_serialise but with extra parameters to
  1884. allow selecting just a particular key (node) and wanted values
  1885. fields.
  1886. (librdf_storage_hashes_serialise_next_statement): If there is a
  1887. single node being searched for, just return the pre-allocated
  1888. statement from the has iterator.
  1889. (librdf_storage_hashes_find_statements): For p2so ONLY,
  1890. use the p2so_index hash to get the s,o parts of the statement
  1891. using librdf_storage_hashes_serialise_common
  1892. (librdf_storage_hashes_node_iterator_get_next): For p2so,
  1893. grab subject and object from the iterator statement and
  1894. predicate from the user supplied one. Return a new statement
  1895. from these.
  1896. (librdf_storage_hashes_node_iterator_finished): Tidy up when
  1897. there is a search node.
  1898. (librdf_storage_hashes_node_iterator_create): For p2so, save
  1899. the first search node for iterating the predicate hash.
  1900. 2002-06-10 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1901. * perl/lib/RDF/Redland/Node.pm, perl/lib/RDF/Redland/Model.pm,
  1902. perl/lib/RDF/Redland/Iterator.pm:
  1903. Remove deprecated methods
  1904. * docs/Makefile.am:
  1905. For maintainer, don't clean generated sgml, do that on distclean
  1906. 2002-06-08 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1907. * docs/python.html: Fix class names for 0.6 API
  1908. * README.html: Update overview.
  1909. model=>graph
  1910. link inquery, serializer
  1911. * README.html: Added ruby
  1912. ----------------------------------------------------------------------
  1913. WARNING: Above here the source code was reorganised and the
  1914. directories include both redland and raptor
  1915. ----------------------------------------------------------------------
  1916. * configure.in: Bump version to 0.9.12
  1917. * Snapshotted redland_0_9_11 for 0.9.11 release
  1918. * debian/changelog, NEWS.html: Updated for 0.9.11 release
  1919. * rdf_hash_bdb.c (librdf_hash_bdb_delete_key_value): Handle BDB V2
  1920. that don't have DB_GET_BOTH
  1921. * configure.in: Make expat parser check use NULL arg. Make libxml
  1922. parser check look for xmlCreatePushParserCtxt (1.8.3 or later)
  1923. * rdf_serializer.c: don't test for something not yet written.
  1924. * debian/rules.in, debian/control: more dpkg work, still
  1925. incomplete
  1926. * perl/lib/RDF/Redland/Node.pm: Updated node types; restrict
  1927. public ones to resource, literal, blank
  1928. * perl/lib/RDF/Node.pm: Define some node type vars for legacy
  1929. 2002-06-06 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1930. * rdf_parser_repat.c (librdf_parser_repat_statement_handler):
  1931. Added hack to make repat object resources that are blank node
  1932. identifiers, appear as such rather than genid URIs.
  1933. * perl/README.txt: Tidied. link to update script
  1934. * perl/lib/RDF/Redland/Model.pm:
  1935. (serialize) Added, synonym for serialise method
  1936. * perl/MANIFEST: Added README.txt Removed duplicate
  1937. * perl/Makefile.am: Added README.txt notes and update-perl-api.pl
  1938. to dist
  1939. * perl/README.txt: Perl API notes
  1940. 2002-06-04 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1941. * rdf_serializer.c: docucomment
  1942. * Makefile.am: remove rdf_serializer_raptor.h
  1943. * configure.in: Added raptor_uri.c to raptor sources.
  1944. * autogen.sh: Add raptor_uri.c to symlink mess
  1945. * rdf_uri.c (librdf_new_uri_relative_to_base): Use
  1946. raptor_uri_resolve_uri_reference from raptor to do full relative
  1947. URI resolving
  1948. 2002-06-03 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1949. * python/RDF.py:
  1950. (Node) __hash__ - return hash based on string representation
  1951. (Uri) __hash__ - return hash based on redland object (which is
  1952. same for same URI)
  1953. * rdf_node.c (librdf_node_equals): Fix type check to look at both
  1954. nodes - was a NOP.
  1955. 2002-06-01 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1956. * docs/java.html: Added Sesame
  1957. * docs/java.html: Updated references
  1958. * rdf_list.h: Remove current iterator node field from internal
  1959. list structure; list iterator context holds that now.
  1960. * rdf_list.c: Make list have multiple iterators by using a
  1961. librdf_list_iterator_context
  1962. (librdf_list_get_iterator, librdf_list_iterator_is_end,
  1963. librdf_list_iterator_get_next): Updated
  1964. (librdf_list_iterator_finished): Added
  1965. * rdf_node.c (librdf_new_node_from_node): Didn't work for blank
  1966. nodes
  1967. (librdf_node_equals): Implemented for blank nodes Test code: added
  1968. tests for above
  1969. * docs/python.html: Note API requires 2.2 (maybe 2.1) now
  1970. * python/test/test.py, python/example.py: Changes for updated
  1971. python 2.2+ API
  1972. * python/RDF.py: Improved python API by Edd Dumbill. Requires
  1973. python 2.2 Classes renamed e.g. RDF.node to RDF.Node
  1974. (some) set/get methods use python __getattr__ and __setattr__
  1975. Remove all user reference to world object
  1976. (RDF.Parser): parse_into_model method now has model as first
  1977. argument
  1978. 2002-05-29 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  1979. * java/test1.java, java/test2.java: Add node constructor test
  1980. * java/org/librdf/redland/Node.java: Added some javadoc Amend
  1981. constructor taking a string to also build blank nodes; added extra
  1982. parameter.
  1983. * perl/lib/RDF/Redland/Node.pm: Added constructor
  1984. new_from_blank_identifier
  1985. * Redland.i: Added librdf_new_node_from_blank_identifier
  1986. * rdf_node.c (librdf_node_encode,librdf_node_decode):
  1987. Encode/decode xml:lang values
  1988. * docs/Makefile.am: Added serializer to api docs
  1989. * docs/api.sgml.in: Added serializer sections
  1990. * rdf_serializer.h: Added set_namespace factory method
  1991. * rdf_serializer.c (librdf_serializer_set_namespace): Added to set
  1992. namespace/prefix (hints)
  1993. * rdf_parser_raptor.c: Pass xml language detail from raptor
  1994. * example4.c: Only free serializer uri if allocated
  1995. * rdf_parser_raptor.c (librdf_parser_raptor_make_node_from_anon):
  1996. Deleted - use librdf_new_node_from_blank_identifier to make blank
  1997. nodes
  1998. * rdf_node.c (librdf_node_get_uri): Return a URI only for a
  1999. resource
  2000. (librdf_node_set_uri): Only work on resource nodes.
  2001. (librdf_node_encode,librdf_node_decode): Store blank nodes too;
  2002. encoded as type 'B'
  2003. * rdf_parser_repat.c: Added blank node support
  2004. * rdf_node.c (librdf_new_node_from_blank_identifier): Added to
  2005. make blank node
  2006. (librdf_node_set_blank_identifier): Take const identifier, only
  2007. free old identifier if there was one Test code: added test for
  2008. librdf_node_set_blank_identifier Die if any of the constructors
  2009. fail.
  2010. * rdf_node.h: Added prototype for
  2011. librdf_new_node_from_blank_identifier
  2012. * rdf_parser_raptor.c, rdf_parser_repat.c: Include stdlib.h for
  2013. some prototypes.
  2014. * rdf_query_triples.c: Comment out some unused vars
  2015. 2002-05-28 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2016. * example4.c: Added serialize command
  2017. * rdf_serializer.c:
  2018. (librdf_get_serializer_factory,librdf_get_serializer_factory):
  2019. Default is MIME Type "application/rdf+xml" when all fields NULL
  2020. (librdf_init_serializer): Invoke
  2021. librdf_serializer_raptor_constructor always
  2022. * rdf_serializer_raptor.c
  2023. (librdf_serializer_raptor_serialize_model): Free statement from
  2024. stream
  2025. * rdf_init.c: Initialise/finish serializer class
  2026. * rdf_node.h, rdf_node.c (librdf_node_set_blank_identifier): Zap
  2027. old value, don't return it
  2028. * Makefile.am: Added rdf_serializer_test to TESTS
  2029. * Makefile.am: Added rdf_serializer_test
  2030. * rdf_serializer_raptor.c
  2031. (librdf_serializer_raptor_serialize_model): Remove unused var
  2032. * rdf_stream.c, rdf_init.c: Added prototype to remove gcc warning
  2033. about abort()
  2034. * Makefile.am: Added serializer modules
  2035. * librdf.h: Added serializer typedefs, headers
  2036. * rdf_init.h: Added serializer list to world
  2037. * rdf_serializer_raptor.c, rdf_serializer.c, rdf_serializer.h: RDF
  2038. Serializer classes, factory
  2039. * perl/lib/RDF/Redland/Parser.pm (new): Note that name is also
  2040. optional and if all fields blank, gives an application/rdf+xml
  2041. parser
  2042. * rdf_parser.c (librdf_get_parser_factory,librdf_new_parser):
  2043. Default to a parser for MIME Type application/rdf+xml if all
  2044. fields are NULL
  2045. * rdf_hash_memory.c: Added prototype to remove gcc warning about
  2046. abort()
  2047. * rdf_node.c:
  2048. (librdf_new_node_from_node,librdf_free_node,librdf_node_to_string):
  2049. Added blank node support
  2050. (librdf_node_get_blank_identifier): Added to get blank node
  2051. identifier
  2052. (librdf_node_set_blank_identifier): Added to set blank node
  2053. identifier to new value, returning old
  2054. * rdf_node.h: Added blank node type; added to union, added
  2055. prototype of methods to set/get
  2056. 2002-05-23 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2057. * rdf_query.c (main): Test code: Use a legal 'triples' query.
  2058. Init/close uri module
  2059. * rdf_query_triples.c (librdf_query_triples_terminate): Free nodes
  2060. if created
  2061. * rdf_query_triples.c (librdf_query_triples_find_next_term):
  2062. Tidying code
  2063. * docs/api.sgml.in, docs/Makefile.am: Add query, query_triples
  2064. modules to the api docs
  2065. * Makefile.am: Added query module - sources, headers and test
  2066. * example4.c: Added "query" command - CMD_QUERY using the
  2067. librdf_query object and methods. A whole lot of indenting too
  2068. * librdf.h: Add query support - define librdf_query,
  2069. librdf_query_factory; include rdf_query.h
  2070. * rdf_init.c (librdf_free_world): Finish query module
  2071. (librdf_world_open) Initialise query module
  2072. * rdf_storage_hashes.c: Include string.h, stdlib.h for some system
  2073. prototypes Exclude some hash groups prototypes when not used
  2074. * rdf_storage.h: Added prototypes for
  2075. librdf_storage_supports_query and librdf_storage_query
  2076. * rdf_storage.c
  2077. (librdf_storage_supports_query,librdf_storage_query): Added
  2078. skeleton code
  2079. * rdf_model.h: Added prototypes for librdf_model_query and
  2080. librdf_model_query_string
  2081. * rdf_model.c (librdf_model_query,librdf_model_query_string):
  2082. Added
  2083. * rdf_query.c, rdf_query.h, rdf_query_triples.c,
  2084. rdf_query_triples.h: RDF Query modules
  2085. 2002-05-15 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2086. * rdf_hash_bdb.c (librdf_hash_bdb_delete_key_value): use
  2087. DB_GET_BOTH rather than DB_SET when moving the cursor to ensure it
  2088. deletes exact matches rather than just the first one that matches
  2089. the (subject,predicate). Thanks to Chad House for finding and
  2090. fixing this.
  2091. 2002-05-07 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2092. * configure.in: Check less libxml headers. Move libxml disable
  2093. library into 'if libxml' section
  2094. 2002-04-29 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2095. * configure.in: test syntax
  2096. * configure.in: Disable libxml if the library can be found but not
  2097. the header files
  2098. * docs/api.sgml.in: Fix SGML for DocBook 3.1
  2099. 2002-04-27 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2100. * python/test/test.py, perl/example.pl: Use any available rdf/xml
  2101. parser
  2102. * rdf_parser.c (librdf_get_parser_factory): Make name optional so
  2103. can choose any rdf/xml parser. Handle NULL or empty string name.
  2104. * python/RDF.py: Update API to get add more python standard bits
  2105. such as __eq__ and __ne__ and generating python sequences
  2106. (node): Remove equals method, added __eq__, __ne__
  2107. (model) Added sources, targets, arcs methods returning python
  2108. sequences
  2109. (iterator) Various changes to get it working
  2110. (uri) Remove equals method, added __eq__, __ne__ Made method
  2111. feature handle string uris
  2112. * python/test/test.py: Expanded to print out model, parse into it,
  2113. query model by statements and nodes and generally exercise most of
  2114. the API techniques
  2115. * python/setup.py: Make it a python script
  2116. * README.html: Add ruby pointer Update date
  2117. * redland.spec.in: Add manual pages Renamed perl modules.
  2118. * docs/tcl.html: typo
  2119. * configure.in: For XML_CONFIG use xml2-config, xml-config in
  2120. order Updated header files to find for Raptor Make Raptor
  2121. prioritise to use libxml Pick RAPTOR_XML_EXPAT/LIBXML for Raptor
  2122. * acconfig.h: Added RAPTOR_XML_EXPAT/LIBXML to pick which XML
  2123. parser for raptor
  2124. * rdf_parser_raptor.c: Disable scanning for rdf:RDF feature - it
  2125. doesn't work with raptor at present
  2126. * INSTALL.html: Update words about autogen.sh Added ruby install
  2127. link
  2128. * docs/ruby.html: html
  2129. 2002-04-26 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2130. * docs/ruby.html: Link to Liber, RubyRDF
  2131. * docs/Makefile.am: Added ruby.html
  2132. * docs/ruby.html: Ruby Interface
  2133. * ruby/example.rb: Use ARGV
  2134. * ruby/Makefile.am: Call test/example program with args
  2135. * ruby/example.rb: Added header. Fixed typo
  2136. * ruby/example.rb: Filled in the example and it now works (had to
  2137. hard code some arguments)
  2138. * ruby/Makefile.am: install-ruby copies the Redland.so into
  2139. probably the right place
  2140. 2002-04-25 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2141. * rdf_storage_hashes.c: Make the hash groups stuff optional unless
  2142. LIBRDF_STORAGE_HASH_GROUPS defined
  2143. * rdf_hash_bdb.c (librdf_hash_bdb_open): On bdb V3 open failure,
  2144. emit an error even when not debugging.
  2145. * perl/update-perl-api.pl: Update perl modules to 0.9.11 names
  2146. * perl/lib/RDF/URI.pm, perl/lib/RDF/Stream.pm,
  2147. perl/lib/RDF/Storage.pm, perl/lib/RDF/Statement.pm,
  2148. perl/lib/RDF/RSS.pm, perl/lib/RDF/Parser.pm, perl/lib/RDF/Node.pm,
  2149. perl/lib/RDF/Model.pm, perl/lib/RDF/Iterator.pm: End modules with
  2150. 1;
  2151. * debian/README.Debian: Updated a little
  2152. * rdf_node.c
  2153. (librdf_new_node_from_literal,librdf_node_set_literal_value): For
  2154. xml_language string, allow empty string to be the same as NULL
  2155. (for ruby)
  2156. * rdf_parser.c (librdf_get_parser_factory): Allow mime_type string
  2157. to matching on empty string as well as null string (for ruby)
  2158. * configure.in: Set CPPFLAGS when looking for bdb, in order to
  2159. find db.h
  2160. * redland-config.in: Add @LDFLAGS@ to --libs line
  2161. * configure.in: Get ruby_prefix from Ruby configuration variable
  2162. archdir
  2163. 2002-04-24 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2164. * INSTALL.html: typo
  2165. * INSTALL.html: Added CVS instructions; now working
  2166. * autogen.sh: sh syntax
  2167. * autogen.sh: Find and link in raptor sources when nearby
  2168. * docs/Makefile.am: Try to fix missing redland.3 problem for
  2169. non-maintainer
  2170. 2002-04-23 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2171. * rdf_utf8.c, rdf_uri.c, rdf_storage.c, rdf_statement.c,
  2172. rdf_parser.c, rdf_node.c, rdf_model.c, rdf_digest.c,
  2173. rdf_concepts.c: Include some more headers to get missing library
  2174. prototypes
  2175. * repat/rdfparse.c, repat/rdfdump.c: Tidy to fix compiler
  2176. warnings; renamed some shadowed local variables and remove unused
  2177. code.
  2178. * librdf.h: rdf_heuristics.h is not meant to be public
  2179. * ruby/test.rb: Redland Ruby API test program
  2180. * ruby/Makefile.am: No README yet
  2181. 2002-04-22 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2182. * rdf_parser_sirpac.c, rdf_parser_repat.c, rdf_parser_raptor.c,
  2183. rdf_parser_libwww.c: Added RDF/XML mime type to parser
  2184. registrations
  2185. * rdf_parser_raptor.c: Updated ntriples URI
  2186. * python/README: Point to skeleton docs
  2187. * python/RDF.py: Fixes for Python 2.2 due to change in __ meaning
  2188. (not tested much)
  2189. 2002-04-14 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2190. * docs/redland.pod: Redland (librdf) library manual page
  2191. 2002-04-03 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2192. * ruby/Makefile.am, ruby/example.rb: Initial ruby stuff from
  2193. danbri (not complete)
  2194. * Makefile.am, configure.in: Updates for ruby (not working)
  2195. 2002-03-07 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2196. * docs/java.html, docs/tcl.html: Update footer
  2197. * docs/python.html: Now tested with python 2.1 also Update footer
  2198. * docs/fix-pod-xhtml: Updates for pod2html changing Handle perl
  2199. module names changing, new POD dirs
  2200. * docs/Makefile.am: Added redland.3 (made from redland.pod via
  2201. pod2man) manual page Added redland.pod; mostly generated from
  2202. source files. Add manual pages to distribution.
  2203. 2002-02-12 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2204. * docs/perl.html: Updates for new perl module names
  2205. * perl/MANIFEST.SKIP, perl/MANIFEST: Updated for new files (old
  2206. api and new)
  2207. * perl/Makefile.PL: Updates for new perl module names Ghastly
  2208. hacks to get ExtUtils::MakeMaker to use RDF::Redland::CORE
  2209. * perl/Makefile.am: Updates for new perl module names Change to
  2210. build SWIG outputs here and move the generated perl to the right
  2211. place lower down the tree.
  2212. * perl/test.pl, perl/rss-dump.pl, perl/example.pl: Updates for new
  2213. perl module names
  2214. * perl/lib/RDF/Redland/Makefile.am: Added CORE.pm (from SWIG) to
  2215. distribution; clean it too.
  2216. * perl/lib/RDF/Redland/URI.pm, perl/lib/RDF/Redland/Stream.pm,
  2217. perl/lib/RDF/Redland/Storage.pm,
  2218. perl/lib/RDF/Redland/Statement.pm, perl/lib/RDF/Redland/RSS.pm,
  2219. perl/lib/RDF/Redland/Parser.pm, perl/lib/RDF/Redland/Node.pm,
  2220. perl/lib/RDF/Redland/Model.pm, perl/lib/RDF/Redland/Iterator.pm,
  2221. perl/lib/RDF/Redland.pm: Updates for new perl module names
  2222. * perl/lib/RDF/URI.pm, perl/lib/RDF/Stream.pm,
  2223. perl/lib/RDF/Storage.pm, perl/lib/RDF/Statement.pm,
  2224. perl/lib/RDF/RSS.pm, perl/lib/RDF/Parser.pm, perl/lib/RDF/Node.pm,
  2225. perl/lib/RDF/Model.pm, perl/lib/RDF/Makefile.am,
  2226. perl/lib/RDF/Iterator.pm, perl/lib/RDF.pm: Trampoline modules for
  2227. old->new perl APIs Contains warning with a promise that these
  2228. files go away next version
  2229. * configure.in: Pick up to 5 versions of python2, 4 of perl5 - groan.
  2230. Added perl/lib/RDF/Redland dir
  2231. 2002-01-02 Dave Beckett <Dave.Beckett@bristol.ac.uk>
  2232. * perl/Makefile.PL:
  2233. Pass -I and -L,-l flags to right config
  2234. * Makefile.am:
  2235. Added Makefile.PL to distribution
  2236. * Makefile.PL:
  2237. Fake MakeMaker Makefile.PL - top level Makefile.PL for Redland
  2238. * perl/dc.rdf, ex2.rdf, ex1.rdf:
  2239. Update to revised syntax