Skip to content

Instantly share code, notes, and snippets.

@flyingmachine
Last active July 20, 2023 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flyingmachine/c75a249c94e7f4a45bb46085a5e4ac58 to your computer and use it in GitHub Desktop.
Save flyingmachine/c75a249c94e7f4a45bb46085a5e4ac58 to your computer and use it in GitHub Desktop.
Code samples for Fluree's free introduction to JSON-LD workshop
{
"@context": {"s": "https://schema.org"},
"@type": "Cryptid",
"s:email": "freddy@flur.ee",
"s:jobTitle": "Research Assistant",
"s:name": "Freddy the Yeti"
}
{
"https://www.w3.org/1999/02/22-rdf-syntax-ns#type": "Cryptid",
"https://schema.org/email": "freddy@flur.ee",
"https://schema.org/jobTitle": "Research Assistant",
"https://schema.org/name": "Freddy the Yeti"
}
{
"@context": {"s": "https://schema.org"},
"@type": "Cryptid",
"s:email": "freddy@flur.ee",
"s:jobTitle": "Research Assistant",
"s:name": "Freddy the Yeti"
}
{
"@context": {"s": "https://schema.org"},
"@id": "https://freddytheyeti.com/me",
"@type": "Cryptid",
"s:email": "freddy@flur.ee",
"s:jobTitle": "Research Assistant",
"s:name": "Freddy the Yeti"
}
{
"@context": {
"s": "https://schema.org"
},
"@graph": [
{
"@id": "https://freddytheyeti.com/me",
"@type": "Cryptid",
"s:colleague": {
"@id": "https://lettytheyeti.com/me"
},
"s:name": "Freddy the Yeti"
},
{
"@id": "https://lettytheyeti.com/me",
"@type": "Cryptid",
"s:colleague": {
"@id": "https://freddytheyeti.com/me"
},
"s:name": "Letty the Yeti"
}
]
}
{
"@context": {
"s": "https://schema.org"
},
"@graph": [
{
"@id": "https://freddytheyeti.com/me",
"@type": "Cryptid",
"s:colleague": "https://lettytheyeti.com/me",
"s:name": "Freddy the Yeti"
},
{
"@id": "https://lettytheyeti.com/me",
"@type": "Cryptid",
"s:colleague": "https://freddytheyeti.com/me",
"s:name": "Letty the Yeti"
}
]
}
Daniel, owns, Potato
Potato, is a, cat
Potato, likes, playing
Potato, likes, chewing on wool
{
"@context": {"s": "https://schema.org"},
"@type": "Cryptid",
"s:email": "freddy@flur.ee",
"s:jobTitle": "Research Assistant",
"s:name": "Freddy the Yeti"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment