Sha256: 51d5b55f94ae3b82fc2c75f4879ac69f38b4716128092768f9c04e361a92bc8f

Contents?: true

Size: 1.82 KB

Versions: 1

Compression:

Stored size: 1.82 KB

Contents

%section
	= fullwidth do
		= section_title("Linked Data", true)
		- case resource_class_name
			- when "dataset"
				%p
					This is a linked data dataset containing
					%strong
						- if (resource.size)
							= number_with_delimiter(resource.size)
					RDF triples about the topic, which can be queried using our <a href="/docs#ways-to-access-data">APIs</a> or <a  href="/sparql">SPARQL endpoint</a>.
				%p{style:"margin-bottom:24px;"}
					RDF triples in datasets are updated atomically, and share descriptive metadata.
			- when "ontology"
				%p
					An <strong><em>ontology</em></strong> is a set of <strong><em>classes</em></strong> and <strong><em>properties</em></strong> about a certain topic area. These can be used for resources' types and properties (predicates) respectively.</p>
			- when 'concept scheme'
				%p
					A <strong><em>concept scheme</em></strong> is a collection of <strong><em>concepts</em></strong> about a topic. A Concept scheme can act as a list of possible values for a certain property of a resource (i.e. possible objects for RDF triples).</p>

- if resource_class_name == "dataset" # TODO: downloads for ontologies
	= row do
		.pmd_box_half
			%h4 Named Graph
			- if resource.data_graph_uri
				%p
					Resources in this dataset are stored a named graph. This graph can be used in SPARQL queries to restrict results to this dataset.

				= content_tag :code, resource.data_graph_uri, class:'click_to_select block'

				%p
					For a live example of how to use this, #{link_to_sparql_tool_with_graph(resource.data_graph_uri)}.			
			- else
				%p
					No named graph is available.
		.pmd_box_half
			%h4 Download
			%p
				The complete dataset is also available for download:
			= link_to resource.data_dump.to_s, class:"btn icon-box-add type-a" do
				<span>N-Triples<small>(#{resource.size || "all"}  triples)</small></span>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
publish_my_data-1.3.25 app/views/publish_my_data/stripes/_linked_data.html.haml