Christopher added a comment.

OK.  I may have found an answer to the question of wildcard "Prefix Matching" 
that is necessary in order to query for number of statements in an item.

  PREFIX bds: <http://www.bigdata.com/rdf/search#>
  prefix wikibase: <http://wikiba.se/ontology#>
  
  SELECT (count(distinct(?s)) AS ?scount) 
  WHERE {
        wd:Q20903715 ?p wikibase:Item
        ?s bds:search "wd:statement*" .
  }

This requires the FullTextSearch 
https://wiki.blazegraph.com/wiki/index.php/FullTextSearch to be enabled (it is 
not on query.wikidata.org).  I will test on labs.


TASK DETAIL
  https://phabricator.wikimedia.org/T117234

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Christopher
Cc: Lydia_Pintscher, StudiesWorld, Addshore, Christopher, Aklapper, 
Wikidata-bugs, aude, Mbch331



_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to