diff options
author | Alex Legler <alex@a3li.li> | 2015-12-14 22:11:46 +0100 |
---|---|---|
committer | Alex Legler <alex@a3li.li> | 2015-12-14 22:11:46 +0100 |
commit | f55b41acd32784abf00cb6f08ecf2334f57b3a8f (patch) | |
tree | ec53ca801f93164935ad166ac268033c8bb5c63e /projects.rb | |
parent | Add nokogiri to avoid rexml (diff) | |
download | semantic-data-toolkit-f55b41acd32784abf00cb6f08ecf2334f57b3a8f.tar.gz semantic-data-toolkit-f55b41acd32784abf00cb6f08ecf2334f57b3a8f.tar.bz2 semantic-data-toolkit-f55b41acd32784abf00cb6f08ecf2334f57b3a8f.zip |
Prepend RDF namespace when using RDFS vocabulary
Ruby 2.0 seems to absolutely want this
Diffstat (limited to 'projects.rb')
-rwxr-xr-x | projects.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/projects.rb b/projects.rb index 0668e07..8c73569 100755 --- a/projects.rb +++ b/projects.rb @@ -17,12 +17,12 @@ projects_q = Query.new do pattern [:proj_uri, GentooWiki::PROP_NAME, :proj_name] pattern [:proj_uri, GentooWiki::PROP_CONTACT, :proj_email] pattern [:proj_uri, GentooWiki::PROP_DESC, :proj_desc] - pattern [:proj_uri, RDFS.label, :proj_title] + pattern [:proj_uri, RDF::RDFS.label, :proj_title] pattern [:proj_uri, GentooWiki::PROP_PAGE, :proj_href] # Find parents pattern [:proj_uri, GentooWiki::PROP_PARENT_PROJECT, :parent_uri] - pattern [:parent_uri, RDFS.label, :parent_title] + pattern [:parent_uri, RDF::RDFS.label, :parent_title] pattern [:proj_uri, GentooWiki::PROP_PROPAGATES_MEMBERS, :propagates_members], optional: true pattern [:proj_uri, GentooWiki::PROP_IRC, :proj_irc], optional: true |