Commit 3ea8de12 authored by Matija Obreza's avatar Matija Obreza
Browse files

Merged in lmatteis/genesys2-server (pull request #1)

Describing accessions using vocabularies from DarwinCore
parents 31638a0e 2b8e025a
<%@ page contentType="text/turtle;charset=UTF-8" pageEncoding="UTF-8" language="java" session="false"%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%><%@ taglib prefix="security" uri="http://www.springframework.org/security/tags"%><%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%><%@ taglib
prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
# This is a test.
# TODO FIXME This needs work.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix dc: <http: //purl.org/dc/elements/1.1/> .
@prefix ex: <http: //example.org/stuff/1.0/> .
@prefix wgs84_pos: <http://www.w3.org/2003/01/geo/wgs84_pos#> .
# using DarwinCore
@prefix dwc: <http://rs.tdwg.org/dwc/terms/> .
# using https://code.google.com/p/darwincore-germplasm/
# as vocabulary for germplasm stuff
@prefix germplasm: <http://purl.org/germplasm/germplasmTerm#> .
@prefix germplasmType: <http://purl.org/germplasm/germplasmType#> .
<http://www.genesys-pgr.org/acn/id/${accession.id}>
dc:title "${accession.accessionName}" ;
ex:editor [
ex:fullname "${accession.accessionName}";
] .
a germplasm:GermplasmAccession;
germplasm:germplasmID "<c:out value="${accession.id}" />";
germplasm:germplasmIdentifier "<c:out value="${accession.accessionName}" />";
germplasmType:wiewsInstituteID "<c:out value="${accession.instituteCode}" />";
dwc:instituteId "<c:out value="${accession.holdingInstitute}" />";
dwc:countryCode "<c:out value="${accession.institute.country.code3}" />";
dwc:genus "<c:out value="${accession.taxonomy.genus}" />";
# using http://rs.tdwg.org/dwc/terms/specificEpithet but could also use "subgenus"
dwc:specificEpithet "<c:out value="${accession.taxonomy.species}" />";
germplasm:biologicalStatus "<c:out value="${accession.sampleStatus}" />";
<c:if test="${accessionEnvironment ne null}">
# found here: http://www.geonames.org/ontology/documentation.html
<c:if test="${accessionEnvironment.latitude ne null}">
wgs84_pos:lat "<c:out value="${accessionEnvironment.latitude}" />";
</c:if>
<c:if test="${accessionEnvironment.longitude ne null}">
wgs84_pos:long "<c:out value="${accessionEnvironment.longitude}" />";
</c:if>
</c:if>
.
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment