Markus,
Thanks for this! Maybe we'll get Semantic Layers in there one of these
days.
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', '+')));
$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
-------------------------------------------------------------------------
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