Skip to content

Instantly share code, notes, and snippets.

@fumi
Created July 1, 2010 02:05
Show Gist options
  • Save fumi/459459 to your computer and use it in GitHub Desktop.
Save fumi/459459 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'rdf'
require 'rdf/raptor'
repo = RDF::Repository.new
count = 0
while true
repo.load("test.ttl")
count += 1
puts count
end
@prefix rdfs: <http://www.w3.org/2000/01/01/rdf-schema#> .
<http://example.org/1> rdfs:label "Test" .
@artob
Copy link

artob commented Jul 6, 2010

I suppose we could also consider improving rdf-raptor's CLI/FFI mode autodetection to look for the FFI library in some well-known locations such as this one. For instance, most Mac OS X users would benefit from it trying the MacPorts location of /opt/local/lib, yet that path will rarely be in the system's library path since that is known to cause conflicts and general weirdness (hence the numerous DYLD_FALLBACK_LIBRARY_PATH hacks out there, and so on). Something I'll try and keep in mind for the next point release (please feel free to open a ticket if you'd like to see this feature).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment