Wikidata:Dataadgang

From Wikidata
Jump to navigation Jump to search
This page is a translated version of the page Wikidata:Data access and the translation is 56% complete.

Other languages:
Bahasa Indonesia • ‎Bahasa Melayu • ‎British English • ‎Deitsch • ‎Deutsch • ‎English • ‎Esperanto • ‎Hawaiʻi • ‎Nederlands • ‎Tiếng Việt • ‎català • ‎dansk • ‎español • ‎euskara • ‎français • ‎français cadien • ‎interlingua • ‎italiano • ‎la .lojban. • ‎lea faka-Tonga • ‎polski • ‎português do Brasil • ‎qırımtatarca (Latin)‎ • ‎suomi • ‎svenska • ‎čeština • ‎Ελληνικά • ‎коми • ‎русский • ‎српски / srpski • ‎українська • ‎հայերեն • ‎اردو • ‎العربية • ‎فارسی • ‎پښتو • ‎हिन्दी • ‎বাংলা • ‎মেইতেই লোন্ • ‎ไทย • ‎မြန်မာဘာသာ • ‎中文 • ‎日本語 • ‎한국어

Denne side er udgangspunktet for dig, hvis du kommer fra en institution, en virksomhed eller en opganisation, som ønsker at anvende data fra Wikidata.

Grundlæggende ting, du bør vide

Frivillige som disse mennesker - og dig - laver Wikidata

Wikidata tilbyder en bred vifte af generelle data om vores univers såvel som links til andre databaser. Dataene udgives under CC0 licensen "Public domain dedication". Data kan redigeres af enhver, og vedligeholdes af Wikidatas brugersamfund af bidragsydere.

Ændringer til API'er og dataformater, som anvendes til at tilgå Wikidata, er underlagt Stabil Grænsefladepolitik. Ændringer til grænseflader vil blive offentliggjort i henhold til denne. Bemærk, at ikke alle datakilder, som nævnes på denne side, anses som stabile grænseflader.

Hvordan får jeg data ud af Wikidata?

Der findes flere måder til tilgå og redigere data Wikidata. Du kan tilgå data per emne eller ved hjælp af dumps med alle data.

Adgang til data per emne

Data can be accessed either via dereferenceable URIs following linked data standards, or through the MediaWiki API.

Linked Data interface

Mød Q42

Each item or property has a persistent URI that you obtain by appending its ID (such as Q42 or P12) to the Wikidata concept namespace: http://www.wikidata.org/entity/

For example, the concept URI of Douglas Adams is http://www.wikidata.org/entity/Q42. Note that this URI refers to the real-world person, not Wikidata's description of Douglas Adams. However, it is possible to use the concept URI to access data about Douglas Adams by simply using it as a URL. When you request this URL, it triggers an HTTP redirect that forwards the client to the data URL for Wikidata's data about Douglas Adams: http://www.wikidata.org/wiki/Special:EntityData/Q42. The namespace for Wikidata's data about entities is http://www.wikidata.org/wiki/Special:EntityData/

Appending an entity's ID to this prefix creates the "abstract" (format neutral) form of the data URL of the entity. When you request a Special:EntityData URL, the special page applies content negotiation to determine the format of Wikidata's output. Most likely you opened the URL in a normal Web browser, and an HTML page of Wikidata's data about the entity will be displayed, because a web browser prefers HTML over other formats. Linked data clients would receive Wikidata's data about the entity in a different format such as JSON or RDF, depending on the HTTP Accept: header of their request.

For cases in which it is inconvenient to use content negotiation (e.g. to view non-HTML content in a web browser), you can also access data about an entity in a specific format by extending the data URL with an extension suffix to indicate the content format that you want, such as .json, .rdf, .ttl or .nt. For example, http://www.wikidata.org/wiki/Special:EntityData/Q42.json leads to a JSON export for item Q42. Specific revisions can be obtained by appending a revision query parameter like so http://www.wikidata.org/wiki/Special:EntityData/Q42.json?revision=112.

MediaWiki-API'et

Se dokumentationen for API'et

Caution: Some API modules, in particular those accessed via action=query, will return raw page content. For entity pages, that raw page content is not guaranteed to use any documented format or follow any standard structure. Raw page content should be treated as an opaque blob. For access to the canonical JSON form of entity pages, use the wbgetentities and wbsearchentities modules.

SPARQL endpoints

You can query the data in Wikidata through our SPARQL endpoint, the Wikidata Query Service. The service can be used both as an interactive web interface, or programmatically by submitting GET or POST requests to https://query.wikidata.org/sparql. RDF data can alternatively be accesses via an Linked Data Fragments[1] interface at https://query.wikidata.org/bigdata/ldf. See the user manual and local community pages for more information.

Botter

Vi byder botter, som opfører sig pænt, velkommen

Du kan også tilgå API'et ved brug af en bot. Se Wikidata:Botter for flere oplysninger om botter.

Adgang til dumps

You can download dumps of the whole content of Wikidata. See the database dumps documentation.

Gradvise opdateringer

The recent changes API can be used to see which entities were changed and those can then be fetched via the per item access to data. That way one can incrementally update as long as one is not behind by 30 days or more.

Bedste praksis, som bør følges

Vores logo

Wikidata offers you the data in Wikidata for free with no requirement to attribute under CC-0. We would however greatly appreciate if you would mention Wikidata as the origin of your data. This will allow us to ensure that the project stays around for a long time and provides you with up-to-date and high quality data. We will also promote the best projects using Wikidata's data. Some examples for attributing Wikidata: "Powered by Wikidata", "Powered by Wikidata Tags", "Powered by Wikidata data", "Powered by the magic of Wikidata", "Using Wikidata data", "With data from Wikidata", "Data from Wikidata", "Source: Wikidata", "Including data from Wikidata", ... You can also use one of the ready-made files from us.

You may use the Wikidata logo (see above), but should not do so in any way that implies endorsement by Wikidata, or the Wikimedia Foundation.

Please offer your users a way to report issues in the data and find a way to feed this back to Wikidata's editor community. We are currently working on streamlining this process. Until then please announce where you collect issues on the Project chat.

Examples and showcases

A number of great tools are being built on top of Wikidata. The external tools page collects them.

Se også