Kingsley,
thanks for suggesting that feature. Since you already have that feature, could you let us know how often the UI option for these output formats are used? That could help with prioritising.
My uninformed hunch would be that there isn't much demand for selecting the format via the UI, and that is more relevant to have automated calls be able to do that format selection, which the endpoint provides.
Thanks, Denny
On Fri, May 1, 2020 at 9:59 AM Kingsley Idehen kidehen@openlinksw.com wrote:
On 5/1/20 11:53 AM, Isaac Johnson wrote:
If the challenge is downloading large files, you can also get local access to all of the dumps (wikidata, wikipedia, and more) through the PAWS https://wikitech.wikimedia.org/wiki/PAWS (Wikimedia-hosted Jupyter notebooks) and Toolforge https://wikitech.wikimedia.org/wiki/Help:Toolforge (more general-purpose Wikimedia hosting environment). From Toolforge, you could run the Wikidata toolkit (Java) that Denny mentions. I'm personally more familiar with Python, so my suggestion is to use Python code to filter down the dumps to what you desire. Below is an example Python notebook that will do this on PAWS, though the PAWS environment is not set up for these longer running jobs and will probably die before the process is complete, so I'd highly recommend converting it into a script that can run on Toolforge (see https://wikitech.wikimedia.org/wiki/Help:Toolforge/Dumps).
PAWS example: https://paws-public.wmflabs.org/paws-public/User:Isaac_(WMF)/Simplified_Wiki...
Best, Isaac
That isn't my challenge.
I wanted to know why the WDQ UI doesn't provide an option for CONSTRUCT and DESCRIBE query solutions using a variety of document types.
See: https://wikidata.demo.openlinksw.com/sparql to see what I mean. Ditto any DBpedia endpoint.
Kingsley
On Thu, Apr 30, 2020 at 1:33 AM raffaele messuti raffaele@docuver.se wrote:
On 27/04/2020 18:02, Kingsley Idehen wrote:
Do these CONSTRUCT queries return any of the following document
content-types?
RDF-Turtle, RDF-XML, JSON-LD ?
you can use content negotiation on the sparql endpoint
~ query="CONSTRUCT { ... }" ~ curl -H "Accept: application/rdf+xml" https://query.wikidata.org/sparql --data-urlencode query=$query ~ curl -H "Accept: text/turtle" -G https://query.wikidata.org/sparql --data-urlencode query=$query
-- raffaele@docuver.se
Wikidata mailing list Wikidata@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata
-- Isaac Johnson (he/him/his) -- Research Scientist -- Wikimedia Foundation
Wikidata mailing listWikidata@lists.wikimedia.orghttps://lists.wikimedia.org/mailman/listinfo/wikidata
-- Regards,
Kingsley Idehen Founder & CEO OpenLink Software Home Page: http://www.openlinksw.com Community Support: https://community.openlinksw.com Weblogs (Blogs): Company Blog: https://medium.com/openlink-software-blog Virtuoso Blog: https://medium.com/virtuoso-blog Data Access Drivers Blog: https://medium.com/openlink-odbc-jdbc-ado-net-data-access-drivers
Personal Weblogs (Blogs): Medium Blog: https://medium.com/@kidehen Legacy Blogs: http://www.openlinksw.com/blog/~kidehen/ http://kidehen.blogspot.com
Profile Pages: Pinterest: https://www.pinterest.com/kidehen/ Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen Twitter: https://twitter.com/kidehen Google+: https://plus.google.com/+KingsleyIdehen/about LinkedIn: http://www.linkedin.com/in/kidehen
Web Identities (WebID): Personal: http://kingsley.idehen.net/public_home/kidehen/profile.ttl#i : http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this
Wikidata mailing list Wikidata@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata