diff options
author | Alex Legler <alex@a3li.li> | 2015-11-27 18:46:15 +0100 |
---|---|---|
committer | Alex Legler <alex@a3li.li> | 2015-11-27 18:46:15 +0100 |
commit | 8114c3fabf3bd4ddf6af09182befd4fe4da9df94 (patch) | |
tree | c2e72556a69adb1bde1b6973c9a0dc8c67554221 /lib/vocabulary.rb | |
download | semantic-data-toolkit-8114c3fabf3bd4ddf6af09182befd4fe4da9df94.tar.gz semantic-data-toolkit-8114c3fabf3bd4ddf6af09182befd4fe4da9df94.tar.bz2 semantic-data-toolkit-8114c3fabf3bd4ddf6af09182befd4fe4da9df94.zip |
First set of utilities for exporting project data
Diffstat (limited to 'lib/vocabulary.rb')
-rw-r--r-- | lib/vocabulary.rb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/lib/vocabulary.rb b/lib/vocabulary.rb new file mode 100644 index 0000000..b0e623c --- /dev/null +++ b/lib/vocabulary.rb @@ -0,0 +1,28 @@ +require 'rdf' + +# Common vocabulary for Gentoo Wiki properties +module GentooWiki + NS_WIKI = 'http://wiki.gentoo.org/id/' + NS_PROP = 'http://wiki.gentoo.org/id/Property-3A' + NS_SWIVT = 'http://semantic-mediawiki.org/swivt/1.0#' + + SUBOBJECT = RDF::URI.new(NS_PROP + 'Has_subobject') + + PROJ = RDF::URI.new(NS_WIKI + 'Category-3AGentoo_Projects') + + PROP_NAME = RDF::URI.new(NS_PROP + 'Has_Name') + PROP_CONTACT = RDF::URI.new(NS_PROP + 'Has_Contact') + PROP_DESC = RDF::URI.new(NS_PROP + 'Has_Description') + PROP_IRC = RDF::URI.new(NS_PROP + 'Has_IRC_channel') + PROP_PARENT_PROJECT = RDF::URI.new(NS_PROP + 'Has_Parent_Project') + PROP_PROPAGATES_MEMBERS = RDF::URI.new(NS_PROP + 'Propagates_Members') + + PROP_DEV = RDF::URI.new(NS_PROP + 'Has_Developer') + PROP_ROLE = RDF::URI.new(NS_PROP + 'Has_Role') + PROP_LEAD = RDF::URI.new(NS_PROP + 'Is_Project_Lead') + + PROP_NICK = RDF::URI.new(NS_PROP + 'Has_Nickname') + + # SWIVT properties + PROP_PAGE = RDF::URI.new(NS_SWIVT + 'page') +end |