1,477,004
edits
Line 502: | Line 502: | ||
== Prefixes/Namespaces == | == Prefixes/Namespaces == | ||
SPARQL queries and work with RDF in general | SPARQL queries and work with RDF in general uses the concept of a short prefix string representing a URI to resolve an identifier, creating the ability to refer to different resolvable knowledge representations with a short string. Prefix declaration in a query lets us use the short strings in place of constantly putting in a fully qualified and resolvable path. The wikibase.cloud instances all use a standard set of built-in prefixes and resolvers, some of which are well known and in common use. | ||
They also include the standard wikidata prefixes referring to Wikidata resolution paths. Initially, in this Wikibase instance, we were documenting queries in a way that might be confusing in that we use the same standard "wd" prefixes but declared them as this Wikibase. We've since changed that convention, but you may still find references that point to the older style than the conventions shown below. | |||
<sparql> | <sparql> | ||
Line 515: | Line 517: | ||
@prefix geo: <http://www.opengis.net/ont/geosparql#> . | @prefix geo: <http://www.opengis.net/ont/geosparql#> . | ||
@prefix prov: <http://www.w3.org/ns/prov#> . | @prefix prov: <http://www.w3.org/ns/prov#> . | ||
@prefix wd: <https://geokb.wikibase.cloud/entity/> . | @prefix dct: <http://purl.org/dc/terms/> . | ||
@prefix | @prefix wd: <http://www.wikidata.org/entity/> . | ||
@prefix | @prefix wdt: <https://www.wikidata.org/prop/direct/> . | ||
@prefix | @prefix gkd: <https://geokb.wikibase.cloud/entity/> . | ||
@prefix | @prefix gkdata: <https://geokb.wikibase.cloud/wiki/Special:EntityData/> . | ||
@prefix | @prefix gks: <https://geokb.wikibase.cloud/entity/statement/> . | ||
@prefix | @prefix gkref: <https://geokb.wikibase.cloud/reference/> . | ||
@prefix | @prefix gkv: <https://geokb.wikibase.cloud/value/> . | ||
@prefix | @prefix gkwdt: <https://geokb.wikibase.cloud/prop/direct/> . | ||
@prefix | @prefix gkwdtn: <https://geokb.wikibase.cloud/prop/direct-normalized/> . | ||
@prefix | @prefix gkp: <https://geokb.wikibase.cloud/prop/> . | ||
@prefix | @prefix gkps: <https://geokb.wikibase.cloud/prop/statement/> . | ||
@prefix | @prefix gkpsv: <https://geokb.wikibase.cloud/prop/statement/value/> . | ||
@prefix | @prefix gkpsn: <https://geokb.wikibase.cloud/prop/statement/value-normalized/> . | ||
@prefix | @prefix gkpq: <https://geokb.wikibase.cloud/prop/qualifier/> . | ||
@prefix | @prefix gkpqv: <https://geokb.wikibase.cloud/prop/qualifier/value/> . | ||
@prefix | @prefix gkpqn: <https://geokb.wikibase.cloud/prop/qualifier/value-normalized/> . | ||
@prefix | @prefix gkpr: <https://geokb.wikibase.cloud/prop/reference/> . | ||
@prefix gkprv: <https://geokb.wikibase.cloud/prop/reference/value/> . | |||
@prefix gkprn: <https://geokb.wikibase.cloud/prop/reference/value-normalized/> . | |||
@prefix gkno: <https://geokb.wikibase.cloud/prop/novalue/> . | |||
</sparql> | </sparql> | ||