Semantic search "OR" RuntimeException

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Semantic search "OR" RuntimeException

mog404
The following Semantic search fails:

  [[Owner::~*Rodger*]] OR [[POC::~*Rodger*]], as does the simpler:
  [[Owner::Rodger]] OR [[POC::Rodger]]

Both generate:
Exception encountered, of type "RuntimeException"

I have tried replacing the OR with || and get the same error. Queries work if they don't require the OR.

BACKGROUND
I recently transferred from a TurnKeyLinux MediaWiki on AWS to an Amazon T2 instance, also on AWS. Installed everything to the latest versions (I think). An existing query form generated  the RuntimeException. The Query template was as follows:
{{#ask:
[[Category:SitePrePlans]] [[StreetAddress::~*{{ucfirst:{{{Address|}}}}}*]] [[Owner::~*{{ucfirst:{{{Person|}}}}}*]] OR
[[Category:SitePrePlans]] [[StreetAddress::~*{{ucfirst:{{{Address|}}}}}*]] [[POC::~*{{ucfirst:{{{Person|}}}}}*]] 
|?Owner|?POC|?PhoneNo|?Acres|?Subdivision}}


I replicated this behavior with a simple case in Special:Ask as shown above.

Versions on the failing query are newer (MediaWiki 1.25 vs. 1.23, SMW 2.2.2 vs. 2.1.1, Semantic Forms 3.3.1 vs. 3.2, etc.)

Thanks,
Rodger
Reply | Threaded
Open this post in threaded view
|

Re: Semantic search "OR" RuntimeException

James HK
Hi,

>   *[[Owner::~*Rodger*]] OR [[POC::~*Rodger*]]*, as does the simpler:
>   *[[Owner::Rodger]] OR [[POC::Rodger]]*

Doing something like: {{#ask: [[Owner::Rodger]] OR [[POC::Rodger]] }}
for a page that contains: [[Owner::Rodger]] OR [[POC::Rodger]] works
for me (tested using MW 1.24.2 / SMW 2.2.2 (f1aef42).

Furthermore, query expressions containing OR / || are tested at [0].

> Both generate:
> /*Exception encountered, of type "RuntimeException"*/

The information is not sufficient to make a suggestion on what is
causing the RuntimeException. Please have a look at [1] to create a
more meaningful error report.

[0] https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/master/tests/phpunit/Integration/Query/Fixtures/query-09-01-disjunction-conjunction-19-1056.json#L268-L313

[1] https://semantic-mediawiki.org/wiki/Help:Identifying_bugs

Cheers

On 8/5/15, mog404 <[hidden email]> wrote:

> The following Semantic search fails:
>
>   *[[Owner::~*Rodger*]] OR [[POC::~*Rodger*]]*, as does the simpler:
>   *[[Owner::Rodger]] OR [[POC::Rodger]]*
>
> Both generate:
> /*Exception encountered, of type "RuntimeException"*/
>
> I have tried replacing the */OR/* with */||/* and get the same error.
> Queries work if they don't require the OR.
>
> BACKGROUND
> I recently transferred from a TurnKeyLinux MediaWiki on AWS to an Amazon T2
> instance, also on AWS. Installed everything to the latest versions (I
> think). An existing /query form/ generated  the RuntimeException. The Query
> template was as follows:
>
>
>
> I replicated this behavior with a simple case in Special:Ask as shown above.
>
>
> Versions on the failing query are newer (MediaWiki 1.25 vs. 1.23, SMW 2.2.2
> vs. 2.1.1, Semantic Forms 3.3.1 vs. 3.2, etc.)
>
> Thanks,
> Rodger
>
>
>
> --
> View this message in context:
> http://wikimedia.7.x6.nabble.com/Semantic-search-OR-RuntimeException-tp5051140.html
> Sent from the Semantic Mediawiki - User mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Semediawiki-user mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/semediawiki-user
>

------------------------------------------------------------------------------
_______________________________________________
Semediawiki-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Reply | Threaded
Open this post in threaded view
|

Re: Semantic search "OR" RuntimeException

mog404
Resolved. I had failed to grant privileges to the imported mySQL database, as I learned by turning on the debugging options.

Thanks for the help!
Rodger