[VIVO-1367] Update AGROVOC URL
This commit is contained in:
parent
930507a694
commit
5ba226bde7
2 changed files with 38 additions and 30 deletions
|
@ -58,9 +58,9 @@ public class AgrovocService implements ExternalConceptService {
|
||||||
protected final String dbpedia_endpoint = " http://dbpedia.org/sparql";
|
protected final String dbpedia_endpoint = " http://dbpedia.org/sparql";
|
||||||
// URL to get all the information for a concept
|
// URL to get all the information for a concept
|
||||||
|
|
||||||
protected final String conceptSkosMosBase = "http://aims.fao.org/skosmos/rest/v1/";
|
protected final String conceptSkosMosBase = "http://artemide.art.uniroma2.it:8081/skosmos/rest/v1/";
|
||||||
protected final String conceptsSkosMosSearch = conceptSkosMosBase + "search?";
|
protected final String conceptsSkosMosSearch = conceptSkosMosBase + "search?";
|
||||||
protected final String conceptSkosMosURL = conceptSkosMosBase + "/agrovoc/data?";
|
protected final String conceptSkosMosURL = conceptSkosMosBase + "data?";
|
||||||
@Override
|
@Override
|
||||||
public List<Concept> getConcepts(String term) throws Exception {
|
public List<Concept> getConcepts(String term) throws Exception {
|
||||||
List<Concept> conceptList = new ArrayList<Concept>();
|
List<Concept> conceptList = new ArrayList<Concept>();
|
||||||
|
|
|
@ -42,7 +42,9 @@
|
||||||
</script>
|
</script>
|
||||||
<#if (existingConcepts?size > 0)>
|
<#if (existingConcepts?size > 0)>
|
||||||
<li class="conceptHeadings conceptsListContainer">
|
<li class="conceptHeadings conceptsListContainer">
|
||||||
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
<div class="column conceptLabelInfo">
|
<div class="column conceptLabelInfo">
|
||||||
<h4>Concept (Type)</h4>
|
<h4>Concept (Type)</h4>
|
||||||
</div>
|
</div>
|
||||||
|
@ -52,12 +54,16 @@
|
||||||
<div class="column conceptRemoval">
|
<div class="column conceptRemoval">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</#if>
|
</#if>
|
||||||
|
|
||||||
<#list existingConcepts as existingConcept>
|
<#list existingConcepts as existingConcept>
|
||||||
<li class="existingConcept conceptsListContainer">
|
<li class="existingConcept conceptsListContainer">
|
||||||
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
<div class="column conceptLabelInfo"> ${existingConcept.conceptLabel}
|
<div class="column conceptLabelInfo"> ${existingConcept.conceptLabel}
|
||||||
<#if existingConcept.conceptSemanticTypeLabel?has_content>
|
<#if existingConcept.conceptSemanticTypeLabel?has_content>
|
||||||
(${existingConcept.conceptSemanticTypeLabel})
|
(${existingConcept.conceptSemanticTypeLabel})
|
||||||
|
@ -76,6 +82,8 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
Loading…
Add table
Reference in a new issue