Invalid widget configuration: com.fluidops.iwb.api.operator.OperatorException: Illegal structure parameter specified: ?pred
{{#widget: StockChart
| query = 'SELECT ( COUNT ( ?core ) AS ?cores ) ?date WHERE {
GRAPH history:MetaContext {
?a rdf:type dynProd:LicenseSnapshot .
?a dynProd:graph ?graph .
?a historySnapshot:type history:DailySnapshot .
?a dc:date ?date .
GRAPH ?graph {
?pi dynProd:licensedBy ?lic .
?pi ?pred ?core
FILTER (?pred = dynProd:usesCore || ?pred = dynProd:usesCoreNoLic || ?pred = dynProd:usesCoreTryNBuy ) .
}
}
} GROUP BY ?date
ORDER BY ?date'
| repository = history
| input = 'date'
| output = {{ 'cores' }}
| asynch = true
}}
Here is the explanation for what you observe:
In our widget configuration serialization (i.e. the wiki text) the ‘|’ character is a reserved one with a special meaning. Hence, inside a SPARQL query, i.e. in your case for the OR inside the FILTER you need an escape sequence.
In your case you can escape the | inside the query in the wiki text with {{Pipe}}{{Pipe}} which is replaced with the correct character at execution time.
Note that when using the widget configuration form (which is always recommended) the escaping is done automatically, only when manually modifying the widget configuration inside the wiki text you have to take care for it.
See [1] for details
Best,
Andreas
[1] http://help.fluidops.com/resource/Help:Widgets#Embedding_Widgets_into_Wiki_Pages
--
You received this message because you are subscribed to the Google Groups "Information Workbench Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
iwb-discussio...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.