Quantcast

In line queries

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

In line queries

Silkwood
Hi,
at http://www.tunearch.org (a semantic index of traditional instrumental music) we use the following inline query to retrieve tunes and their properties:

{{#ask:[[Category:Tune]]
[[Theme_code_index::1113 1344]]
|mainlabel=Tune
|?Is also known as=Also known as
|?Theme_code_index=Theme Code Index
|?Was composed by=Arranger/Composer
|?It comes from=Country
|?Has genre=Genre
|?Has rhythm=Rhythm
|?Is in the key of=Key
|?Has historical geographical allegiances=History
|format=broadtable
|order=
|sort=
|offset=0
|limit=20
}}

The query works correctly but a warning message comes up every time saying: " "" cannot be used as a property name in this wiki. "

Am I doing something wrong?

INFO:
ProductVersion
MediaWiki1.17.0
PHP5.2.17 (cgi)
MySQL5.0.91mm-log

Semantic MediaWiki (Version 1.6)


Valerio Pelliccioni
_____________
Via Ca' Bernardo 16
24040 - Fornovo San Giovanni (BG)
Mob: +39 348 7649160


------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Semediawiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: In line queries

Stephan Gambke-2
Am 05.11.2011 16:43, schrieb Valerio Pelliccioni:

> Hi,
> at http://www.tunearch.org (a semantic index of traditional instrumental
> music) we use the following inline query to retrieve tunes and their
> properties:
>
> {{#ask:[[Category:Tune]]
> [[Theme_code_index::1113 1344]]
> |mainlabel=Tune
> |?Is also known as=Also known as
> |?Theme_code_index=Theme Code Index
> |?Was composed by=Arranger/Composer
> |?It comes from=Country
> |?Has genre=Genre
> |?Has rhythm=Rhythm
> |?Is in the key of=Key
> |?Has historical geographical allegiances=History
> |format=broadtable
> |order=
> |sort=
> |offset=0
> |limit=20
> }}
>
> The query works correctly but a warning message comes up every time
> saying: " /_"" cannot be used as a property name in this wiki._/ "
>
> Am I doing something wrong?

Without having tested it my guess would be that not providing a property
for the sort might be the cause. Try

{{#ask:[[Category:Tune]]
[[Theme_code_index::1113 1344]]
|mainlabel=Tune
|?Is also known as=Also known as
|?Theme_code_index=Theme Code Index
|?Was composed by=Arranger/Composer
|?It comes from=Country
|?Has genre=Genre
|?Has rhythm=Rhythm
|?Is in the key of=Key
|?Has historical geographical allegiances=History
|format=broadtable
|offset=0
|limit=20
}}

Cheers,
Stephan

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Semediawiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: In line queries

badon
Did removing the sort parameter solve your problem? If it did, then this appears to be an unreported bug.
Loading...