Skip to content

Commit

Permalink
Release 2.0
Browse files Browse the repository at this point in the history
Updated for 2.0 version of Microdata to RDF Note.

* No top-level md:item listing top-level items.
* Limited registry semantics, now hard coded to `multipleValues=unordered` and `propertyURI=vocabulary`.
* Simplified vocabulary expansion, no longer results in `rdfa:usesVocabulary` triple.
* Integers and Doubles generated from `data` and `meter` element values.
* Support for experimental `@itemprop-reverse`
  • Loading branch information
gkellogg committed Dec 16, 2014
2 parents c5336d5 + 5aa64a6 commit 1ea2455
Show file tree
Hide file tree
Showing 18 changed files with 309 additions and 522 deletions.
15 changes: 8 additions & 7 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,20 @@ source "http://rubygems.org"

gemspec

gem 'rdf', :git => "git://github.com/ruby-rdf/rdf.git", :branch => "develop"
gem "rdf-xsd", :git => "git://github.com/ruby-rdf/rdf-xsd.git", :branch => "develop"
gem 'rdf', git: "git://github.com/ruby-rdf/rdf.git", branch: "develop"
gem "rdf-xsd", git: "git://github.com/ruby-rdf/rdf-xsd.git", branch: "develop"
gem "rdf-rdfa", git: "git://github.com/ruby-rdf/rdf-rdfa.git", branch: "develop"
#gem "rdf-rdfa", path: "../rdf-rdfa"

group :development do
gem 'rdf-spec', :git => "git://github.com/ruby-rdf/rdf-spec.git", :branch => "develop"
gem "rdf-isomorphic", :git => "git://github.com/ruby-rdf/rdf-isomorphic.git"
gem "rdf-rdfa", :git => "git://github.com/ruby-rdf/rdf-rdfa.git", :branch => "develop"
gem "rdf-turtle", :git => "git://github.com/ruby-rdf/rdf-turtle.git", :branch => "develop"
gem 'rdf-spec', git: "git://github.com/ruby-rdf/rdf-spec.git", branch: "develop"
gem "rdf-isomorphic", git: "git://github.com/ruby-rdf/rdf-isomorphic.git"
gem "rdf-turtle", git: "git://github.com/ruby-rdf/rdf-turtle.git", branch: "develop"
end

group :debug do
gem "wirble"
gem "debugger", :platforms => [:mri_19, :mri_20]
gem "byebug", platform: :mri_21
end

platforms :rbx do
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,14 @@ The parser uses a build-in version of the [Microdata RDF][] registry.

### Reading RDF data in the Microdata format

graph = RDF::Graph.load("etc/foaf.html", :format => :microdata)
require 'rdf/microdata'
graph = RDF::Graph.load("etc/doap.html", :format => :microdata)

### Reading using content-negotation

require 'rdf/microdata'
graph = RDF::Graph.load("etc/doap.html", :content_type => "text/html")

## Note
This spec is based on the W3C HTML Data Task Force specification and does not support
GRDDL-type triple generation, such as for html>head>title anchor tags.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.2
2.0
3 changes: 0 additions & 3 deletions etc/doap.nt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,3 @@
<http://rubygems.org/gems/rdf-microdata> <http://usefulinc.com/ns/doap#homepage> <http://github.com/ruby-rdf/rdf-microdata> .
<http://rubygems.org/gems/rdf-microdata> <http://usefulinc.com/ns/doap#license> <http://creativecommons.org/licenses/publicdomain/> .
<http://rubygems.org/gems/rdf-microdata> <http://usefulinc.com/ns/doap#mailing-list> <http://lists.w3.org/Archives/Public/public-rdf-ruby/> .
_:g2162899420 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> <http://rubygems.org/gems/rdf-microdata> .
_:g2162899420 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .
<http://example.com> <http://www.w3.org/ns/md#item> _:g2162899420 .
42 changes: 2 additions & 40 deletions etc/registry.json
Original file line number Diff line number Diff line change
@@ -1,46 +1,8 @@
{
"http://schema.org/": {
"propertyURI": "vocabulary",
"multipleValues": "unordered",
"properties": {
"additionalType": {"subPropertyOf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type"},
"blogPosts": {"multipleValues": "list"},
"blogPosts": {"multipleValues": "list"},
"breadcrumb": {"multipleValues": "list"},
"byArtist": {"multipleValues": "list"},
"creator": {"multipleValues": "list"},
"episode": {"multipleValues": "list"},
"episodes": {"multipleValues": "list"},
"event": {"multipleValues": "list"},
"events": {"multipleValues": "list"},
"founder": {"multipleValues": "list"},
"founders": {"multipleValues": "list"},
"itemListElement": {"multipleValues": "list"},
"musicGroupMember": {"multipleValues": "list"},
"performerIn": {"multipleValues": "list"},
"actor": {"multipleValues": "list"},
"actors": {"multipleValues": "list"},
"performer": {"multipleValues": "list"},
"performers": {"multipleValues": "list"},
"producer": {"multipleValues": "list"},
"recipeInstructions": {"multipleValues": "list"},
"season": {"multipleValues": "list"},
"seasons": {"multipleValues": "list"},
"subEvent": {"multipleValues": "list"},
"subEvents": {"multipleValues": "list"},
"track": {"multipleValues": "list"},
"tracks": {"multipleValues": "list"}
"additionalType": {"subPropertyOf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type"}
}
},
"http://microformats.org/profile/hcard": {
"propertyURI": "vocabulary",
"multipleValues": "unordered"
},
"http://microformats.org/profile/hcalendar#": {
"propertyURI": "vocabulary",
"multipleValues": "unordered",
"properties": {
"categories": {"multipleValues": "list"}
}
}
"http://microformats.org/profile/hcard": {}
}
Loading

0 comments on commit 1ea2455

Please sign in to comment.