7 ms·
Wikidata
- uniqueuid 5y agoRelated, see this older attempt to create a structured dataset from Wikipedia rooting back to the semantic web: https://en.wikipedia.org/wiki/DBpedia https://en.wikipedia.org/wiki/DBpedia "DBpedia (from "DB" for "database") is a project aiming to extract structured content from the information created in the Wikipedia project."
- d--b 5y agoThis is different though. This is from wikipedia, and aims at structuring data that is used in wikipedia. I am guessing this is because if something changes in the world, then in wikipedia, the information needs to be changed in all articles (all languages, all connex articles etc.). This would add a level of indirection for facts.
- vinni2 5y agoYa but I haven’t seen a new release of DBpedia in years.
- geraltofrivia 5y agoDBPedia board has been faffing about regarding the new hyper-relational data model [0] and has come up with a bunch of hack-ish solutions (read: esoteric data models) to incorporate it. As far as I remember, there were dumps from 2018 with some hyper-relational facts but by and large the go-to dumps is from 2016-10 [1]. I think they acknowledge that info-box information is no longer good enough (both in coverage and completeness) and have handed over the moniker of the open-access KG to Wikidata. To their credit, I think its the right call. src: I worked in a lab lead by DBPedia's founder (and one of the contributors to the original infobox to KB code). [0] https://blog.liu.se/olafhartig/2019/01/10/position-statement-rdf-star-and-sparql-star/ https://blog.liu.se/olafhartig/2019/01/10/position-statement... ^^This enables, amongst other things, fact's validity to be quantified. Instead of saying <barack obama> <president> <united states>, you can now say {<barack obama> <president> <united states>} <from> <DD-MM-YYYY>; <to> <DD-MM-YYYY> [1] http://downloads.dbpedia.org/current/ http://downloads.dbpedia.org/current/ (from 2018); http://downloads.dbpedia.org/ http://downloads.dbpedia.org/ (see the folder titled 2016-10)
- mmarx 5y agoUnlike DBpedia, Wikidata is not structured content extracted by parsing Wikipedia articles, but instead a structured collection of factual knowledge created by human editors.
- kzrdude 5y agoHow do you find datasets on wikidata? Their search is hard to use
- leozord 5y agoyou need to use SparQL, on query.wikidata.org there are tons of examples
- zozbot234 5y agoThere is a SPARQL query page, with useful examples included. In general, Wikidata is not made up of discrete "datasets". Rather, each identifiable real-world entity, event or concept has a unique Q-identifier and a listing of "properties" that apply to that entity. So, to construct a dataset, you'd query for entities that participate in some set of properties you might care about.
- kzrdude 5y agoThanks! I ended up here, which is about the place one needs to start https://medium.com/freely-sharing-the-sum-of-all-knowledge/writing-a-wikidata-query-discovering-women-writers-from-north-africa-d020634f0f6c https://medium.com/freely-sharing-the-sum-of-all-knowledge/w... understanding which tags from the ontology to use and then building the query.
- villasv 5y agoI made a data import project for Brazilian higher education organizations and was impressed by the amount of documentation, process and tooling available. On the other hand, I was also impressed at how few data imports are completed for me to take as example. To this day I receive dozens of notifications about edits on the entities I created so I’m happy to see it’s alive and well.
- leoxv 5y agoWikidata is a fantastic data source for all sorts of applications, not just for the Wikimedia projects (infoboxes, templates, etc.). I'm also excited about the Wikifunctions project (https://en.wikipedia.org/wiki/Wikifunctions https://en.wikipedia.org/wiki/Wikifunctions) to created a large body of executable snippets that can be applied to data types. Wikidata is one of the main data sources in my Conzept encyclopedia project: https://conze.pt https://conze.pt (https://twitter.com/conzept__ https://twitter.com/conzept__)
- geraltofrivia 5y agoConzept looks really good! Are there some whitepapers (apart from the user guide) that I can peruse? Some information about the team? Is this an LOD based solution where we can plug in arbitrary KGs? Did you fork the UI from some existing Knowledge Graph viz tools, or is it made from scratch?
- leoxv 5y agoHey, good to know you like it! Its just me (Jama Poulsen) currently. I hope at some point to be able to work with more people on this project and also to have a base for other archives / institutions (as a B2B product and service) to use the "Conzept UI" for their knowledge base. The Conzept framework is already pretty generalized, multi-lingual and customizable, but more needs to be done. I'm aiming to be able to do a first pilot at the end of the year (or later, depending on the progress). Feel free to send me a message if someone is interested in this. There will be better user documentation coming (the current guide is a bit dated). Still thinking how to make that more modular, UI-integratable and maintainable. The whole main app design and UI is from scratch, but many embedded apps are developed by others (I've been donating to some of them for their great work, but more needs to be done here IMHO). No papers or anything on all that currently.
- zvr 5y agoCongrats on building this! Is the source under an Open-Source license? Can it be seen anywhere? Do you accept contributions?
- leozord 5y agoWe are using in my company. We imported the whole database into a graph db and we are running queries/marking entities in order to enable things like contextual/semantic search. It is a pretty good database. This is what enables you to search for things and not strings (as Google does).
- leoxv 5y ago"Introducing the Knowledge Graph: things, not strings" https://blog.google/products/search/introducing-knowledge-graph-things-not/ https://blog.google/products/search/introducing-knowledge-gr...
- mkr-hn 5y agoI wish Google would just search for strings the 60% of the time it doesn't know the thing I'm looking for but really, firmly, and persistently thinks it does. Like it used to. It should get the hint and switch methods somewhere around or before the 10th page of useless, mostly identical results.
- spupy 5y agoIsn't this kind of the purpose of the 'verbatim' search setting?
- jedwhite 5y agoSome of the comments suggest not everyone is aware of the history. This is a Hacker News thread from March 2012 titled "Wikidata: The first new project from Wikimedia Foundation since 2006" that is interesting to revisit: https://news.ycombinator.com/item?id=3775212 https://news.ycombinator.com/item?id=3775212
- merricksb 5y agoAlso, a discussion from 8 months ago: "A gentle introduction to the Wikidata Query Service" https://news.ycombinator.com/item?id=24823074 https://news.ycombinator.com/item?id=24823074
- chris_wot 5y agoI have frequently created articles and had Wikidata linked to the article. Take https://en.wikipedia.org/wiki/Kate_Baker https://en.wikipedia.org/wiki/Kate_Baker - if you click on Wikidata item, then it takes you to: https://m.wikidata.org/wiki/Q21536118 https://m.wikidata.org/wiki/Q21536118
- geraltofrivia 5y agoThank you for doing that!
- chris_wot 5y agoA pleasure, researching articles is always fascinating.
- ernesth 5y agoNice. It seems like magic, but it is possible to entirely outsource the infobox to wikidata. See for example https://fr.wikipedia.org/wiki/Mart%C3%ADn_Abadi https://fr.wikipedia.org/wiki/Mart%C3%ADn_Abadi whose infobox is created with the sole `{{Infobox Biographie2}}` line.
- yreg 5y agoNot meaning to be patronising, but what's the point of this thread? Just a Speaker's Corner to say whatever one wants regarding Wikidata?
- xanth 5y agoA bit of that, also making people aware of the wonders of wikidata.
- dom96 5y agoWiki data is awesome. I’ve been considering using it for some projects, but the main thing that’s keeping me away is the concern that some moderator will decide that my data doesn’t fit and remove it. Can anyone speak to this concern? On WP for example notability is a big thing, how does this work in Wikidata?
- zozbot234 5y agoAll data is notable on Wikidata as long as it can be directly sourced, and/or structurally linked to some other data that's itself notable. There's nothing like the concern for the "encyclopedic" that one might find on Wikipedia. The most obvious example of this is the zillions of entries for individual scholarly articles, which are included because these can be endowed with machine-readable info about authors, publishers and citations that is of general interest.
- zaik 5y agoLink to the full notability policy on Wikidata: https://wikidata.org/wiki/Wikidata:Notability https://wikidata.org/wiki/Wikidata:Notability . Please read it carefully before creating new items. If the item you want to create is about yourself, your new business or the song you just wrote, it likely does not meet the notability policy.
- abraxaz 5y ago> I’ve been considering using it for some projects, but the main thing that’s keeping me away is the concern that some moderator will decide that my data doesn’t fit and remove it. To me the greatest value of Wikidata was making me aware of RDF and SPARQL. In most cases, if you are relying on data business needs, it would be best to maintain your own RDF dataset and host it either just on HTTP, or on something like https://dydra.com/ https://dydra.com/. WikiData deseperately needs RDF ingestion, and if this is made available (can be done outside of Wikidata) then it would be easier to periodically sync datasets with Wikidata. On that note however, you could export all Wikidata triples you need and just host that on your own SPARQL server (e.g. Jena) or use it with RDF tools like rdflib.
- aasasd 5y agoAlas infoboxes on Wikipedia often have more info. Particularly, in the case of cultural phenomena people are frequently eager to populate the infoboxes. Perhaps some kind of synchronization would be feasible, where with standardized infoboxes relations between known items could be extracted when specified on Wikipedia, and plopped into Wikidata. For myself, I looked around for a service that could present infobox-data from pages in a category as a table, with filters and sorting. But ended up just firing API requests and parsing the boxes.
- M2Ys4U 5y agoWikipedia infoboxes can (and in small numbers are) being populated by Wikidata information. Some languages are making more use of this than others.
- aasasd 5y agoI'm talking about transfer in the other direction, or bidirectional one. Because people fill the infoboxes way more than they do Wikidata.
- thom 5y agoSPARQL over Wikidata is one of the closest things to magic on the Internet. It's incomplete, the runtime is slow, it dies on too much data, but it's amazing being able to think up random questions and actually ask them, however frivolous. Stuff like "who's the most successful footballer from my home town?" or "which part of India has produced the most test cricketers?" is really easy. Makes me wish I'd taken the quantified self more seriously because there's so much I'd love to find out with rich enough linked data.
- zozbot234 5y agoYou can download a data dump and run your own queries locally if the limitations of the online service are of concern. Full dumps of the whole Wikidata are easily available, or you can export a limited result set from the query service and run your own local queries on that data.
- arp242 5y agoI found SPARQL pretty hard to deal with. Some time ago I wanted to make an overview of various election results to prove a certain point. The data is in there, I can see it in the UI, but I had a lot of trouble writing a script to retrieve it (so I could make a nice table and/or chart). Basically, after an hour I failed and gave up. I will readily admit this is due to my own ignorance; I just wanted to post a point in a Reddit comment and investing a lot of time to properly learn SPARQL wasn't worth the effort, but I wish the data was more easily accessible without a fairly large time investment. WikiData is basically the only structured source for these election results that I could find (the government publishes them of course, but in a PDF that's always different). And I'm a programmer by trade! Non-technical people will have an even harder time. WikiData is pretty good, but I feel it could be truly fantastic if the data was more easily accessible.
- zozbot234 5y agoYou have to be familiar with Wikidata's underlying model and how the data you care about are mapped to it, but having done that it's just a matter of picking one of the many example queries and tweaking it so it references the right bits of data.
- HelloNurse 5y agoTests are a bit depressing. - "Borane" has two unlinked entries: Q127611 is "any chemical compound composed of boron and hydrogen atoms only" while Q15634214 is specifically boron trihydride. Both correct, but the latter should be labelled as an instance of the former. - "Anomalocaris" has Q37395 for the "extinct genus of radiodon" (instance of "fossil taxon") but species (e.g. Q49557506 Anomalocaris cranbrookensis) do not link to it. - There are no lists of links, for example Q936518 ("aerospace manufacturer") doesn't have a list of its instances (e.g. Boeing, Q66, or Arado Flugzeugwerke, Q624899).
- zozbot234 5y ago> There are no lists of links, for example Q936518 ("aerospace manufacturer") doesn't have a list of its instances (e.g. Boeing, Q66, or Arado Flugzeugwerke, Q624899) This is intentional, you can construct these via the query service. There's also an optional "gadget" registered users can add to their configuration, that can do this automatically when visiting a page for every instance of some "inverse" property.
- ZeroGravitas 5y agoI thought this is what the "What links here" link on the left was for? https://www.wikidata.org/wiki/Special:WhatLinksHere/Q936518 https://www.wikidata.org/wiki/Special:WhatLinksHere/Q936518
- zozbot234 5y agoWell, "what links here" gives you a general list of related pages without telling you which is relevant to the property you care about. It's sometimes useful (esp. for items with few incoming links), but the query service is a more complete solution.
- zaik 5y ago> for example Q936518 ("aerospace manufacturer") doesn't have a list of its instances You can query the database using SPARQL: https://w.wiki/3XgD https://w.wiki/3XgD
- phiresky 5y agoWikidata is a great resource, but the SPARQL query language seems more annoyingly complicated and confusing than it could be. I'm using Wikidata to automatically categorize visited websites and used programs for time tracking purposes. For example, here's a query to get the entity (e.g. company) that has a specific domain (news.ycombinator.com), and get the categories that entity is in that that are a descendent of the "service on internet" category: SELECT distinct ?service ?website_url ?outer_category ?outer_categoryLabel WHERE { ?service wdt:P856 ?website_url. optional { ?service wdt:P31 ?inner_category. ?inner_category wdt:P279* ?outer_category. ?outer_category wdt:P279+ wd:Q1668024. } VALUES ?website_url { <https://news.ycombinator.com/> } SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } } Returns - social news website - online service - website Relations have to be written as `wdt:P279` even though they have names [1], and the query engine just silently accepts lots of stuff it shouldn't. For example if above you do `"url"` instead of `<url>`, it will just not return any results because URLs is a separate type and URLs never match strings. And if an entity doesn't exist it will also just not return anything. Then there's this hacky "label service" thing that implicitly creates new output variables (outer_categoryLabel) to make it actually return text. The UX of the query site [2] is also pretty bad. I feel like Wikidata would be much more used if it had a easier query language. Or better, real bindings to common languages with full intellisense for properties etc). Something like this: const service = wikidata.variable(); const inner_category = wikidata.variable(); const outer_category = wikidata.variable(); const results = await wikidata .filter(service.official_website("https://news.ycombinator.com")) .filter(service.instance_of(inner_category)) .filter(inner_category.subclass_of(outer_category).anyDepth()) .filter(outer_category.subclass_of("service on internet").anyDepth()); console.log(results.map(row => row.get(outer_category).getLabel({language: "en"}))); It's also really hard to find good answers about the SparQL language without reading hundreds of pages of dry documentation. [1]: https://phabricator.wikimedia.org/T196450 https://phabricator.wikimedia.org/T196450 [2]: https://query.wikidata.org https://query.wikidata.org
- lolive 5y agoIn the old days, I had made a UI for SPARQL. Even adapted it to Wikidata. But in the end, so few people cared about it that I abandonned it. (it still works fine, anyway). http://datao.net/datao.net.png http://datao.net/datao.net.png
- lolive 5y agoOne of the big added value of Wikidata imho is that each Wikidata page mention the identifiers for the same item in several other datasets (OSM, wikipedia, geonames, etc). Given the fact that SPARQL allows cross-DB queries, Wikipedia becomes an interesting federation dataset.
- alyizzet 5y agoNormally when you hunt for information that you can't absolutely find an already-made API of you scrape the web and deal with regular expressions but this is definitely the easier option, using SPARQL. I can see a lot of potential information harvesting use cases for it.
- SeanLuke 5y agoIt appears that Wikidata semantic network statements are untyped and binary rather than n-ary. Ugh. Amazingly, the above URL has a picture which shows exactly why this is such a stupid approach. The location of San Francisco(Q62) is a "Geolocation" consisting of a latitude and a longitude. That is, the statement is (if I'm reading this right): location(San Francisco (Q62), Geolocation{-122.4183, 37.775}) This requires that Geolocation be a special type like integer or float. VERY BAD. There would be a massive proliferation of such things. Alternatively Wikidata could do this as Q95 (or whatever) = new object longitude(Q95, -122.4183) latitude(Q95, 37.775) location(San Francisco (Q62), Q95) This is the standard reified approach used by binary semantic networks and is ugly as sin, unnecessarily polluting the object space with little object poops. The clean way to do this would have been to declare location to be ternary, so we could say: location(San Francisco (Q62), -122.4183, 37.775)
- mmarx 5y agoWikidata statements are not binary, and values are not untyped. However, there is the concept of “simple statements”, especially in conjunction with the RDF exports (although not untyped, these data usually look like binary relations). Indeed, any statement can be annotated by a list of “qualifiers”, each of which can have zero or more values, can have references (which can have their own qualifiers) As for types, “GlobeCoordinateValues”[0], i.e., locations, form one of the types allowed for values, and consist not only of two integers, but indeed of four distinct values: latitude, longitude, precision, and the reference globe, since Wikidata does not limit coordinates to the Earth. There is also no “massive proliferation”, the data model[1] knows 12 types[2], of which four are four different kinds of texts (untranslated, monolingual, multi-lingual, and list of multilingual texts). [0] https://www.mediawiki.org/wiki/Wikibase/DataModel#Geographic_locations https://www.mediawiki.org/wiki/Wikibase/DataModel#Geographic... [1] https://www.mediawiki.org/wiki/Wikibase/DataModel https://www.mediawiki.org/wiki/Wikibase/DataModel [2] https://www.mediawiki.org/wiki/Wikibase/DataModel#Datatypes_and_their_Values https://www.mediawiki.org/wiki/Wikibase/DataModel#Datatypes_...
- starsep 5y agoIt's also used in OpenStreetMap - "Wikipedia for maps", referenced a lot lately on HN. Main website: https://www.openstreetmap.org/ https://www.openstreetmap.org/ Wikidata tagging documentation: https://wiki.openstreetmap.org/wiki/Key:wikidata https://wiki.openstreetmap.org/wiki/Key:wikidata
- habi 5y agoMy favourite example is linking the street names from OpenStreetMap with the gender of the persons name from Wikidata ID to produce visualisations of the gender distribution of street names in (European) cities: https://equalstreetnames.eu https://equalstreetnames.eu