No, that information isn’t available as triples. We have a category
graph <https://www.mediawiki.org/wiki/Wikidata_Query_Service/Categories>
in a separate endpoint, but that contains only category-subcategory
relations, not individual pages. (Also, I just noticed it seems to be
incomplete, see T243824 <https://phabricator.wikimedia.org/T243824>.)
You can use the MWAPI service
<https://www.mediawiki.org/wiki/Wikidata_Query_Service/User_Manual/MWAPI>
to get that kind of information from the API, though, with a query like
this one
<https://query.wikidata.org/#ASK%20%7B%0A%20%20SERVICE%20wikibase%3Amwapi%20%7B%0A%20%20%20%20bd%3AserviceParam%20wikibase%3Aapi%20%22Generator%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20wikibase%3Aendpoint%20%22en.wikipedia.org%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mwapi%3Agenerator%20%22categorymembers%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mwapi%3Agcmtitle%20%22Category%3ABritish%20Invasion%20artists%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%23%20optional%20optimization%3A%20make%20the%20API%20only%20return%20results%20we%E2%80%99re%20interested%20in%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mwapi%3Agcmstartsortkeyprefix%20%22Kinks%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mwapi%3Agcmendsortkeyprefix%20%22Kinkt%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%23%20optional%20optimization%3A%20return%20as%20many%20results%20as%20possible%20at%20once%2C%20less%20continuation%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mwapi%3Agcmlimit%20%22max%22.%0A%20%20%20%20%3Fitem%20wikibase%3AapiOutputItem%20mwapi%3Aitem.%0A%20%20%7D%0A%20%20FILTER%28%3Fitem%20%3D%20wd%3AQ188713%29%0A%7D>:
ASK {
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:api "Generator";
wikibase:endpoint "en.wikipedia.org";
mwapi:generator "categorymembers";
mwapi:gcmtitle "Category:British Invasion artists";
# optional optimization: make the API only return
results we’re interested in
mwapi:gcmstartsortkeyprefix "Kinks";
mwapi:gcmendsortkeyprefix "Kinkt";
# optional optimization: return as many results as
possible at once, less continuation
mwapi:gcmlimit "max".
?item wikibase:apiOutputItem mwapi:item.
}
FILTER(?item = wd:Q188713)
}
Cheers,
Lucas
On 28.01.20 04:29, Bob DuCharme wrote:
In Wikidata, if
- wd:Q8313122 is the category "British Invasion artists"
- wd:Q188713 is the Kinks
- the Kinks are listed on
https://en.wikipedia.org/wiki/Category:British_Invasion_artists
are there any Wikidata triples that connect wd:Q188713 to wd:Q8313122?
I have done several queries about these two entities and cannot figure
out what triple or triples may connect them.
Thanks,
Bob
_______________________________________________
Wikidata mailing list
Wikidata(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata