PhiloBiblon / philobiblon-ui

PhiloBiblon UI
Creative Commons Attribution Share Alike 4.0 International
0 stars 0 forks source link

Searching UNI and ANA #124

Closed faulhaber closed 1 month ago

faulhaber commented 2 months ago

To test the problem of searching UNI and ANA, see: BETA texid 1029 (Alfonso X, Siete partidas) BETA texid 1029 (pb.cog) linked to BETA cnum 130 (pb.cog)

Update of issue#89

jmformenti commented 2 months ago

SPARQL query to get all cnum related to a given texid (in this example Q43297):

PREFIX wd:<https://philobiblon.cog.berkeley.edu/entity/>
PREFIX wdt:<https://philobiblon.cog.berkeley.edu/prop/direct/>

SELECT ?item_cnum {
  ?item_cnum wdt:P476 ?item_cnum_pbid .
  FILTER regex(?item_cnum_pbid, '(.*) cnum ') .
  ?item_cnum wdt:P590 wd:Q43297 .
}
faulhaber commented 2 months ago

That's what I wanted! I tested it on a couple of other Qid as well. The next step is to figure out how to show the texid in PBUI and then have some way of showing the related CNUMs in some sort of a popup. This would presumably be under Advanced Searches, with a search field called "Textual witnesses", "Testimonios textuales",'Testimonis textuals", etc.

jmformenti commented 1 month ago

Already implemented in #142 and #73