Skip to content

Instantly share code, notes, and snippets.

@betehess
Last active August 29, 2015 14:00
Show Gist options
  • Save betehess/11354969 to your computer and use it in GitHub Desktop.
Save betehess/11354969 to your computer and use it in GitHub Desktop.
{
"@context": {
"@base": "http://example.org/timbl",
"@vocab": "http://www.w3.org/ns/ldpatch#",
"patch": "http://www.w3.org/ns/ldpatch#",
"ops": { "@container": "@list" },
"op": { "@type": "@id" },
"predicate": { "@type": "@id" },
"var": { "@type": "@id" },
"path": { "@type": "patch:path" },
"profile": "http://ogp.me/ns/profile#",
"schema": "http://schema.org/",
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
},
"ops": [
{ "op": "patch:update", "startingNode": { "@id": "#me" }, "predicate": "profile:first_name", "matchingNode": "Tim", "value": "Timothy" },
{ "op": "patch:bind", "startingNode": { "@id": "#me" }, "path": "/schema:attendee", "var": "event" },
{ "op": "patch:add", "startingNode": { "var": "event" }, "predicate": "rdf:type", "value": { "@id": "schema:Event" } },
{ "op": "patch:bind", "startingNode": { "@id": "http://conferences.ted.com/TED2009/" }, "path": "\\schema:url!", "var": "ted" },
{ "op": "patch:delete", "startingNode": { "var": "ted" }, "value": { "@id": "schema:startDate" } },
{ "op": "patch:add", "startingNode": { "var": "ted" }, "predicate": "schema:location",
"value": {
"schema:name": "Long Beach, California",
"schema:geo": { "schema:latitude": "33.7817", "schema:longitude": "-118.2054" }
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment