Skip to content

Instantly share code, notes, and snippets.

@mbrock
Created November 21, 2024 01:50
Show Gist options
  • Save mbrock/67493b07ae434101af1897c7b992d508 to your computer and use it in GitHub Desktop.
Save mbrock/67493b07ae434101af1897c7b992d508 to your computer and use it in GitHub Desktop.
Tim Berners-Lee Invents Formal Beer Ontology After Too Many Belgian Triples
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix bfo: <http://purl.obolibrary.org/obo/bfo.owl#> .
@prefix mfo: <http://purl.obolibrary.org/obo/mfo.owl#> .
@prefix sfo: <http://timbl.org/ontologies/scent-flavor#> .
@prefix beer: <http://www.semanticbeer.org/ontology/> .
@prefix time: <http://www.w3.org/2006/time#> .
# Tim's increasingly philosophical beer ontology, developed after his 4th Tripel
beer:BeerExperientialProcess
rdfs:subClassOf bfo:Process ;
rdfs:label "Beer Experiential Process"@en ;
rdfs:comment """A continuant process of beer appreciation that unfolds through time,
characterized by both immediate sensory input and retrospective cognitive analysis.
Written down at the pub after considerable empirical research."""@en .
beer:TasteExperienceQuality
rdfs:subClassOf bfo:Quality ;
owl:equivalentClass sfo:GustatoryQuality ;
rdfs:comment """The quale of beer taste as it manifests in consciousness.
Note to self: Is consciousness just a particularly complex RDF graph?"""@en .
# After the 5th beer, Tim started mapping mental states to flavor profiles
beer:MonasticContemplation
rdfs:subClassOf mfo:MentalProcess ;
rdfs:subClassOf beer:BeerExperientialProcess ;
rdfs:comment """The specific mental state induced by Trappist ales, characterized by
deep contemplation of both hop varieties and the fundamental nature of being.
Strongly correlated with the urge to create new W3C working groups."""@en .
# By beer 6, he was defining temporal parts of the beer drinking process
beer:SipTemporalPart
rdfs:subClassOf bfo:TemporalPart ;
rdfs:comment """A temporal part of beer consumption that exists only during the act of sipping.
Must remember to ask Barry Smith if beer foam can have temporal parts.
Also must remember where I left my laptop."""@en .
# After beer 7, everything became about information content entities
beer:BeerRecipe
rdfs:subClassOf bfo:InformationContentEntity ;
rdfs:comment """A beer recipe is an information content entity that is about a beer-production
process specification but exists independently of any particular realization, much like
web standards exist independently of their implementations.
Why is this profound? Everything is profound."""@en .
# By beer 8, he started mapping emotional responses
mfo:EmotionalResponse owl:equivalentClass [
rdf:type owl:Class ;
owl:unionOf (
beer:AweAtBelgianBrewingTradition
beer:FrustrationAtWebStandards
beer:EuphoriaFromProperOntologyAlignment
)
] .
# Actual beer review getting progressively more ontological
breweries:Westvleteren beer:produces [
rdf:type beer:TrappistBeer ;
rdfs:label "Westvleteren 12" ;
beer:hasABV 10.2 ;
beer:hasReview [
rdf:type beer:Review ;
beer:hasExperientialProcess [
rdf:type beer:BeerExperientialProcess ;
beer:hasSipTemporalPart [
rdf:type beer:SipTemporalPart ;
time:hasBeginning "2024-11-20T17:30:00Z"^^xsd:dateTime ;
time:hasEnd "2024-11-20T17:30:03Z"^^xsd:dateTime ;
beer:induces [
rdf:type mfo:EmotionalResponse ;
rdfs:label "Sudden understanding of why RDF triples are the fundamental building blocks of reality"
]
]
] ;
beer:reviewText """In this temporal slice of reality, I am experiencing a beer that
transcends the subject-predicate-object model, yet paradoxically can only be fully
described using it. The mouthfeel is an occurrent that inheres in the process of
sipping, while the abbey's brewing tradition is clearly a generically dependent
continuant. Also, I think my barstool is a dependent continuant of the bar itself.
Or am I the dependent continuant? Must consult BFO documentation after sobering up.""" ;
beer:rating 5 ;
beer:timestamp "2024-11-20T17:30:00Z"^^xsd:dateTime
]
] .
# Meta-ontological reflection added after finishing the beer
beer:MetaOntologicalReflection
rdfs:subClassOf bfo:Process ;
rdfs:comment """As I sit here contemplating the relationship between beer foam and the
upper ontology of reality, I cannot help but wonder: Is the Semantic Web just a very
elaborate way to describe which beers we like? Must explore this further at next
conference. Note to self: Propose new W3C working group on beer ontology alignment."""@en .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment