Hi,
I would like to get the RDF description of Wikidata items by using the Linked Data interface.
After executing an HTTP GET of "https://www.wikidata.org/entity/Q10313" with header "Accept, application/rdf+xml" I get RDF data, but I don't see all the statements that I am able to see via the wiki (at https://www.wikidata.org/wiki/Q10313). For example, I don´t see the statement indicating that "Q10313 is instanceOf city". Should I query the RDF dump for this, or is it possible to query such RDF data via the Linked Data interface?
I included below the kind of statements I do get in the response.
Thanks in advance. Cristina
---
# rdf:Descriptionrdf:about="https://www.wikidata.org/wiki/Special:EntityData/Q10313" # schema:versionrdf:datatype="http://www.w3.org/2001/XMLSchema#integer"226415944</schema:version> # schema:dateModifiedrdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime"2015-07-05T08:34:43Z</schema:dateModified> # rdf:typerdf:resource="http://schema.org/Dataset"/ # schema:aboutrdf:resource="http://www.wikidata.org/entity/Q10313"/ # </rdf:Description> # rdf:Descriptionrdf:about="http://www.wikidata.org/entity/Q10313" # rdf:typerdf:resource="http://wikiba.se/ontology-beta#Item"/ # rdfs:labelxml:lang="it"San Sebastián</rdfs:label> # skos:prefLabelxml:lang="it"San Sebastián</skos:prefLabel> # schema:namexml:lang="it"San Sebastián</schema:name> # ...
# </rdf:Description> # rdf:Descriptionrdf:about="https://it.wikipedia.org/wiki/San%20Sebasti%C3%A1n" # rdf:typerdf:resource="http://schema.org/Article"/ # schema:aboutrdf:resource="http://www.wikidata.org/entity/Q10313"/ # schema:inLanguageit</schema:inLanguage> # </rdf:Description> # rdf:Descriptionrdf:about="https://an.wikipedia.org/wiki/Sant%20Sabasti%C3%A1n" # rdf:typerdf:resource="http://schema.org/Article"/ # schema:aboutrdf:resource="http://www.wikidata.org/entity/Q10313"/ # schema:inLanguagean</schema:inLanguage> # </rdf:Description> # ... #
# rdf:Descriptionrdf:about="https://vi.wikivoyage.org/wiki/San%20Sebastian" # rdf:typerdf:resource="http://schema.org/Article"/ # schema:aboutrdf:resource="http://www.wikidata.org/entity/Q10313"/ # schema:inLanguagevi</schema:inLanguage> # </rdf:Description> # </rdf:RDF>
Hi Cristina,
our RDF output doesn't yet include statements per default as that mapping is still in a beta stage (but it should be mostly stable by now).
You can still get Statements in the RDF output by requesting it with flavor=full like https://www.wikidata.org/wiki/Special:EntityData/Q42.rdf?flavor=full .
Changing the default is tracked in https://phabricator.wikimedia.org/T101837
Cheers,
Marius
On Wed, 2015-07-08 at 10:48 +0200, csarasua wrote:
Hi,
I would like to get the RDF description of Wikidata items by using the Linked Data interface.
After executing an HTTP GET of " https://www.wikidata.org/entity/Q10313" with header "Accept, application/rdf+xml" I get RDF data, but I don't see all the statements that I am able to see via the wiki (at https://www.wikidata.org/wiki/Q10313). For example, I don´t see the statement indicating that "Q10313 is instanceOf city". Should I query the RDF dump for this, or is it possible to query such RDF data via the Linked Data interface?
I included below the kind of statements I do get in the response.
Thanks in advance. Cristina
<rdf:Description rdf:about=" https://www.wikidata.org/wiki/Special:EntityData/Q10313%22%3E; <schema:version rdf:datatype=" http://www.w3.org/2001/XMLSchema#integer%22%3E226415944</schema:version>; <schema:dateModified rdf:datatype="http://www.w3.org /2001/XMLSchema#dateTime">2015-07-05T08:34:43Z</schema:dateModified>; <rdf:type rdf:resource="http://schema.org/Dataset%22/%3E ; <schema:about rdf:resource=" http://www.wikidata.org/enti ty/Q10313"/> </rdf:Description> <rdf:Description rdf:about=" http://www.wikidata.org/entity/Q10313%22%3E; <rdf:type rdf:resource=" http://wikiba.se/ontology-beta#Item%22/%3E; <rdfs:label xml:lang="it">San Sebastián</rdfs:label> <skos:prefLabel xml:lang="it">San Sebastián</skos:prefLabel> <schema:name xml:lang="it">San Sebastián</schema:name> ... & lt;/rdf:Description> <rdf:Description rdf:about=" https://it.wikipedia.org/wiki/San%20Sebasti%C3%A1n%22%3E; <rdf:type rdf:resource="http://schema.org/Article%22/%3E ; <schema:about rdf:resource=" http://www.wikidata.org/entity/Q10313%22/%3E; schema:inLanguageit</schema:inLanguage> </rdf:Description> <rdf:Description rdf:about=" https://an.wikipedia.org/wiki/Sant%20Sabasti%C3%A1n%22%3E; <rdf:type rdf:resource="http ://schema.org/Article"/> <schema:about rdf:resource=" http://www.wikidata.org/entity/Q10313%22/%3E; schema:inLanguagean</schema:inLanguage> </rdf:Description> ...
<rdf:Description rdf:about=" https://vi.wikivoyage.org/wiki/San%20Sebastian%22%3E; <rdf:type rdf:resource="http://schema.org/Article%22/%3E ; <schema:about rdf:resource=" http://www.wikidata.org/entity/Q10313%22/%3E; schema:inLanguagevi</schema:inLanguage> </rdf:Description> </rdf:RDF>
-- Cristina Sarasua
Institute for Web Science and Technologies (WeST)
Universität Koblenz-Landau Universitätsstraße 1 56070 Koblenz Germany
e: csarasua@uni-koblenz.de p: +49 261 287 2772 f: +49 261 287 100 2772 w: http://west.uni-koblenz.de _______________________________________________ Wikidata-tech mailing list Wikidata-tech@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
Thanks.
Is the data obtained with flavor=full live data?
Cristina
Am 08.07.2015 um 16:12 schrieb hoo:
Hi Cristina,
our RDF output doesn't yet include statements per default as that mapping is still in a beta stage (but it should be mostly stable by now).
You can still get Statements in the RDF output by requesting it with flavor=full like https://www.wikidata.org/wiki/Special:EntityData/Q42.rdf?flavor=full .
Changing the default is tracked in https://phabricator.wikimedia.org/T101837
Cheers,
Marius
On Wed, 2015-07-08 at 10:48 +0200, csarasua wrote:
Hi,
I would like to get the RDF description of Wikidata items by using the Linked Data interface.
After executing an HTTP GET of " https://www.wikidata.org/entity/Q10313" with header "Accept, application/rdf+xml" I get RDF data, but I don't see all the statements that I am able to see via the wiki (at https://www.wikidata.org/wiki/Q10313). For example, I don´t see the statement indicating that "Q10313 is instanceOf city". Should I query the RDF dump for this, or is it possible to query such RDF data via the Linked Data interface?
I included below the kind of statements I do get in the response.
Thanks in advance. Cristina
<rdf:Description rdf:about=" https://www.wikidata.org/wiki/Special:EntityData/Q10313%22%3E; <schema:version rdf:datatype=" http://www.w3.org/2001/XMLSchema#integer%22%3E226415944</schema:version>; <schema:dateModified rdf:datatype="http://www.w3.org /2001/XMLSchema#dateTime">2015-07-05T08:34:43Z</schema:dateModified>; <rdf:type rdf:resource="http://schema.org/Dataset%22/%3E ; <schema:about rdf:resource=" http://www.wikidata.org/enti ty/Q10313"/> </rdf:Description> <rdf:Description rdf:about=" http://www.wikidata.org/entity/Q10313%22%3E; <rdf:type rdf:resource=" http://wikiba.se/ontology-beta#Item%22/%3E; <rdfs:label xml:lang="it">San Sebastián</rdfs:label> <skos:prefLabel xml:lang="it">San Sebastián</skos:prefLabel> <schema:name xml:lang="it">San Sebastián</schema:name> ... & lt;/rdf:Description> <rdf:Description rdf:about=" https://it.wikipedia.org/wiki/San%20Sebasti%C3%A1n%22%3E; <rdf:type rdf:resource="http://schema.org/Article%22/%3E ; <schema:about rdf:resource=" http://www.wikidata.org/entity/Q10313%22/%3E; schema:inLanguageit</schema:inLanguage> </rdf:Description> <rdf:Description rdf:about=" https://an.wikipedia.org/wiki/Sant%20Sabasti%C3%A1n%22%3E; <rdf:type rdf:resource="http ://schema.org/Article"/> <schema:about rdf:resource=" http://www.wikidata.org/entity/Q10313%22/%3E; schema:inLanguagean</schema:inLanguage> </rdf:Description> ...
<rdf:Description rdf:about=" https://vi.wikivoyage.org/wiki/San%20Sebastian%22%3E; <rdf:type rdf:resource="http://schema.org/Article%22/%3E ; <schema:about rdf:resource=" http://www.wikidata.org/entity/Q10313%22/%3E; schema:inLanguagevi</schema:inLanguage> </rdf:Description> </rdf:RDF>
-- Cristina Sarasua
Institute for Web Science and Technologies (WeST)
Universität Koblenz-Landau Universitätsstraße 1 56070 Koblenz Germany
e: csarasua@uni-koblenz.de p: +49 261 287 2772 f: +49 261 287 100 2772 w: http://west.uni-koblenz.de _______________________________________________ Wikidata-tech mailing list Wikidata-tech@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
Wikidata-tech mailing list Wikidata-tech@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
Yes, you will always get the latest version of the Entity.
Cheers,
Marius
On Thu, 2015-07-09 at 11:51 +0200, csarasua wrote:
Thanks.
Is the data obtained with flavor=full live data?
Cristina
Am 08.07.2015 um 16:12 schrieb hoo:
Hi Cristina,
our RDF output doesn't yet include statements per default as that mapping is still in a beta stage (but it should be mostly stable by now).
You can still get Statements in the RDF output by requesting it with flavor=full like https://www.wikidata.org/wiki/Special:EntityData/Q42.rdf?flavor=ful l .
Changing the default is tracked in https://phabricator.wikimedia.org/T101837
Cheers,
Marius
On Wed, 2015-07-08 at 10:48 +0200, csarasua wrote:
Hi,
I would like to get the RDF description of Wikidata items by using the Linked Data interface.
After executing an HTTP GET of " https://www.wikidata.org/entity/Q10313" with header "Accept, application/rdf+xml" I get RDF data, but I don't see all the statements that I am able to see via the wiki (at https://www.wikidata.org/wiki/Q10313). For example, I don´t see the statement indicating that "Q10313 is instanceOf city". Should I query the RDF dump for this, or is it possible to query such RDF data via the Linked Data interface?
I included below the kind of statements I do get in the response.
Thanks in advance. Cristina
<rdf:Description rdf:about=" https://www.wikidata.org/wiki/Special:EntityData/Q10313%22%3E;; <schema:version rdf:datatype=" http://www.w3.org/2001/XMLSchema#integer%22%3E226415944</schema:versi on>;; <schema:dateModified rdf:datatype=" http://www.w3.org /2001/XMLSchema#dateTime">2015-07 -05T08:34:43Z</schema:dateModified>; <rdf:type rdf:resource=" http://schema.org/Dataset%22/%3E; ; <schema:about rdf:resource=" http://www.wikidata.org/enti ty/Q10313"/> </rdf:Description> <rdf:Description rdf:about=" http://www.wikidata.org/entity/Q10313%22%3E;; <rdf:type rdf:resource=" http://wikiba.se/ontology-beta#Item%22/%3E;; <rdfs:label xml:lang="it">San Sebastián</rdfs:label> <skos:prefLabel xml:lang="it">San Sebastián</skos:prefLabel> <schema:name xml:lang="it">San Sebastián</schema:name> ... & lt;/rdf:Description> <rdf:Description rdf:about=" https://it.wikipedia.org/wiki/San%20Sebasti%C3%A1n%22%3E;; <rdf:type rdf:resource=" http://schema.org/Article%22/%3E; ; <schema:about rdf:resource=" http://www.wikidata.org/entity/Q10313%22/%3E;; schema:inLanguageit</schema:inLanguage> </rdf:Description> <rdf:Description rdf:about=" https://an.wikipedia.org/wiki/Sant%20Sabasti%C3%A1n%22%3E;; <rdf:type rdf:resource="http ://schema.org/Article"/> <schema:about rdf:resource=" http://www.wikidata.org/entity/Q10313%22/%3E;; schema:inLanguagean</schema:inLanguage> </rdf:Description> ...
<rdf:Description rdf:about=" https://vi.wikivoyage.org/wiki/San%20Sebastian%22%3E;; <rdf:type rdf:resource=" http://schema.org/Article%22/%3E; ; <schema:about rdf:resource=" http://www.wikidata.org/entity/Q10313%22/%3E;; schema:inLanguagevi</schema:inLanguage> </rdf:Description> </rdf:RDF>
-- Cristina Sarasua
Institute for Web Science and Technologies (WeST)
Universität Koblenz-Landau Universitätsstraße 1 56070 Koblenz Germany
e: csarasua@uni-koblenz.de p: +49 261 287 2772 f: +49 261 287 100 2772 w: http://west.uni-koblenz.de _______________________________________________ Wikidata-tech mailing list Wikidata-tech@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
Wikidata-tech mailing list Wikidata-tech@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
wikidata-tech@lists.wikimedia.org