@prefix : <http://vitro.mannlib.cornell.edu/ns/vitro/ApplicationSetup#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

:documentModifier_multilingual_label
    a   <java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.SelectQueryI18nDocumentModifier> ,
            <java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.DocumentModifier> ;
    rdfs:label "multilingual label document modifier" ;
    :hasTargetSuffix "_label_display" ;
    :hasSelectQuery """
        PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
        SELECT (MIN(?label) AS ?singleLabel ) WHERE {
            ?uri rdfs:label ?label .
            BIND (LANG(?label) as ?lang )
        } GROUP BY ?lang ORDER BY ?lang
    """ .
