SPARQL/Prefixes

WDQS understands many shortcut abbreviations, known as prefixes. Some are internal to Wikidata,  ,  ,  ,  , etc. and many others are commonly used external prefixes, like  ,  ,  ,  , etc.

In the following query, we are asking for items where there is a statement of "P279 = Q7725634" or in fuller terms, selecting subjects that have a predicate of "subclass of" with an object of = "literary work".

For simple WDQS triples, items should be prefixed with, and properties with. This only applies to fixed values – variables don’t get a prefix.

Without the use of prefixes this should be written as

Actually all mentioned prefixes are built in in the Wikidata Query Service, so they can be left out

The full list of built in prefixes is