Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wildcards for page names #1652

Closed
s7eph4n opened this issue Jun 13, 2016 · 3 comments
Closed

Wildcards for page names #1652

s7eph4n opened this issue Jun 13, 2016 · 3 comments

Comments

@s7eph4n
Copy link
Contributor

s7eph4n commented Jun 13, 2016

I need to search page names using wildcards, e.g. something like [[File:Foo+]] or [[~File:Foo*.pdf]]. I could easily add a special property has page name of type Text or File to SemanticExtraSpecialProperties, but how hard would it be to directly add this ability to SMW?

@mwjames
Copy link
Contributor

mwjames commented Jun 13, 2016

I need to search page names using wildcards, e.g. something like [[File:Foo+]]

This would entail a string match (pages are internally handled as s_id/o_id) therefore we would need to match against a string representation which is currently done by comparing against the sortkey field which does not contain any namespace prefixes.

What about a conjunction such as [[File:+]] [[~Foo*]]?

but how hard would it be to directly add this ability directly to SMW?

The QueryParser would need to translate [[File:Foo+]] into something like [[File:+]] [[~Foo*]].

@s7eph4n
Copy link
Contributor Author

s7eph4n commented Jun 13, 2016

The number of namespaces is usually very limited, so the conjunction solution should not be a problem. (If I need to query more than one namespace I could easily put them in a subquery.)

mwjames added a commit that referenced this issue Sep 14, 2016
Support conjunctive query in connection with a NS, refs #1652
@mwjames
Copy link
Contributor

mwjames commented Sep 14, 2016

What about a conjunction such as [[File:+]] [[~Foo*]]?

Expected to be solved and addressed with #1847.

@mwjames mwjames closed this as completed Sep 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants