Markus,

Thanks! Worked like a charm. I had brushed over SMWThingDescription  
because it looked like a purely abstract class. Should have noticed  
the return value of getQueryString() :-).

No, I'm not in SVN yet...been meaning to, but I keep getting busy with  
other stuff...plus my code is not very well documented at the moment  
anyway (and this is a generous description). Will let you know when  
I'm there.

-Matt


On Aug 27, 2008, at 3:08 PM, Markus Krötzsch wrote:

> On Mittwoch, 27. August 2008, Matt Williamson wrote:
>> Markus,
>>
>> Thanks for this! Maybe we'll get Semantic Layers in there one of  
>> these
>> days.
>
> I did not see you in MediaWiki SVN. Are your files somewhere else?  
> Otherwise I
> see no issues (unless your classes start with "SMW" or so ;-).
>
>>
>> Speaking of which, a quick question...I'm trying to make a query with
>> the API to select all pages that have some value for a property (that
>> have the property defined), and how to do it isn't jumping out at me.
>> I've seen SMWStore::getAllPropertySubjects(), but I need to do it  
>> with
>> the regular query methods, because I'm adding it to a disjunction  
>> with
>> another criteria (trying to get all pages either in the Layer
>> namespace or that have the Layer Class property defined).
>>
>> For example this is what I've tried most recently...
>>
>>              $descLayerNS = new SMWNamespaceDescription(SL_NS_LAYER);
>>
>>              $ttlLayerClass = Title::makeTitle(SMW_NS_PROPERTY,
>> wfMsg('sl_property_layerclass'));
>>              $descLayerClass =  new SMWSomeProperty($ttlLayerClass, new
>> SMWValueDescription(SMWDataValueFactory::newTypeIDValue('_wpg',  
>> '+')));
>
> "+" is just the syntax. What you need there internally is just an
> SMWThingDescription (which just describes "anything"). So you use:
>
>               $descLayerClass =  new SMWSomeProperty($ttlLayerClass, new
> SMWThingDescription());
>
> I see now that the documentation in the respective file is not quite
> up-to-date, still speaking of "attributes". Maybe we could also  
> simplify the
> API in some places (such as simply making the subdescription  
> optional for
> SMWSomeProperty).
>
> Regards,
>
> Markus
>
>>
>>              $descLayers = new SMWDisjunction(array($descLayerNS,
>> $descLayerClass));
>>
>> ...even though I figured that wouldn't work, but I've tried some  
>> other
>> more intelligent things before and couldn't get them to work
>> either :-). Probably something simple...can you help me here?
>>
>> Thanks!
>>
>> -Matt
>>
>> On Aug 27, 2008, at 9:38 AM, Markus Krötzsch wrote:
>>> Hi,
>>>
>>> SMW now provides an online API documentation to support developers:
>>>
>>> http://semantic-mediawiki.org/doc/
>>>
>>> The documentation encompasses SMW, Semantic Forms, Semantic  
>>> Drilldown,
>>> Semantic Calendar, and Semantic Google maps. It is rebuild every day
>>> from the
>>> current contents of SVN.
>>>
>>> Further SMW extensions can be added to this collection, provided
>>> that they use
>>> a suitable naming scheme for their identifiers (the above extensions
>>> use
>>> prefixes SMW, SF, SD, SC, SGM throughout their code). Of course, we
>>> should
>>> also consider improving the documentation e.g. by adding (or
>>> cleaning up)
>>> module information to distinguish extensions.
>>>
>>> Cheers,
>>>
>>> Markus
>>>
>>>
>>> --
>>> Markus Krötzsch
>>> Semantic MediaWiki    http://semantic-mediawiki.org
>>> http://korrekt.org    [EMAIL PROTECTED]
>>> -------------------------------------------------------------------------
>>> 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-devel mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
>
>
>
> -- 
> Markus Krötzsch
> Semantic MediaWiki    http://semantic-mediawiki.org
> http://korrekt.org    [EMAIL PROTECTED]


-------------------------------------------------------------------------
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-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to