Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

405 (Method not allowed) from endpoints for tt.genWdPropertyStatistic #119

Closed
WolfgangFahl opened this issue Jan 7, 2024 · 1 comment
Closed
Assignees

Comments

@WolfgangFahl
Copy link
Owner

 def testGenWdPropertyStatistic(self):
        """
        test generating a Wikidata property statistics row
        """
        qid="Q44613" # monastery
        pid="P6375"
        debug=True
        for endpointConf in self.endpointConfs:
            try:
                tt = TrulyTabular(qid, debug=debug)
                wdProperty=WikidataProperty.from_id(pid, sparql=tt.sparql)
                itemCount, _itemCountQuery = tt.count()
                statsRow = tt.genWdPropertyStatistic(wdProperty, itemCount)
                print(statsRow)
            except (Exception, HTTPError) as ex:
                self.handleEndpointErrors(ex, endpointConf, "405","Method not allowed")
        

fails for wikidata and qlever endpoints

https://w.wiki/8m3g seems to be fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant