Skip to content

Commit

Permalink
documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
nichtich committed Mar 28, 2011
1 parent 874873f commit 8d29a2d
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
14 changes: 14 additions & 0 deletions README
Expand Up @@ -46,6 +46,20 @@ use all conversion scripts in the 'scripts' directory like this:

$ picaconv <script> <picafile>

API Documentation
-----------------
You can generate the API documentation with LuaDoc. However, LuaDoc has
not been updated since years. I added some patches, so you get get a
fixed version of LuaDoc at https://github.com/nichtich/luadoc.

$ git clone git://github.com/nichtich/luadoc.git
$ cd luadoc
$ make install

You can then generate documentation with:

$ make doc

Feedback and updates
--------------------
please visit https://github.com/nichtich/lua-pica
Expand Down
1 change: 1 addition & 0 deletions example.lua
@@ -1,3 +1,4 @@

require 'pica'

r = io.read("*all") -- read from standard input
Expand Down
8 changes: 6 additions & 2 deletions scripts/pica2rdf.lua
@@ -1,13 +1,15 @@
-------------------------------------------------------------------------------
--- Experimental demo conversion from PICA+ to RDF/Turtle
-- @file
-- Experimental demo conversion from PICA+ to RDF/Turtle.
--
-- @author Jakob Voss <voss@gbv.de>
-------------------------------------------------------------------------------

require 'pica'

-------------------------------------------------------------------------------
--- Simple turtle serializer.
-- Stores multiple RDF statements with the same subject.
--
-- @class table
-- @name Turtle
-------------------------------------------------------------------------------
Expand Down Expand Up @@ -37,6 +39,8 @@ Turtle = {
-- # ttl returns the number of triples
}

--- Creates a new Turtle serializer.
-- @param subject the subject for all triples
function Turtle.new( subject )
local tt = {
subject = subject,
Expand Down
5 changes: 3 additions & 2 deletions src/pica.lua
@@ -1,10 +1,11 @@
-----------------------------------------------------------------------------
--- Handle PICA+ data in Lua.
-- Handle PICA+ data in Lua.
-- This module provides two classes (<a href="#PicaField">PicaField</a> and
-- <a href="#PicaRecord">PicaRecord</a>) for PICA+ data. The programming
-- interface of these classes is optimized for easy access and conversion
-- of PICA+ records.
-- of PICA+ records. Have a look at the file 'example.lua' for a synopsis.
--
-- @author Jakob Voss <voss@gbv.de>
-- @class module
-- @name pica
-- @see PicaField
Expand Down

0 comments on commit 8d29a2d

Please sign in to comment.