mirror of
https://github.com/balkian/gists.git
synced 2024-11-23 01:52:27 +00:00
e10cc3c8fe
git-subtree-dir: repos/9941322 git-subtree-mainline:837202e852
git-subtree-split:e5cb5d1424
120 lines
124 KiB
Plaintext
120 lines
124 KiB
Plaintext
{
|
|
"metadata": {
|
|
"name": "Untitled0"
|
|
},
|
|
"nbformat": 3,
|
|
"nbformat_minor": 0,
|
|
"worksheets": [
|
|
{
|
|
"cells": [
|
|
{
|
|
"cell_type": "markdown",
|
|
"metadata": {},
|
|
"source": "Instalar\n========\nS\u00f3lo hace falta instalar pyld: https://github.com/digitalbazaar/pyld\n\n```bash\npip install pyld \n```\n\nTambi\u00e9n puedes instalar rdflib para convertir el fichero de xml-rdf a nt.\n\nModificar el frame\n==================\nLo que metas dentro del frame se usa para dos cosas:\n * La parte del contexto se usa para compactizar (reducir nombres, son los prefijos)\n * El total se usa para dar estructura al json final\n \nPor tanto, aqu\u00ed puedes decirle qu\u00e9 espacios de nombres y qu\u00e9 campos usar.\nComo ver\u00e1s, adem\u00e1s de hacer framing hago compact.\n\u00bfPor qu\u00e9?, pues porque el framing deja una lista de objetos colgando de \"@graph\", y si esa lista tiene un s\u00f3lo elemento podemos pasar esos atributos a la \"ra\u00edz\" para hacer m\u00e1s legible el json.\n\nPor ejemplo:\n```json\n{ ...\n \"@graph\": [ {\"@id\": \"test\", \"name\": \"testing\"}]\n}\n```\n\nSe convierte en:\n\n```json\n{ ...\n \"@id\": \"test\",\n \"name\": \"testing\"\n\n}\n```\n\nEn el caso de los channels, el frame contendr\u00e1 '\"@type\": \"ewe:Channel\"'; en las reglas '\"@type\": \"ewe:Rule\"'. El contexto no deber\u00eda cambiar.\n\n\nSin l\u00edos\n========\n\nPuedes usar el json-ld playground para estas cosas: [Enlace](http://json-ld.org/playground/index.html#startTab=tab-framed&json-ld=%7B%22%40context%22%3A%7B%22foaf%22%3A%22http%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2F%22%2C%22owl%22%3A%22http%3A%2F%2Fwww.w3.org%2F2002%2F07%2Fowl%23%22%2C%22rdfs%22%3A%22http%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%22%2C%22image%22%3A%7B%22%40id%22%3A%22http%3A%2F%2Fschema.org%2Fimage%22%2C%22%40type%22%3A%22%40id%22%7D%2C%22tags%22%3A%22http%3A%2F%2Fwww.holygoat.co.uk%2Fowl%2Fredwood%2F0.1%2Ftags%2F%22%2C%22ewe%22%3A%22http%3A%2F%2Fgsi.dit.upm.es%2Fontologies%2Fewe%2Fns%2F%22%2C%22rdf%22%3A%22http%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%22%2C%22xsd%22%3A%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%22%2C%22dcterms%22%3A%22http%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%22%2C%22homepage%22%3A%7B%22%40id%22%3A%22http%3A%2F%2Fschema.org%2Furl%22%2C%22%40type%22%3A%22%40id%22%7D%2C%22spinrdf%22%3A%22http%3A%2F%2Fspinrdf.org%2Fsp%23%22%7D%2C%22%40graph%22%3A%5B%7B%22%40id%22%3A%22_%3Ab0%22%2C%22spinrdf%3AvarName%22%3A%22message%22%7D%2C%7B%22%40id%22%3A%22_%3Ab1%22%2C%22spinrdf%3AvarName%22%3A%22action%22%7D%2C%7B%22spinrdf%3Atemplates%22%3A%7B%22%40list%22%3A%5B%7B%22spinrdf%3Apredicate%22%3A%7B%22%40id%22%3A%22rdf%3Atype%22%7D%2C%22spinrdf%3Aobject%22%3A%7B%22%40id%22%3A%22http%3A%2F%2Fgsi.dit.upm.es%2Fontologies%2Fewe%23Action%22%7D%2C%22%40id%22%3A%22_%3Ab11%22%2C%22spinrdf%3Asubject%22%3A%7B%22%40id%22%3A%22_%3Ab38%22%2C%22spinrdf%3AvarName%22%3A%22action%22%7D%7D%2C%7B%22spinrdf%3Apredicate%22%3A%7B%22%40id%22%3A%22dcterms%3Atitle%22%7D%2C%22spinrdf%3Aobject%22%3A%22New%20chat%20message%22%2C%22%40id%22%3A%22_%3Ab12%22%2C%22spinrdf%3Asubject%22%3A%7B%22%40id%22%3A%22_%3Ab23%22%2C%22spinrdf%3AvarName%22%3A%22action%22%7D%7D%2C%7B%22spinrdf%3Apredicate%22%3A%7B%22%40id%22%3A%22http%3A%2F%2Fgsi.dit.upm.es%2Fontologies%2Fewe%23hasParameter%22%7D%2C%22spinrdf%3Aobject%22%3A%7B%22%40id%22%3A%22_%3Ab37%22%2C%22spinrdf%3AvarName%22%3A%22iParam%22%7D%2C%22%40id%22%3A%22_%3Ab13%22%2C%22spinrdf%3Asubject%22%3A%7B%22%40id%22%3A%22_%3Ab32%22%2C%22spinrdf%3AvarName%22%3A%22action%22%7D%7D%2C%7B%22spinrdf%3Apredicate%22%3A%7B%22%40id%22%3A%22dcterms%3Atitle%22%7D%2C%22spinrdf%3Aobject%22%3A%22message%22%2C%22%40id%22%3A%22_%3Ab7%22%2C%22spinrdf%3Asubject%22%3A%7B%22%40id%22%3A%22_%3Ab8%22%2C%22spinrdf%3AvarName%22%3A%22iParam%22%7D%7D%2C%7B%22spinrdf%3Apredicate%22%3A%7B%22%40id%22%3A%22dcterms%3Avalue%22%7D%2C%22spinrdf%3Aobject%22%3A%7B%22%40id%22%3A%22_%3Ab0%22%2C%22spinrdf%3AvarName%22%3A%22message%22%7D%2C%22%40id%22%3A%22_%3Ab2%22%2C%22spinrdf%3Asubject%22%3A%7B%22%40id%22%3A%22_%3Ab3%22%2C%22spinrdf%3AvarName%22%3A%22iParam%22%7D%7D%2C%7B%22spinrdf%3Apredicate%22%3A%7B%22%40id%22%3A%22http%3A%2F%2Fgsi.dit.upm.es%2Fontologies%2Fewe%23providesAction%22%7D%2C%22spinrdf%3Aobject%22%3A%7B%22%40id%22%3A%22_%3Ab5%22%2C%22spinrdf%3AvarName%22%3A%22action%22%7D%2C%22%40id%22%3A%22_%3Ab4%22%2C%22spinrdf%3Asubject%22%3A%7B%22%40id%22%3A%22https%3A%2F%2Fifttt.com%2FGoogleTalk%22%7D%7D%5D%7D%2C%22%40id%22%3A%22_%3Ab10%22%2C%22%40type%22%3A%22spinrdf%3AConstruct%22%2C%22spinrdf%3Awhere%22%3A%7B%22%40list%22%3A%5B%7B%22spinrdf%3Apredicate%22%3A%7B%22%40id%22%3A%22rdf%3Atype%22%7D%2C%22spinrdf%3Aobject%22%3A%7B%22%40id%22%3A%22http%3A%2F%2Fgsi.dit.upm.es%2Fontologies%2Fewe%23Event%22%7D%2C%22%40id%22%3A%22_%3Ab14%22%2C%22spinrdf%3Asubject%22%3A%7B%22%40id%22%3A%22_%3Ab36%22%2C%22spinrdf%3AvarName%22%3A%22event%22%7D%7D%2C%7B%22spinrdf%3Apredicate%22%3A%7B%22%40id%22%3A%22dcterms%3Atitle%22%7D%2C%22spinrdf%3Aobject%22%3A%22Any%20new%20email%22%2C%22%40id%22%3A%22_%3Ab15%22%2C%22spinrdf%3Asubject%22%3A%7B%22%40id%22%3A%22_%3Ab27%22%2C%22spinrdf%3AvarName%22%3A%22event%22%7D%7D%2C%7B%22spinrdf%3Apredicate%22%3A%7B%22%40id%22%3A%22http%3A%2F%2Fgsi.dit.upm.es%2Fontologies%2Fewe%23hasOutputParameter%22%7D%2C%22spinrdf%3Aobject%22%3A%7B%22%40id%22%3A%22_%3Ab35%22%2C%22spinrdf%3AvarName%22%3A%22oParam%22%7D%2C%22%40id%22%3A%22_%3Ab16%22%2C%22spinrdf%3Asubject%22%3A%7B%22%40id%22%3A%22_%3Ab33%22%2C%22spinrdf%3AvarName%22%3A%22event%22%7D%7D%2C%7B%22spinrdf%3Apredicate%22%3A%7B%22%40id%22%3A%22http%3A%2F%2Fgsi.dit.upm.es%2Fontologies%2Fewe%23generatesEvent%22%7D%2C%22spinrdf%3Aobject%22%3A%7B%22%40id%22%3A%22_%3Ab6%22%2C%22spinrdf%3AvarName%22%3A%22event%22%7D%2C%22%40id%22%3A%22_%3Ab17%22%2C%22spinrdf%3Asubject%22%3A%7B%22%40id%22%3A%22https%3A%2F%2Fifttt.com%2FGmail%22%7D%7D%2C%7B%22spinrdf%3Apredicate%22%3A%7B%22%40id%22%3A%22dcterms%3Atitle%22%7D%2C%22spinrdf%3Aobject%22%3A%22FromAddress%22%2C%22%40id%22%3A%22_%3Ab18%22%2C%22spinrdf%3Asubject%22%3A%7B%22%40id%22%3A%22_%3Ab24%22%2C%22spinrdf%3AvarName%22%3A%22oParam%22%7D%7D%2C%7B%22spinrdf%3Apredicate%22%3A%7B%22%40id%22%3A%22dcterms%3Avalue%22%7D%2C%22spinrdf%3Aobject%22%3A%7B%22%40id%22%3A%22_%3Ab31%22%2C%22spinrdf%3AvarName%22%3A%22oParamFrom%22%7D%2C%22%40id%22%3A%22_%3Ab19%22%2C%22spinrdf%3Asubject%22%3A%7B%22%40id%22%3A%22_%3Ab9%22%2C%22spinrdf%3AvarName%22%3A%22oParam%22%7D%7D%2C%7B%22%40id%22%3A%22_%3Ab20%22%2C%22%40type%22%3A%22spinrdf%3ABind%22%2C%22spinrdf%3Aexpression%22%3A%7B%22spinrdf%3Aarg2%22%3A%7B%22%40id%22%3A%22_%3Ab29%22%2C%22spinrdf%3AvarName%22%3A%22oParamFrom%22%7D%2C%22spinrdf%3Aarg1%22%3A%22You%20have%20received%20a%20new%20message%20from%20%22%2C%22%40id%22%3A%22_%3Ab28%22%2C%22%40type%22%3A%22http%3A%2F%2Fwww.w3.org%2F2005%2Fxpath-functions%23concat%22%7D%2C%22spinrdf%3Avariable%22%3A%7B%22%40id%22%3A%22_%3Ab30%22%2C%22spinrdf%3AvarName%22%3A%22message%22%7D%7D%2C%7B%22%40id%22%3A%22_%3Ab21%22%2C%22%40type%22%3A%22spinrdf%3ABind%22%2C%22spinrdf%3Aexpression%22%3A%7B%22spinrdf%3Aarg1%22%3A%22http%3A%2F%2Fgsi.dit.upm.es%2Fontology%2Fewe%2Feamples%2Faction1%22%2C%22%40id%22%3A%22_%3Ab34%22%2C%22%40type%22%3A%22spinrdf%3Auri%22%7D%2C%22spinrdf%3Avariable%22%3A%7B%22%40id%22%3A%22_%3Ab1%22%2C%22spinrdf%3AvarName%22%3A%22action%22%7D%7D%2C%7B%22%40id%22%3A%22_%3Ab22%22%2C%22%40type%22%3A%22spinrdf%3ABind%22%2C%22spinrdf%3Aexpression%22%3A%7B%22spinrdf%3Aarg1%22%3A%22http%3A%2F%2Fgsi.dit.upm.es%2Fontology%2Fewe%2Feamples%2Fparam1%22%2C%22%40id%22%3A%22_%3Ab25%22%2C%22%40type%22%3A%22spinrdf%3Auri%22%7D%2C%22spinrdf%3Avariable%22%3A%7B%22%40id%22%3A%22_%3Ab26%22%2C%22spinrdf%3AvarName%22%3A%22iParam%22%7D%7D%5D%7D%7D%2C%7B%22spinrdf%3Apredicate%22%3A%7B%22%40id%22%3A%22rdf%3Atype%22%7D%2C%22spinrdf%3Aobject%22%3A%7B%22%40id%22%3A%22http%3A%2F%2Fgsi.dit.upm.es%2Fontologies%2Fewe%23Action%22%7D%2C%22%40id%22%3A%22_%3Ab11%22%2C%22spinrdf%3Asubject%22%3A%7B%22%40id%22%3A%22_%3Ab38%22%2C%22spinrdf%3AvarName%22%3A%22action%22%7D%7D%2C%7B%22spinrdf%3Apredicate%22%3A%7B%22%40id%22%3A%22dcterms%3Atitle%22%7D%2C%22spinrdf%3Aobject%22%3A%22New%20chat%20message%22%2C%22%40id%22%3A%22_%3Ab12%22%2C%22spinrdf%3Asubject%22%3A%7B%22%40id%22%3A%22_%3Ab23%22%2C%22spinrdf%3AvarName%22%3A%22action%22%7D%7D%2C%7B%22spinrdf%3Apredicate%22%3A%7B%22%40id%22%3A%22http%3A%2F%2Fgsi.dit.upm.es%2Fontologies%2Fewe%23hasParameter%22%7D%2C%22spinrdf%3Aobject%22%3A%7B%22%40id%22%3A%22_%3Ab37%22%2C%22spinrdf%3AvarName%22%3A%22iParam%22%7D%2C%22%40id%22%3A%22_%3Ab13%22%2C%22spinrdf%3Asubject%22%3A%7B%22%40id%22%3A%22_%3Ab32%22%2C%22spinrdf%3AvarName%22%3A%22action%22%7D%7D%2C%7B%22spinrdf%3Apredicate%22%3A%7B%22%40id%22%3A%22rdf%3Atype%22%7D%2C%22spinrdf%3Aobject%22%3A%7B%22%40id%22%3A%22http%3A%2F%2Fgsi.dit.upm.es%2Fontologies%2Fewe%23Event%22%7D%2C%22%40id%22%3A%22_%3Ab14%22%2C%22spinrdf%3Asubject%22%3A%7B%22%40id%22%3A%22_%3Ab36%22%2C%22spinrdf%3AvarName%22%3A%22event%22%7D%7D%2C%7B%22spinrdf%3Apredicate%22%3A%7B%22%40id%22%3A%22dcterms%3Atitle%22%7D%2C%22spinrdf%3Aobject%22%3A%22Any%20new%20email%22%2C%22%40id%22%3A%22_%3Ab15%22%2C%22spinrdf%3Asubject%22%3A%7B%22%40id%22%3A%22_%3Ab27%22%2C%22spinrdf%3AvarName%22%3A%22event%22%7D%7D%2C%7B%22spinrdf%3Apredicate%22%3A%7B%22%40id%22%3A%22http%3A%2F%2Fgsi.dit.upm.es%2Fontologies%2Fewe%23hasOutputParameter%22%7D%2C%22spinrdf%3Aobject%22%3A%7B%22%40id%22%3A%22_%3Ab35%22%2C%22spinrdf%3AvarName%22%3A%22oParam%22%7D%2C%22%40id%22%3A%22_%3Ab16%22%2C%22spinrdf%3Asubject%22%3A%7B%22%40id%22%3A%22_%3Ab33%22%2C%22spinrdf%3AvarName%22%3A%22event%22%7D%7D%2C%7B%22spinrdf%3Apredicate%22%3A%7B%22%40id%22%3A%22http%3A%2F%2Fgsi.dit.upm.es%2Fontologies%2Fewe%23generatesEvent%22%7D%2C%22spinrdf%3Aobject%22%3A%7B%22%40id%22%3A%22_%3Ab6%22%2C%22spinrdf%3AvarName%22%3A%22event%22%7D%2C%22%40id%22%3A%22_%3Ab17%22%2C%22spinrdf%3Asubject%22%3A%7B%22%40id%22%3A%22https%3A%2F%2Fifttt.com%2FGmail%22%7D%7D%2C%7B%22spinrdf%3Apredicate%22%3A%7B%22%40id%22%3A%22dcterms%3Atitle%22%7D%2C%22spinrdf%3Aobject%22%3A%22FromAddress%22%2C%22%40id%22%3A%22_%3Ab18%22%2C%22spinrdf%3Asubject%22%3A%7B%22%40id%22%3A%22_%3Ab24%22%2C%22spinrdf%3AvarName%22%3A%22oParam%22%7D%7D%2C%7B%22spinrdf%3Apredicate%22%3A%7B%22%40id%22%3A%22dcterms%3Avalue%22%7D%2C%22spinrdf%3Aobject%22%3A%7B%22%40id%22%3A%22_%3Ab31%22%2C%22spinrdf%3AvarName%22%3A%22oParamFrom%22%7D%2C%22%40id%22%3A%22_%3Ab19%22%2C%22spinrdf%3Asubject%22%3A%7B%22%40id%22%3A%22_%3Ab9%22%2C%22spinrdf%3AvarName%22%3A%22oParam%22%7D%7D%2C%7B%22spinrdf%3Apredicate%22%3A%7B%22%40id%22%3A%22dcterms%3Avalue%22%7D%2C%22spinrdf%3Aobject%22%3A%7B%22%40id%22%3A%22_%3Ab0%22%2C%22spinrdf%3AvarName%22%3A%22message%22%7D%2C%22%40id%22%3A%22_%3Ab2%22%2C%22spinrdf%3Asubject%22%3A%7B%22%40id%22%3A%22_%3Ab3%22%2C%22spinrdf%3AvarName%22%3A%22iParam%22%7D%7D%2C%7B%22%40id%22%3A%22_%3Ab20%22%2C%22%40type%22%3A%22spinrdf%3ABind%22%2C%22spinrdf%3Aexpression%22%3A%7B%22spinrdf%3Aarg2%22%3A%7B%22%40id%22%3A%22_%3Ab29%22%2C%22spinrdf%3AvarName%22%3A%22oParamFrom%22%7D%2C%22spinrdf%3Aarg1%22%3A%22You%20have%20received%20a%20new%20message%20from%20%22%2C%22%40id%22%3A%22_%3Ab28%22%2C%22%40type%22%3A%22http%3A%2F%2Fwww.w3.org%2F2005%2Fxpath-functions%23concat%22%7D%2C%22spinrdf%3Avariable%22%3A%7B%22%40id%22%3A%22_%3Ab30%22%2C%22spinrdf%3AvarName%22%3A%22message%22%7D%7D%2C%7B%22%40id%22%3A%22_%3Ab21%22%2C%22%40type%22%3A%22spinrdf%3ABind%22%2C%22spinrdf%3Aexpression%22%3A%7B%22spinrdf%3Aarg1%22%3A%22http%3A%2F%2Fgsi.dit.upm.es%2Fontology%2Fewe%2Feamples%2Faction1%22%2C%22%40id%22%3A%22_%3Ab34%22%2C%22%40type%22%3A%22spinrdf%3Auri%22%7D%2C%22spinrdf%3Avariable%22%3A%7B%22%40id%22%3A%22_%3Ab1%22%2C%22spinrdf%3AvarName%22%3A%22action%22%7D%7D%2C%7B%22%40id%22%3A%22_%3Ab22%22%2C%22%40type%22%3A%22spinrdf%3ABind%22%2C%22spinrdf%3Aexpression%22%3A%7B%22spinrdf%3Aarg1%22%3A%22http%3A%2F%2Fgsi.dit.upm.es%2Fontology%2Fewe%2Feamples%2Fparam1%22%2C%22%40id%22%3A%22_%3Ab25%22%2C%22%40type%22%3A%22spinrdf%3Auri%22%7D%2C%22spinrdf%3Avariable%22%3A%7B%22%40id%22%3A%22_%3Ab26%22%2C%22spinrdf%3AvarName%22%3A%22iParam%22%7D%7D%2C%7B%22%40id%22%3A%22_%3Ab23%22%2C%22spinrdf%3AvarName%22%3A%22action%22%7D%2C%7B%22%40id%22%3A%22_%3Ab24%22%2C%22spinrdf%3AvarName%22%3A%22oParam%22%7D%2C%7B%22spinrdf%3Aarg1%22%3A%22http%3A%2F%2Fgsi.dit.upm.es%2Fontology%2Fewe%2Feamples%2Fparam1%22%2C%22%40id%22%3A%22_%3Ab25%22%2C%22%40type%22%3A%22spinrdf%3Auri%22%7D%2C%7B%22%40id%22%3A%22_%3Ab26%22%2C%22spinrdf%3AvarName%22%3A%22iParam%22%7D%2C%7B%22%40id%22%3A%22_%3Ab27%22%2C%22spinrdf%3AvarName%22%3A%22event%22%7D%2C%7B%22spinrdf%3Aarg2%22%3A%7B%22%40id%22%3A%22_%3Ab29%22%2C%22spinrdf%3AvarName%22%3A%22oParamFrom%22%7D%2C%22spinrdf%3Aarg1%22%3A%22You%20have%20received%20a%20new%20message%20from%20%22%2C%22%40id%22%3A%22_%3Ab28%22%2C%22%40type%22%3A%22http%3A%2F%2Fwww.w3.org%2F2005%2Fxpath-functions%23concat%22%7D%2C%7B%22%40id%22%3A%22_%3Ab29%22%2C%22spinrdf%3AvarName%22%3A%22oParamFrom%22%7D%2C%7B%22%40id%22%3A%22_%3Ab3%22%2C%22spinrdf%3AvarName%22%3A%22iParam%22%7D%2C%7B%22%40id%22%3A%22_%3Ab30%22%2C%22spinrdf%3AvarName%22%3A%22message%22%7D%2C%7B%22%40id%22%3A%22_%3Ab31%22%2C%22spinrdf%3AvarName%22%3A%22oParamFrom%22%7D%2C%7B%22%40id%22%3A%22_%3Ab32%22%2C%22spinrdf%3AvarName%22%3A%22action%22%7D%2C%7B%22%40id%22%3A%22_%3Ab33%22%2C%22spinrdf%3AvarName%22%3A%22event%22%7D%2C%7B%22spinrdf%3Aarg1%22%3A%22http%3A%2F%2Fgsi.dit.upm.es%2Fontology%2Fewe%2Feamples%2Faction1%22%2C%22%40id%22%3A%22_%3Ab34%22%2C%22%40type%22%3A%22spinrdf%3Auri%22%7D%2C%7B%22%40id%22%3A%22_%3Ab35%22%2C%22spinrdf%3AvarName%22%3A%22oParam%22%7D%2C%7B%22%40id%22%3A%22_%3Ab36%22%2C%22spinrdf%3AvarName%22%3A%22event%22%7D%2C%7B%22%40id%22%3A%22_%3Ab37%22%2C%22spinrdf%3AvarName%22%3A%22iParam%22%7D%2C%7B%22%40id%22%3A%22_%3Ab38%22%2C%22spinrdf%3AvarName%22%3A%22action%22%7D%2C%7B%22spinrdf%3Apredicate%22%3A%7B%22%40id%22%3A%22http%3A%2F%2Fgsi.dit.upm.es%2Fontologies%2Fewe%23providesAction%22%7D%2C%22spinrdf%3Aobject%22%3A%7B%22%40id%22%3A%22_%3Ab5%22%2C%22spinrdf%3AvarName%22%3A%22action%22%7D%2C%22%40id%22%3A%22_%3Ab4%22%2C%22spinrdf%3Asubject%22%3A%7B%22%40id%22%3A%22https%3A%2F%2Fifttt.com%2FGoogleTalk%22%7D%7D%2C%7B%22%40id%22%3A%22_%3Ab5%22%2C%22spinrdf%3AvarName%22%3A%22action%22%7D%2C%7B%22%40id%22%3A%22_%3Ab6%22%2C%22spinrdf%3AvarName%22%3A%22event%22%7D%2C%7B%22spinrdf%3Apredicate%22%3A%7B%22%40id%22%3A%22dcterms%3Atitle%22%7D%2C%22spinrdf%3Aobject%22%3A%22message%22%2C%22%40id%22%3A%22_%3Ab7%22%2C%22spinrdf%3Asubject%22%3A%7B%22%40id%22%3A%22_%3Ab8%22%2C%22spinrdf%3AvarName%22%3A%22iParam%22%7D%7D%2C%7B%22%40id%22%3A%22_%3Ab8%22%2C%22spinrdf%3AvarName%22%3A%22iParam%22%7D%2C%7B%22%40id%22%3A%22_%3Ab9%22%2C%22spinrdf%3AvarName%22%3A%22oParam%22%7D%2C%7B%22ewe%3Aexecutes%22%3A%7B%22%40id%22%3A%22https%3A%2F%2Fifttt.com%2Fchannels%2Fgoogle_talk%2Factions%2F23%22%7D%2C%22dcterms%3Atitle%22%3A%22Inform%20of%20new%20emails%22%2C%22ewe%3AtimesUsed%22%3A%220%22%2C%22ewe%3AtriggeredBy%22%3A%7B%22%40id%22%3A%22https%3A%2F%2Fifttt.com%2Fchannels%2Fgmail%2Ftriggers%2F185%22%7D%2C%22ewe%3AhasCreator%22%3A%7B%22%40id%22%3A%22http%3A%2F%2Fgsi.dit.upm.es%2Fontologies%2Fexample%23User_1%22%7D%2C%22dcterms%3Adescription%22%3A%22It%20sends%20the%20user%20a%20new%20chat%20message%20thought%20the%20GoogleTalk%20channel%20every%20time%20a%20new%20email%20is%20received.%20The%20content%20of%20the%20chat%20message%20specify%20the%20senders%20email%20address%2C%20so%20the%20user%20can%20decide%20if%20it%20is%20important%20or%20not.%22%2C%22http%3A%2F%2Fspinrdf.org%2Fspin%23query%22%3A%7B%22spinrdf%3Atemplates%22%3A%7B%22%40list%22%3A%5B%7B%22spinrdf%3Apredicate%22%3A%7B%22%40id%22%3A%22rdf%3Atype%22%7D%2C%22spinrdf%3Aobject%22%3A%7B%22%40id%22%3A%22http%3A%2F%2Fgsi.dit.upm.es%2Fontologies%2Fewe%23Action%22%7D%2C%22%40id%22%3A%22_%3Ab11%22%2C%22spinrdf%3Asubject%22%3A%7B%22%40id%22%3A%22_%3Ab38%22%2C%22spinrdf%3AvarName%22%3A%22action%22%7D%7D%2C%7B%22spinrdf%3Apredicate%22%3A%7B%22%40id%22%3A%22dcterms%3Atitle%22%7D%2C%22spinrdf%3Aobject%22%3A%22New%20chat%20message%22%2C%22%40id%22%3A%22_%3Ab12%22%2C%22spinrdf%3Asubject%22%3A%7B%22%40id%22%3A%22_%3Ab23%22%2C%22spinrdf%3AvarName%22%3A%22action%22%7D%7D%2C%7B%22spinrdf%3Apredicate%22%3A%7B%22%40id%22%3A%22http%3A%2F%2Fgsi.dit.upm.es%2Fontologies%2Fewe%23hasParameter%22%7D%2C%22spinrdf%3Aobject%22%3A%7B%22%40id%22%3A%22_%3Ab37%22%2C%22spinrdf%3AvarName%22%3A%22iParam%22%7D%2C%22%40id%22%3A%22_%3Ab13%22%2C%22spinrdf%3Asubject%22%3A%7B%22%40id%22%3A%22_%3Ab32%22%2C%22spinrdf%3AvarName%22%3A%22action%22%7D%7D%2C%7B%22spinrdf%3Apredicate%22%3A%7B%22%40id%22%3A%22dcterms%3Atitle%22%7D%2C%22spinrdf%3Aobject%22%3A%22message%22%2C%22%40id%22%3A%22_%3Ab7%22%2C%22spinrdf%3Asubject%22%3A%7B%22%40id%22%3A%22_%3Ab8%22%2C%22spinrdf%3AvarName%22%3A%22iParam%22%7D%7D%2C%7B%22spinrdf%3Apredicate%22%3A%7B%22%40id%22%3A%22dcterms%3Avalue%22%7D%2C%22spinrdf%3Aobject%22%3A%7B%22%40id%22%3A%22_%3Ab0%22%2C%22spinrdf%3AvarName%22%3A%22message%22%7D%2C%22%40id%22%3A%22_%3Ab2%22%2C%22spinrdf%3Asubject%22%3A%7B%22%40id%22%3A%22_%3Ab3%22%2C%22spinrdf%3AvarName%22%3A%22iParam%22%7D%7D%2C%7B%22spinrdf%3Apredicate%22%3A%7B%22%40id%22%3A%22http%3A%2F%2Fgsi.dit.upm.es%2Fontologies%2Fewe%23providesAction%22%7D%2C%22spinrdf%3Aobject%22%3A%7B%22%40id%22%3A%22_%3Ab5%22%2C%22spinrdf%3AvarName%22%3A%22action%22%7D%2C%22%40id%22%3A%22_%3Ab4%22%2C%22spinrdf%3Asubject%22%3A%7B%22%40id%22%3A%22https%3A%2F%2Fifttt.com%2FGoogleTalk%22%7D%7D%5D%7D%2C%22%40id%22%3A%22_%3Ab10%22%2C%22%40type%22%3A%22spinrdf%3AConstruct%22%2C%22spinrdf%3Awhere%22%3A%7B%22%40list%22%3A%5B%7B%22spinrdf%3Apredicate%22%3A%7B%22%40id%22%3A%22rdf%3Atype%22%7D%2C%22spinrdf%3Aobject%22%3A%7B%22%40id%22%3A%22http%3A%2F%2Fgsi.dit.upm.es%2Fontologies%2Fewe%23Event%22%7D%2C%22%40id%22%3A%22_%3Ab14%22%2C%22spinrdf%3Asubject%22%3A%7B%22%40id%22%3A%22_%3Ab36%22%2C%22spinrdf%3AvarName%22%3A%22event%22%7D%7D%2C%7B%22spinrdf%3Apredicate%22%3A%7B%22%40id%22%3A%22dcterms%3Atitle%22%7D%2C%22spinrdf%3Aobject%22%3A%22Any%20new%20email%22%2C%22%40id%22%3A%22_%3Ab15%22%2C%22spinrdf%3Asubject%22%3A%7B%22%40id%22%3A%22_%3Ab27%22%2C%22spinrdf%3AvarName%22%3A%22event%22%7D%7D%2C%7B%22spinrdf%3Apredicate%22%3A%7B%22%40id%22%3A%22http%3A%2F%2Fgsi.dit.upm.es%2Fontologies%2Fewe%23hasOutputParameter%22%7D%2C%22spinrdf%3Aobject%22%3A%7B%22%40id%22%3A%22_%3Ab35%22%2C%22spinrdf%3AvarName%22%3A%22oParam%22%7D%2C%22%40id%22%3A%22_%3Ab16%22%2C%22spinrdf%3Asubject%22%3A%7B%22%40id%22%3A%22_%3Ab33%22%2C%22spinrdf%3AvarName%22%3A%22event%22%7D%7D%2C%7B%22spinrdf%3Apredicate%22%3A%7B%22%40id%22%3A%22http%3A%2F%2Fgsi.dit.upm.es%2Fontologies%2Fewe%23generatesEvent%22%7D%2C%22spinrdf%3Aobject%22%3A%7B%22%40id%22%3A%22_%3Ab6%22%2C%22spinrdf%3AvarName%22%3A%22event%22%7D%2C%22%40id%22%3A%22_%3Ab17%22%2C%22spinrdf%3Asubject%22%3A%7B%22%40id%22%3A%22https%3A%2F%2Fifttt.com%2FGmail%22%7D%7D%2C%7B%22spinrdf%3Apredicate%22%3A%7B%22%40id%22%3A%22dcterms%3Atitle%22%7D%2C%22spinrdf%3Aobject%22%3A%22FromAddress%22%2C%22%40id%22%3A%22_%3Ab18%22%2C%22spinrdf%3Asubject%22%3A%7B%22%40id%22%3A%22_%3Ab24%22%2C%22spinrdf%3AvarName%22%3A%22oParam%22%7D%7D%2C%7B%22spinrdf%3Apredicate%22%3A%7B%22%40id%22%3A%22dcterms%3Avalue%22%7D%2C%22spinrdf%3Aobject%22%3A%7B%22%40id%22%3A%22_%3Ab31%22%2C%22spinrdf%3AvarName%22%3A%22oParamFrom%22%7D%2C%22%40id%22%3A%22_%3Ab19%22%2C%22spinrdf%3Asubject%22%3A%7B%22%40id%22%3A%22_%3Ab9%22%2C%22spinrdf%3AvarName%22%3A%22oParam%22%7D%7D%2C%7B%22%40id%22%3A%22_%3Ab20%22%2C%22%40type%22%3A%22spinrdf%3ABind%22%2C%22spinrdf%3Aexpression%22%3A%7B%22spinrdf%3Aarg2%22%3A%7B%22%40id%22%3A%22_%3Ab29%22%2C%22spinrdf%3AvarName%22%3A%22oParamFrom%22%7D%2C%22spinrdf%3Aarg1%22%3A%22You%20have%20received%20a%20new%20message%20from%20%22%2C%22%40id%22%3A%22_%3Ab28%22%2C%22%40type%22%3A%22http%3A%2F%2Fwww.w3.org%2F2005%2Fxpath-functions%23concat%22%7D%2C%22spinrdf%3Avariable%22%3A%7B%22%40id%22%3A%22_%3Ab30%22%2C%22spinrdf%3AvarName%22%3A%22message%22%7D%7D%2C%7B%22%40id%22%3A%22_%3Ab21%22%2C%22%40type%22%3A%22spinrdf%3ABind%22%2C%22spinrdf%3Aexpression%22%3A%7B%22spinrdf%3Aarg1%22%3A%22http%3A%2F%2Fgsi.dit.upm.es%2Fontology%2Fewe%2Feamples%2Faction1%22%2C%22%40id%22%3A%22_%3Ab34%22%2C%22%40type%22%3A%22spinrdf%3Auri%22%7D%2C%22spinrdf%3Avariable%22%3A%7B%22%40id%22%3A%22_%3Ab1%22%2C%22spinrdf%3AvarName%22%3A%22action%22%7D%7D%2C%7B%22%40id%22%3A%22_%3Ab22%22%2C%22%40type%22%3A%22spinrdf%3ABind%22%2C%22spinrdf%3Aexpression%22%3A%7B%22spinrdf%3Aarg1%22%3A%22http%3A%2F%2Fgsi.dit.upm.es%2Fontology%2Fewe%2Feamples%2Fparam1%22%2C%22%40id%22%3A%22_%3Ab25%22%2C%22%40type%22%3A%22spinrdf%3Auri%22%7D%2C%22spinrdf%3Avariable%22%3A%7B%22%40id%22%3A%22_%3Ab26%22%2C%22spinrdf%3AvarName%22%3A%22iParam%22%7D%7D%5D%7D%7D%2C%22%40id%22%3A%22http%3A%2F%2Fgsi.dit.upm.es%2Fontologies%2Fexample%23Rule_1%22%2C%22%40type%22%3A%22ewe%3ARule%22%7D%5D%7D&frame=%7B%22%40context%22%3A%7B%22foaf%22%3A%22http%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2F%22%2C%22owl%22%3A%22http%3A%2F%2Fwww.w3.org%2F2002%2F07%2Fowl%23%22%2C%22rdf%22%3A%22http%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%22%2C%22ewe%22%3A%22http%3A%2F%2Fgsi.dit.upm.es%2Fontologies%2Fewe%2Fns%2F%22%2C%22xsd%22%3A%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%22%2C%22rdfs%22%3A%22http%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%22%2C%22dcterms%22%3A%22http%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%22%2C%22tags%22%3A%22http%3A%2F%2Fwww.holygoat.co.uk%2Fowl%2Fredwood%2F0.1%2Ftags%2F%22%2C%22spinrdf%22%3A%22http%3A%2F%2Fspinrdf.org%2Fsp%23%22%2C%22homepage%22%3A%7B%22%40id%22%3A%22http%3A%2F%2Fschema.org%2Furl%22%2C%22%40type%22%3A%22%40id%22%7D%2C%22image%22%3A%7B%22%40id%22%3A%22http%3A%2F%2Fschema.org%2Fimage%22%2C%22%40type%22%3A%22%40id%22%7D%7D%2C%22%40type%22%3A%22ewe%3ARule%22%7D)\n\nCon lo que te genera el conversor que usaste, en principio s\u00f3lo te hace falta hacer compactaci\u00f3n.\nSi ves que te sigue saliendo lo de \"@graph\", prueba a hacer framing con el contexto de abajo :)"
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"collapsed": false,
|
|
"input": "from rdflib import Graph\ng = Graph()",
|
|
"language": "python",
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"prompt_number": 1
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"collapsed": true,
|
|
"input": " # rdf = open('example.rdf', 'r')\n from StringIO import StringIO\n rdf = StringIO('''<?xml version=\"1.0\" encoding=\"utf-8\"?>\n \n <rdf:RDF \n xmlns:foaf=\"http://xmlns.com/foaf/0.1/\" \n xmlns:owl=\"http://www.w3.org/2002/07/owl#\" \n xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" \n xmlns:ewe=\"http://gsi.dit.upm.es/ontologies/ewe/ns/\" \n xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" \n xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\" \n xmlns:dcterms=\"http://purl.org/dc/terms/\" \n xmlns:tags=\"http://www.holygoat.co.uk/owl/redwood/0.1/tags/\" \n xmlns=\"http://gsi.dit.upm.es/ontologies/ewe/ns/\">\n \n <!-- Channel Instance Description -->\n <ewe:Channel rdf:about=\"https://ifttt.com/gmail\">\n <dcterms:title>Gmail</dcterms:title>\n <dcterms:description>Googles approach to email, Gmail, is built on the idea that email can be moreintuitive, efficient, and useful. And maybe even fun.</dcterms:description>\n <foaf:url>http://gmail.com</foaf:url>\n <foaf:logo>https://ifttt.com/images/channels/gmail_lrg.png</foaf:logo>\n <!-- Event and action references -->\n <ewe:generatesEvent rdf:resource=\"https://ifttt.com/channels/gmail/triggers/87\" />\n <ewe:generatesEvent rdf:resource=\"https://ifttt.com/channels/gmail/triggers/85\" />\n <ewe:generatesEvent rdf:resource=\"https://ifttt.com/channels/gmail/triggers/186\" />\n <ewe:generatesEvent rdf:resource=\"https://ifttt.com/channels/gmail/triggers/86\" />\n <ewe:generatesEvent rdf:resource=\"https://ifttt.com/channels/gmail/triggers/367\" />\n <ewe:generatesEvent rdf:resource=\"https://ifttt.com/channels/gmail/triggers/185\" /> \n <ewe:providesAction rdf:resource=\"https://ifttt.com/channels/gmail/actions/34\" />\n </ewe:Channel>\n \n <!-- Event Instances -->\n <ewe:Event rdf:about=\"https://ifttt.com/channels/gmail/triggers/87\">\n <dcterms:title>New email from search</dcterms:title> \n <dcterms:description>This Trigger fires every time a new email arrives in your inbox that matchesthe search query you specify.</dcterms:description> \n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>FromAddress</dcterms:title> \n <dcterms:description>Email address of sender.</dcterms:description> \n <ewe:example>somebody@gmail.com</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>Subject</dcterms:title> \n <dcterms:description>Email subject line.</dcterms:description> \n <ewe:example>Hello there</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>BodyPlain</dcterms:title> \n <dcterms:description>Plain text email body.</dcterms:description> \n <ewe:example>Been having a good day so far...</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>FirstAttachmentPrivateURL</dcterms:title> \n <dcterms:description>A URL to the first file attachment (if any) that only you can see.</dcterms:description> \n <ewe:example>https://locker.ifttt.com/f/29b08556-ac73-11e2-a707-22000a9730cf</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>FirstAttachmentPublicURL</dcterms:title> \n <dcterms:description>A URL to the first file attachment (if any) that anyone can see.</dcterms:description> \n <ewe:example>https://locker.ifttt.com/f/4bfc930c-ac73-11e2-b086-22000a9730cf</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>FirstAttachmentFilename</dcterms:title> \n <dcterms:description>The filename of the first file attachment (if any).</dcterms:description> \n <ewe:example>LadyTheDog.png</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>ReceivedAt</dcterms:title> \n <dcterms:description>Date and time email was received.</dcterms:description> \n <ewe:example>August 23, 2010 at 11:01PM</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasInputParameter>\n <ewe:InputParameter>\n <dcterms:title>Search for</dcterms:title> \n <xsd:type>string_value</xsd:type> \n </ewe:InputParameter> \n </ewe:hasInputParameter>\n </ewe:Event>\n \n \n <ewe:Event rdf:about=\"https://ifttt.com/channels/gmail/triggers/85\">\n <dcterms:title>New email labeled</dcterms:title> \n <dcterms:description>This Trigger fires every time a new email arrives in your inbox with the labelyou specify.</dcterms:description> \n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>FromAddress</dcterms:title> \n <dcterms:description>Email address of sender.</dcterms:description> \n <ewe:example>somebody@gmail.com</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>Subject</dcterms:title> \n <dcterms:description>Email subject line.</dcterms:description> \n <ewe:example>Hello there</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>BodyPlain</dcterms:title> \n <dcterms:description>Plain text email body.</dcterms:description> \n <ewe:example>Been having a good day so far...</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>FirstAttachmentPrivateURL</dcterms:title> \n <dcterms:description>A URL to the first file attachment (if any) that only you can see.</dcterms:description> \n <ewe:example>https://locker.ifttt.com/f/29b08556-ac73-11e2-a707-22000a9730cf</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>FirstAttachmentPublicURL</dcterms:title> \n <dcterms:description>A URL to the first file attachment (if any) that anyone can see.</dcterms:description> \n <ewe:example>https://locker.ifttt.com/f/4bfc930c-ac73-11e2-b086-22000a9730cf</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>FirstAttachmentFilename</dcterms:title> \n <dcterms:description>The filename of the first file attachment (if any).</dcterms:description> \n <ewe:example>LadyTheDog.png</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>Label</dcterms:title> \n <dcterms:description>The Gmail label from trigger.</dcterms:description> \n <ewe:example>Work</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>ReceivedAt</dcterms:title> \n <dcterms:description>Date and time email was received.</dcterms:description> \n <ewe:example>August 23, 2010 at 11:01PM</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasInputParameter>\n <ewe:InputParameter>\n <dcterms:title>Label</dcterms:title> \n <xsd:type>string_value</xsd:type> \n </ewe:InputParameter>\n </ewe:hasInputParameter>\n </ewe:Event>\n \n <ewe:Event rdf:about=\"https://ifttt.com/channels/gmail/triggers/186\">\n <dcterms:title>New starred email</dcterms:title> \n <dcterms:description>This Trigger fires every time you add any new star to an email.</dcterms:description> \n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>FromAddress</dcterms:title> \n <dcterms:description>Email address of sender.</dcterms:description> \n <ewe:example>somebody@gmail.com</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>Subject</dcterms:title> \n <dcterms:description>Email subject line.</dcterms:description> \n <ewe:example>Hello there</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>BodyPlain</dcterms:title> \n <dcterms:description>Plain text email body.</dcterms:description> \n <ewe:example>Been having a good day so far...</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>FirstAttachmentPrivateURL</dcterms:title> \n <dcterms:description>A URL to the first file attachment (if any) that only you can see.</dcterms:description> \n <ewe:example>https://locker.ifttt.com/f/29b08556-ac73-11e2-a707-22000a9730cf</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>FirstAttachmentPublicURL</dcterms:title> \n <dcterms:description>A URL to the first file attachment (if any) that anyone can see.</dcterms:description> \n <ewe:example>https://locker.ifttt.com/f/4bfc930c-ac73-11e2-b086-22000a9730cf</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>FirstAttachmentFilename</dcterms:title> \n <dcterms:description>The filename of the first file attachment (if any).</dcterms:description> \n <ewe:example>LadyTheDog.png</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>ReceivedAt</dcterms:title> \n <dcterms:description>Date and time email was received.</dcterms:description> \n <ewe:example>August 23, 2010 at 11:01PM</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n </ewe:Event>\n \n \n <ewe:Event rdf:about=\"https://ifttt.com/channels/gmail/triggers/86\">\n <dcterms:title>New email from</dcterms:title> \n <dcterms:description>This Trigger fires every time a new email arrives in your inbox from theaddress you specify.</dcterms:description> \n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>FromAddress</dcterms:title> \n <dcterms:description>Email address of sender.</dcterms:description> \n <ewe:example>somebody@gmail.com</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>Subject</dcterms:title> \n <dcterms:description>Email subject line.</dcterms:description> \n <ewe:example>Hello there</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>BodyPlain</dcterms:title> \n <dcterms:description>Plain text email body.</dcterms:description> \n <ewe:example>Been having a good day so far...</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>FirstAttachmentPrivateURL</dcterms:title> \n <dcterms:description>A URL to the first file attachment (if any) that only you can see.</dcterms:description> \n <ewe:example>https://locker.ifttt.com/f/29b08556-ac73-11e2-a707-22000a9730cf</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>FirstAttachmentPublicURL</dcterms:title> \n <dcterms:description>A URL to the first file attachment (if any) that anyone can see.</dcterms:description> \n <ewe:example>https://locker.ifttt.com/f/4bfc930c-ac73-11e2-b086-22000a9730cf</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>FirstAttachmentFilename</dcterms:title> \n <dcterms:description>The filename of the first file attachment (if any).</dcterms:description> \n <ewe:example>LadyTheDog.png</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>ReceivedAt</dcterms:title> \n <dcterms:description>Date and time email was received.</dcterms:description> \n <ewe:example>August 23, 2010 at 11:01PM</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasInputParameter>\n <ewe:InputParameter>\n <dcterms:title>Email address</dcterms:title> \n <xsd:type>string_value</xsd:type> \n </ewe:InputParameter>\n </ewe:hasInputParameter>\n </ewe:Event>\n \n <ewe:Event rdf:about=\"https://ifttt.com/channels/gmail/triggers/367\">\n <dcterms:title>Any new attachment</dcterms:title> \n <dcterms:description>This Trigger fires for every email attachment that arrives in your inbox.NOTE: Multiple attachments each fire separately.</dcterms:description> \n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>FromAddress</dcterms:title> \n <dcterms:description>Email address of sender.</dcterms:description> \n <ewe:example>somebody@gmail.com</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>Subject</dcterms:title> \n <dcterms:description>Email subject line.</dcterms:description> \n <ewe:example>Hello there</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>BodyPlain</dcterms:title> \n <dcterms:description>Plain text email body.</dcterms:description> \n <ewe:example>Been having a good day so far...</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>AttachmentPrivateURL</dcterms:title> \n <dcterms:description>A URL to the file attachment that only you can see.</dcterms:description> \n <ewe:example>https://locker.ifttt.com/f/29b08556-ac73-11e2-a707-22000a9730cf</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>AttachmentPublicURL</dcterms:title> \n <dcterms:description>A URL to the file attachment that anyone can see.</dcterms:description> \n <ewe:example>https://locker.ifttt.com/f/4bfc930c-ac73-11e2-b086-22000a9730cf</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>AttachmentFilename</dcterms:title> \n <dcterms:description>The filename of the attachment.</dcterms:description> \n <ewe:example>LadyTheDog.png</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>ReceivedAt</dcterms:title> \n <dcterms:description>Date and time email was received.</dcterms:description> \n <ewe:example>August 23, 2010 at 11:01PM</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n </ewe:Event>\n \n \n <ewe:Event rdf:about=\"https://ifttt.com/channels/gmail/triggers/185\">\n <dcterms:title>Any new email</dcterms:title> \n <dcterms:description>This Trigger fires every time any new email arrives in Gmail.</dcterms:description> \n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>FromAddress</dcterms:title> \n <dcterms:description>Email address of sender.</dcterms:description> \n <ewe:example>somebody@gmail.com</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>Subject</dcterms:title> \n <dcterms:description>Email subject line.</dcterms:description> \n <ewe:example>Hello there</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>BodyPlain</dcterms:title> \n <dcterms:description>Plain text email body.</dcterms:description> \n <ewe:example>Been having a good day so far...</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>FirstAttachmentPrivateURL</dcterms:title> \n <dcterms:description>A URL to the first file attachment (if any) that only you can see.</dcterms:description> \n <ewe:example>https://locker.ifttt.com/f/29b08556-ac73-11e2-a707-22000a9730cf</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>FirstAttachmentPublicURL</dcterms:title> \n <dcterms:description>A URL to the first file attachment (if any) that anyone can see.</dcterms:description> \n <ewe:example>https://locker.ifttt.com/f/4bfc930c-ac73-11e2-b086-22000a9730cf</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>FirstAttachmentFilename</dcterms:title> \n <dcterms:description>The filename of the first file attachment (if any).</dcterms:description> \n <ewe:example>LadyTheDog.png</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n <ewe:hasOutputParameter>\n <ewe:outputParameter>\n <dcterms:title>ReceivedAt</dcterms:title> \n <dcterms:description>Date and time email was received.</dcterms:description> \n <ewe:example>August 23, 2010 at 11:01PM</ewe:example> \n </ewe:outputParameter>\n </ewe:hasOutputParameter>\n </ewe:Event>\n \n <!-- Action Instances -->\n <ewe:Action rdf:about=\"https://ifttt.com/channels/gmail/actions/34\">\n <dcterms:title>Send an email</dcterms:title>\n <dcterms:description>This Action will send an email to a single recipient from your Gmail account.</dcterms:description>\n <ewe:hasInputParameter>\n <ewe:InputParameter>\n <dcterms:title>To address</dcterms:title>\n <dcterms:description>single email address only</dcterms:description> \n </ewe:InputParameter>\n </ewe:hasInputParameter>\n <ewe:hasInputParameter>\n <ewe:InputParameter>\n <dcterms:title>Subject</dcterms:title>\n </ewe:InputParameter>\n </ewe:hasInputParameter>\n <ewe:hasInputParameter>\n <ewe:InputParameter>\n <dcterms:title>Body</dcterms:title>\n <dcterms:description>some HTML ok</dcterms:description>\n </ewe:InputParameter>\n </ewe:hasInputParameter>\n <ewe:hasInputParameter>\n <ewe:InputParameter>\n <dcterms:title>Attachment URL</dcterms:title>\n <dcterms:description>URL to include as an attachment</dcterms:description>\n </ewe:InputParameter>\n </ewe:hasInputParameter>\n </ewe:Action>\n \n </rdf:RDF>\n ''')",
|
|
"language": "python",
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"prompt_number": 2
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"collapsed": false,
|
|
"input": "rdf = StringIO('''<?xml version=\"1.0\" encoding=\"utf-8\"?>\n\n<rdf:RDF \n\txmlns:foaf=\"http://xmlns.com/foaf/0.1/\" \n\txmlns:owl=\"http://www.w3.org/2002/07/owl#\" \n\txmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" \n\txmlns:ewe=\"http://gsi.dit.upm.es/ontologies/ewe/ns/\" \n\txmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" \n\txmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\" \n\txmlns:dcterms=\"http://purl.org/dc/terms/\" \n\txmlns:tags=\"http://www.holygoat.co.uk/owl/redwood/0.1/tags/\" \n\txmlns=\"http://gsi.dit.upm.es/ontologies/ewe/ns/\">\n\n\t<!-- Channel Instance Description -->\n\t<ewe:Channel rdf:about=\"https://ifttt.com/gmail\">\n\t\t<dcterms:title>Gmail</dcterms:title>\n\t\t<dcterms:description>Googles approach to email, Gmail, is built on the idea that email can be moreintuitive, efficient, and useful. And maybe even fun.</dcterms:description>\n\t\t<foaf:url>http://gmail.com</foaf:url>\n\t\t<foaf:logo>https://ifttt.com/images/channels/gmail_lrg.png</foaf:logo>\n\t\t<!-- Event and action references -->\n\t\t<ewe:generatesEvent rdf:resource=\"https://ifttt.com/channels/gmail/triggers/87\" />\n\t\t<ewe:generatesEvent rdf:resource=\"https://ifttt.com/channels/gmail/triggers/85\" />\n\t\t<ewe:generatesEvent rdf:resource=\"https://ifttt.com/channels/gmail/triggers/186\" />\n\t\t<ewe:generatesEvent rdf:resource=\"https://ifttt.com/channels/gmail/triggers/86\" />\n\t\t<ewe:generatesEvent rdf:resource=\"https://ifttt.com/channels/gmail/triggers/367\" />\n\t\t<ewe:generatesEvent rdf:resource=\"https://ifttt.com/channels/gmail/triggers/185\" /> \n\t\t<ewe:providesAction rdf:resource=\"https://ifttt.com/channels/gmail/actions/34\" />\n\t</ewe:Channel>\n\n\t<!-- Event Instances -->\n\t<ewe:Event rdf:about=\"https://ifttt.com/channels/gmail/triggers/87\">\n\t <dcterms:title>New email from search</dcterms:title> \n \t<dcterms:description>This Trigger fires every time a new email arrives in your inbox that matchesthe search query you specify.</dcterms:description> \n\t <ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t \t<dcterms:title>FromAddress</dcterms:title> \n\t \t <dcterms:description>Email address of sender.</dcterms:description> \n\t\t <ewe:example>somebody@gmail.com</ewe:example> \n \t </ewe:outputParameter>\n\t </ewe:hasOutputParameter>\n\t <ewe:hasOutputParameter>\n\t\t <ewe:outputParameter>\n\t\t <dcterms:title>Subject</dcterms:title> \n\t\t <dcterms:description>Email subject line.</dcterms:description> \n\t\t <ewe:example>Hello there</ewe:example> \n\t\t </ewe:outputParameter>\n\t </ewe:hasOutputParameter>\n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t <dcterms:title>BodyPlain</dcterms:title> \n\t\t <dcterms:description>Plain text email body.</dcterms:description> \n\t\t <ewe:example>Been having a good day so far...</ewe:example> \n \t </ewe:outputParameter>\n\t </ewe:hasOutputParameter>\n\t <ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>FirstAttachmentPrivateURL</dcterms:title> \n\t\t\t\t<dcterms:description>A URL to the first file attachment (if any) that only you can see.</dcterms:description> \n\t\t\t\t<ewe:example>https://locker.ifttt.com/f/29b08556-ac73-11e2-a707-22000a9730cf</ewe:example> \n \t </ewe:outputParameter>\n\t </ewe:hasOutputParameter>\n \t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>FirstAttachmentPublicURL</dcterms:title> \n\t\t\t\t<dcterms:description>A URL to the first file attachment (if any) that anyone can see.</dcterms:description> \n\t\t\t\t<ewe:example>https://locker.ifttt.com/f/4bfc930c-ac73-11e2-b086-22000a9730cf</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>FirstAttachmentFilename</dcterms:title> \n\t\t\t\t<dcterms:description>The filename of the first file attachment (if any).</dcterms:description> \n\t\t\t\t<ewe:example>LadyTheDog.png</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>ReceivedAt</dcterms:title> \n\t\t\t\t<dcterms:description>Date and time email was received.</dcterms:description> \n\t\t\t\t<ewe:example>August 23, 2010 at 11:01PM</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t\t<ewe:hasInputParameter>\n \t <ewe:InputParameter>\n\t\t\t\t<dcterms:title>Search for</dcterms:title> \n\t\t\t\t<xsd:type>string_value</xsd:type> \n \t </ewe:InputParameter> \n\t </ewe:hasInputParameter>\n\t</ewe:Event>\n\n\n\t<ewe:Event rdf:about=\"https://ifttt.com/channels/gmail/triggers/85\">\n \t<dcterms:title>New email labeled</dcterms:title> \n\t <dcterms:description>This Trigger fires every time a new email arrives in your inbox with the labelyou specify.</dcterms:description> \n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>FromAddress</dcterms:title> \n\t\t\t\t<dcterms:description>Email address of sender.</dcterms:description> \n\t\t\t\t<ewe:example>somebody@gmail.com</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>Subject</dcterms:title> \n\t\t\t\t<dcterms:description>Email subject line.</dcterms:description> \n\t\t\t\t<ewe:example>Hello there</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>BodyPlain</dcterms:title> \n\t\t\t\t<dcterms:description>Plain text email body.</dcterms:description> \n\t\t\t\t<ewe:example>Been having a good day so far...</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>FirstAttachmentPrivateURL</dcterms:title> \n\t\t\t\t<dcterms:description>A URL to the first file attachment (if any) that only you can see.</dcterms:description> \n\t\t\t\t<ewe:example>https://locker.ifttt.com/f/29b08556-ac73-11e2-a707-22000a9730cf</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>FirstAttachmentPublicURL</dcterms:title> \n\t\t\t\t<dcterms:description>A URL to the first file attachment (if any) that anyone can see.</dcterms:description> \n\t\t\t\t<ewe:example>https://locker.ifttt.com/f/4bfc930c-ac73-11e2-b086-22000a9730cf</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>FirstAttachmentFilename</dcterms:title> \n\t\t\t\t<dcterms:description>The filename of the first file attachment (if any).</dcterms:description> \n\t\t\t\t<ewe:example>LadyTheDog.png</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>Label</dcterms:title> \n\t\t\t\t<dcterms:description>The Gmail label from trigger.</dcterms:description> \n\t\t\t\t<ewe:example>Work</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>ReceivedAt</dcterms:title> \n\t\t\t\t<dcterms:description>Date and time email was received.</dcterms:description> \n\t\t\t\t<ewe:example>August 23, 2010 at 11:01PM</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t\t<ewe:hasInputParameter>\n \t <ewe:InputParameter>\n\t\t\t\t<dcterms:title>Label</dcterms:title> \n\t\t\t\t<xsd:type>string_value</xsd:type> \n \t </ewe:InputParameter>\n\t\t</ewe:hasInputParameter>\n\t</ewe:Event>\n\n\t<ewe:Event rdf:about=\"https://ifttt.com/channels/gmail/triggers/186\">\n\t\t<dcterms:title>New starred email</dcterms:title> \n\t\t<dcterms:description>This Trigger fires every time you add any new star to an email.</dcterms:description> \n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>FromAddress</dcterms:title> \n\t\t\t\t<dcterms:description>Email address of sender.</dcterms:description> \n\t\t\t\t<ewe:example>somebody@gmail.com</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>Subject</dcterms:title> \n\t\t\t\t<dcterms:description>Email subject line.</dcterms:description> \n\t\t\t\t<ewe:example>Hello there</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>BodyPlain</dcterms:title> \n\t\t\t\t<dcterms:description>Plain text email body.</dcterms:description> \n\t\t\t\t<ewe:example>Been having a good day so far...</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>FirstAttachmentPrivateURL</dcterms:title> \n\t\t\t\t<dcterms:description>A URL to the first file attachment (if any) that only you can see.</dcterms:description> \n\t\t\t\t<ewe:example>https://locker.ifttt.com/f/29b08556-ac73-11e2-a707-22000a9730cf</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>FirstAttachmentPublicURL</dcterms:title> \n\t\t\t\t<dcterms:description>A URL to the first file attachment (if any) that anyone can see.</dcterms:description> \n\t\t\t\t<ewe:example>https://locker.ifttt.com/f/4bfc930c-ac73-11e2-b086-22000a9730cf</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>FirstAttachmentFilename</dcterms:title> \n\t\t\t\t<dcterms:description>The filename of the first file attachment (if any).</dcterms:description> \n\t\t\t\t<ewe:example>LadyTheDog.png</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>ReceivedAt</dcterms:title> \n\t\t\t\t<dcterms:description>Date and time email was received.</dcterms:description> \n\t\t\t\t<ewe:example>August 23, 2010 at 11:01PM</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t</ewe:Event>\n\n\n\t<ewe:Event rdf:about=\"https://ifttt.com/channels/gmail/triggers/86\">\n\t\t<dcterms:title>New email from</dcterms:title> \n\t\t<dcterms:description>This Trigger fires every time a new email arrives in your inbox from theaddress you specify.</dcterms:description> \n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>FromAddress</dcterms:title> \n\t\t\t\t<dcterms:description>Email address of sender.</dcterms:description> \n\t\t\t\t<ewe:example>somebody@gmail.com</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>Subject</dcterms:title> \n\t\t\t\t<dcterms:description>Email subject line.</dcterms:description> \n\t\t\t\t<ewe:example>Hello there</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>BodyPlain</dcterms:title> \n\t\t\t\t<dcterms:description>Plain text email body.</dcterms:description> \n\t\t\t\t<ewe:example>Been having a good day so far...</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>FirstAttachmentPrivateURL</dcterms:title> \n\t\t\t\t<dcterms:description>A URL to the first file attachment (if any) that only you can see.</dcterms:description> \n\t\t\t\t<ewe:example>https://locker.ifttt.com/f/29b08556-ac73-11e2-a707-22000a9730cf</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>FirstAttachmentPublicURL</dcterms:title> \n\t\t\t\t<dcterms:description>A URL to the first file attachment (if any) that anyone can see.</dcterms:description> \n\t\t\t\t<ewe:example>https://locker.ifttt.com/f/4bfc930c-ac73-11e2-b086-22000a9730cf</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>FirstAttachmentFilename</dcterms:title> \n\t\t\t\t<dcterms:description>The filename of the first file attachment (if any).</dcterms:description> \n\t\t\t\t<ewe:example>LadyTheDog.png</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>ReceivedAt</dcterms:title> \n\t\t\t\t<dcterms:description>Date and time email was received.</dcterms:description> \n\t\t\t\t<ewe:example>August 23, 2010 at 11:01PM</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t\t<ewe:hasInputParameter>\n \t <ewe:InputParameter>\n\t\t\t\t<dcterms:title>Email address</dcterms:title> \n\t\t\t\t<xsd:type>string_value</xsd:type> \n \t </ewe:InputParameter>\n\t\t</ewe:hasInputParameter>\n\t</ewe:Event>\n\n\t<ewe:Event rdf:about=\"https://ifttt.com/channels/gmail/triggers/367\">\n\t\t<dcterms:title>Any new attachment</dcterms:title> \n\t\t<dcterms:description>This Trigger fires for every email attachment that arrives in your inbox.NOTE: Multiple attachments each fire separately.</dcterms:description> \n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>FromAddress</dcterms:title> \n\t\t\t\t<dcterms:description>Email address of sender.</dcterms:description> \n\t\t\t\t<ewe:example>somebody@gmail.com</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>Subject</dcterms:title> \n\t\t\t\t<dcterms:description>Email subject line.</dcterms:description> \n\t\t\t\t<ewe:example>Hello there</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>BodyPlain</dcterms:title> \n\t\t\t\t<dcterms:description>Plain text email body.</dcterms:description> \n\t\t\t\t<ewe:example>Been having a good day so far...</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>AttachmentPrivateURL</dcterms:title> \n\t\t\t\t<dcterms:description>A URL to the file attachment that only you can see.</dcterms:description> \n\t\t\t\t<ewe:example>https://locker.ifttt.com/f/29b08556-ac73-11e2-a707-22000a9730cf</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>AttachmentPublicURL</dcterms:title> \n\t\t\t\t<dcterms:description>A URL to the file attachment that anyone can see.</dcterms:description> \n\t\t\t\t<ewe:example>https://locker.ifttt.com/f/4bfc930c-ac73-11e2-b086-22000a9730cf</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>AttachmentFilename</dcterms:title> \n\t\t\t\t<dcterms:description>The filename of the attachment.</dcterms:description> \n\t\t\t\t<ewe:example>LadyTheDog.png</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>ReceivedAt</dcterms:title> \n\t\t\t\t<dcterms:description>Date and time email was received.</dcterms:description> \n\t\t\t\t<ewe:example>August 23, 2010 at 11:01PM</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t</ewe:Event>\n\n\n\t<ewe:Event rdf:about=\"https://ifttt.com/channels/gmail/triggers/185\">\n\t\t<dcterms:title>Any new email</dcterms:title> \n\t\t<dcterms:description>This Trigger fires every time any new email arrives in Gmail.</dcterms:description> \n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>FromAddress</dcterms:title> \n\t\t\t\t<dcterms:description>Email address of sender.</dcterms:description> \n\t\t\t\t<ewe:example>somebody@gmail.com</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>Subject</dcterms:title> \n\t\t\t\t<dcterms:description>Email subject line.</dcterms:description> \n\t\t\t\t<ewe:example>Hello there</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>BodyPlain</dcterms:title> \n\t\t\t\t<dcterms:description>Plain text email body.</dcterms:description> \n\t\t\t\t<ewe:example>Been having a good day so far...</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>FirstAttachmentPrivateURL</dcterms:title> \n\t\t\t\t<dcterms:description>A URL to the first file attachment (if any) that only you can see.</dcterms:description> \n\t\t\t\t<ewe:example>https://locker.ifttt.com/f/29b08556-ac73-11e2-a707-22000a9730cf</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>FirstAttachmentPublicURL</dcterms:title> \n\t\t\t\t<dcterms:description>A URL to the first file attachment (if any) that anyone can see.</dcterms:description> \n\t\t\t\t<ewe:example>https://locker.ifttt.com/f/4bfc930c-ac73-11e2-b086-22000a9730cf</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>FirstAttachmentFilename</dcterms:title> \n\t\t\t\t<dcterms:description>The filename of the first file attachment (if any).</dcterms:description> \n\t\t\t\t<ewe:example>LadyTheDog.png</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t\t<ewe:hasOutputParameter>\n \t <ewe:outputParameter>\n\t\t\t\t<dcterms:title>ReceivedAt</dcterms:title> \n\t\t\t\t<dcterms:description>Date and time email was received.</dcterms:description> \n\t\t\t\t<ewe:example>August 23, 2010 at 11:01PM</ewe:example> \n \t </ewe:outputParameter>\n\t\t</ewe:hasOutputParameter>\n\t</ewe:Event>\n\n\t<!-- Action Instances -->\n\t<ewe:Action rdf:about=\"https://ifttt.com/channels/gmail/actions/34\">\n\t\t<dcterms:title>Send an email</dcterms:title>\n\t\t<dcterms:description>This Action will send an email to a single recipient from your Gmail account.</dcterms:description>\n\t\t<ewe:hasInputParameter>\n \t <ewe:InputParameter>\n\t\t\t\t<dcterms:title>To address</dcterms:title>\n\t\t\t\t<dcterms:description>single email address only</dcterms:description> \n \t </ewe:InputParameter>\n\t\t</ewe:hasInputParameter>\n\t\t<ewe:hasInputParameter>\n \t <ewe:InputParameter>\n\t\t\t\t<dcterms:title>Subject</dcterms:title>\n \t </ewe:InputParameter>\n\t\t</ewe:hasInputParameter>\n\t\t<ewe:hasInputParameter>\n \t <ewe:InputParameter>\n\t\t\t\t<dcterms:title>Body</dcterms:title>\n\t\t\t\t<dcterms:description>some HTML ok</dcterms:description>\n \t </ewe:InputParameter>\n\t\t</ewe:hasInputParameter>\n\t\t<ewe:hasInputParameter>\n \t <ewe:InputParameter>\n\t\t\t\t<dcterms:title>Attachment URL</dcterms:title>\n\t\t\t\t<dcterms:description>URL to include as an attachment</dcterms:description>\n \t </ewe:InputParameter>\n\t\t</ewe:hasInputParameter>\n\t</ewe:Action>\n\n</rdf:RDF>\n''')",
|
|
"language": "python",
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"prompt_number": 3
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"collapsed": false,
|
|
"input": "g.parse(rdf)\nnt = g.serialize(format='nt')\nnt",
|
|
"language": "python",
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"metadata": {},
|
|
"output_type": "pyout",
|
|
"prompt_number": 4,
|
|
"text": "'_:N902dc61e92d24ac4b8c7d0e9dfa444b9 <http://purl.org/dc/terms/title> \"Subject\" .\\n_:N0dd4c4ac84064309b41dcf1e7fe3918c <http://purl.org/dc/terms/title> \"FirstAttachmentPrivateURL\" .\\n<https://ifttt.com/channels/gmail/actions/34> <http://purl.org/dc/terms/title> \"Send an email\" .\\n_:N615b6ec4c6bd434ca92ac7314fd27f19 <http://purl.org/dc/terms/title> \"ReceivedAt\" .\\n_:Nf4fc972a2dad4c4bb88dc7a7a80280a3 <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"somebody@gmail.com\" .\\n_:N615b6ec4c6bd434ca92ac7314fd27f19 <http://purl.org/dc/terms/description> \"Date and time email was received.\" .\\n_:N0210346037ba4ac2bdc1155a9ef60c63 <http://purl.org/dc/terms/description> \"The filename of the first file attachment (if any).\" .\\n<https://ifttt.com/channels/gmail/triggers/186> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:N6ebd190ec7554496aa6b24d1fae9e33a .\\n_:N902dc61e92d24ac4b8c7d0e9dfa444b9 <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"Hello there\" .\\n_:N9448220723f74fbd98e67f1880de1ced <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n_:Nec46842ec98a4ac08437c492563b0bb9 <http://purl.org/dc/terms/description> \"Date and time email was received.\" .\\n_:Neb3f393873c247ed8d4b70731dc7bbcf <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n<https://ifttt.com/channels/gmail/triggers/186> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:N8fa2723166854100bb95cadcbe808e2d .\\n_:N401f62004d1142fb9f1eb85694c32c32 <http://purl.org/dc/terms/title> \"ReceivedAt\" .\\n<https://ifttt.com/gmail> <http://gsi.dit.upm.es/ontologies/ewe/ns/generatesEvent> <https://ifttt.com/channels/gmail/triggers/85> .\\n<https://ifttt.com/channels/gmail/triggers/185> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:N6fbae96ee43a4e8aa5b4e1e968719dec .\\n<https://ifttt.com/channels/gmail/triggers/87> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:N178bffdecedc4013ba4ae1ed4cefd0f0 .\\n_:Nb2bf44e27916498e9eddf9a486ee8dc7 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n<https://ifttt.com/channels/gmail/triggers/87> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:N76df4cf31348496e8a394c137d0200f8 .\\n<https://ifttt.com/channels/gmail/triggers/186> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:N9448220723f74fbd98e67f1880de1ced .\\n_:Nf3422c781f97402291ba9dec3e5bed06 <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"https://locker.ifttt.com/f/4bfc930c-ac73-11e2-b086-22000a9730cf\" .\\n_:N1c63fdb0196a44c19ea23f031c6e1571 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n_:N8fa2723166854100bb95cadcbe808e2d <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n<https://ifttt.com/channels/gmail/triggers/85> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:Nb2bf44e27916498e9eddf9a486ee8dc7 .\\n_:N76df4cf31348496e8a394c137d0200f8 <http://purl.org/dc/terms/description> \"The filename of the first file attachment (if any).\" .\\n_:N6fbae96ee43a4e8aa5b4e1e968719dec <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n_:N0d990526ca5349af9bc84d189e57ebe2 <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"Been having a good day so far...\" .\\n_:Na387f99b32994cfcbe029c0d3dc7a9c7 <http://purl.org/dc/terms/description> \"Date and time email was received.\" .\\n<https://ifttt.com/channels/gmail/triggers/367> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:N238780b0d04b408187ff5e9dbbb35849 .\\n_:N2a4af8059cd54651a33f77bc82fcabf6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n_:Nee0e3d565db5471c9efd5248f8aa66b1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n_:N2a4af8059cd54651a33f77bc82fcabf6 <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"Work\" .\\n<https://ifttt.com/channels/gmail/triggers/367> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:Nec46842ec98a4ac08437c492563b0bb9 .\\n_:Nb2bf44e27916498e9eddf9a486ee8dc7 <http://purl.org/dc/terms/title> \"FirstAttachmentPublicURL\" .\\n<https://ifttt.com/gmail> <http://purl.org/dc/terms/title> \"Gmail\" .\\n<https://ifttt.com/channels/gmail/triggers/85> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/Event> .\\n_:N056eb50561fd4033bebf876fbd3ab506 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n_:Nefdd2d99954044e9bddd147924124c88 <http://purl.org/dc/terms/title> \"Subject\" .\\n_:N774339656e8340718d7bed1070fdaab1 <http://purl.org/dc/terms/description> \"Email subject line.\" .\\n_:Nefdd2d99954044e9bddd147924124c88 <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"Hello there\" .\\n_:Nff8dd67dab5847b7999f0b7b3f925896 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n_:Nb4720ccafadb434c8259bb4f4c8cf198 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n_:N401f62004d1142fb9f1eb85694c32c32 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n_:Nff8dd67dab5847b7999f0b7b3f925896 <http://purl.org/dc/terms/title> \"FirstAttachmentPrivateURL\" .\\n_:N8fa2723166854100bb95cadcbe808e2d <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"https://locker.ifttt.com/f/29b08556-ac73-11e2-a707-22000a9730cf\" .\\n_:Ncea892d43d894bb1990b3bc8182c1ed2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n<https://ifttt.com/gmail> <http://gsi.dit.upm.es/ontologies/ewe/ns/providesAction> <https://ifttt.com/channels/gmail/actions/34> .\\n_:Nb2bf44e27916498e9eddf9a486ee8dc7 <http://purl.org/dc/terms/description> \"A URL to the first file attachment (if any) that anyone can see.\" .\\n_:N238780b0d04b408187ff5e9dbbb35849 <http://purl.org/dc/terms/title> \"AttachmentPublicURL\" .\\n_:Nf3422c781f97402291ba9dec3e5bed06 <http://purl.org/dc/terms/description> \"A URL to the first file attachment (if any) that anyone can see.\" .\\n_:Nb35e69dc8711426bbeb72e4b412af4d0 <http://purl.org/dc/terms/title> \"Subject\" .\\n_:N060b3a5887d74a8f9770ea087550f7e3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n_:N66a860efc4d54b11b9b6d811d8e7b95c <http://purl.org/dc/terms/description> \"A URL to the first file attachment (if any) that only you can see.\" .\\n_:N2a4af8059cd54651a33f77bc82fcabf6 <http://purl.org/dc/terms/title> \"Label\" .\\n_:N902dc61e92d24ac4b8c7d0e9dfa444b9 <http://purl.org/dc/terms/description> \"Email subject line.\" .\\n_:N9ea6892b0ad64e23999e7ac50b2e516e <http://purl.org/dc/terms/description> \"Date and time email was received.\" .\\n_:N73eba7c77cc84b068dd425274688c193 <http://purl.org/dc/terms/description> \"The filename of the attachment.\" .\\n_:Na387f99b32994cfcbe029c0d3dc7a9c7 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n<https://ifttt.com/channels/gmail/triggers/86> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:Nefdd2d99954044e9bddd147924124c88 .\\n_:N28b1a3f9227b40efaa2e8492555b1964 <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"Been having a good day so far...\" .\\n<https://ifttt.com/channels/gmail/triggers/87> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:N0d990526ca5349af9bc84d189e57ebe2 .\\n<https://ifttt.com/channels/gmail/triggers/87> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:Nf3422c781f97402291ba9dec3e5bed06 .\\n_:N76df4cf31348496e8a394c137d0200f8 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n<https://ifttt.com/channels/gmail/triggers/185> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:N62da3b21c7734efb8ce02558c9ae0276 .\\n_:N056eb50561fd4033bebf876fbd3ab506 <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"https://locker.ifttt.com/f/4bfc930c-ac73-11e2-b086-22000a9730cf\" .\\n_:N9ea6892b0ad64e23999e7ac50b2e516e <http://purl.org/dc/terms/title> \"ReceivedAt\" .\\n_:Neb3f393873c247ed8d4b70731dc7bbcf <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"Been having a good day so far...\" .\\n_:N715f4ee23c58419bb8c4a2d21216acf3 <http://purl.org/dc/terms/title> \"FirstAttachmentPublicURL\" .\\n_:N178bffdecedc4013ba4ae1ed4cefd0f0 <http://purl.org/dc/terms/description> \"Email address of sender.\" .\\n_:N40665263942e4579a6c65e0780c53223 <http://purl.org/dc/terms/description> \"Email address of sender.\" .\\n_:N0210346037ba4ac2bdc1155a9ef60c63 <http://purl.org/dc/terms/title> \"FirstAttachmentFilename\" .\\n_:Nf4fc972a2dad4c4bb88dc7a7a80280a3 <http://purl.org/dc/terms/title> \"FromAddress\" .\\n_:N2bcbcbfa16014aaa92de53c383872184 <http://purl.org/dc/terms/description> \"URL to include as an attachment\" .\\n_:N66a860efc4d54b11b9b6d811d8e7b95c <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n_:N902dc61e92d24ac4b8c7d0e9dfa444b9 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n_:Na387f99b32994cfcbe029c0d3dc7a9c7 <http://purl.org/dc/terms/title> \"ReceivedAt\" .\\n_:N28b1a3f9227b40efaa2e8492555b1964 <http://purl.org/dc/terms/description> \"Plain text email body.\" .\\n<https://ifttt.com/channels/gmail/triggers/367> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:N73eba7c77cc84b068dd425274688c193 .\\n<https://ifttt.com/channels/gmail/triggers/86> <http://purl.org/dc/terms/description> \"This Trigger fires every time a new email arrives in your inbox from theaddress you specify.\" .\\n<https://ifttt.com/channels/gmail/triggers/85> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:Nf4fc972a2dad4c4bb88dc7a7a80280a3 .\\n<https://ifttt.com/channels/gmail/triggers/85> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:N060b3a5887d74a8f9770ea087550f7e3 .\\n_:Nb2bf44e27916498e9eddf9a486ee8dc7 <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"https://locker.ifttt.com/f/4bfc930c-ac73-11e2-b086-22000a9730cf\" .\\n_:N97ac368f8f6e4d7194718af57863883a <http://purl.org/dc/terms/title> \"Label\" .\\n_:N0210346037ba4ac2bdc1155a9ef60c63 <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"LadyTheDog.png\" .\\n_:N178bffdecedc4013ba4ae1ed4cefd0f0 <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"somebody@gmail.com\" .\\n_:N615b6ec4c6bd434ca92ac7314fd27f19 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n<https://ifttt.com/channels/gmail/triggers/85> <http://purl.org/dc/terms/title> \"New email labeled\" .\\n<https://ifttt.com/gmail> <http://xmlns.com/foaf/0.1/logo> \"https://ifttt.com/images/channels/gmail_lrg.png\" .\\n<https://ifttt.com/channels/gmail/triggers/367> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:N20c0b7d7582e428e9c2012a064cf3d12 .\\n<https://ifttt.com/channels/gmail/triggers/367> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:N1c63fdb0196a44c19ea23f031c6e1571 .\\n_:N774339656e8340718d7bed1070fdaab1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n_:N9448220723f74fbd98e67f1880de1ced <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"somebody@gmail.com\" .\\n<https://ifttt.com/channels/gmail/triggers/367> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:Neb3f393873c247ed8d4b70731dc7bbcf .\\n<https://ifttt.com/channels/gmail/actions/34> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasInputParameter> _:N890d18e7509b45c2a78da0751ba0a102 .\\n<https://ifttt.com/channels/gmail/actions/34> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasInputParameter> _:N88747f85dfc24bd7baf4afaa790aa7d1 .\\n_:Nb4720ccafadb434c8259bb4f4c8cf198 <http://purl.org/dc/terms/title> \"FirstAttachmentFilename\" .\\n<https://ifttt.com/channels/gmail/triggers/85> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:Nb4720ccafadb434c8259bb4f4c8cf198 .\\n_:N178bffdecedc4013ba4ae1ed4cefd0f0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n<https://ifttt.com/channels/gmail/triggers/86> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:Nee0e3d565db5471c9efd5248f8aa66b1 .\\n_:N9ea6892b0ad64e23999e7ac50b2e516e <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"August 23, 2010 at 11:01PM\" .\\n_:N28b1a3f9227b40efaa2e8492555b1964 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n_:N6fbae96ee43a4e8aa5b4e1e968719dec <http://purl.org/dc/terms/title> \"FirstAttachmentPrivateURL\" .\\n<https://ifttt.com/channels/gmail/triggers/186> <http://purl.org/dc/terms/title> \"New starred email\" .\\n_:N97ac368f8f6e4d7194718af57863883a <http://www.w3.org/2001/XMLSchema#type> \"string_value\" .\\n<https://ifttt.com/channels/gmail/triggers/86> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:Na387f99b32994cfcbe029c0d3dc7a9c7 .\\n_:Nec46842ec98a4ac08437c492563b0bb9 <http://purl.org/dc/terms/title> \"ReceivedAt\" .\\n<https://ifttt.com/channels/gmail/triggers/185> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:N40665263942e4579a6c65e0780c53223 .\\n<https://ifttt.com/gmail> <http://gsi.dit.upm.es/ontologies/ewe/ns/generatesEvent> <https://ifttt.com/channels/gmail/triggers/367> .\\n_:Nc6919ad1c64f49b696cee4dc2e0d86e8 <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"Been having a good day so far...\" .\\n<https://ifttt.com/channels/gmail/triggers/86> <http://purl.org/dc/terms/title> \"New email from\" .\\n_:Na7325782dc524f858ab62fa5d76b889c <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/InputParameter> .\\n_:Nf4fc972a2dad4c4bb88dc7a7a80280a3 <http://purl.org/dc/terms/description> \"Email address of sender.\" .\\n_:N0cd0137467684c5cb83a129293fbd37b <http://purl.org/dc/terms/title> \"Search for\" .\\n<https://ifttt.com/channels/gmail/triggers/86> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:N28b1a3f9227b40efaa2e8492555b1964 .\\n_:N62da3b21c7734efb8ce02558c9ae0276 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n_:N1c63fdb0196a44c19ea23f031c6e1571 <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"somebody@gmail.com\" .\\n<https://ifttt.com/channels/gmail/triggers/87> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasInputParameter> _:N0cd0137467684c5cb83a129293fbd37b .\\n_:N8fa2723166854100bb95cadcbe808e2d <http://purl.org/dc/terms/description> \"A URL to the first file attachment (if any) that only you can see.\" .\\n<https://ifttt.com/channels/gmail/actions/34> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/Action> .\\n_:N099fe544cc544344a0003952f911e41a <http://purl.org/dc/terms/description> \"Date and time email was received.\" .\\n_:N62da3b21c7734efb8ce02558c9ae0276 <http://purl.org/dc/terms/title> \"BodyPlain\" .\\n_:N5613cce30ef34b79bb4ccb8449946c04 <http://purl.org/dc/terms/title> \"To address\" .\\n_:N0dd4c4ac84064309b41dcf1e7fe3918c <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n_:N5613cce30ef34b79bb4ccb8449946c04 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/InputParameter> .\\n_:N62da3b21c7734efb8ce02558c9ae0276 <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"Been having a good day so far...\" .\\n_:N40665263942e4579a6c65e0780c53223 <http://purl.org/dc/terms/title> \"FromAddress\" .\\n_:N4c2b948430b74b4e842bc071e06e147f <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"LadyTheDog.png\" .\\n_:Nec46842ec98a4ac08437c492563b0bb9 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n_:N4ebb55ae3980409a845e39a130a86f4a <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n<https://ifttt.com/channels/gmail/triggers/186> <http://purl.org/dc/terms/description> \"This Trigger fires every time you add any new star to an email.\" .\\n_:Nff8dd67dab5847b7999f0b7b3f925896 <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"https://locker.ifttt.com/f/29b08556-ac73-11e2-a707-22000a9730cf\" .\\n_:N9448220723f74fbd98e67f1880de1ced <http://purl.org/dc/terms/description> \"Email address of sender.\" .\\n_:N6fbae96ee43a4e8aa5b4e1e968719dec <http://purl.org/dc/terms/description> \"A URL to the first file attachment (if any) that only you can see.\" .\\n_:N060b3a5887d74a8f9770ea087550f7e3 <http://purl.org/dc/terms/title> \"BodyPlain\" .\\n_:N28b1a3f9227b40efaa2e8492555b1964 <http://purl.org/dc/terms/title> \"BodyPlain\" .\\n_:N890d18e7509b45c2a78da0751ba0a102 <http://purl.org/dc/terms/title> \"Body\" .\\n_:N401f62004d1142fb9f1eb85694c32c32 <http://purl.org/dc/terms/description> \"Date and time email was received.\" .\\n_:Nb4720ccafadb434c8259bb4f4c8cf198 <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"LadyTheDog.png\" .\\n<https://ifttt.com/channels/gmail/triggers/86> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:N1ee93fc8e0e74763ae5b37b227e616f6 .\\n_:N4c2b948430b74b4e842bc071e06e147f <http://purl.org/dc/terms/title> \"FirstAttachmentFilename\" .\\n_:N4ebb55ae3980409a845e39a130a86f4a <http://purl.org/dc/terms/description> \"The filename of the first file attachment (if any).\" .\\n<https://ifttt.com/channels/gmail/triggers/186> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:Nc6919ad1c64f49b696cee4dc2e0d86e8 .\\n<https://ifttt.com/channels/gmail/triggers/186> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/Event> .\\n<https://ifttt.com/channels/gmail/triggers/87> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/Event> .\\n_:N62da3b21c7734efb8ce02558c9ae0276 <http://purl.org/dc/terms/description> \"Plain text email body.\" .\\n<https://ifttt.com/channels/gmail/triggers/87> <http://purl.org/dc/terms/title> \"New email from search\" .\\n_:N238780b0d04b408187ff5e9dbbb35849 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n_:N0cd0137467684c5cb83a129293fbd37b <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/InputParameter> .\\n_:Neb3f393873c247ed8d4b70731dc7bbcf <http://purl.org/dc/terms/title> \"BodyPlain\" .\\n_:N4ebb55ae3980409a845e39a130a86f4a <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"LadyTheDog.png\" .\\n<https://ifttt.com/channels/gmail/triggers/185> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:N401f62004d1142fb9f1eb85694c32c32 .\\n_:N099fe544cc544344a0003952f911e41a <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n<https://ifttt.com/channels/gmail/triggers/87> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:N66a860efc4d54b11b9b6d811d8e7b95c .\\n_:N66a860efc4d54b11b9b6d811d8e7b95c <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"https://locker.ifttt.com/f/29b08556-ac73-11e2-a707-22000a9730cf\" .\\n_:Nc6919ad1c64f49b696cee4dc2e0d86e8 <http://purl.org/dc/terms/description> \"Plain text email body.\" .\\n<https://ifttt.com/channels/gmail/triggers/367> <http://purl.org/dc/terms/description> \"This Trigger fires for every email attachment that arrives in your inbox.NOTE: Multiple attachments each fire separately.\" .\\n_:Neb3f393873c247ed8d4b70731dc7bbcf <http://purl.org/dc/terms/description> \"Plain text email body.\" .\\n_:Nc6919ad1c64f49b696cee4dc2e0d86e8 <http://purl.org/dc/terms/title> \"BodyPlain\" .\\n_:Nb35e69dc8711426bbeb72e4b412af4d0 <http://purl.org/dc/terms/description> \"Email subject line.\" .\\n_:Nf4fc972a2dad4c4bb88dc7a7a80280a3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n<https://ifttt.com/channels/gmail/triggers/86> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:N4ebb55ae3980409a845e39a130a86f4a .\\n_:N9448220723f74fbd98e67f1880de1ced <http://purl.org/dc/terms/title> \"FromAddress\" .\\n_:Na387f99b32994cfcbe029c0d3dc7a9c7 <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"August 23, 2010 at 11:01PM\" .\\n_:N4c2b948430b74b4e842bc071e06e147f <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n_:N0d990526ca5349af9bc84d189e57ebe2 <http://purl.org/dc/terms/title> \"BodyPlain\" .\\n_:Nec46842ec98a4ac08437c492563b0bb9 <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"August 23, 2010 at 11:01PM\" .\\n_:N0d990526ca5349af9bc84d189e57ebe2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n_:N060b3a5887d74a8f9770ea087550f7e3 <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"Been having a good day so far...\" .\\n_:N1ee93fc8e0e74763ae5b37b227e616f6 <http://purl.org/dc/terms/description> \"A URL to the first file attachment (if any) that anyone can see.\" .\\n_:N0dd4c4ac84064309b41dcf1e7fe3918c <http://purl.org/dc/terms/description> \"A URL to the first file attachment (if any) that only you can see.\" .\\n_:N6ebd190ec7554496aa6b24d1fae9e33a <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n<https://ifttt.com/gmail> <http://xmlns.com/foaf/0.1/url> \"http://gmail.com\" .\\n_:Nb35e69dc8711426bbeb72e4b412af4d0 <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"Hello there\" .\\n<https://ifttt.com/channels/gmail/triggers/185> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:N774339656e8340718d7bed1070fdaab1 .\\n_:Ncea892d43d894bb1990b3bc8182c1ed2 <http://purl.org/dc/terms/title> \"AttachmentPrivateURL\" .\\n<https://ifttt.com/channels/gmail/triggers/367> <http://purl.org/dc/terms/title> \"Any new attachment\" .\\n_:N6ebd190ec7554496aa6b24d1fae9e33a <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"Hello there\" .\\n_:N6fbae96ee43a4e8aa5b4e1e968719dec <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"https://locker.ifttt.com/f/29b08556-ac73-11e2-a707-22000a9730cf\" .\\n_:N88747f85dfc24bd7baf4afaa790aa7d1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/InputParameter> .\\n<https://ifttt.com/channels/gmail/triggers/87> <http://purl.org/dc/terms/description> \"This Trigger fires every time a new email arrives in your inbox that matchesthe search query you specify.\" .\\n_:N890d18e7509b45c2a78da0751ba0a102 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/InputParameter> .\\n_:N97ac368f8f6e4d7194718af57863883a <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/InputParameter> .\\n<https://ifttt.com/gmail> <http://gsi.dit.upm.es/ontologies/ewe/ns/generatesEvent> <https://ifttt.com/channels/gmail/triggers/86> .\\n_:Ncea892d43d894bb1990b3bc8182c1ed2 <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"https://locker.ifttt.com/f/29b08556-ac73-11e2-a707-22000a9730cf\" .\\n<https://ifttt.com/channels/gmail/triggers/85> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:N9ea6892b0ad64e23999e7ac50b2e516e .\\n_:Nefdd2d99954044e9bddd147924124c88 <http://purl.org/dc/terms/description> \"Email subject line.\" .\\n<https://ifttt.com/channels/gmail/triggers/185> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:N715f4ee23c58419bb8c4a2d21216acf3 .\\n_:N6ebd190ec7554496aa6b24d1fae9e33a <http://purl.org/dc/terms/description> \"Email subject line.\" .\\n_:N40665263942e4579a6c65e0780c53223 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n_:N73eba7c77cc84b068dd425274688c193 <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"LadyTheDog.png\" .\\n_:N76df4cf31348496e8a394c137d0200f8 <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"LadyTheDog.png\" .\\n<https://ifttt.com/channels/gmail/triggers/367> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:Ncea892d43d894bb1990b3bc8182c1ed2 .\\n<https://ifttt.com/gmail> <http://gsi.dit.upm.es/ontologies/ewe/ns/generatesEvent> <https://ifttt.com/channels/gmail/triggers/186> .\\n<https://ifttt.com/channels/gmail/triggers/186> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:N0210346037ba4ac2bdc1155a9ef60c63 .\\n_:N401f62004d1142fb9f1eb85694c32c32 <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"August 23, 2010 at 11:01PM\" .\\n_:N5613cce30ef34b79bb4ccb8449946c04 <http://purl.org/dc/terms/description> \"single email address only\" .\\n_:N178bffdecedc4013ba4ae1ed4cefd0f0 <http://purl.org/dc/terms/title> \"FromAddress\" .\\n_:Nee0e3d565db5471c9efd5248f8aa66b1 <http://purl.org/dc/terms/title> \"FromAddress\" .\\n<https://ifttt.com/channels/gmail/triggers/185> <http://purl.org/dc/terms/description> \"This Trigger fires every time any new email arrives in Gmail.\" .\\n_:Nf3422c781f97402291ba9dec3e5bed06 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n<https://ifttt.com/gmail> <http://gsi.dit.upm.es/ontologies/ewe/ns/generatesEvent> <https://ifttt.com/channels/gmail/triggers/87> .\\n<https://ifttt.com/channels/gmail/triggers/185> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:N4c2b948430b74b4e842bc071e06e147f .\\n<https://ifttt.com/gmail> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/Channel> .\\n_:N4c2b948430b74b4e842bc071e06e147f <http://purl.org/dc/terms/description> \"The filename of the first file attachment (if any).\" .\\n_:N0210346037ba4ac2bdc1155a9ef60c63 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n_:Nff8dd67dab5847b7999f0b7b3f925896 <http://purl.org/dc/terms/description> \"A URL to the first file attachment (if any) that only you can see.\" .\\n_:N20c0b7d7582e428e9c2012a064cf3d12 <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"Hello there\" .\\n_:N056eb50561fd4033bebf876fbd3ab506 <http://purl.org/dc/terms/description> \"A URL to the first file attachment (if any) that anyone can see.\" .\\n_:Na7325782dc524f858ab62fa5d76b889c <http://www.w3.org/2001/XMLSchema#type> \"string_value\" .\\n_:N66a860efc4d54b11b9b6d811d8e7b95c <http://purl.org/dc/terms/title> \"FirstAttachmentPrivateURL\" .\\n<https://ifttt.com/channels/gmail/triggers/86> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/Event> .\\n_:N20c0b7d7582e428e9c2012a064cf3d12 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n_:N8fa2723166854100bb95cadcbe808e2d <http://purl.org/dc/terms/title> \"FirstAttachmentPrivateURL\" .\\n_:N2bcbcbfa16014aaa92de53c383872184 <http://purl.org/dc/terms/title> \"Attachment URL\" .\\n_:N890d18e7509b45c2a78da0751ba0a102 <http://purl.org/dc/terms/description> \"some HTML ok\" .\\n_:N73eba7c77cc84b068dd425274688c193 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n<https://ifttt.com/channels/gmail/triggers/186> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:N099fe544cc544344a0003952f911e41a .\\n_:Nefdd2d99954044e9bddd147924124c88 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n<https://ifttt.com/channels/gmail/triggers/185> <http://purl.org/dc/terms/title> \"Any new email\" .\\n<https://ifttt.com/channels/gmail/triggers/87> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:Nb35e69dc8711426bbeb72e4b412af4d0 .\\n<https://ifttt.com/gmail> <http://gsi.dit.upm.es/ontologies/ewe/ns/generatesEvent> <https://ifttt.com/channels/gmail/triggers/185> .\\n<https://ifttt.com/channels/gmail/triggers/85> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:N902dc61e92d24ac4b8c7d0e9dfa444b9 .\\n_:Nc6919ad1c64f49b696cee4dc2e0d86e8 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n<https://ifttt.com/channels/gmail/triggers/85> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:N2a4af8059cd54651a33f77bc82fcabf6 .\\n_:N1ee93fc8e0e74763ae5b37b227e616f6 <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"https://locker.ifttt.com/f/4bfc930c-ac73-11e2-b086-22000a9730cf\" .\\n_:N40665263942e4579a6c65e0780c53223 <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"somebody@gmail.com\" .\\n_:N238780b0d04b408187ff5e9dbbb35849 <http://purl.org/dc/terms/description> \"A URL to the file attachment that anyone can see.\" .\\n<https://ifttt.com/channels/gmail/actions/34> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasInputParameter> _:N2bcbcbfa16014aaa92de53c383872184 .\\n_:Na7325782dc524f858ab62fa5d76b889c <http://purl.org/dc/terms/title> \"Email address\" .\\n_:N1c63fdb0196a44c19ea23f031c6e1571 <http://purl.org/dc/terms/title> \"FromAddress\" .\\n_:N715f4ee23c58419bb8c4a2d21216acf3 <http://purl.org/dc/terms/description> \"A URL to the first file attachment (if any) that anyone can see.\" .\\n_:N715f4ee23c58419bb8c4a2d21216acf3 <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"https://locker.ifttt.com/f/4bfc930c-ac73-11e2-b086-22000a9730cf\" .\\n<https://ifttt.com/channels/gmail/triggers/186> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:N056eb50561fd4033bebf876fbd3ab506 .\\n<https://ifttt.com/channels/gmail/triggers/85> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasInputParameter> _:N97ac368f8f6e4d7194718af57863883a .\\n_:Ncea892d43d894bb1990b3bc8182c1ed2 <http://purl.org/dc/terms/description> \"A URL to the file attachment that only you can see.\" .\\n_:N056eb50561fd4033bebf876fbd3ab506 <http://purl.org/dc/terms/title> \"FirstAttachmentPublicURL\" .\\n_:N238780b0d04b408187ff5e9dbbb35849 <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"https://locker.ifttt.com/f/4bfc930c-ac73-11e2-b086-22000a9730cf\" .\\n_:Nb4720ccafadb434c8259bb4f4c8cf198 <http://purl.org/dc/terms/description> \"The filename of the first file attachment (if any).\" .\\n_:Nb35e69dc8711426bbeb72e4b412af4d0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n_:N20c0b7d7582e428e9c2012a064cf3d12 <http://purl.org/dc/terms/description> \"Email subject line.\" .\\n_:N774339656e8340718d7bed1070fdaab1 <http://purl.org/dc/terms/title> \"Subject\" .\\n<https://ifttt.com/channels/gmail/triggers/367> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/Event> .\\n<https://ifttt.com/channels/gmail/triggers/86> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasInputParameter> _:Na7325782dc524f858ab62fa5d76b889c .\\n_:N6ebd190ec7554496aa6b24d1fae9e33a <http://purl.org/dc/terms/title> \"Subject\" .\\n_:N715f4ee23c58419bb8c4a2d21216acf3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n_:N2bcbcbfa16014aaa92de53c383872184 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/InputParameter> .\\n_:N4ebb55ae3980409a845e39a130a86f4a <http://purl.org/dc/terms/title> \"FirstAttachmentFilename\" .\\n<https://ifttt.com/channels/gmail/triggers/86> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:N0dd4c4ac84064309b41dcf1e7fe3918c .\\n_:N88747f85dfc24bd7baf4afaa790aa7d1 <http://purl.org/dc/terms/title> \"Subject\" .\\n<https://ifttt.com/channels/gmail/triggers/185> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/Event> .\\n_:N0cd0137467684c5cb83a129293fbd37b <http://www.w3.org/2001/XMLSchema#type> \"string_value\" .\\n<https://ifttt.com/gmail> <http://purl.org/dc/terms/description> \"Googles approach to email, Gmail, is built on the idea that email can be moreintuitive, efficient, and useful. And maybe even fun.\" .\\n_:N1ee93fc8e0e74763ae5b37b227e616f6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n_:Nee0e3d565db5471c9efd5248f8aa66b1 <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"somebody@gmail.com\" .\\n_:N099fe544cc544344a0003952f911e41a <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"August 23, 2010 at 11:01PM\" .\\n_:N615b6ec4c6bd434ca92ac7314fd27f19 <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"August 23, 2010 at 11:01PM\" .\\n_:N099fe544cc544344a0003952f911e41a <http://purl.org/dc/terms/title> \"ReceivedAt\" .\\n_:N9ea6892b0ad64e23999e7ac50b2e516e <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://gsi.dit.upm.es/ontologies/ewe/ns/outputParameter> .\\n_:N0d990526ca5349af9bc84d189e57ebe2 <http://purl.org/dc/terms/description> \"Plain text email body.\" .\\n_:N76df4cf31348496e8a394c137d0200f8 <http://purl.org/dc/terms/title> \"FirstAttachmentFilename\" .\\n_:N20c0b7d7582e428e9c2012a064cf3d12 <http://purl.org/dc/terms/title> \"Subject\" .\\n_:N2a4af8059cd54651a33f77bc82fcabf6 <http://purl.org/dc/terms/description> \"The Gmail label from trigger.\" .\\n<https://ifttt.com/channels/gmail/triggers/85> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:Nff8dd67dab5847b7999f0b7b3f925896 .\\n_:N060b3a5887d74a8f9770ea087550f7e3 <http://purl.org/dc/terms/description> \"Plain text email body.\" .\\n<https://ifttt.com/channels/gmail/triggers/87> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasOutputParameter> _:N615b6ec4c6bd434ca92ac7314fd27f19 .\\n_:N73eba7c77cc84b068dd425274688c193 <http://purl.org/dc/terms/title> \"AttachmentFilename\" .\\n_:Nf3422c781f97402291ba9dec3e5bed06 <http://purl.org/dc/terms/title> \"FirstAttachmentPublicURL\" .\\n<https://ifttt.com/channels/gmail/actions/34> <http://purl.org/dc/terms/description> \"This Action will send an email to a single recipient from your Gmail account.\" .\\n<https://ifttt.com/channels/gmail/triggers/85> <http://purl.org/dc/terms/description> \"This Trigger fires every time a new email arrives in your inbox with the labelyou specify.\" .\\n<https://ifttt.com/channels/gmail/actions/34> <http://gsi.dit.upm.es/ontologies/ewe/ns/hasInputParameter> _:N5613cce30ef34b79bb4ccb8449946c04 .\\n_:N0dd4c4ac84064309b41dcf1e7fe3918c <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"https://locker.ifttt.com/f/29b08556-ac73-11e2-a707-22000a9730cf\" .\\n_:N1c63fdb0196a44c19ea23f031c6e1571 <http://purl.org/dc/terms/description> \"Email address of sender.\" .\\n_:N1ee93fc8e0e74763ae5b37b227e616f6 <http://purl.org/dc/terms/title> \"FirstAttachmentPublicURL\" .\\n_:N774339656e8340718d7bed1070fdaab1 <http://gsi.dit.upm.es/ontologies/ewe/ns/example> \"Hello there\" .\\n_:Nee0e3d565db5471c9efd5248f8aa66b1 <http://purl.org/dc/terms/description> \"Email address of sender.\" .\\n\\n'"
|
|
}
|
|
],
|
|
"prompt_number": 4
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"collapsed": false,
|
|
"input": "#nt = open('example.nt','r').read()",
|
|
"language": "python",
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"prompt_number": 5
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"collapsed": false,
|
|
"input": "from pyld import jsonld\nimport json",
|
|
"language": "python",
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"prompt_number": 6
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"collapsed": false,
|
|
"input": "j = jsonld.from_rdf(nt)",
|
|
"language": "python",
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"prompt_number": 7
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"collapsed": false,
|
|
"input": "frame = {\n \"@context\": {\n \"foaf\": \"http://xmlns.com/foaf/0.1/\",\n \"owl\": \"http://www.w3.org/2002/07/owl#\",\n \"rdf\": \"http://www.w3.org/1999/02/22-rdf-syntax-ns#\",\n \"ewe\": \"http://gsi.dit.upm.es/ontologies/ewe/ns/\",\n \"xsd\": \"http://www.w3.org/2001/XMLSchema#\",\n \"rdfs\": \"http://www.w3.org/2000/01/rdf-schema#\",\n \"dcterms\": \"http://purl.org/dc/terms/\",\n \"tags\": \"http://www.holygoat.co.uk/owl/redwood/0.1/tags/\",\n \"spinrdf\": \"http://spinrdf.org/sp#\",\n \"homepage\": {\n \"@id\": \"http://schema.org/url\",\n \"@type\": \"@id\"\n },\n \"image\": {\n \"@id\": \"http://schema.org/image\",\n \"@type\": \"@id\"\n }\n },\n \"@type\": \"ewe:Channel\"\n}\nugly = jsonld.frame(j, frame)\nprint json.dumps(jsonld.compact(ugly, frame), indent=4, sort_keys=True)",
|
|
"language": "python",
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"output_type": "stream",
|
|
"stream": "stdout",
|
|
"text": "{\n \"@context\": {\n \"dcterms\": \"http://purl.org/dc/terms/\", \n \"ewe\": \"http://gsi.dit.upm.es/ontologies/ewe/ns/\", \n \"foaf\": \"http://xmlns.com/foaf/0.1/\", \n \"homepage\": {\n \"@id\": \"http://schema.org/url\", \n \"@type\": \"@id\"\n }, \n \"image\": {\n \"@id\": \"http://schema.org/image\", \n \"@type\": \"@id\"\n }, \n \"owl\": \"http://www.w3.org/2002/07/owl#\", \n \"rdf\": \"http://www.w3.org/1999/02/22-rdf-syntax-ns#\", \n \"rdfs\": \"http://www.w3.org/2000/01/rdf-schema#\", \n \"spinrdf\": \"http://spinrdf.org/sp#\", \n \"tags\": \"http://www.holygoat.co.uk/owl/redwood/0.1/tags/\", \n \"xsd\": \"http://www.w3.org/2001/XMLSchema#\"\n }, \n \"@id\": \"https://ifttt.com/gmail\", \n \"@type\": \"ewe:Channel\", \n \"dcterms:description\": \"Googles approach to email, Gmail, is built on the idea that email can be moreintuitive, efficient, and useful. And maybe even fun.\", \n \"dcterms:title\": \"Gmail\", \n \"ewe:generatesEvent\": [\n {\n \"@id\": \"https://ifttt.com/channels/gmail/triggers/85\", \n \"@type\": \"ewe:Event\", \n \"dcterms:description\": \"This Trigger fires every time a new email arrives in your inbox with the labelyou specify.\", \n \"dcterms:title\": \"New email labeled\", \n \"ewe:hasInputParameter\": {\n \"@id\": \"_:b34\", \n \"@type\": \"ewe:InputParameter\", \n \"dcterms:title\": \"Label\", \n \"xsd:type\": \"string_value\"\n }, \n \"ewe:hasOutputParameter\": [\n {\n \"@id\": \"_:b38\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"A URL to the first file attachment (if any) that anyone can see.\", \n \"dcterms:title\": \"FirstAttachmentPublicURL\", \n \"ewe:example\": \"https://locker.ifttt.com/f/4bfc930c-ac73-11e2-b086-22000a9730cf\"\n }, \n {\n \"@id\": \"_:b48\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"Email address of sender.\", \n \"dcterms:title\": \"FromAddress\", \n \"ewe:example\": \"somebody@gmail.com\"\n }, \n {\n \"@id\": \"_:b2\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"Plain text email body.\", \n \"dcterms:title\": \"BodyPlain\", \n \"ewe:example\": \"Been having a good day so far...\"\n }, \n {\n \"@id\": \"_:b40\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"The filename of the first file attachment (if any).\", \n \"dcterms:title\": \"FirstAttachmentFilename\", \n \"ewe:example\": \"LadyTheDog.png\"\n }, \n {\n \"@id\": \"_:b35\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"Date and time email was received.\", \n \"dcterms:title\": \"ReceivedAt\", \n \"ewe:example\": \"August 23, 2010 at 11:01PM\"\n }, \n {\n \"@id\": \"_:b32\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"Email subject line.\", \n \"dcterms:title\": \"Subject\", \n \"ewe:example\": \"Hello there\"\n }, \n {\n \"@id\": \"_:b13\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"The Gmail label from trigger.\", \n \"dcterms:title\": \"Label\", \n \"ewe:example\": \"Work\"\n }, \n {\n \"@id\": \"_:b49\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"A URL to the first file attachment (if any) that only you can see.\", \n \"dcterms:title\": \"FirstAttachmentPrivateURL\", \n \"ewe:example\": \"https://locker.ifttt.com/f/29b08556-ac73-11e2-a707-22000a9730cf\"\n }\n ]\n }, \n {\n \"@id\": \"https://ifttt.com/channels/gmail/triggers/367\", \n \"@type\": \"ewe:Event\", \n \"dcterms:description\": \"This Trigger fires for every email attachment that arrives in your inbox.NOTE: Multiple attachments each fire separately.\", \n \"dcterms:title\": \"Any new attachment\", \n \"ewe:hasOutputParameter\": [\n {\n \"@id\": \"_:b11\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"A URL to the file attachment that anyone can see.\", \n \"dcterms:title\": \"AttachmentPublicURL\", \n \"ewe:example\": \"https://locker.ifttt.com/f/4bfc930c-ac73-11e2-b086-22000a9730cf\"\n }, \n {\n \"@id\": \"_:b44\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"Date and time email was received.\", \n \"dcterms:title\": \"ReceivedAt\", \n \"ewe:example\": \"August 23, 2010 at 11:01PM\"\n }, \n {\n \"@id\": \"_:b26\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"The filename of the attachment.\", \n \"dcterms:title\": \"AttachmentFilename\", \n \"ewe:example\": \"LadyTheDog.png\"\n }, \n {\n \"@id\": \"_:b10\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"Email subject line.\", \n \"dcterms:title\": \"Subject\", \n \"ewe:example\": \"Hello there\"\n }, \n {\n \"@id\": \"_:b8\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"Email address of sender.\", \n \"dcterms:title\": \"FromAddress\", \n \"ewe:example\": \"somebody@gmail.com\"\n }, \n {\n \"@id\": \"_:b43\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"Plain text email body.\", \n \"dcterms:title\": \"BodyPlain\", \n \"ewe:example\": \"Been having a good day so far...\"\n }, \n {\n \"@id\": \"_:b42\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"A URL to the file attachment that only you can see.\", \n \"dcterms:title\": \"AttachmentPrivateURL\", \n \"ewe:example\": \"https://locker.ifttt.com/f/29b08556-ac73-11e2-a707-22000a9730cf\"\n }\n ]\n }, \n {\n \"@id\": \"https://ifttt.com/channels/gmail/triggers/86\", \n \"@type\": \"ewe:Event\", \n \"dcterms:description\": \"This Trigger fires every time a new email arrives in your inbox from theaddress you specify.\", \n \"dcterms:title\": \"New email from\", \n \"ewe:hasInputParameter\": {\n \"@id\": \"_:b37\", \n \"@type\": \"ewe:InputParameter\", \n \"dcterms:title\": \"Email address\", \n \"xsd:type\": \"string_value\"\n }, \n \"ewe:hasOutputParameter\": [\n {\n \"@id\": \"_:b46\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"Email subject line.\", \n \"dcterms:title\": \"Subject\", \n \"ewe:example\": \"Hello there\"\n }, \n {\n \"@id\": \"_:b45\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"Email address of sender.\", \n \"dcterms:title\": \"FromAddress\", \n \"ewe:example\": \"somebody@gmail.com\"\n }, \n {\n \"@id\": \"_:b36\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"Date and time email was received.\", \n \"dcterms:title\": \"ReceivedAt\", \n \"ewe:example\": \"August 23, 2010 at 11:01PM\"\n }, \n {\n \"@id\": \"_:b12\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"Plain text email body.\", \n \"dcterms:title\": \"BodyPlain\", \n \"ewe:example\": \"Been having a good day so far...\"\n }, \n {\n \"@id\": \"_:b9\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"A URL to the first file attachment (if any) that anyone can see.\", \n \"dcterms:title\": \"FirstAttachmentPublicURL\", \n \"ewe:example\": \"https://locker.ifttt.com/f/4bfc930c-ac73-11e2-b086-22000a9730cf\"\n }, \n {\n \"@id\": \"_:b18\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"The filename of the first file attachment (if any).\", \n \"dcterms:title\": \"FirstAttachmentFilename\", \n \"ewe:example\": \"LadyTheDog.png\"\n }, \n {\n \"@id\": \"_:b6\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"A URL to the first file attachment (if any) that only you can see.\", \n \"dcterms:title\": \"FirstAttachmentPrivateURL\", \n \"ewe:example\": \"https://locker.ifttt.com/f/29b08556-ac73-11e2-a707-22000a9730cf\"\n }\n ]\n }, \n {\n \"@id\": \"https://ifttt.com/channels/gmail/triggers/186\", \n \"@type\": \"ewe:Event\", \n \"dcterms:description\": \"This Trigger fires every time you add any new star to an email.\", \n \"dcterms:title\": \"New starred email\", \n \"ewe:hasOutputParameter\": [\n {\n \"@id\": \"_:b23\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"Email subject line.\", \n \"dcterms:title\": \"Subject\", \n \"ewe:example\": \"Hello there\"\n }, \n {\n \"@id\": \"_:b31\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"A URL to the first file attachment (if any) that only you can see.\", \n \"dcterms:title\": \"FirstAttachmentPrivateURL\", \n \"ewe:example\": \"https://locker.ifttt.com/f/29b08556-ac73-11e2-a707-22000a9730cf\"\n }, \n {\n \"@id\": \"_:b33\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"Email address of sender.\", \n \"dcterms:title\": \"FromAddress\", \n \"ewe:example\": \"somebody@gmail.com\"\n }, \n {\n \"@id\": \"_:b41\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"Plain text email body.\", \n \"dcterms:title\": \"BodyPlain\", \n \"ewe:example\": \"Been having a good day so far...\"\n }, \n {\n \"@id\": \"_:b0\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"The filename of the first file attachment (if any).\", \n \"dcterms:title\": \"FirstAttachmentFilename\", \n \"ewe:example\": \"LadyTheDog.png\"\n }, \n {\n \"@id\": \"_:b3\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"Date and time email was received.\", \n \"dcterms:title\": \"ReceivedAt\", \n \"ewe:example\": \"August 23, 2010 at 11:01PM\"\n }, \n {\n \"@id\": \"_:b1\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"A URL to the first file attachment (if any) that anyone can see.\", \n \"dcterms:title\": \"FirstAttachmentPublicURL\", \n \"ewe:example\": \"https://locker.ifttt.com/f/4bfc930c-ac73-11e2-b086-22000a9730cf\"\n }\n ]\n }, \n {\n \"@id\": \"https://ifttt.com/channels/gmail/triggers/87\", \n \"@type\": \"ewe:Event\", \n \"dcterms:description\": \"This Trigger fires every time a new email arrives in your inbox that matchesthe search query you specify.\", \n \"dcterms:title\": \"New email from search\", \n \"ewe:hasInputParameter\": {\n \"@id\": \"_:b4\", \n \"@type\": \"ewe:InputParameter\", \n \"dcterms:title\": \"Search for\", \n \"xsd:type\": \"string_value\"\n }, \n \"ewe:hasOutputParameter\": [\n {\n \"@id\": \"_:b7\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"Email address of sender.\", \n \"dcterms:title\": \"FromAddress\", \n \"ewe:example\": \"somebody@gmail.com\"\n }, \n {\n \"@id\": \"_:b27\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"The filename of the first file attachment (if any).\", \n \"dcterms:title\": \"FirstAttachmentFilename\", \n \"ewe:example\": \"LadyTheDog.png\"\n }, \n {\n \"@id\": \"_:b5\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"Plain text email body.\", \n \"dcterms:title\": \"BodyPlain\", \n \"ewe:example\": \"Been having a good day so far...\"\n }, \n {\n \"@id\": \"_:b47\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"A URL to the first file attachment (if any) that anyone can see.\", \n \"dcterms:title\": \"FirstAttachmentPublicURL\", \n \"ewe:example\": \"https://locker.ifttt.com/f/4bfc930c-ac73-11e2-b086-22000a9730cf\"\n }, \n {\n \"@id\": \"_:b22\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"A URL to the first file attachment (if any) that only you can see.\", \n \"dcterms:title\": \"FirstAttachmentPrivateURL\", \n \"ewe:example\": \"https://locker.ifttt.com/f/29b08556-ac73-11e2-a707-22000a9730cf\"\n }, \n {\n \"@id\": \"_:b39\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"Email subject line.\", \n \"dcterms:title\": \"Subject\", \n \"ewe:example\": \"Hello there\"\n }, \n {\n \"@id\": \"_:b20\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"Date and time email was received.\", \n \"dcterms:title\": \"ReceivedAt\", \n \"ewe:example\": \"August 23, 2010 at 11:01PM\"\n }\n ]\n }, \n {\n \"@id\": \"https://ifttt.com/channels/gmail/triggers/185\", \n \"@type\": \"ewe:Event\", \n \"dcterms:description\": \"This Trigger fires every time any new email arrives in Gmail.\", \n \"dcterms:title\": \"Any new email\", \n \"ewe:hasOutputParameter\": [\n {\n \"@id\": \"_:b24\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"A URL to the first file attachment (if any) that only you can see.\", \n \"dcterms:title\": \"FirstAttachmentPrivateURL\", \n \"ewe:example\": \"https://locker.ifttt.com/f/29b08556-ac73-11e2-a707-22000a9730cf\"\n }, \n {\n \"@id\": \"_:b21\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"Plain text email body.\", \n \"dcterms:title\": \"BodyPlain\", \n \"ewe:example\": \"Been having a good day so far...\"\n }, \n {\n \"@id\": \"_:b16\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"Email address of sender.\", \n \"dcterms:title\": \"FromAddress\", \n \"ewe:example\": \"somebody@gmail.com\"\n }, \n {\n \"@id\": \"_:b15\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"Date and time email was received.\", \n \"dcterms:title\": \"ReceivedAt\", \n \"ewe:example\": \"August 23, 2010 at 11:01PM\"\n }, \n {\n \"@id\": \"_:b28\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"Email subject line.\", \n \"dcterms:title\": \"Subject\", \n \"ewe:example\": \"Hello there\"\n }, \n {\n \"@id\": \"_:b25\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"A URL to the first file attachment (if any) that anyone can see.\", \n \"dcterms:title\": \"FirstAttachmentPublicURL\", \n \"ewe:example\": \"https://locker.ifttt.com/f/4bfc930c-ac73-11e2-b086-22000a9730cf\"\n }, \n {\n \"@id\": \"_:b17\", \n \"@type\": \"ewe:outputParameter\", \n \"dcterms:description\": \"The filename of the first file attachment (if any).\", \n \"dcterms:title\": \"FirstAttachmentFilename\", \n \"ewe:example\": \"LadyTheDog.png\"\n }\n ]\n }\n ], \n \"ewe:providesAction\": {\n \"@id\": \"https://ifttt.com/channels/gmail/actions/34\", \n \"@type\": \"ewe:Action\", \n \"dcterms:description\": \"This Action will send an email to a single recipient from your Gmail account.\", \n \"dcterms:title\": \"Send an email\", \n \"ewe:hasInputParameter\": [\n {\n \"@id\": \"_:b30\", \n \"@type\": \"ewe:InputParameter\", \n \"dcterms:description\": \"some HTML ok\", \n \"dcterms:title\": \"Body\"\n }, \n {\n \"@id\": \"_:b29\", \n \"@type\": \"ewe:InputParameter\", \n \"dcterms:title\": \"Subject\"\n }, \n {\n \"@id\": \"_:b14\", \n \"@type\": \"ewe:InputParameter\", \n \"dcterms:description\": \"URL to include as an attachment\", \n \"dcterms:title\": \"Attachment URL\"\n }, \n {\n \"@id\": \"_:b19\", \n \"@type\": \"ewe:InputParameter\", \n \"dcterms:description\": \"single email address only\", \n \"dcterms:title\": \"To address\"\n }\n ]\n }, \n \"foaf:logo\": \"https://ifttt.com/images/channels/gmail_lrg.png\", \n \"foaf:url\": \"http://gmail.com\"\n}\n"
|
|
}
|
|
],
|
|
"prompt_number": 10
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"collapsed": false,
|
|
"input": "print json.dumps(ugly, indent=2)",
|
|
"language": "python",
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"output_type": "stream",
|
|
"stream": "stdout",
|
|
"text": "{\n \"@context\": {\n \"foaf\": \"http://xmlns.com/foaf/0.1/\", \n \"owl\": \"http://www.w3.org/2002/07/owl#\", \n \"rdfs\": \"http://www.w3.org/2000/01/rdf-schema#\", \n \"image\": {\n \"@id\": \"http://schema.org/image\", \n \"@type\": \"@id\"\n }, \n \"tags\": \"http://www.holygoat.co.uk/owl/redwood/0.1/tags/\", \n \"ewe\": \"http://gsi.dit.upm.es/ontologies/ewe/ns/\", \n \"rdf\": \"http://www.w3.org/1999/02/22-rdf-syntax-ns#\", \n \"xsd\": \"http://www.w3.org/2001/XMLSchema#\", \n \"dcterms\": \"http://purl.org/dc/terms/\", \n \"homepage\": {\n \"@id\": \"http://schema.org/url\", \n \"@type\": \"@id\"\n }, \n \"spinrdf\": \"http://spinrdf.org/sp#\"\n }, \n \"@graph\": []\n}\n"
|
|
}
|
|
],
|
|
"prompt_number": 9
|
|
}
|
|
],
|
|
"metadata": {}
|
|
}
|
|
]
|
|
}
|