Last active
January 20, 2021 20:33
-
-
Save EmmanuelOga/a191ceb4a12c16f644c3453582473a42 to your computer and use it in GitHub Desktop.
Rainbowfish file format.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.prefix : "https://emmanueloga.com/" | |
.prefix dc: "https://dc.com/rdf" | |
.prefix rdf: "https://w3.org/rdf" | |
.prefix rf: "https://rainbow.fish/" | |
.prefix schema: "https://google.com/schema" | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
rf:topic(:) | |
dc:author :me; | |
dc:title "Machinations"; | |
rf:description <~> !{ :query/topic/title(:) ", website of " :query/person/fullName(:me) }; | |
rf:header <~> { | |
<title> { <ref "/" /> } | |
<toc> { | |
<ref "/blog" /> | |
<ref "/topics" /> | |
<ref "/about" /> | |
} | |
}; | |
rf:body <~> { | |
<title> { <img src "some-url" /> Welcome! } | |
<p> { | |
Check the <ref "/blog"> { blog entries } or perhaps the | |
<ref "/topics"> { list of topics } mentioned on this site. | |
} | |
<p> { Thanks for visiting! } | |
}; | |
rf:footer "🐠"; | |
. | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
rf:topic(:404) | |
rf:body <~> { | |
<title.404> { 404 } | |
<p> { Sorry! Could not find that resource. } | |
}; | |
. | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
rf:topic(:about) | |
rf:title "About"; | |
rf:description "What is Machinations?"; | |
rf:body <~> { | |
<title> { About } | |
<p> { | |
Hi! My name is ${:query/person(:me)}. | |
I"m a Software Engineer interested in many <ref "/topics" /> :-). | |
} | |
<p> { Contact me elsewhere: } | |
<ul> { | |
<li> { <a href "https://github.com/emmanueloga" ~ "Github" /> } | |
<li> { <a href "https://twitter.com/emmanueloga" ~ "Twitter" /> } | |
} | |
}; | |
. | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
rf:topic(:blog) | |
rf:title 'Blog'@en ; | |
rf:description <~> !{ :query/person/name(:me) "'s Blog." } | |
rf:body <~> { | |
<title * "All blog entries" /> | |
<refs "/blog/" ~ <p ~ "Comming soon." /> /> | |
}; | |
. | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
rf:topic(:topics) | |
rf:title "Topics"; | |
rf:description "All topics covered in this site"; | |
rf:body <~> { | |
<title ~ "All Topics" /> | |
<refs.all-topics "/"> { | |
<omit "/index" /> | |
<omit "/topics" /> | |
<omit "/about" /> | |
<omit "/404" /> | |
<omit prefix "/blog" /> | |
<p ~ "Comming soon." /> | |
} | |
}; | |
. | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
.context :shared | |
:me | |
rdf:type schema:Person; | |
schema:name "Emmanuel Oga"; | |
schema:familyName "Oga"; | |
schema:givenName "Emmanuel"; | |
schema:jobTitle "Software Engineer"; | |
schema:knowsLanguage "en-US", "es-ES"; | |
schema:homeLocation -- { | |
rdf:type schema:PostalAddress; | |
schema:addressLocality "San Francisco"; | |
schema:addressRegion "California"; | |
schema:addressCountry "United States"; | |
}; | |
. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment