Skip to content

Instantly share code, notes, and snippets.

View RichardWallis's full-sized avatar

Richard Wallis RichardWallis

View GitHub Profile

Keybase proof

I hereby claim:

  • I am richardwallis on github.
  • I am richardwallis (https://keybase.io/richardwallis) on keybase.
  • I have a public key ASDdKjg66wsraO0mEjxKalrJ-93YHtur6BpAzknNDKw4wwo

To claim this, I am signing this object:

@RichardWallis
RichardWallis / 1. test-event code from EE4
Last active June 10, 2019 18:01
Event Espresso Schema.org 'Event' code
<script type="application/ld+json">
{
"@context": "http://schema.org/",
"@type": "Event",
"name": "Test Event",
"startDate": "2019-12-31T10:00:00+00:00",
"endDate": "2019-12-31T10:15:00+00:00",
"description": "[raw_html_snippet id=\"event-text\"]",
"url": "https://smarttrees.co.uk/events/test-event/",
"offers": [
@RichardWallis
RichardWallis / gist:32e46195c0af90e8833e6a4bfd806456
Created April 12, 2019 10:56
Schema.org associating people/employees with worksFor organizations using Role
{
"@context": "http://schema.org",
"@type": "Person",
"@id": "#P1",
"name": "A N Employee",
"worksFor": [
{
"@type": "Role",
"roleName": "Chief Bottle Washer",
"startDate": "2011:04:01",
@RichardWallis
RichardWallis / sample.jsonld
Created February 7, 2017 19:03
Sample appendix for article
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@graph":[
{
@id": "http://data.europeana.eu/item/2021618/internetserver_Details_kunst_25027",
"@type": ["CreativeWork","VisualArtwork"],
"name": "Mona Lisa | Leonardo da Vinci",
"creator": ["_p:0","_p:1"],
"about": ["Mona Lisa","_:p1"],
@RichardWallis
RichardWallis / ext-bib-enumvalues.csv
Created September 2, 2016 14:21
Prototype Schema.org CSV Files
id label comment enumerationtype supersedes supersededBy isPartOf
http://schema.org/GraphicNovel GraphicNovel Book format: GraphicNovel. May represent a bound collection of ComicIssue instances. http://schema.org/BookFormatType http://bib.schema.org
INFO:test_graphs:Term 'http://schema.org/Accommodation' has a comment without an ending '.'
INFO:test_graphs:Term 'http://schema.org/AccountingService' has a comment without an ending '.'
INFO:test_graphs:Term 'http://schema.org/BedAndBreakfast' has a comment without an ending '.'
INFO:test_graphs:Term 'http://schema.org/BreadcrumbList' has a comment without an ending '.'
INFO:test_graphs:Term 'http://schema.org/BusinessEntityType' has a comment without an ending '.'
INFO:test_graphs:Term 'http://schema.org/BusinessFunction' has a comment without an ending '.'
INFO:test_graphs:Term 'http://schema.org/Campground' has a comment without an ending '.'
INFO:test_graphs:Term 'http://schema.org/CampingPitch' has a comment without an ending '.'
INFO:test_graphs:Term 'http://schema.org/Collection' has a comment without an ending '.'
INFO:test_graphs:Term 'http://schema.org/CommunityHealth' has a comment without an ending '.'
select * where {
{
graph ?g {
?s rdfs:subClassOf <http://schema.org/Enumeration> .
}
}
Union
{
graph ?g{
?s rdfs:subClassOf ?s2.
@RichardWallis
RichardWallis / changedcomments.txt
Created June 22, 2016 10:31
Terms having comments updated for markdown
ProfessionalService
LegalService
AccountingService
Intangible
Offer
Article
Attorney
Event
Comment
Date
@RichardWallis
RichardWallis / compareterms-counts
Created June 17, 2016 10:22
Output from scripts/compareterms.py comparing 3.0 with previous sdo-phobos
$ ./scripts/compareterms.py
Current terms count 2045
Previous terms Count 1925
========== Terms ================
Dropped terms 8
New terms 128
Changed terms 586