Did you know ... Search Documentation:
Pack sparqlprog -- prolog/sparqlprog/search_util.pl
PublicShow source
 lmatch(+Pattern:atom, ?Object) is nondet
Uses swi-prolog rdf11 'like' matching:
  • case insensitive
  • '*' is wildcard
  • exact match unless wildcards specified

NOTE: this will NOT do a conversion to STR in SPARQL; e.g SELECT ?x WHERE {FILTER (regex(?v0,"^cell$","i")) . ?x http://www.w3.org/2000/01/rdf-schema#label ?v0}

 lsearch(+Pattern, ?Object, ?Label, +Flags:str, ?Graph) is nondet
search for objects with an rdfs:label matching Pattern

NOTE: this will do a conversion to STR in SPARQL; e.g SELECT ?x WHERE {?x http://www.w3.org/2000/01/rdf-schema#label ?v0 . FILTER (regex(STR(?v0),"^cell$","i"))}

 lsearch(+Pattern, ?Object, ?Pred, ?Label, +Flags:str) is nondet
search for objects with any property matching Pattern
 tsearch(+Pattern, ?Object, ?Label, +Flags:str, ?Graph) is nondet
term search: find objects with an rdfs:label or synonym-like property matching Pattern

Undocumented predicates

The following predicates are exported, but not or incorrectly documented.

 label_or_synonym_pred_hook(Arg1)
 psearch(Arg1, Arg2, Arg3, Arg4, Arg5)
 psearch(Arg1, Arg2, Arg3, Arg4)
 psearch(Arg1, Arg2, Arg3)
 tsearch(Arg1, Arg2, Arg3, Arg4, Arg5, Arg6)
 tsearch(Arg1, Arg2, Arg3, Arg4)
 tsearch(Arg1, Arg2, Arg3)
 tsearch(Arg1, Arg2)
 lsearch(Arg1, Arg2)
 lsearch(Arg1, Arg2, Arg3)
 lsearch(Arg1, Arg2, Arg3, Arg4)