<?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 foaf:  &lt;http://xmlns.com/foaf/0.1/&gt;
        PREFIX core:  &lt;http://vivoweb.org/ontology/core#&gt;
        PREFIX rdfs:  &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
        PREFIX obo:   &lt;http://purl.obolibrary.org/obo/&gt;

        SELECT DISTINCT ?grantOrContract
                        ?label

        WHERE {
            ?subject ?property ?grantOrContract .
            OPTIONAL {
                <precise-subquery>?subject ?property ?grantOrContract .</precise-subquery>
                ?grantOrContract a core:Grant .
                ?grantOrContract rdfs:label ?label .
            }
            OPTIONAL {
                <precise-subquery>?subject ?property ?grantOrContract .</precise-subquery>
                ?grantOrContract a core:Contract .
                ?grantOrContract rdfs:label ?label .
            }
        }  ORDER BY  ?label
  </query-select>

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