-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
51 lines (35 loc) · 1.44 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Lua ActiveRDF
(http://activerdf.luaforge.net/)
Lua ActiveRDF is a library for accessing RDF data from Lua programs.
In fact, Lua ActiveRDF is a Lua version of ActiveRDF (www.activerdf.org) for Ruby.
Lua ActiveRDF allows you to rapidly create semantic web applications.
Lua ActiveRDF gives you a Domain Specific Language (DSL) for your RDF model: you can
address RDF resources, classes, properties, etc. programmatically, without queries.
Simple Example
--------------
The following example uses a SPARQL endpoint and displays all
people found in the data source:
rdf = require 'activerdf'
url = 'http://tecweb08.tecweb.inf.puc-rio.br:8890/sparql'
rdf.ConnectionPool.add_data_source { type = 'sparql', engine = 'virtuoso', url = url }
foaf = rdf.Namespace.register ( 'test', 'http://activerdf.luaforge.net/test/' )
people = foaf.Person:find_all()
for _, person in ipairs(people) do
print(person.name)
end
Lua ActiveRDF is distributed as a Lua module.
Lua ActiveRDF is free software and uses the same license as Lua 5.1.
Current version is 0.1. It was developed for Lua 5.1.
Download
Lua ActiveRDF source can be downloaded from its Lua Forge page:
http://luaforge.net/frs/?group_id=370
Dependencies
Lua ActiveRDF depends on three modules:
* LOOP 2.2
* uuid library for Lua 5.1 / Sep 2007
* LPeg 0.8
History
Version 0.1 [17/Jul/2008]
Installing
Authors
* Mauricio Henrique de Souza Bomfim