ruby-rdf / rdf-microdata Goto Github PK
View Code? Open in Web Editor NEWRuby Microdata parser for RDF.rb
Home Page: http://rubygems.org/gems/rdf-microdata
License: The Unlicense
Ruby Microdata parser for RDF.rb
Home Page: http://rubygems.org/gems/rdf-microdata
License: The Unlicense
after upgrading linkeddata to v1.1.0, I got the following error:
cannot load such file -- nokogiri
vendor/bundle/ruby/2.0.0/gems/rdf-microdata-1.1.0/lib/rdf/microdata/reader.rb:1:in `require'
AFAICT Nokogiri is only ever specified as a development dependency in the gemspec, but is actually required at runtime.
As discussed in w3c/microdata#20.
I have this error message "Unknown RDF format" if i add "require 'rdf'" in my ruby file.
For this test i have used your html file exemple.
Thanks
Schema.org singles out the rel="author"
link property as being equivalent to <http://schema.org/author>
(and is the only schema.org relation to link tightly to HTML5 in this way)
Is it within the scope of this project to recognise the HTML5 property and map it to the schema.org relation?
I'm happy to have a go at a pull request for the feature but I'd like to know if it fits first :)
I tried installing this gem, but it seems to depend on rdf-rdfa
, which is not part of the runtime dependencies:
$ gem install rdf-microdata
Fetching: rdf-1.0.9.gem (100%)
Successfully installed rdf-1.0.9
Fetching: rdf-xsd-1.0.2.1.gem (100%)
Successfully installed rdf-xsd-1.0.2.1
Fetching: rdf-microdata-1.0.2.gem (100%)
Successfully installed rdf-microdata-1.0.2
3 gems installed
$ irb -r rdf-microdata
/opt/boxen/rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require':LoadError: cannot load such file -- rdf-microdata
>> ^D
$ irb -r rdf/microdata
/opt/boxen/rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:106:in `require':LoadError: cannot load such file -- rdf/rdfa
>> ^D
$ gem install rdf-rdfa
Fetching: haml-4.0.3.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.0.3
Fetching: rdf-rdfa-1.0.2.gem (100%)
Successfully installed rdf-rdfa-1.0.2
2 gems installed
$ irb -r rdf/microdata
>>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.