Creating Linked Data With Ruby and RDF.rb (Notes)

From lotico
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Install Ubuntu 15.04 Linux ubuntu 3.19.0-18-generic #18-Ubuntu SMP Tue May 19 18:30:59 UTC 2015 i686 i686 i686 GNU/Linux


Install Ruby & Linkeddata Gem on Ubuntu

sudo apt-get install ruby

sudo apt-get install ruby-dev

sudo apt-get install zlib1g-dev libreadline-dev libssl-dev libcurl4-openssl-dev

sudo gem install linkeddata

lotico@ubuntu:~/test$ sudo gem install linkeddata
Building native extensions.  This could take a while...
Successfully installed nokogiri-1.6.6.2
Fetching: htmlentities-4.3.3.gem (100%)
Successfully installed htmlentities-4.3.3
Fetching: rdf-xsd-1.1.3.gem (100%)

	For best results, use nokogiri and equivalent-xml gems as well.
	These are not hard requirements to preserve pure-ruby dependencies.
 
Successfully installed rdf-xsd-1.1.3
Fetching: rdf-microdata-2.0.1.gem (100%)
Successfully installed rdf-microdata-2.0.1
Fetching: rdf-n3-1.1.3.gem (100%)
Successfully installed rdf-n3-1.1.3
Fetching: tilt-2.0.1.gem (100%)
Successfully installed tilt-2.0.1
Fetching: haml-4.1.0.beta.1.gem (100%)

HEADS UP! Haml 4.0 has many improvements, but also has changes that may break
your application:

* Support for Ruby 1.8.6 dropped
* Support for Rails 2 dropped
* Sass filter now always outputs <style> tags
* Data attributes are now hyphenated, not underscored
* html2haml utility moved to the html2haml gem
* Textile and Maruku filters moved to the haml-contrib gem

For more info see:

http://rubydoc.info/github/haml/haml/file/CHANGELOG.md

