How to get number of items made by count function ?
5 views
Skip to first unread message
Jacek Grzebyta
unread,
Jun 22, 2017, 7:59:57 AM6/22/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to linked-data-api-discuss
Hi,
In elda I need to display number of classes instances. I added to api:ListEndpoint following selector:
resource:countAll a api:Selector ; api:where """select ?item ?itemNumber where { ?item rdfs:label ?label . { select ?item (count(*) as ?itemNumber) where { [] a ?item } group by ?item } }""" .
Now is it possible to restore value of ?itemNumber and display it? Adding itemNumber into a viewer does not work. I defined itemNumber so elda knows about existance of it: