Skip to content

Instantly share code, notes, and snippets.

@arockwell
Created June 15, 2010 13:46
Show Gist options
  • Select an option

  • Save arockwell/439147 to your computer and use it in GitHub Desktop.

Select an option

Save arockwell/439147 to your computer and use it in GitHub Desktop.
#!/usr/bin/ruby
require 'rubygems'
require 'rdf/raptor'
mconlon_uri = "http://vivo.ufl.edu/individual/n25562/n25562.rdf"
work_email_pred = RDF::URI.new("http://vivoweb.org/ontology/core#workEmail")
# Retrieve Mike's rdf
mconlon_graph = RDF::Graph.load(mconlon_uri)
# Retrieve work email
mconlon_work_email = mconlon_graph.query(:predicate => work_email_pred)[0].object.to_s
puts "Mike Conlon's work email: #{mconlon_work_email}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment