• # SPARQL tout rouillé

    Posté par (site web personnel, Mastodon) . En réponse au journal Le dictionnaire des francophones : un dictionnaire francophone structuré libre. Évalué à 4.

    Merci pour ce lien, j'adore.

    Par contre, ça m'a fait voir à quel point mon SPARQL est tout rouillé :D

    Bon, j'arrive quand même à extraire les mots à connotation péjorative du Burkina Faso (oui, je suis un grand gamin) :D

    PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
    PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
    PREFIX ddf: <http://data.dictionnairedesfrancophones.org/ontology/ddf#>
    PREFIX lexicog: <http://www.w3.org/ns/lemon/lexicog#>
    PREFIX lexinfo: <http://www.lexinfo.net/ontology/2.0/lexinfo#>
    PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
    SELECT ?mot ?usage
    WHERE {
     ?entry a lexicog:Entry .
     ?entry lexicog:describes ?lentry .
     ?lentry ontolex:canonicalForm ?form.
     ?form ontolex:writtenRep ?mot.
     ?form ddf:formHasLocalisation <https://www.geonames.org/2361809>.
     ?lentry ontolex:sense ?sub.
     ?sub ddf:hasConnotation <http://data.dictionnairedesfrancophones.org/authority/connotation/pejorativeConnotation> .
     ?sub lexicog:usageExample/rdf:value ?usage.
    } LIMIT 100
    

    D'ailleurs, au passage, je n'ai rien trouvé pour la France, c'est limité à la Francophonie hors hexagone ou je suis vraiment à la ramasse ?