summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlex Legler <alex@a3li.li>2015-11-27 18:46:15 +0100
committerAlex Legler <alex@a3li.li>2015-11-27 18:46:15 +0100
commit8114c3fabf3bd4ddf6af09182befd4fe4da9df94 (patch)
treec2e72556a69adb1bde1b6973c9a0dc8c67554221 /lib
downloadsemantic-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')
-rw-r--r--lib/vocabulary.rb28
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