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

<!-- 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 foaf:  &lt;http://xmlns.com/foaf/0.1/&gt;
        PREFIX vitro: &lt;http://vitro.mannlib.cornell.edu/ns/vitro/0.7#&gt;
        PREFIX vcard:  &lt;http://www.w3.org/2006/vcard/ns#&gt;
        PREFIX fn:   &lt;http://www.w3.org/2005/xpath-functions#&gt;
        PREFIX tmp: &lt;http://localhost/display#&gt;

        SELECT DISTINCT
            ?authorship
            ?name
            ?addressNumber
            ?person
        WHERE {
            ?subject ?property ?authorship .
            ?authorship rdfs:label ?name .
             OPTIONAL { ?authorship core:rank ?rank }
            OPTIONAL { ?authorship tmp:addr ?addressNumber }
        <critical-data-required>
            FILTER ( bound(?authorship) )
        </critical-data-required>
        } ORDER BY ?rank (fn:lower-case(?name))
    </query-select>

    <query-construct>
        PREFIX core: &lt;http://vivoweb.org/ontology/core#&gt;
        PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
        PREFIX foaf:  &lt;http://xmlns.com/foaf/0.1/&gt;
        PREFIX vitro: &lt;http://vitro.mannlib.cornell.edu/ns/vitro/0.7#&gt;
        PREFIX vcard:  &lt;http://www.w3.org/2006/vcard/ns#&gt;
        PREFIX wos: &lt;http://webofscience.com/ontology/wos#&gt;
        PREFIX tmp: &lt;http://localhost/display#&gt;

        CONSTRUCT {
            ?subject ?property ?authorship .

            ?authorship a core:Authorship .
            ?authorship core:rank ?rank .
            ?authorship rdfs:label ?name .
            ?authorship tmp:addr ?addrs .

        } WHERE {
            {
                ?subject ?property ?authorship .
                ?authorship a core:Authorship
            } UNION {
                ?subject ?property ?authorship .
                ?authorship a core:Authorship .
                ?authorship core:rank ?rank .
                ?authorship rdfs:label ?name .
            } UNION {
                ?subject ?property ?authorship .
                ?authorship a core:Authorship .
                {
                    select ?authorship (group_concat(distinct ?number ; separator = ", ") as ?addrs)
                    where {
                        ?subject ?property ?authorship .
                        ?authorship a core:Authorship .
                        ?authorship core:relates ?address .
                        ?address a wos:Address .
                        ?address wos:sequenceNumber ?number.
                    }
                    GROUP BY ?authorship
                }
            }
        }
    </query-construct>

    <template>propStatement-informationResourceInAuthorship.ftl</template>
</list-view-config>
<commit_msg>Sort addresses.<commit_after><?xml version="1.0" encoding="ISO-8859-1"?>
<!-- $This file is distributed under the terms of the license in /doc/license.txt$ -->

<!-- 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 foaf:  &lt;http://xmlns.com/foaf/0.1/&gt;
        PREFIX vitro: &lt;http://vitro.mannlib.cornell.edu/ns/vitro/0.7#&gt;
        PREFIX vcard:  &lt;http://www.w3.org/2006/vcard/ns#&gt;
        PREFIX fn:   &lt;http://www.w3.org/2005/xpath-functions#&gt;
        PREFIX tmp: &lt;http://localhost/display#&gt;

        SELECT DISTINCT
            ?authorship
            ?name
            ?addressNumber
            ?person
        WHERE {
            ?subject ?property ?authorship .
            ?authorship rdfs:label ?name .
             OPTIONAL { ?authorship core:rank ?rank }
            OPTIONAL { ?authorship tmp:addr ?addressNumber }
        <critical-data-required>
            FILTER ( bound(?authorship) )
        </critical-data-required>
        } ORDER BY ?rank (fn:lower-case(?name))
    </query-select>

    <query-construct>
        PREFIX core: &lt;http://vivoweb.org/ontology/core#&gt;
        PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
        PREFIX foaf:  &lt;http://xmlns.com/foaf/0.1/&gt;
        PREFIX vitro: &lt;http://vitro.mannlib.cornell.edu/ns/vitro/0.7#&gt;
        PREFIX vcard:  &lt;http://www.w3.org/2006/vcard/ns#&gt;
        PREFIX wos: &lt;http://webofscience.com/ontology/wos#&gt;
        PREFIX tmp: &lt;http://localhost/display#&gt;

        CONSTRUCT {
            ?subject ?property ?authorship .

            ?authorship a core:Authorship .
            ?authorship core:rank ?rank .
            ?authorship rdfs:label ?name .
            ?authorship tmp:addr ?addrs .

        } WHERE {
            {
                ?subject ?property ?authorship .
                ?authorship a core:Authorship
            } UNION {
                ?subject ?property ?authorship .
                ?authorship a core:Authorship .
                ?authorship core:rank ?rank .
                ?authorship rdfs:label ?name .
            } UNION {
                ?subject ?property ?authorship .
                ?authorship a core:Authorship .
                {
                    select ?authorship (group_concat(distinct ?number ; separator = ", ") as ?addrs)
                    where {
                        ?subject ?property ?authorship .
                        ?authorship a core:Authorship .
                        ?authorship core:relates ?address .
                        ?address a wos:Address .
                        ?address wos:sequenceNumber ?num
                        (BIND(xsd:integer(?num) as ?number)
                    }
                    ORDER BY ?number
                    GROUP BY ?authorship
                }
            }
        }
    </query-construct>

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

{'fraction_non_alphanumeric': 0.129465007273315, 'fraction_numerical': 0.014223371585582673, 'mean_word_length': 1.6264855687606112, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 2, '>': 29, 'https://': 2, 'lorem ipsum': 0, 'www.': 10, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5836412', 'n_tokens_mistral': 2040, 'n_tokens_neox': 1840, 'n_words': 339}