Topic on User talk:Magnus Manske

Jump to navigation Jump to search

What should SPARQL query emit in Petscan?

5
Azertus (talkcontribs)

Hi Magnus

What should a SPARQL query emit when using it directly in PetScan? When I paste the result of this query in the "Manual list" of PetScan, I get the intended result. It should return some pages in enwikisource.

However, I haven't found in the documentation what SPARQL should return to get the same result. I've tried Wikidata QIDs, Wikisource URLs and Wikisource page titles.

Thanks!

Nikki (talkcontribs)

In my experience, you need to select the Wikidata item. If I change your query to select ?author (i.e. the Wikidata item) and paste it into Petscan without changing any other options, I get 312 results.

Azertus (talkcontribs)

The issue there is that it is returning the Wikidata items and I'm looking for the Wikisource pages instead, so I can filter on categories or templates there.

It might be related to the "Use wiki" setting on the "Other sources" tab, but regardless of where I tried to set enwikisource (probably haven't tried every possible place), I either got 0 results or the Wikidata items.

Magnus Manske (talkcontribs)

Truth is, there is not really a mechanism to do that. Yet.

Jura1 (talkcontribs)

Maybe with the "Uses items/props" option. Works with categories at Wikipedia.

Reply to "What should SPARQL query emit in Petscan?"