Successfully installed haml-4.1.0.beta.1
Fetching: rdf-rdfa-1.1.6.gem (100%)
Successfully installed rdf-rdfa-1.1.6
Fetching: rdf-rdfxml-1.1.4.gem (100%)
Successfully installed rdf-rdfxml-1.1.4
Fetching: rdf-vocab-0.8.3.gem (100%)
Successfully installed rdf-vocab-0.8.3
Fetching: sxp-0.1.5.gem (100%)
Successfully installed sxp-0.1.5
Fetching: ebnf-0.3.9.gem (100%)
Successfully installed ebnf-0.3.9
Fetching: rdf-turtle-1.1.7.gem (100%)
Successfully installed rdf-turtle-1.1.7
Fetching: rdf-reasoner-0.2.2.gem (100%)
Successfully installed rdf-reasoner-0.2.2
Fetching: addressable-2.3.8.gem (100%)
Successfully installed addressable-2.3.8
Fetching: json-ld-1.1.8.gem (100%)
Successfully installed json-ld-1.1.8
Fetching: i18n-0.7.0.gem (100%)
Successfully installed i18n-0.7.0
Fetching: bcp47-0.3.3.gem (100%)
Successfully installed bcp47-0.3.3
Fetching: rdf-tabular-0.1.3.1.gem (100%)
Successfully installed rdf-tabular-0.1.3.1
Fetching: rdf-trig-1.1.4.gem (100%)
Successfully installed rdf-trig-1.1.4
Fetching: rdf-trix-1.1.0.gem (100%)
Successfully installed rdf-trix-1.1.0
Fetching: net-http-persistent-2.9.4.gem (100%)
Successfully installed net-http-persistent-2.9.4
Fetching: sparql-client-1.1.5.gem (100%)
Successfully installed sparql-client-1.1.5
Fetching: builder-3.2.2.gem (100%)
Successfully installed builder-3.2.2
Fetching: sparql-1.1.7.gem (100%)
Successfully installed sparql-1.1.7
Fetching: equivalent-xml-0.6.0.gem (100%)
Successfully installed equivalent-xml-0.6.0
Fetching: linkeddata-1.1.11.gem (100%)
Successfully installed linkeddata-1.1.11
Parsing documentation for addressable-2.3.8
Installing ri documentation for addressable-2.3.8
Parsing documentation for bcp47-0.3.3
Installing ri documentation for bcp47-0.3.3
Parsing documentation for builder-3.2.2
Installing ri documentation for builder-3.2.2
Parsing documentation for ebnf-0.3.9
Installing ri documentation for ebnf-0.3.9
Parsing documentation for equivalent-xml-0.6.0
Installing ri documentation for equivalent-xml-0.6.0
Parsing documentation for haml-4.1.0.beta.1
Installing ri documentation for haml-4.1.0.beta.1
Parsing documentation for htmlentities-4.3.3
Installing ri documentation for htmlentities-4.3.3
Parsing documentation for i18n-0.7.0
Installing ri documentation for i18n-0.7.0
Parsing documentation for json-ld-1.1.8
Installing ri documentation for json-ld-1.1.8
Parsing documentation for linkeddata-1.1.11
Installing ri documentation for linkeddata-1.1.11
Parsing documentation for net-http-persistent-2.9.4
Installing ri documentation for net-http-persistent-2.9.4
Parsing documentation for nokogiri-1.6.6.2
Installing ri documentation for nokogiri-1.6.6.2
Parsing documentation for rdf-microdata-2.0.1
Installing ri documentation for rdf-microdata-2.0.1
Parsing documentation for rdf-n3-1.1.3
Installing ri documentation for rdf-n3-1.1.3
Parsing documentation for rdf-rdfa-1.1.6
Installing ri documentation for rdf-rdfa-1.1.6
Parsing documentation for rdf-rdfxml-1.1.4
Installing ri documentation for rdf-rdfxml-1.1.4
Parsing documentation for rdf-reasoner-0.2.2
Installing ri documentation for rdf-reasoner-0.2.2
Parsing documentation for rdf-tabular-0.1.3.1
Installing ri documentation for rdf-tabular-0.1.3.1
Parsing documentation for rdf-trig-1.1.4
Installing ri documentation for rdf-trig-1.1.4
Parsing documentation for rdf-trix-1.1.0
Installing ri documentation for rdf-trix-1.1.0
Parsing documentation for rdf-turtle-1.1.7
Installing ri documentation for rdf-turtle-1.1.7
Parsing documentation for rdf-vocab-0.8.3
Installing ri documentation for rdf-vocab-0.8.3
Parsing documentation for rdf-xsd-1.1.3
Installing ri documentation for rdf-xsd-1.1.3
Parsing documentation for sparql-1.1.7
Installing ri documentation for sparql-1.1.7
Parsing documentation for sparql-client-1.1.5
Installing ri documentation for sparql-client-1.1.5
Parsing documentation for sxp-0.1.5
Installing ri documentation for sxp-0.1.5
Parsing documentation for tilt-2.0.1
Installing ri documentation for tilt-2.0.1
Done installing documentation for addressable, bcp47, builder, ebnf, equivalent-xml, haml, htmlentities, i18n, 
json-ld, linkeddata, net-http-persistent, nokogiri, rdf-microdata, rdf-n3, rdf-rdfa, rdf-rdfxml, rdf-reasoner, 
rdf-tabular, rdf-trig, rdf-trix, rdf-turtle, rdf-vocab, rdf-xsd, sparql, sparql-client, sxp, tilt after 45 seconds
27 gems installed



  1. read RDF/XML
sudo gem install rdf-rdfxml
Successfully installed rdf-rdfxml-1.1.4
Parsing documentation for rdf-rdfxml-1.1.4
Done installing documentation for rdf-rdfxml after 1 seconds
1 gem installed

Tutorial

http://rdf.rubyforge.org/#Tutorials

require 'openssl' in tutorial