Larramendi, Azkoitiko Sermoia

From MLV
Revision as of 23:34, 14 November 2023 by DavidL (talk | contribs) (→‎SPARQL)



SPARQL

PREFIX mwb: <https://monumenta.wikibase.cloud/entity/>
PREFIX mdp: <https://monumenta.wikibase.cloud/prop/direct/>
PREFIX mp: <https://monumenta.wikibase.cloud/prop/>
PREFIX mps: <https://monumenta.wikibase.cloud/prop/statement/>
PREFIX mpq: <https://monumenta.wikibase.cloud/prop/qualifier/>
PREFIX mpr: <https://monumenta.wikibase.cloud/prop/reference/>
PREFIX mno: <https://monumenta.wikibase.cloud/prop/novalue/>

#title: Galdetzen du tokenak non dauden wikisourcen, eta zer lema-formei lotuta dauden

select ?token ?token_zbk ?token_forma ?wikisource ?lexeme_id (iri(concat('http://www.wikidata.org/entity/',?wd_qid)) as ?wikidata_lexeme) 
 ?lemma ?sense_id ?sense ?form_id ?forma  where {
 ?token mdp:P5 mwb:Q15 ;
        mdp:P148 ?token_zbk ;
        mdp:P147 ?token_forma ;
        mdp:P177 ?wikisource ;
  optional { ?token mp:P7 ?lemmanode . ?lemmanode mps:P7 ?lexeme_id. ?lexeme_id wikibase:lemma ?lemma .
            optional {?lexeme_id mdp:P1 ?wd_qid .}
            optional {?lemmanode mpq:P155 ?sense_id. ?sense_id skos:definition ?sense .}
            optional {?lemmanode mpq:P156 ?form_id. ?form_id ontolex:representation ?forma .}
           }
} order by xsd:integer(?token_zbk)

Try it!