Sha256: ffee6553e64b51f1fc40ad8bbb6a3373c7f64006a0fda7b36a01c9f87a0552df

Contents?: true

Size: 1008 Bytes

Versions: 3

Compression:

Stored size: 1008 Bytes

Contents

<h1>Resources</h1>

<!-- Filter info -->

<% if @type_filter %>
  Of type:
  <% if @type %>
    <%= link_to @type.label || @type.uri, resource_path_from_uri(@type.uri) %>
  <% else %>
    <%= link_to @type_filter, resource_path_from_uri(@type_filter) %>
  <% end %>
  <br/>
<% end %>

<% if @dataset_filter %>
  In dataset:
  <% if @dataset %>
    <%= link_to @dataset.title, @dataset %>
  <% else %>
    <%= link_to @dataset_filter, resource_path_from_uri(@dataset_filter) %>
  <% end %>
  <br/>
<% end %>

<br/>

<% @resources.each do |r| %>
  <%= link_to (r.label || r.uri), resource_path_from_uri(r.uri) %><br/>
<% end %>

<%= paginate @resources %>

<br/>

Get this list as:
<%= link_to 'N-triples', :format => 'nt', :page => @page, :per_page => @per_page %>
<%= link_to 'Turtle', :format => 'ttl', :page => @page, :per_page => @per_page %>
<%= link_to 'RDF/XML', :format => 'rdf',:page => @page, :per_page => @per_page %>
<%= link_to 'JSON', :format => 'json', :page => @page, :per_page => @per_page %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
publish_my_data-0.0.3 app/views/publish_my_data/resources/index.html.erb
publish_my_data-0.0.2 app/views/publish_my_data/resources/index.html.erb
publish_my_data-0.0.1 app/views/publish_my_data/resources/index.html.erb