Skip to content

Instantly share code, notes, and snippets.

@EmmanuelOga
Created November 30, 2020 09:44
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 EmmanuelOga/d83f14f1cc57513def3d189dd1a453b9 to your computer and use it in GitHub Desktop.
Save EmmanuelOga/d83f14f1cc57513def3d189dd1a453b9 to your computer and use it in GitHub Desktop.
A fishy unicode character in a TDB query
{
"@type": "woql:And",
"woql:query_list": [
{
"@type": "woql:QueryListElement",
"woql:index": {
"@type": "xsd:nonNegativeInteger",
"@value": 0
},
"woql:query": {
"@type": "woql:AddTriple",
"woql:subject": {
"@type": "woql:Node",
"woql:node": "doc:public/"
},
"woql:predicate": {
"@type": "woql:Node",
"woql:node": "rdf:type"
},
"woql:object": {
"@type": "woql:Node",
"woql:node": "scm:Topic"
}
}
},
{
"@type": "woql:QueryListElement",
"woql:index": {
"@type": "xsd:nonNegativeInteger",
"@value": 1
},
"woql:query": {
"@type": "woql:AddTriple",
"woql:subject": {
"@type": "woql:Node",
"woql:node": "doc:public/"
},
"woql:predicate": {
"@type": "woql:Node",
"woql:node": "scm:Topic.title"
},
"woql:object": {
"@type": "woql:Datatype",
"woql:datatype": {
"@type": "xsd:string",
"@value": "Machinations"
}
}
}
},
{
"@type": "woql:QueryListElement",
"woql:index": {
"@type": "xsd:nonNegativeInteger",
"@value": 2
},
"woql:query": {
"@type": "woql:AddTriple",
"woql:subject": {
"@type": "woql:Node",
"woql:node": "doc:public/"
},
"woql:predicate": {
"@type": "woql:Node",
"woql:node": "scm:Topic.description"
},
"woql:object": {
"@type": "woql:Datatype",
"woql:datatype": {
"@type": "xsd:string",
"@value": "Machinations, Website of {{person(\"doc:me\")}}"
}
}
}
},
{
"@type": "woql:QueryListElement",
"woql:index": {
"@type": "xsd:nonNegativeInteger",
"@value": 3
},
"woql:query": {
"@type": "woql:AddTriple",
"woql:subject": {
"@type": "woql:Node",
"woql:node": "doc:public/"
},
"woql:predicate": {
"@type": "woql:Node",
"woql:node": "scm:Topic.header"
},
"woql:object": {
"@type": "woql:Datatype",
"woql:datatype": {
"@type": "xsd:string",
"@value": "\n <title><ref path=\"/\" /></title>\n <toc>\n <ref path=\"/blog\" />\n <ref path=\"/topics\" />\n <ref path=\"/about\" />\n </toc>\n "
}
}
}
},
{
"@type": "woql:QueryListElement",
"woql:index": {
"@type": "xsd:nonNegativeInteger",
"@value": 4
},
"woql:query": {
"@type": "woql:AddTriple",
"woql:subject": {
"@type": "woql:Node",
"woql:node": "doc:public/"
},
"woql:predicate": {
"@type": "woql:Node",
"woql:node": "scm:Topic.body"
},
"woql:object": {
"@type": "woql:Datatype",
"woql:datatype": {
"@type": "xsd:string",
"@value": "\n <title>Welcome!</title>\n <p>\n Check the <ref path=\"/blog\">blog entries</ref> or perhaps the\n <ref path=\"/topics\">list of topics</ref> mentioned on this site.\n </p>\n <p>\n Thanks for visiting!\n </p>\n "
}
}
}
},
{
"@type": "woql:QueryListElement",
"woql:index": {
"@type": "xsd:nonNegativeInteger",
"@value": 5
},
"woql:query": {
"@type": "woql:AddTriple",
"woql:subject": {
"@type": "woql:Node",
"woql:node": "doc:public/"
},
"woql:predicate": {
"@type": "woql:Node",
"woql:node": "scm:Topic.footer"
},
"woql:object": {
"@type": "woql:Datatype",
"woql:datatype": {
"@type": "xsd:string",
"@value": "🐠"
}
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment