166,843
edits
Superraptor (talk | contribs) (Created page with "This page includes some example queries which can be run using the [https://lgbtdb.wikibase.cloud/query/ Query service]. Note that all queries in LGBTdb must be prepended with the following prefixes to function: <syntaxhighlight lang="sparql">PREFIX wd: <https://lgbtdb.wikibase.cloud/entity/> PREFIX wdt: <https://lgbtdb.wikibase.cloud/prop/direct/></syntaxhighlight> '''NOTE THAT ALL QUERIES BELOW ARE CURRENTLY NON-FUNCTIONAL. FUNCTIONING VERSIONS WILL BE ADDED SOON.'''...") |
Superraptor (talk | contribs) No edit summary |
||
Line 102: | Line 102: | ||
After the query finishes, select the eye icon on the left side above the query result and select "Scatter Chart" in the dropdown list. | After the query finishes, select the eye icon on the left side above the query result and select "Scatter Chart" in the dropdown list. | ||
=== Senses === | |||
To get all senses marked as American English gay slang terms or instances of subclasses of American English gay slang terms: | |||
<syntaxhighlight lang="sparql">SELECT DISTINCT ?lexemeId ?lemma ?sense | |||
WHERE | |||
{ | |||
?lexemeId dct:language wd:Q2 ; | |||
wikibase:lemma ?lemma ; | |||
ontolex:sense ?sense . | |||
?sense wdt:P1/(wdt:P2)* wd:Q9527 . | |||
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } | |||
} | |||
</syntaxhighlight> | |||
== See Also == | == See Also == | ||
* [https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples Wikidata:SPARQL query service/queries/examples] | * [https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples Wikidata:SPARQL query service/queries/examples] |