Sha256: 772602424b2adcceaecc5230665ffae5e2e6f5c207a614ede16514454d876e54

Contents?: true

Size: 887 Bytes

Versions: 5

Compression:

Stored size: 887 Bytes

Contents

- resource_class_name = resource.class.name.demodulize.humanize.downcase

%section#linked-data
  .primary
    %h3 SPARQL

    :markdown
      The data contained in this #{resource_class_name} is stored in a named graph, which can be used in SPARQL queries to restrict results to this #{resource_class_name}.
    = content_tag :code, resource.data_graph_uri, class: 'namedgraph click-to-select'

    - if resource.data_dump.present?
      %h3 Download
      %p
        = link_to resource.data_dump.to_s do
          %i.icon-download
          Complete dump of all triples in this #{resource_class_name}.
        (zipped n-triples file)

  .secondary
    %a.button(href="/sparql") Run a SPARQL Query
    %h3 API Docs
    %p Full details of how to programatically access the data in this site can be found in the #{ link_to 'Developer Documentation', publish_my_data.developer_docs_path }.

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
publish_my_data-1.0.4 app/views/publish_my_data/resources/_sparql_section.html.haml
publish_my_data-1.0.3 app/views/publish_my_data/resources/_sparql_section.html.haml
publish_my_data-1.0.2 app/views/publish_my_data/resources/_sparql_section.html.haml
publish_my_data-1.0.1 app/views/publish_my_data/resources/_sparql_section.html.haml
publish_my_data-1.0.0 app/views/publish_my_data/resources/_sparql_section.html.haml