Permalink
Browse files

reordering structure for creation of rubygem

  • Loading branch information...
1 parent 6bfd3c7 commit c9cdafbc6b62c9d96e2bbd54586710dd992e238a Eyal Oren committed Oct 7, 2006
View
28 README
@@ -0,0 +1,28 @@
+== Welcome to ActiveRDF
+
+ActiveRDF is a library for accessing RDF data from Ruby programs. It can be used
+as data layer in Ruby-on-Rails, similar to ActiveRecord (which provides an O/R
+mapping to relational databases). ActiveRDF in RoR allows you to create semantic
+web applications very rapidly. ActiveRDF gives you a Domain Specific Language
+(DSL) for your RDF model: you can address RDF resources, classes, properties,
+etc. programmatically, without queries.
+
+See http://activerdf.org for more information.
+
+== Getting Started
+ require 'active_rdf'
+ ConnectionPool.add_data_source :type => :sparql, :host => '...'
+ Namespace.register :foaf, 'http://xmlns.com/foaf/0.1/'
+ ObjectManager.construct_classes
+ people = FOAF::Person.find_all
+
+See http://activerdf.org for more examples.
+
+== License
+ActiveRDF is distributed under the LGPL[link:../lgpl.txt] license.
+
+== Authors
+* Eyal Oren
+* Renaud Delbru
+* Sebastian Gerke
+* Benjamin Heitmann
View
No changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
504 lgpl.txt

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -1,6 +1,8 @@
# Loader of ActiveRDF library
#
-# (c) 2005-2006 by Eyal Oren and Renaud Delbru - All Rights Reserved
+# Author:: Eyal Oren and Renaud Delbru
+# Copyright:: (c) 2005-2006 Eyal Oren and Renaud Delbru
+# License:: LGPL
# adding active_rdf subdirectory to the ruby loadpath
file =
@@ -24,7 +24,10 @@ def query(query)
# querying Jars2, adding 'eyal' parameter to get all variable bindings in
# the result
+ time = Time.now
response = @yars.get("/?q=#{CGI.escape(qs)}&eyal", header)
+ puts qs
+ puts "response from Jars took #{Time.now - time}s"
# return empty array if no content
return [] if response.is_a?(Net::HTTPNoContent)
@@ -33,10 +36,9 @@ def query(query)
return false unless response.is_a?(Net::HTTPOK)
# parse the result
+ time = Time.now
results = parse_result(response.body, query)
-
- #p "asked: #{query.to_s}; size: #{results.size}; uniq: #{results.uniq.size}"
- #p results.collect{|r| r.to_s}
+ puts "parsing response took #{Time.now - time}s"
# remove duplicates if asked for distinct results
if query.distinct?
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit c9cdafb

Please sign in to comment.