Ah yes, thanks for the catch. That one's entirely my fault; sorry about that. I just fixed the instructions on the page.

-Yaron


On Thu, Nov 20, 2008 at 11:15 PM, Daniel Friesen <dan_the_man@telus.net> wrote:
require_once('$IP/extensions/SemanticCompoundQueries.php'); // Will not work the 'single quotes' prevent $IP from being expanded
require_once('extensions/SemanticCompoundQueries.php'); // Will sorta work... Though it ends up going through the include path, so it doesn't perform as well as it could and there are small security concerns
require_once("$IP/extensions/SemanticCompoundQueries.php"); // The recommended way to include, the "double quotes" allow the $IP to be expanded.

The issue was the single quotes, not the $IP.

~Daniel Friesen (Dantman, Nadir-Seen-Fire)
~Profile/Portfolio: http://nadir-seen-fire.com
-The Nadir-Point Group (http://nadir-point.com)
--It's Wiki-Tools subgroup (http://wiki-tools.com)
--The ElectronicMe project (http://electronic-me.org)
-Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG)
--Animepedia (http://anime.wikia.com)
--Narutopedia (http://naruto.wikia.com)



Yaron Koren wrote:
> $IP is a variable that should be set at the top of your LocalSettings.php
> file; but in any case, if you got it working, that's great.
>
> Your other question, about doing joins, might belong in a separate thread,
> but if I understand the question, this section might be helpful:
>
> http://www.semantic-mediawiki.org/wiki/Help:Selecting_pages#Subqueries_and_property_chains
>
> -Yaron
>
>
> On Thu, Nov 20, 2008 at 4:46 PM, Laurent Alquier <laurent@alquier.org>wrote:
>
>
>> Actually,, I meant this one :
>>
>> require_once('$IP/extensions/SemanticCompoundQueries.php');
>>
>> It did not work for me as is. I had to add this line to my settings file
>> instead :
>>
>> require_once('extensions/SemanticCompoundQueries.php');
>>
>> - Laurent
>>
>> ------------------------------
>> *From*: "Charles Epaillard" <charles.epaillard@gmail.com>
>> *Sent*: Thursday, November 20, 2008 7:58 AM
>> *To*: semediawiki-user@lists.sourceforge.net
>> *Subject*: Re: [Semediawiki-user] New extension: Semantic Compound Queries
>>
>>
>> Thanks Yaron as well.I think the line Laurent is speaking about is
>>
>> require_once('extensions/SemanticMediaWiki/includes/storage/SMW_QueryResult.php');
>> Regards,
>> Charles
>>
>> On Thu, Nov 20, 2008 at 7:01 PM, Laurent Alquier <laurent@alquier.org>wrote:
>>
>>
>>> Thanks Yaron !
>>>
>>> The extension is working great so far (although I ran into a few issues
>>> with the syntax of the 'require_once' line for my setup, but I got it to
>>> run).
>>>
>>> I have a related question - is anything planned for linked queries ?
>>>
>>> That would be the equivalent of joins in SQL - or feeding the result of
>>> one query into another one.
>>>
>>> Example: I have Cities located in Countries, and Companies located in
>>> Cities.
>>> The query I would like to see is : Ask for Companies in a particular
>>> Country.
>>>
>>> - Laurent
>>>
>>> ------------------------------
>>> *From*: "Yaron Koren" <yaron57@gmail.com>
>>> *Sent*: Thursday, November 20, 2008 3:45 AM
>>> *To*: zehetner@molgen.mpg.de, Temlakos <temlakos-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
>>> *Subject*: Re: [Semediawiki-user] New extension: Semantic Compound
>>> Queries
>>>
>>>
>>> Gu - Thanks; I never tested it with multi-value properties - hopefully I
>>> can try it out at some point and see what the problem is.
>>>
>>> Temlakos - it's odd that the code causes regular #ask queries to not
>>> work... my guess is that it's due to the hook processing, which is somehow
>>> failing in MediaWiki 1.12 - I've only tested it in MW 1.13 and 1.14.
>>> Unfortunately I can't think of a solution, short of waiting to see if other
>>> people have the same problem in MW 1.12 or earlier and are able to debug it.
>>>
>>> -Yaron
>>>
>>>
>>> -------------------------------------------------------------------------
>>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>>> challenge
>>> Build the coolest Linux based applications with Moblin SDK & win great
>>> prizes
>>> Grand prize is a trip for two to an Open Source event anywhere in the
>>> world
>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>> _______________________________________________
>>> Semediawiki-user mailing list
>>> Semediawiki-user@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/semediawiki-user
>>>
>>>
>>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win great
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Semediawiki-user mailing list
>> Semediawiki-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/semediawiki-user
>>
>>
>>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Semediawiki-user mailing list
Semediawiki-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-user