Embedding an ask query

View: New views
3 Messages — Rating Filter:   Alert me  

Embedding an ask query

by robertuva :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Are you able to piggyback one ask query on another?  I'm trying to
perform an ask query to bring back a value that would then be used to
perform another ask query immediately.  Is this possible?

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Semediawiki-user mailing list
Semediawiki-user@...
https://lists.sourceforge.net/lists/listinfo/semediawiki-user

Re: Embedding an ask query

by Markus Krötzsch-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Montag, 9. Juni 2008, Bobby S wrote:
> Are you able to piggyback one ask query on another?  I'm trying to
> perform an ask query to bring back a value that would then be used to
> perform another ask query immediately.  Is this possible?

Yes, that works with templated output. Check out the events query on the main
page of semanticweb.org.

-- Markus

>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Semediawiki-user mailing list
> Semediawiki-user@...
> https://lists.sourceforge.net/lists/listinfo/semediawiki-user
--
Markus Krötzsch
Semantic MediaWiki    http://semantic-mediawiki.org
http://korrekt.org    markus@...


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Semediawiki-user mailing list
Semediawiki-user@...
https://lists.sourceforge.net/lists/listinfo/semediawiki-user

signature.asc (196 bytes) Download Attachment

Parent Message unknown Re: Embedding an ask query

by Markus Krötzsch-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Samstag, 21. Juni 2008, Bobby S wrote:
> Markus,
>
> Thanks for the help.  Also, I was wondering if there was a way of
> importing pages into a semantic wiki.  I know there are ways to do
> that in a regular Mediawiki instance, but I am unsure if that would
> work with SMW installed.

Using the usual MediaWiki export/import of pages works (using dumpBackup.php
and importDump.php). Make sure that SMW is installed *before* importing
(otherwise pages called Property:... will end up in the main namespace and it
is hard to get them into the Property namespace later on). SMW must also have
its DB setup completed (using SMW_setup.php or the SMWAdmin special as
described in INSTALL). Any other required extension should also be installed
before the actual import.

Then use "php importDump.php < dumpfile.xml" as usual. Be patient, the script
is not very responsive at first.

If there are still troubles with SMW on import, try to disable semantic
queries temporarily, using "$smwgQEnabled = false;" in LocalSettings.php.

After import, you need to run SMW_refreshData.php twice as described in SMW's
INSTALL file (section on upgrading). This will rebuild all SMW data and all
queries should work properly afterwards.

You will also need to rebuild other MediaWiki tables, using
rebuildrecentchanges.php, rebuildtextindex.php,
updateArticleCount.php --update, and possibly rebuildImages.php --missing.
This is not related to SMW though.


-- Markus

>
> Bobby
>
> On Mon, Jun 9, 2008 at 5:36 AM, Markus Krötzsch
>
> <markus@...> wrote:
> > On Montag, 9. Juni 2008, Bobby S wrote:
> >> Are you able to piggyback one ask query on another?  I'm trying to
> >> perform an ask query to bring back a value that would then be used to
> >> perform another ask query immediately.  Is this possible?
> >
> > Yes, that works with templated output. Check out the events query on the
> > main page of semanticweb.org.
> >
> > -- Markus
> >
> >> ------------------------------------------------------------------------
> >>- Check out the new SourceForge.net Marketplace.
> >> It's the best place to buy or sell services for
> >> just about anything Open Source.
> >> http://sourceforge.net/services/buy/index.php
> >> _______________________________________________
> >> Semediawiki-user mailing list
> >> Semediawiki-user@...
> >> https://lists.sourceforge.net/lists/listinfo/semediawiki-user
> >
> > --
> > Markus Krötzsch
> > Semantic MediaWiki    http://semantic-mediawiki.org
> > http://korrekt.org    markus@...


--
Markus Krötzsch
Semantic MediaWiki    http://semantic-mediawiki.org
http://korrekt.org    markus@...


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Semediawiki-user mailing list
Semediawiki-user@...
https://lists.sourceforge.net/lists/listinfo/semediawiki-user

signature.asc (196 bytes) Download Attachment