Skip to content

Instantly share code, notes, and snippets.

@Fak3
Fak3 / context.json
Last active January 14, 2020 17:22
Example JSON-LD Context common for all edi3.org requests/responses
{
"@context": {
"dc": "http://purl.org/dc/terms/",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"@version": 1.1,
"@vocab": "http://edi3.org/vocab/",
"type": {
"@id": "@type",
"@type": "@vocab"
},
{
"1": {
"camera_1": "571b69fb-d915-4494-b828-fc21d30b6fff",
"camera_2": "5e6f57d2-1465-4793-a1a5-78d70fd0ff68",
"camera_3": "533b3931-9a4d-49a3-8aae-61949ba32767",
"camera_4": "4e9789fa-619f-472c-a752-dd67aaa8b8af",
"camera_5": "8bdaf3ba-eb02-4e6f-8759-80f033d17417"
},
"2": {
"camera_6": "cb29ef26-e52c-4e61-aa7a-e32816a8d01e",
@Fak3
Fak3 / gist:0f2c262d09d00bbdd348d7cd6635a3fa
Created October 23, 2020 11:58
missing org.freedesktop.portal.Request Interface in the portal introspection
$ dbus-send --session --dest=org.freedesktop.portal.Desktop --type=method_call --print-reply /org/freedesktop/portal/desktop org.freedesktop.DBus.Introspectable.Introspect
method return time=1603453688.987341 sender=:1.124 -> destination=:1.616 serial=386 reply_serial=2
string "<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<!-- GDBus 2.64.3 -->
<node>
<interface name="org.freedesktop.DBus.Properties">
<method name="Get">
<arg type="s" name="interface_name" direction="in"/>
{
"@context": {
"@version": 1.1,
"@protected": true,
"OpenAttestationCredential": {
"@id": "https://schemata.openattestation.com/vocab/#OpenAttestationCredential",
"@context": {
"identity": {
"@id": "https://lol.com/todo",
"@context": {