Re: [SMW-devel] Get data from external SMW by inline queries

2015-11-16 Thread Dan Bolser
Interesting solution. I really like the idea of an inter-wiki query
however, i.e. using the SMW API. Is RDF the right interchange format?

On 4 November 2015 at 05:46, Tobias Oetterer 
wrote:

> Hi Kai
>
> I use Extension:ExternalData for that purpose.
>
> To be a little bit more precise: On W2 #get_web_data gets passed an url to
> a
> semantic search on W1. That url you can easily construct on W1 on the
> special page semantic search or you construct your query and use
> format=csv.
> #get_web_data's format in that case would be "csv with headers", and for
> every property you want to read form W1 you also have to include a mapping
> in the data-parameter.
> Afterwards, get your data via #external_value or #display_external_table.
>
> Regards,
> Tobias
>
> --
> If this email is rather brief, it is not meant to be impolite but to
> respect
> your time.
> http://five.sentenc.es
> No trees were killed to send this message, but a large number of electrons
> were terribly inconvenienced
>
> University of Paderborn
> Zentrum IMT
> Warburger Straße 100
> 33098 Paderborn
>
> Office: N5.341
> Phone: 05251/60-2194
> Internet: http://imt.uni-paderborn.de
> -Ursprüngliche Nachricht-
> Von: Kai Hüner [mailto:kai.hue...@cdq.ch]
> Gesendet: Dienstag, 3. November 2015 21:44
> An: semediawiki-devel@lists.sourceforge.net
> Betreff: [SMW-devel] Get data from external SMW by inline queries
>
> Dear SMW developers,
>
> Is there any known configuration, extension or "workaround" to get data
> from
> an external SMW (W1) by an inline query from another SMW (W2)?
> I am thinking of something like (query from W2) {{ #ask: [[W1:Category:Some
> concept]] | ?W1:Has definition }} where you register "W1" as an interwiki
> link prefix.
>
> Of course, I am aware of the InterWiki extension which enables querying
> external SPARQL endpoints.
> However, it is a mess to wrap query results by templates into convenient
> wiki pages similar to SMW inline query results.
>
> Beside the name of the "silver bullet" SMW extension for this linked-data
> feature I would also be happy about any idea "how to" or concern "why not"
> to develop such a feature.
>
> Looking forward to your comments,
> Yours,
> kai
>
>
>
> 
> --
> ___
> Semediawiki-devel mailing list
> Semediawiki-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
>
>
> --
>
> ___
> Semediawiki-devel mailing list
> Semediawiki-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
>
>
--
Presto, an open source distributed SQL query engine for big data, initially
developed by Facebook, enables you to easily query your data on Hadoop in a 
more interactive manner. Teradata is also now providing full enterprise
support for Presto. Download a free open source copy now.
http://pubads.g.doubleclick.net/gampad/clk?id=250295911&iu=/4140___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


[SMW-devel] Strange behaviour of export formats

2015-11-16 Thread Krabina Bernhard
dear all,

I am facing strange behaviour of Export formats (like RDF, CSV, JSON). 

You can see it here:
http://www.ogdcockpit.eu/index.php?title=ExportFormatTest

most of the "RDF"-Links fail: they lead to Special:Ask instead of returning an 
RDF file. Some work, though.
I had the feeling it might have to do with the large number of printouts (in 
brackets), but there are some below 20 printouts that work and some that don't. 
I also manually set $smwgQPrintoutLimit = 100; but that didn't help either.
Another guess it that the resulting URL might be too long, but I have URLS with 
~800 characters, URLs should work with up to 2000 characters.
format=debug didn't help me much, either.

Why can it happen that a export format redirects to Special:Search instead of 
delivering a result? How can I debug this?

regards,
Bernhard


--
Presto, an open source distributed SQL query engine for big data, initially
developed by Facebook, enables you to easily query your data on Hadoop in a 
more interactive manner. Teradata is also now providing full enterprise
support for Presto. Download a free open source copy now.
http://pubads.g.doubleclick.net/gampad/clk?id=250295911&iu=/4140
___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel