<?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 vcard: &lt;http://www.w3.org/2006/vcard/ns#&gt;
        PREFIX core: &lt;http://vivoweb.org/ontology/core#&gt;

        SELECT DISTINCT ?vcard ?fullName
                        ?firstName
                        ?middleName
                        ?lastName
                        ?suffix
                        ?prefix
        WHERE {
            ?subject ?property ?vcard .
            ?vcard vcard:hasName ?fullName .
            OPTIONAL {
                <precise-subquery>?subject ?property ?vcard .
                ?vcard vcard:hasName ?fullName .</precise-subquery>
                ?fullName vcard:givenName ?firstName .
            }
            OPTIONAL {
                <precise-subquery>?subject ?property ?vcard .
                ?vcard vcard:hasName ?fullName .</precise-subquery>
                ?fullName core:middleName ?middleName .
            }
            OPTIONAL {
                <precise-subquery>?subject ?property ?vcard .
                ?vcard vcard:hasName ?fullName .</precise-subquery>
                ?fullName vcard:familyName ?lastName .
            }
            OPTIONAL {
                <precise-subquery>?subject ?property ?vcard .
                ?vcard vcard:hasName ?fullName .</precise-subquery>
                ?fullName vcard:honorificSuffix ?suffix .
            }
            OPTIONAL {
                <precise-subquery>?subject ?property ?vcard .
                ?vcard vcard:hasName ?fullName .</precise-subquery>
                ?fullName vcard:honorificPrefix ?prefix .
            }
        }
    </query-select>

    <template>propStatement-fullName.ftl</template>
    <postprocessor>edu.cornell.mannlib.vitro.webapp.web.templatemodels.individual.MaintainDuplicatesObjectPropertyDataPostProcessor</postprocessor>
</list-view-config>
