Skip to content

Commit

Permalink
Merge pull request #24 from UKGovLD/5-ror-format
Browse files Browse the repository at this point in the history
ROR Format
  • Loading branch information
simonoakesepimorphics authored Dec 8, 2020
2 parents d4fdd3f + b5f09be commit 4e3f97b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ldregistry/boot/structure/metadata.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<structure> a reg:Register;
rdfs:label "Structure"@en;
dct:description "Code lists used to aid organizing and presenting the Environment registry contents."@en;
dct:description "Code lists used to aid organizing and presenting the registry contents."@en;
reg:containedItemClass reg:Register;
reg:owner er-org:department-for-environment-food-rural-affairs ;
reg:category er-cat:System;
Expand Down
15 changes: 14 additions & 1 deletion ldregistry/boot/system/prefixes/prefixes-register.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix dcat: <http://www.w3.org/ns/dcat#>
@prefix dbo: <http://dbpedia.org/ontology/> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
Expand Down Expand Up @@ -382,6 +383,18 @@ odrs: a owl:Ontology;
vann:preferredNamespaceUri "http://environment.data.gov.uk/registry/structure/ui/";
.

<_dcat> a reg:RegisterItem;
reg:status reg:statusStable ;
reg:definition [ reg:entity dcat: ]
.

<http://www.w3.org/ns/dcat#> a owl:Ontology;
rdfs:label "dcat"@en;
dct:description "Data Catalog Vocabulary"@en;
vann:preferredNamespacePrefix "dcat";
vann:preferredNamespaceUri "http://www.w3.org/ns/dcat#" ;
.

<_dbo> a reg:RegisterItem;
rdfs:label "dbo"@en;
reg:itemClass owl:Ontology;
Expand All @@ -394,4 +407,4 @@ dbo: a owl:Ontology;
dct:description "dbo (DBpedia Ontology) prefix registration."@en;
vann:preferredNamespacePrefix "dbo";
vann:preferredNamespaceUri "http://dbpedia.org/ontology/";
.
.
9 changes: 9 additions & 0 deletions ldregistry/templates/main/_md-panel-downloads.vm
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
## Render the table of download options for an item
#set($href = "#if($versionNumber)#linkhref($item):$versionNumber#else#linkhref($entity)#end")
<h3 class="text-center">Download formats available</h3>
<table class="table table-condensed">
<tbody>

#set($href = "#if($versionNumber)#linkhrefInt($item):$versionNumber#else#linkhrefInt($entity)#end")
<h3 class="text-center">$msg['registerItem.download.format.heading']</h3>
Expand Down Expand Up @@ -28,6 +32,11 @@
<tr>
#downloadFormat("CSV", "csv")
</tr>
#if($register)
<tr>
<td>ROR</td><td><a href="$href?_format=ror&status=$visibleStatus">plain</a></td><td></td>
</tr>
#end
#if(!$versionNumber)
<tr>
<td>$msg['registerItem.download.export.label']</td>
Expand Down

0 comments on commit 4e3f97b

Please sign in to comment.