This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X PATCH -H 'Content-Type: application/json' -d '{ | |
"http://data.melvin.me/test.ttl#me": { | |
"http://xmlns.com/foaf/0.1/givenname" : [ { "value" : "Melvin", | |
"type" : "literal" } ] | |
} | |
} ' data.melvin.me/test.ttl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -H 'Content-type: application/sparql-query' -d 'INSERT DATA { <http://melvster.data.fm/foaf#me> <http://xmlns.com/foaf/0.1/age> 37 . }' http://melvincarvalho.data.fm/foaf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.java.dev.sommer.foafserver.utils; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.math.BigInteger; | |
import java.security.InvalidKeyException; | |
import java.security.KeyStore; | |
import java.security.KeyStoreException; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
URI="http://bblfish.net/people/henry/card#me" | |
roqet -r turtle --exec "CONSTRUCT { | |
<$URI> <http://xmlns.com/foaf/0.1/knows> ?c . ?c <http://xmlns.com/foaf/0.1/name> ?n } WHERE { <$URI> <http://xmlns.com/foaf/0.1/knows> ?c . ?c <http://xmlns.com/foaf/0.1/name> ?n }" -D "$URI" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var arr = assertion.split('.'); | |
var f = JSON.parse(window.atob(arr[1])); | |
alert( f['principal']['email'] ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create the XHR object. | |
function createCORSRequest(method, url) { | |
var xhr = new XMLHttpRequest(); | |
if ("withCredentials" in xhr) { | |
// XHR for Chrome/Safari/Firefox. | |
xhr.open(method, url, true); | |
} else if (typeof XDomainRequest != "undefined") { | |
// XDomainRequest for IE. | |
xhr = new XDomainRequest(); | |
xhr.open(method, url); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Simplification | |
[email protected] and translate to -> gmail.com/@/joe | |
Serve it as JSON, and we're pretty much done (ive skipped a couple of details for brevity). | |
We have a few world class, scalable, JSON formats now that we didnt have 2 years ago. | |
## Current webfinger |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @fileOverview | |
* | |
* rdfapi - see: <http://webr3.org/apps/play/api/lib> | |
* | |
* @author Nathan <http://webr3.org/nathan#me> | |
* @version 2010-10-29T03:30:00Z | |
* @license http://creativecommons.org/publicdomain/zero/1.0/ | |
* | |
* source: <http://webr3.org/apps/play/api/> To the extent possible under law, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" xmlns:pingback="http://purl.org/net/pingback/"> | |
<head> | |
<title>Pingback Service</title> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> | |
</head> | |
<body typeof="pingback:Container"> | |
<form method="post" action=""> | |
<p>source: <input type="text" property="pingback:source" name="source" /></p> | |
<p>target: <input type="text" property="pingback:target" name="target" /></p> |