Permalink
Browse files

merged in some changes from paul

  • Loading branch information...
2 parents 92bc6d6 + f66c433 commit 88e17be7258577c8b540b1b2b49a95b3020d719c @edsu committed Oct 23, 2010
View
7 README
@@ -1,6 +1,7 @@
-lldvis is a ruby on rails application to help visualize rdf vocabularies
-in use in the library linked data domain as documented in use cases on the
-w3c lld interest group [1]
+This is an attempt to map usecases, vocabularies, topics from the work of
+the W3C Incubator group on Library Linked Data [1].
+
+I began making this during the meeting in Pittsburgh on 23/10/2010
Installation:
@@ -2,7 +2,13 @@ class UsecasesController < ApplicationController
# GET /usecases
# GET /usecases.xml
def index
- @usecases = Usecase.all
+ if params[:vocab_id] then
+ @usecases = Vocab.find(params[:vocab_id]).usecases
+ @table_title = "Usecases using the vocab: <i>#{Vocab.find(params[:vocab_id]).name}</i>"
+ else
+ @usecases = Usecase.all
+ @table_title = "All Usecases"
+ end
respond_to do |format|
format.html # index.html.erb
@@ -4,7 +4,7 @@
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
- <title>LLD</title>
+ <title>LLD Usecase Visualiser</title>
<%= stylesheet_link_tag "jquery-ui-1.8.4.custom" %>
<%= stylesheet_link_tag "ui.jqgrid" %>
@@ -9,14 +9,14 @@
<%= link_to_unless_current 'Use Cases',"#{ActionController::Base.relative_url_root}/usecases" %> |
<%= link_to_unless_current 'Vocabulary Types',"#{ActionController::Base.relative_url_root}/vocabtypes" %> |
<%= link_to_unless_current 'Vocabularies',"#{ActionController::Base.relative_url_root}/vocabs" %> |
- <%= link_to_unless_current 'Usages',"#{ActionController::Base.relative_url_root}/usage" %>
+ <%= link_to_unless_current 'Usages',"#{ActionController::Base.relative_url_root}/usages" %>
<p style="color: green"><%= flash[:notice] %></p>
</div>
</div>
-<div id="header-logo">
-<h1><a href="<%=ActionController::Base.relative_url_root%>/">LLD</a></h1>
+<div id="header">
+<a class="app-title" href="<%=ActionController::Base.relative_url_root%>/">LLD Usecase Visualiser</a>
</div>
<hr />
@@ -9,13 +9,15 @@
<thead>
<tr>
<th>Name</th>
+ <th>Usecases</th>
<th class="{sorter: false}">&nbsp;</th>
</tr>
</thead>
<tbody>
<% @vocabs.each do |vocab| %>
<tr>
<td><%= link_to vocab.name, vocab %></td>
+ <td><%= link_to vocab.usecases.size,"#{ActionController::Base.relative_url_root}/vocabs/#{vocab.id}/usecases/" %></td>
<td class="panel-grid-operations"><%= link_to 'Edit', edit_vocab_path(vocab) %> | <%= link_to 'Destroy', vocab, :confirm => 'Are you sure?', :method => :delete %></td>
</tr>
<% end %>
@@ -0,0 +1,32 @@
+# SQLite version 3.x
+# gem install sqlite3-ruby (not necessary on OS X Leopard)
+# development:
+# adapter: sqlite3
+# database: db/development.sqlite3
+# pool: 5
+# timeout: 5000
+
+development:
+ adapter: mysql
+ encoding: utf8
+ reconnect: false
+ database: lld_development
+ pool: 5
+ username: <username>
+ password: <password>
+ host: localhost
+
+# Warning: The database defined as "test" will be erased and
+# re-generated from your development database when you run "rake".
+# Do not set this db to the same as development or production.
+test:
+ adapter: sqlite3
+ database: db/test.sqlite3
+ pool: 5
+ timeout: 5000
+
+production:
+ adapter: sqlite3
+ database: db/production.sqlite3
+ pool: 5
+ timeout: 5000
View
@@ -9,7 +9,7 @@
map.resources :usecases, :has_many => [:vocabs,:topics]
- map.resources :vocabs
+ map.resources :vocabs, :has_many => [:usecases]
map.resources :home, :only => :index
View
@@ -98,12 +98,22 @@
puts "Creating vocabs....\n\n"
vocabtype = Vocabtype.create(:name => "UNCLASSIFIED")
+Vocab.create(:name => "Bibliographic Ontology",:vocabtype_id => vocabtype.id)
+Vocab.create(:name => "CIDOC-CRM",:vocabtype_id => vocabtype.id)
+Vocab.create(:name => "OWL",:vocabtype_id => vocabtype.id)
+Vocab.create(:name => "CITO",:vocabtype_id => vocabtype.id)
+Vocab.create(:name => "SURF",:vocabtype_id => vocabtype.id)
+Vocab.create(:name => "RDFS",:vocabtype_id => vocabtype.id)
+Vocab.create(:name => "W3C Media Ontology",:vocabtype_id => vocabtype.id)
+
vocabtype = Vocabtype.create(:name => "Existing published Vocabularies available for reuse")
# Vocab.create(:name => "",:vocabtype_id => vocabtype.id)
Vocab.create(:name => "FOAF",:vocabtype_id => vocabtype.id)
+Vocab.create(:name => "RDA",:vocabtype_id => vocabtype.id)
Vocab.create(:name => "RDA Group 1 Elements",:vocabtype_id => vocabtype.id)
Vocab.create(:name => "RDA Group 2 Elements",:vocabtype_id => vocabtype.id)
Vocab.create(:name => "SKOS",:vocabtype_id => vocabtype.id)
+Vocab.create(:name => "FRBR",:vocabtype_id => vocabtype.id)
Vocab.create(:name => "FRBR Core",:vocabtype_id => vocabtype.id)
Vocab.create(:name => "FRBRer",:vocabtype_id => vocabtype.id)
Vocab.create(:name => "FRAD",:vocabtype_id => vocabtype.id)
@@ -114,6 +124,7 @@
Vocab.create(:name => "ISBD",:vocabtype_id => vocabtype.id)
Vocab.create(:name => "BIBO",:vocabtype_id => vocabtype.id)
Vocab.create(:name => "DC Terms",:vocabtype_id => vocabtype.id)
+Vocab.create(:name => "DC Types",:vocabtype_id => vocabtype.id)
Vocab.create(:name => "EXIF",:vocabtype_id => vocabtype.id)
Vocab.create(:name => "OPM",:vocabtype_id => vocabtype.id)
Vocab.create(:name => "W3C Geo vocab",:vocabtype_id => vocabtype.id)
@@ -153,37 +164,153 @@
Usage.create(:description =>"for persons, corporate bodies",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("FOAF").id)
Usage.create(:description =>"for persons, corporate bodies and families",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("RDA Group 2 Elements").id)
usecase = Usecase.create(:name => "Digital Preservation")
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("LoC Preservation Vocabularies").id)
+ Usage.create(:description =>"to describe the structure of complex data objects",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("OAI-ORE"))
+ Usage.create(:description =>"to describe software agents",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("DOAP"))
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("PRONOM"))
usecase = Usecase.create(:name => "Bibliographic Network")
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("FRBR Core"))
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("Bibliographic Ontology"))
usecase = Usecase.create(:name => "Publishing 20th Century Press Archives")
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("OAI-ORE"))
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("DC Terms"))
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("SKOS"))
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("EXIF"))
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("P20vocab"))
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("RDA Group 2 Elements"))
+
usecase = Usecase.create(:name => "Subject Search")
usecase = Usecase.create(:name => "Open Library Data")
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("RDA Group 1 Elements"))
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("FOAF"))
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("DC Terms"))
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("FRBR"))
+
usecase = Usecase.create(:name => "Europeana")
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("DC Terms").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("SKOS").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("OAI-ORE").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("CIDOC-CRM").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("FRBR").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("VIAF").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("Geonames").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("ULAN").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("TGN").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("DDC").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("UDC").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("Iconclass").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("dbPedia").id)
+
usecase = Usecase.create(:name => "Language Technology")
+
usecase = Usecase.create(:name => "NDNP")
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("OAI-ORE").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("DC Terms").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("Bibliographic Ontology"))
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("FRBR").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("EXIF").id)
+
usecase = Usecase.create(:name => "Vocabulary Merging")
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("SKOS").id)
+
usecase = Usecase.create(:name => "Bridging OWL and UML")
+
usecase = Usecase.create(:name => "Virtual International Authority File (VIAF)")
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("VIAF").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("OWL").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("SKOS").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("FOAF").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("UMBEL").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("FRBR").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("DC Terms").id)
+
usecase = Usecase.create(:name => "Component Vocabularies")
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("SKOS").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("MADS").id)
+
usecase = Usecase.create(:name => "Digital Text Repository")
+
usecase = Usecase.create(:name => "Identification and deduplication of library records")
usecase = Usecase.create(:name => "NEP: New Economics Papers")
usecase = Usecase.create(:name => "Photo museum case")
usecase = Usecase.create(:name => "Browsing and searching in data repositories annotated with different thesauri")
usecase = Usecase.create(:name => "Radio Station Archive Digitisation")
usecase = Usecase.create(:name => "AGROVOC Thesaurus")
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("DC Terms").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("SKOS").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("OWL").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("ASFA Thesaurus").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("Fisheries Reference Metadata").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("USDA National Agricultural Library").id)
+
usecase = Usecase.create(:name => "AGRIS")
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("SKOS").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("BIBO").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("FOAF").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("DC Terms").id)
+
usecase = Usecase.create(:name => "FAO Authority Description Concept Scheme")
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("SKOS").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("BIBO").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("FOAF").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("DC Terms").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("RDA").id)
+
usecase = Usecase.create(:name => "Citation of Scientific Datasets")
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("OPM").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("BIBO").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("CITO").id)
+
usecase = Usecase.create(:name => "Enhanced Publications")
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("FOAF").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("OAI-ORE").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("DC Terms").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("DC Types").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("SURF").id)
+
usecase = Usecase.create(:name => "Regional Catalog")
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("BIBO").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("RDA").id)
+
usecase = Usecase.create(:name => "Ranking Search Results by Popularity using Circulation Data")
+
usecase = Usecase.create(:name => "LOCAH")
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("SKOS").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("BIBO").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("FOAF").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("DC Terms").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("FRBR").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("RDFS").id)
+
usecase = Usecase.create(:name => "Archipel project")
+
usecase = Usecase.create(:name => "Use Cases NLL Digitized Map Archive")
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("SKOS").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("DC Terms").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("Geonames").id)
+
usecase = Usecase.create(:name => "Linked Data Service of the German National Library")
+
usecase = Usecase.create(:name => "Library Address Data")
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("DC Terms").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("Geonames").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("FOAF").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("hcard").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("vcard").id)
+
usecase = Usecase.create(:name => "Data BNF")
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("SKOS").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("FOAF").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("DC Terms").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("RDA").id)
+
usecase = Usecase.create(:name => "Collecting material related to courses at The Open University")
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("SKOS").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("FOAF").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("BIBO").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("DC Terms").id)
+ Usage.create(:description =>"",:usecase_id => usecase.id,:vocab_id => Vocab.find_by_name("W3C Media Ontology").id)
+
usecase = Usecase.create(:name => "Talis Prism 3")
usecase = Usecase.create(:name => "Pode")
usecase = Usecase.create(:name => "Recollection")
Oops, something went wrong.

0 comments on commit 88e17be

Please sign in to comment.