• [^] # Re: 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.

    J'avais oublié les définitions :)

    PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
    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 ?def ?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 skos:definition ?def.
     ?sub lexicog:usageExample/rdf:value ?usage.
    } LIMIT 100