Dan Scott,
Laurentian University
coffeecode.net
/ +Dan Scott
/ @denials
The virtue is about the avoidance of future work.
Virtues of the Perl Programmer, Larry Wall
Freebase: Open graph database launched in 2007
{ "@context": {
"@vocab": "http://schema.org/",
"goog": "http://schema.googleapis.com/",
"EntitySearchResult": "goog:EntitySearchResult",
"detailedDescription": "goog:detailedDescription",
"resultScore": "goog:resultScore",
"kg": "http://g.co/kg"
},
"@type": "ItemList", "itemListElement": [
{
"@type": "EntitySearchResult",
"result": {
"@id": "kg:/m/02zzm_",
"name": "John Kasich",
"@type": [ "Person", "Thing" ],
"description": "Governor of Ohio",
"image": {
"contentUrl": "http://t1.gstatic.com/images?q=tbn:ANd9GcRoou4pZKD6FoNaE71ngNlv4RGgUS46mgtin5YJtyEoh42CIs4x",
"url": "https://en.wikipedia.org/wiki/John_Kasich"
},
"detailedDescription": {
"articleBody": "John Richard Kasich is an American politician, the 69th and current Governor of Ohio. First elected in 2010 and re-elected in 2014, Kasich is a member of the Republican Party. His term is set to end by January 2019.\n",
"url": "https://en.wikipedia.org/wiki/John_Kasich",
"license": "https://en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License"
},
"url": "https://johnkasich.com"
},
"resultScore": 22.28808
}
]
}
"kg": "http://g.co/kg"
...
"@id": "kg:/m/02zzm_"
URIs don't have to resolve, but it's nice when they do!
Note: The Knowledge Graph Search API returns only individual matching entities, rather than graphs of interconnected entities. If you need the latter, we recommend using data dumps from Wikidata instead.https://developers.google.com/knowledge-graph/
REST-based MediaWiki API wbsearchentities module:
https://www.wikidata.org/w/api.php?action=wbsearchentities&search=john+kasich&language=en
Restrictions: Serial requests, or risk the ban hammer!
{
"searchinfo": { "search": "john kasich" },
"search": [
{
"id": "Q69319",
"concepturi": "http://www.wikidata.org/entity/Q69319",
"url": "//www.wikidata.org/wiki/Q69319",
"title": "Q69319",
"pageid": 72036,
"label": "John Kasich",
"description": "American politician",
"match": {
"type": "label",
"language": "en",
"text": "John Kasich"
}
}
]
}
With https://www.wikidata.org/entity/ as prefix wde:, the entity wde:Q69319 ("John Kasich"):
"+1952-05-13T00:00:00Z";datavalue/value/time value of +1983-01-03T00:00:00Z.More simply...
| Subject | Predicate | Object |
|---|---|---|
| wde:Q69319 | wde:P569 | "+1952-05-13T00:00:00Z" |
| wde:Q69319 | wde:P39 | wde:Q13218630 |
| wde:Q13218630 | wde:P580 | "+1983-01-03T00:00:00Z" |
SELECT / WHERE / GROUP BY / ORDER... just like SQL right?We can pull some awesome results from Wikidata:
| Format | HTTP Header | GET param |
|---|---|---|
| XML | Accept: application/sparql-results+xml | format=xml |
| JSON | Accept: application/sparql-results+json | format=json |
| TSV | Accept: text/tab-separated-values | |
| CSV | Accept: text/csv |
Notability requirements still apply
LIVE REVIEW: Midpoint Music Festival — Cincinnati, OH – The Owl Mag – Medium
LIVE REVIEW: Midpoint Music Festival — Cincinnati, OH – The Owl Mag – Medium
LIVE REVIEW: Midpoint Music Festival — Cincinnati, OH
Published by
The Owl Mag
2011-09-27
Cincinnati is not a music city by any means. Numerous bands skip the city in lieu of Columbus, OH on national tours and the city’s hottest music venues reside over the river in Kentucky. Midpoint...
Deep, rich structrure
- 584 types, 846 properties
- Covering a broad set of domains:
- commerce
- culture
- events
- health
- organizations
- Run as a W3C Community Group
- Extensible
Impatience (virtue #2)
- Joined the Bibliographic Extension community
- Fleshed out journals/magazines
- Represented library holdings as Product/Offers
- Dragged comics across the finish line
- Implemented schema.org support in library systems
- Evangelized schema.org at conferences and articles
- Aggregated library linked open data for analysis and reuse
Hubris (virtue #3)
- Through my DIALLED.ca project,
I checked over 4,000 library home pages in Canada
- 525 had OpenGraph Protocol title attributes
- 215 had schema.org/name attributes
- 10 had Twitter Cards
- 5 used schema.org/Library
Result: Despair (a bit)
Adoption from 2014 to 2015
Big data makes common schemas even more
necessary.
[...]
In this sample 31.3 percent
of pages have Schema.org markup, up from 22 percent one
year ago.
Guha, R. V., Brickley, D., &
Macbeth, S. (2016). Schema.org: Evolution of structured
data on the web. Communications of the ACM,
59(2), 44-51. (http://cacm.acm.org/magazines/2016/2/197422-schema-org/fulltext)
The semantic web is alive
- schema.org data is very rich in some communities
- Crawling and aggregating schema.org data can make sense
- That can feed into wikidata
- We can pull from and build on top of wikidata
- That can also feed the Google Knowledge Graph
- EVERYTHING GETS BETTER
Questions?
- Please direct them to
my SPARQL endpoint the microphone
- Slides: coffeecode.net/ohiodevfest16
- Social: @denials / +DanScottCAN
- Blog: coffeecode.net

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License