OpenSemanticLab / osw-python

GNU Affero General Public License v3.0
3 stars 2 forks source link

add custom limit to get_entities_from_osw in osw.data.import_utility #43

Open MatPoppFHG opened 9 months ago

MatPoppFHG commented 9 months ago

example necessity: there can be (far) more than 1000 rooms/users/etc, but media wiki queries have a standard limit of 1000.

suggestion: entities = wtsite_obj.semantic_search( query=wt.SearchParam( query=f"[[HasType::Category:OSW{str(category_uuid).replace('-', '')}]]", limit=custom_limit, debug=debug, )