From 2b4102e75e5857e329fb19bcc4fe5e986465589e Mon Sep 17 00:00:00 2001 From: recalcitrantsupplant Date: Thu, 14 Nov 2024 23:28:46 +1000 Subject: [PATCH] remove commented code --- .../query_generation/search_fuseki_fts.py | 98 ------------------- 1 file changed, 98 deletions(-) diff --git a/prez/services/query_generation/search_fuseki_fts.py b/prez/services/query_generation/search_fuseki_fts.py index eb8fb420..40556652 100644 --- a/prez/services/query_generation/search_fuseki_fts.py +++ b/prez/services/query_generation/search_fuseki_fts.py @@ -257,104 +257,6 @@ def _generate_fts_triples_block(preds: list[str], sr_uri: Var = sr_uri) -> Tripl ) ) - # gpnt_or_triples_list.extend([TriplesBlock( - # triples=TriplesSameSubjectPath( - # content=( - # TriplesNodePath( - # coll_path_or_bnpl_path=CollectionPath( - # graphnodepath_list=[ - # GraphNodePath( - # varorterm_or_triplesnodepath=VarOrTerm( - # varorterm=sr_uri - # ) - # ), - # GraphNodePath( - # varorterm_or_triplesnodepath=VarOrTerm( - # varorterm=weight - # ) - # ), - # GraphNodePath( - # varorterm_or_triplesnodepath=VarOrTerm( - # varorterm=match - # ) - # ), - # GraphNodePath( - # varorterm_or_triplesnodepath=VarOrTerm( - # varorterm=g - # ) - # ), - # GraphNodePath( - # varorterm_or_triplesnodepath=VarOrTerm( - # varorterm=pred - # ) - # ), - # ] - # ) - # ), - # PropertyListPath( - # plpne=PropertyListPathNotEmpty( - # first_pair=( - # VerbPath( - # path=SG_Path( - # path_alternative=PathAlternative( - # sequence_paths=[ - # PathSequence( - # list_path_elt_or_inverse=[ - # PathEltOrInverse( - # path_elt=PathElt( - # path_primary=PathPrimary( - # value=text_query - # ) - # ) - # ) - # ] - # ) - # ] - # ) - # ) - # ), - # ObjectListPath( - # object_paths=[ - # ObjectPath( - # graph_node_path=GraphNodePath( - # varorterm_or_triplesnodepath=TriplesNodePath( - # coll_path_or_bnpl_path=CollectionPath( - # graphnodepath_list=[ - # GraphNodePath( - # varorterm_or_triplesnodepath=VarOrTerm( - # varorterm=GraphTerm( - # content=IRI( - # value=predicate - # ) - # ) - # ) - # ) - # for predicate in - # non_shacl_predicates - # ] - # + [ - # GraphNodePath( - # varorterm_or_triplesnodepath=VarOrTerm( - # varorterm=GraphTerm( - # content=RDFLiteral( - # value=term - # ) - # ) - # ) - # ) - # ] - # ) - # ) - # ) - # ) - # ] - # ), - # ) - # ) - # ), - # ) - # ) - # )]) where_clause = WhereClause( group_graph_pattern=GroupGraphPattern( content=SubSelect(