<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- $This file is distributed under the terms of the license in LICENSE$ -->

<!-- See guidelines at https://wiki.duraspace.org/x/eYXVAw -->

<list-view-config>
    <query-select>
        PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
        PREFIX core: &lt;http://vivoweb.org/ontology/core#&gt;
        PREFIX vitro: &lt;http://vitro.mannlib.cornell.edu/ns/vitro/0.7#&gt;

        SELECT DISTINCT ?awardedDegree
                        ?degree
                        ?degreeName
                        ?degreeAbbr
            WHERE {
                ?subject ?property ?awardedDegree .
                ?awardedDegree a core:AwardedDegree .
                ?awardedDegree core:relates ?degree .
                ?degree rdfs:label ?degreeName .

                OPTIONAL {
                    <precise-subquery>?subject ?property ?awardedDegree .
                    ?awardedDegree a core:AwardedDegree .
                    ?awardedDegree core:relates ?degree .</precise-subquery>
                    ?degree a core:AcademicDegree .
                    ?degree core:abbreviation ?degreeAbbr .
                }
            }
    </query-select>

    <template>propStatement-degreeEarned.ftl</template>
</list-view-config>
