@@ -606,6 +606,22 @@ <h1>SPARQL Query</h1>
606606 < span class ="ex-label "> All Named Graphs</ span >
607607 List all graphs with triple counts
608608 </ button >
609+ < button class ="example-btn " onclick ="loadExample('persons') ">
610+ < span class ="ex-label "> Person Entities</ span >
611+ Browse people with their senses and Wikidata IDs
612+ </ button >
613+ < button class ="example-btn " onclick ="loadExample('orgs') ">
614+ < span class ="ex-label "> Organization Entities</ span >
615+ Browse organizations with their senses and Wikidata IDs
616+ </ button >
617+ < button class ="example-btn " onclick ="loadExample('gpes') ">
618+ < span class ="ex-label "> Geopolitical Entities</ span >
619+ Browse GPEs with their senses and Wikidata IDs
620+ </ button >
621+ < button class ="example-btn " onclick ="loadExample('products') ">
622+ < span class ="ex-label "> Product Entities</ span >
623+ Browse products with their senses and Wikidata IDs
624+ </ button >
609625 </ div >
610626
611627 < div class ="results-section ">
@@ -688,7 +704,55 @@ <h1>SPARQL Query</h1>
688704 GRAPH ?graph { ?s ?p ?o }
689705}
690706GROUP BY ?graph
691- ORDER BY DESC(?triples)`
707+ ORDER BY DESC(?triples)` ,
708+ persons : `# Browse Person entries → senses → Wikidata IDs
709+ SELECT ?label ?senseLabel ?wikidataID
710+ WHERE {
711+ GRAPH <${ GRAPH_URI } > {
712+ ?entry a <${ ONT_NS } Person_Entry> ;
713+ rdfs:label ?label ;
714+ <${ ONT_NS } sense> ?sense .
715+ ?sense rdfs:label ?senseLabel .
716+ OPTIONAL { ?sense <${ ONT_NS } identifier> ?wikidataID }
717+ }
718+ }
719+ ORDER BY ?label` ,
720+ orgs : `# Browse Organization entries → senses → Wikidata IDs
721+ SELECT ?label ?senseLabel ?wikidataID
722+ WHERE {
723+ GRAPH <${ GRAPH_URI } > {
724+ ?entry a <${ ONT_NS } Organization_Entry> ;
725+ rdfs:label ?label ;
726+ <${ ONT_NS } sense> ?sense .
727+ ?sense rdfs:label ?senseLabel .
728+ OPTIONAL { ?sense <${ ONT_NS } identifier> ?wikidataID }
729+ }
730+ }
731+ ORDER BY ?label` ,
732+ gpes : `# Browse Geopolitical Entity entries → senses → Wikidata IDs
733+ SELECT ?label ?senseLabel ?wikidataID
734+ WHERE {
735+ GRAPH <${ GRAPH_URI } > {
736+ ?entry a <${ ONT_NS } Geopolitical_Entry> ;
737+ rdfs:label ?label ;
738+ <${ ONT_NS } sense> ?sense .
739+ ?sense rdfs:label ?senseLabel .
740+ OPTIONAL { ?sense <${ ONT_NS } identifier> ?wikidataID }
741+ }
742+ }
743+ ORDER BY ?label` ,
744+ products : `# Browse Product entries → senses → Wikidata IDs
745+ SELECT ?label ?senseLabel ?wikidataID
746+ WHERE {
747+ GRAPH <${ GRAPH_URI } > {
748+ ?entry a <${ ONT_NS } Product_Entry> ;
749+ rdfs:label ?label ;
750+ <${ ONT_NS } sense> ?sense .
751+ ?sense rdfs:label ?senseLabel .
752+ OPTIONAL { ?sense <${ ONT_NS } identifier> ?wikidataID }
753+ }
754+ }
755+ ORDER BY ?label`
692756 } ;
693757}
694758
0 commit comments