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
On Aug 27, 2008, at 3:08 PM, Markus Krötzsch wrote:
> On Mittwoch, 27. August 2008, Matt Williamson wrote:
>> Thanks for this! Maybe we'll get Semantic Layers in there one of
> 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
>> the regular query methods, because I'm adding it to a disjunction
>> 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,
>> $descLayerClass = new SMWSomeProperty($ttlLayerClass, new
> "+" 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
> 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
>> $descLayers = new SMWDisjunction(array($descLayerNS,
>> ...even though I figured that wouldn't work, but I've tried some
>> more intelligent things before and couldn't get them to work
>> either :-). Probably something simple...can you help me here?
>> On Aug 27, 2008, at 9:38 AM, Markus Krötzsch wrote:
>>> SMW now provides an online API documentation to support developers:
>>> The documentation encompasses SMW, Semantic Forms, Semantic
>>> 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
>>> prefixes SMW, SF, SD, SC, SGM throughout their code). Of course, we
>>> also consider improving the documentation e.g. by adding (or
>>> cleaning up)
>>> module information to distinguish extensions.
>>> Markus Krötzsch
>>> Semantic MediaWiki http://semantic-mediawiki.org
>>> http://korrekt.org markus@...
>>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>>> 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
>>> ________________________________ Semediawiki-devel mailing list
> Markus Krötzsch
> Semantic MediaWiki http://semantic-mediawiki.org
> http://korrekt.org markus@...